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
.-
Field Summary
Fields -
Constructor Summary
Constructors -
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
.private void
private void
addMessage
(Descriptors.Descriptor message) build()
Builds aJsonFormat.TypeRegistry
.
-
Field Details
-
files
-
types
-
built
private boolean built
-
-
Constructor Details
-
Builder
private Builder()
-
-
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. -
addFile
-
addMessage
-