Package com.google.protobuf
Class TypeRegistry.Builder
- java.lang.Object
-
- com.google.protobuf.TypeRegistry.Builder
-
- Enclosing class:
- TypeRegistry
public static final class TypeRegistry.Builder extends java.lang.ObjectA Builder is used to buildTypeRegistry.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeRegistry.Builderadd(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.TypeRegistry.Builderadd(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 thisTypeRegistry.Builder.TypeRegistrybuild()Builds aTypeRegistry.
-
-
-
Method Detail
-
add
public 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 thisTypeRegistry.Builder.
-
add
public 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 thisTypeRegistry.Builder.
-
build
public TypeRegistry build()
Builds aTypeRegistry. This method can only be called once for one Builder.
-
-