Package com.google.protobuf
Class TypeRegistry.Builder
java.lang.Object
com.google.protobuf.TypeRegistry.Builder
- Enclosing class:
- TypeRegistry
A Builder is used to build
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 thisTypeRegistry.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 thisTypeRegistry.Builder.private voidprivate voidaddMessage(Descriptors.Descriptor message) build()Builds aTypeRegistry.
-
Field Details
-
files
-
types
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
add
Adds a message type and all types defined in the same .proto file as well as all transitively imported .proto files to thisTypeRegistry.Builder. -
add
Adds message types and all types defined in the same .proto file as well as all transitively imported .proto files to thisTypeRegistry.Builder. -
build
Builds aTypeRegistry. This method can only be called once for one Builder. -
addFile
-
addMessage
-