public static final class TypeRegistry.Builder
extends java.lang.Object
TypeRegistry
.Modifier and Type | Method and Description |
---|---|
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 this
TypeRegistry.Builder . |
TypeRegistry.Builder |
add(java.lang.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 this
TypeRegistry.Builder . |
TypeRegistry |
build()
Builds a
TypeRegistry . |
public TypeRegistry.Builder add(Descriptors.Descriptor messageType)
TypeRegistry.Builder
.public TypeRegistry.Builder add(java.lang.Iterable<Descriptors.Descriptor> messageTypes)
TypeRegistry.Builder
.public TypeRegistry build()
TypeRegistry
. This method can only be called once for one Builder.