Package com.google.protobuf.util
Class JsonFormat.TypeRegistry.Builder
java.lang.Object
com.google.protobuf.util.JsonFormat.TypeRegistry.Builder
- Enclosing class:
JsonFormat.TypeRegistry
A Builder is used to build
JsonFormat.TypeRegistry
.-
Method Summary
Modifier and TypeMethodDescriptionadd
(Descriptors.Descriptor messageType) Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
.add
(Iterable<Descriptors.Descriptor> messageTypes) Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
.build()
Builds aJsonFormat.TypeRegistry
.
-
Method Details
-
add
@CanIgnoreReturnValue public JsonFormat.TypeRegistry.Builder add(Descriptors.Descriptor messageType) Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
. -
add
@CanIgnoreReturnValue public JsonFormat.TypeRegistry.Builder add(Iterable<Descriptors.Descriptor> messageTypes) Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to thisJsonFormat.TypeRegistry.Builder
. -
build
Builds aJsonFormat.TypeRegistry
. This method can only be called once for one Builder.
-