public static final class DescriptorProtos.DescriptorProto.Builder extends GeneratedMessageV3.Builder<DescriptorProtos.DescriptorProto.Builder> implements DescriptorProtos.DescriptorProtoOrBuilder
Describes a message type.
Protobuf type google.protobuf.DescriptorProto
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
public DescriptorProtos.DescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto>
|
addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
public DescriptorProtos.DescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto>
|
addAllExtensionRange(Iterable<? extends DescriptorProtos.DescriptorProto.ExtensionRange> values)
public DescriptorProtos.DescriptorProto.Builder addAllExtensionRange(Iterable<? extends DescriptorProtos.DescriptorProto.ExtensionRange> values)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRange>
|
addAllField(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
public DescriptorProtos.DescriptorProto.Builder addAllField(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto>
|
addAllNestedType(Iterable<? extends DescriptorProtos.DescriptorProto> values)
public DescriptorProtos.DescriptorProto.Builder addAllNestedType(Iterable<? extends DescriptorProtos.DescriptorProto> values)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto>
|
addAllOneofDecl(Iterable<? extends DescriptorProtos.OneofDescriptorProto> values)
public DescriptorProtos.DescriptorProto.Builder addAllOneofDecl(Iterable<? extends DescriptorProtos.OneofDescriptorProto> values)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProto>
|
addAllReservedName(Iterable<String> values)
public DescriptorProtos.DescriptorProto.Builder addAllReservedName(Iterable<String> values)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameter |
Name |
Description |
values |
Iterable<String>
The reservedName to add.
|
addAllReservedRange(Iterable<? extends DescriptorProtos.DescriptorProto.ReservedRange> values)
public DescriptorProtos.DescriptorProto.Builder addAllReservedRange(Iterable<? extends DescriptorProtos.DescriptorProto.ReservedRange> values)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRange>
|
addEnumType(DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
addEnumTypeBuilder()
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
addEnumTypeBuilder(int index)
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
index |
int
|
addExtension(DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
addExtension(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
addExtensionBuilder()
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
addExtensionBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
index |
int
|
addExtensionRange(DescriptorProtos.DescriptorProto.ExtensionRange value)
public DescriptorProtos.DescriptorProto.Builder addExtensionRange(DescriptorProtos.DescriptorProto.ExtensionRange value)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
addExtensionRange(DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addExtensionRange(DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
addExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange value)
public DescriptorProtos.DescriptorProto.Builder addExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange value)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
addExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
addExtensionRangeBuilder()
public DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
addExtensionRangeBuilder(int index)
public DescriptorProtos.DescriptorProto.ExtensionRange.Builder addExtensionRangeBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
index |
int
|
addField(DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addField(DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto field = 2;
addField(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addField(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto field = 2;
addField(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addField(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto field = 2;
addField(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addField(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto field = 2;
addFieldBuilder()
public DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder()
repeated .google.protobuf.FieldDescriptorProto field = 2;
addFieldBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder addFieldBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
index |
int
|
addNestedType(DescriptorProtos.DescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addNestedType(DescriptorProtos.DescriptorProto value)
repeated .google.protobuf.DescriptorProto nested_type = 3;
addNestedType(DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addNestedType(DescriptorProtos.DescriptorProto.Builder builderForValue)
repeated .google.protobuf.DescriptorProto nested_type = 3;
addNestedType(int index, DescriptorProtos.DescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addNestedType(int index, DescriptorProtos.DescriptorProto value)
repeated .google.protobuf.DescriptorProto nested_type = 3;
addNestedType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addNestedType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
repeated .google.protobuf.DescriptorProto nested_type = 3;
addNestedTypeBuilder()
public DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder()
repeated .google.protobuf.DescriptorProto nested_type = 3;
addNestedTypeBuilder(int index)
public DescriptorProtos.DescriptorProto.Builder addNestedTypeBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
index |
int
|
addOneofDecl(DescriptorProtos.OneofDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addOneofDecl(DescriptorProtos.OneofDescriptorProto value)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
addOneofDecl(DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addOneofDecl(DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
addOneofDecl(int index, DescriptorProtos.OneofDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder addOneofDecl(int index, DescriptorProtos.OneofDescriptorProto value)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
addOneofDecl(int index, DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addOneofDecl(int index, DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
addOneofDeclBuilder()
public DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
addOneofDeclBuilder(int index)
public DescriptorProtos.OneofDescriptorProto.Builder addOneofDeclBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.DescriptorProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addReservedName(String value)
public DescriptorProtos.DescriptorProto.Builder addReservedName(String value)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameter |
Name |
Description |
value |
String
The reservedName to add.
|
addReservedNameBytes(ByteString value)
public DescriptorProtos.DescriptorProto.Builder addReservedNameBytes(ByteString value)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameter |
Name |
Description |
value |
ByteString
The bytes of the reservedName to add.
|
addReservedRange(DescriptorProtos.DescriptorProto.ReservedRange value)
public DescriptorProtos.DescriptorProto.Builder addReservedRange(DescriptorProtos.DescriptorProto.ReservedRange value)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
addReservedRange(DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addReservedRange(DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
addReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange value)
public DescriptorProtos.DescriptorProto.Builder addReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange value)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
addReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder addReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
addReservedRangeBuilder()
public DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
addReservedRangeBuilder(int index)
public DescriptorProtos.DescriptorProto.ReservedRange.Builder addReservedRangeBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
index |
int
|
build()
public DescriptorProtos.DescriptorProto build()
buildPartial()
public DescriptorProtos.DescriptorProto buildPartial()
clear()
public DescriptorProtos.DescriptorProto.Builder clear()
Called by the initialization and clear code paths to allow subclasses to
reset any of their builtin fields back to the initial values.
Overrides
clearEnumType()
public DescriptorProtos.DescriptorProto.Builder clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
clearExtension()
public DescriptorProtos.DescriptorProto.Builder clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
clearExtensionRange()
public DescriptorProtos.DescriptorProto.Builder clearExtensionRange()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
clearField()
public DescriptorProtos.DescriptorProto.Builder clearField()
repeated .google.protobuf.FieldDescriptorProto field = 2;
clearField(Descriptors.FieldDescriptor field)
public DescriptorProtos.DescriptorProto.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearName()
public DescriptorProtos.DescriptorProto.Builder clearName()
optional string name = 1;
clearNestedType()
public DescriptorProtos.DescriptorProto.Builder clearNestedType()
repeated .google.protobuf.DescriptorProto nested_type = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public DescriptorProtos.DescriptorProto.Builder clearOneof(Descriptors.OneofDescriptor oneof)
TODO(jieluo): Clear it when all subclasses have implemented this method.
Overrides
clearOneofDecl()
public DescriptorProtos.DescriptorProto.Builder clearOneofDecl()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
clearOptions()
public DescriptorProtos.DescriptorProto.Builder clearOptions()
optional .google.protobuf.MessageOptions options = 7;
clearReservedName()
public DescriptorProtos.DescriptorProto.Builder clearReservedName()
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
clearReservedRange()
public DescriptorProtos.DescriptorProto.Builder clearReservedRange()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
clone()
public DescriptorProtos.DescriptorProto.Builder clone()
Overrides
getDefaultInstanceForType()
public DescriptorProtos.DescriptorProto getDefaultInstanceForType()
Get an instance of the type with no fields set. Because no fields are set, all getters for
singular fields will return default values and repeated fields will appear empty. This may or
may not be a singleton. This differs from the getDefaultInstance()
method of generated
message classes in that this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific class. They return the
same thing.
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Get the message's type's descriptor. This differs from the getDescriptor()
method of
generated message classes in that this method is an abstract method of the Message
interface whereas getDescriptor()
is a static method of a specific class. They return
the same thing.
Overrides
getEnumType(int index)
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
index |
int
|
getEnumTypeBuilder(int index)
public DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
index |
int
|
getEnumTypeBuilderList()
public List<DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeCount()
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Returns |
Type |
Description |
int |
|
getEnumTypeList()
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeOrBuilder(int index)
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
index |
int
|
getEnumTypeOrBuilderList()
public List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> |
|
getExtension(int index)
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
index |
int
|
getExtensionBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
index |
int
|
getExtensionBuilderList()
public List<DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionCount()
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Returns |
Type |
Description |
int |
|
getExtensionList()
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionOrBuilder(int index)
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
index |
int
|
getExtensionOrBuilderList()
public List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> |
|
getExtensionRange(int index)
public DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
index |
int
|
getExtensionRangeBuilder(int index)
public DescriptorProtos.DescriptorProto.ExtensionRange.Builder getExtensionRangeBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
index |
int
|
getExtensionRangeBuilderList()
public List<DescriptorProtos.DescriptorProto.ExtensionRange.Builder> getExtensionRangeBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeCount()
public int getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Returns |
Type |
Description |
int |
|
getExtensionRangeList()
public List<DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeOrBuilder(int index)
public DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
index |
int
|
getExtensionRangeOrBuilderList()
public List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> |
|
getField(int index)
public DescriptorProtos.FieldDescriptorProto getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
index |
int
|
getFieldBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder getFieldBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
index |
int
|
getFieldBuilderList()
public List<DescriptorProtos.FieldDescriptorProto.Builder> getFieldBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldCount()
public int getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2;
Returns |
Type |
Description |
int |
|
getFieldList()
public List<DescriptorProtos.FieldDescriptorProto> getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldOrBuilder(int index)
public DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
index |
int
|
getFieldOrBuilderList()
public List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> |
|
getName()
optional string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
optional string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getNestedType(int index)
public DescriptorProtos.DescriptorProto getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
index |
int
|
getNestedTypeBuilder(int index)
public DescriptorProtos.DescriptorProto.Builder getNestedTypeBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
index |
int
|
getNestedTypeBuilderList()
public List<DescriptorProtos.DescriptorProto.Builder> getNestedTypeBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeCount()
public int getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3;
Returns |
Type |
Description |
int |
|
getNestedTypeList()
public List<DescriptorProtos.DescriptorProto> getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeOrBuilder(int index)
public DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
index |
int
|
getNestedTypeOrBuilderList()
public List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> |
|
getOneofDecl(int index)
public DescriptorProtos.OneofDescriptorProto getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
index |
int
|
getOneofDeclBuilder(int index)
public DescriptorProtos.OneofDescriptorProto.Builder getOneofDeclBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
index |
int
|
getOneofDeclBuilderList()
public List<DescriptorProtos.OneofDescriptorProto.Builder> getOneofDeclBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclCount()
public int getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Returns |
Type |
Description |
int |
|
getOneofDeclList()
public List<DescriptorProtos.OneofDescriptorProto> getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclOrBuilder(int index)
public DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
index |
int
|
getOneofDeclOrBuilderList()
public List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.OneofDescriptorProtoOrBuilder> |
|
getOptions()
public DescriptorProtos.MessageOptions getOptions()
optional .google.protobuf.MessageOptions options = 7;
getOptionsBuilder()
public DescriptorProtos.MessageOptions.Builder getOptionsBuilder()
optional .google.protobuf.MessageOptions options = 7;
getOptionsOrBuilder()
public DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7;
getReservedName(int index)
public String getReservedName(int index)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The reservedName at the given index.
|
getReservedNameBytes(int index)
public ByteString getReservedNameBytes(int index)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the reservedName at the given index.
|
getReservedNameCount()
public int getReservedNameCount()
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Returns |
Type |
Description |
int |
The count of reservedName.
|
getReservedNameList()
public ProtocolStringList getReservedNameList()
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
getReservedRange(int index)
public DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
index |
int
|
getReservedRangeBuilder(int index)
public DescriptorProtos.DescriptorProto.ReservedRange.Builder getReservedRangeBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
index |
int
|
getReservedRangeBuilderList()
public List<DescriptorProtos.DescriptorProto.ReservedRange.Builder> getReservedRangeBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeCount()
public int getReservedRangeCount()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Returns |
Type |
Description |
int |
|
getReservedRangeList()
public List<DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeOrBuilder(int index)
public DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
index |
int
|
getReservedRangeOrBuilderList()
public List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> |
|
hasName()
optional string name = 1;
Returns |
Type |
Description |
boolean |
Whether the name field is set.
|
hasOptions()
public boolean hasOptions()
optional .google.protobuf.MessageOptions options = 7;
Returns |
Type |
Description |
boolean |
Whether the options field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type. We can't have the message
class pass this in to the constructor because of bootstrapping trouble
with DescriptorProtos.
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public DescriptorProtos.DescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions
that you want to be able to parse must be registered in extensionRegistry
. Extensions
not in the registry will be treated as unknown fields.
Overrides
mergeFrom(DescriptorProtos.DescriptorProto other)
public DescriptorProtos.DescriptorProto.Builder mergeFrom(DescriptorProtos.DescriptorProto other)
mergeFrom(Message other)
public DescriptorProtos.DescriptorProto.Builder mergeFrom(Message other)
Merge other
into the message being built. other
must have the exact same type
as this
(i.e. getDescriptorForType() == other.getDescriptorForType()
).
Merging occurs as follows. For each field:
- For singular primitive fields, if the field is set in
other
, then other
's
value overwrites the value in this message.
- For singular message fields, if the field is set in
other
, it is merged into the
corresponding sub-message of this message using the same merging rules.
- For repeated fields, the elements in
other
are concatenated with the elements in
this message.
For oneof groups, if the other message has one of the fields set, the group of this message
is cleared and replaced by the field of the other message, so that the oneof constraint is
preserved.
This is equivalent to the Message::MergeFrom
method in C++.
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeOptions(DescriptorProtos.MessageOptions value)
public DescriptorProtos.DescriptorProto.Builder mergeOptions(DescriptorProtos.MessageOptions value)
optional .google.protobuf.MessageOptions options = 7;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.DescriptorProto.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEnumType(int index)
public DescriptorProtos.DescriptorProto.Builder removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
Parameter |
Name |
Description |
index |
int
|
removeExtension(int index)
public DescriptorProtos.DescriptorProto.Builder removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
Parameter |
Name |
Description |
index |
int
|
removeExtensionRange(int index)
public DescriptorProtos.DescriptorProto.Builder removeExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
Parameter |
Name |
Description |
index |
int
|
removeField(int index)
public DescriptorProtos.DescriptorProto.Builder removeField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
Parameter |
Name |
Description |
index |
int
|
removeNestedType(int index)
public DescriptorProtos.DescriptorProto.Builder removeNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
Parameter |
Name |
Description |
index |
int
|
removeOneofDecl(int index)
public DescriptorProtos.DescriptorProto.Builder removeOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
Parameter |
Name |
Description |
index |
int
|
removeReservedRange(int index)
public DescriptorProtos.DescriptorProto.Builder removeReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
Parameter |
Name |
Description |
index |
int
|
setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
setExtension(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
setExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange value)
public DescriptorProtos.DescriptorProto.Builder setExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange value)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
setExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setExtensionRange(int index, DescriptorProtos.DescriptorProto.ExtensionRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
setField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.DescriptorProto.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setField(int index, DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder setField(int index, DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto field = 2;
setField(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setField(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto field = 2;
setName(String value)
public DescriptorProtos.DescriptorProto.Builder setName(String value)
optional string name = 1;
Parameter |
Name |
Description |
value |
String
The name to set.
|
setNameBytes(ByteString value)
public DescriptorProtos.DescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for name to set.
|
setNestedType(int index, DescriptorProtos.DescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder setNestedType(int index, DescriptorProtos.DescriptorProto value)
repeated .google.protobuf.DescriptorProto nested_type = 3;
setNestedType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setNestedType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)
repeated .google.protobuf.DescriptorProto nested_type = 3;
setOneofDecl(int index, DescriptorProtos.OneofDescriptorProto value)
public DescriptorProtos.DescriptorProto.Builder setOneofDecl(int index, DescriptorProtos.OneofDescriptorProto value)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
setOneofDecl(int index, DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setOneofDecl(int index, DescriptorProtos.OneofDescriptorProto.Builder builderForValue)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
setOptions(DescriptorProtos.MessageOptions value)
public DescriptorProtos.DescriptorProto.Builder setOptions(DescriptorProtos.MessageOptions value)
optional .google.protobuf.MessageOptions options = 7;
setOptions(DescriptorProtos.MessageOptions.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setOptions(DescriptorProtos.MessageOptions.Builder builderForValue)
optional .google.protobuf.MessageOptions options = 7;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DescriptorProtos.DescriptorProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setReservedName(int index, String value)
public DescriptorProtos.DescriptorProto.Builder setReservedName(int index, String value)
Reserved field names, which may not be used by fields in the same message.
A given name may only be reserved once.
repeated string reserved_name = 10;
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The reservedName to set.
|
setReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange value)
public DescriptorProtos.DescriptorProto.Builder setReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange value)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
setReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
public DescriptorProtos.DescriptorProto.Builder setReservedRange(int index, DescriptorProtos.DescriptorProto.ReservedRange.Builder builderForValue)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
setUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.DescriptorProto.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides