Package com.google.protobuf
Class DescriptorProtos.DescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.DescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.DescriptorProtoOrBuilder,Message,MessageLite,MessageLiteOrBuilder,MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.DescriptorProto extends GeneratedMessageV3 implements DescriptorProtos.DescriptorProtoOrBuilder
Protobuf typegoogle.protobuf.DescriptorProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.DescriptorProto.BuilderProtobuf typegoogle.protobuf.DescriptorProtostatic classDescriptorProtos.DescriptorProto.ExtensionRangeProtobuf typegoogle.protobuf.DescriptorProto.ExtensionRangestatic interfaceDescriptorProtos.DescriptorProto.ExtensionRangeOrBuilderstatic classDescriptorProtos.DescriptorProto.ReservedRangeProtobuf typegoogle.protobuf.DescriptorProto.ReservedRangestatic interfaceDescriptorProtos.DescriptorProto.ReservedRangeOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static intENUM_TYPE_FIELD_NUMBERstatic intEXTENSION_FIELD_NUMBERstatic intEXTENSION_RANGE_FIELD_NUMBERstatic intFIELD_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNESTED_TYPE_FIELD_NUMBERstatic intONEOF_DECL_FIELD_NUMBERstatic intOPTIONS_FIELD_NUMBERstatic Parser<DescriptorProtos.DescriptorProto>PARSERDeprecated.static intRESERVED_NAME_FIELD_NUMBERstatic intRESERVED_RANGE_FIELD_NUMBER-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Compares the specified object with this message for equality.static DescriptorProtos.DescriptorProtogetDefaultInstance()DescriptorProtos.DescriptorProtogetDefaultInstanceForType()Get an instance of the type with no fields set.static Descriptors.DescriptorgetDescriptor()DescriptorProtos.EnumDescriptorProtogetEnumType(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];intgetEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];java.util.List<DescriptorProtos.EnumDescriptorProto>getEnumTypeList()repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];DescriptorProtos.EnumDescriptorProtoOrBuildergetEnumTypeOrBuilder(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder>getEnumTypeOrBuilderList()repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];DescriptorProtos.FieldDescriptorProtogetExtension(int index)repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];intgetExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];java.util.List<DescriptorProtos.FieldDescriptorProto>getExtensionList()repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];DescriptorProtos.FieldDescriptorProtoOrBuildergetExtensionOrBuilder(int index)repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder>getExtensionOrBuilderList()repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];DescriptorProtos.DescriptorProto.ExtensionRangegetExtensionRange(int index)repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];intgetExtensionRangeCount()repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];java.util.List<DescriptorProtos.DescriptorProto.ExtensionRange>getExtensionRangeList()repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];DescriptorProtos.DescriptorProto.ExtensionRangeOrBuildergetExtensionRangeOrBuilder(int index)repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];java.util.List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder>getExtensionRangeOrBuilderList()repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];DescriptorProtos.FieldDescriptorProtogetField(int index)repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];intgetFieldCount()repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];java.util.List<DescriptorProtos.FieldDescriptorProto>getFieldList()repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];DescriptorProtos.FieldDescriptorProtoOrBuildergetFieldOrBuilder(int index)repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder>getFieldOrBuilderList()repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];java.lang.StringgetName()optional string name = 1 [json_name = "name"];ByteStringgetNameBytes()optional string name = 1 [json_name = "name"];DescriptorProtos.DescriptorProtogetNestedType(int index)repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];intgetNestedTypeCount()repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];java.util.List<DescriptorProtos.DescriptorProto>getNestedTypeList()repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];DescriptorProtos.DescriptorProtoOrBuildergetNestedTypeOrBuilder(int index)repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder>getNestedTypeOrBuilderList()repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];DescriptorProtos.OneofDescriptorProtogetOneofDecl(int index)repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];intgetOneofDeclCount()repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];java.util.List<DescriptorProtos.OneofDescriptorProto>getOneofDeclList()repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];DescriptorProtos.OneofDescriptorProtoOrBuildergetOneofDeclOrBuilder(int index)repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];java.util.List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder>getOneofDeclOrBuilderList()repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];DescriptorProtos.MessageOptionsgetOptions()optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];DescriptorProtos.MessageOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];Parser<DescriptorProtos.DescriptorProto>getParserForType()Gets the parser for a message of the same type as this message.java.lang.StringgetReservedName(int index)repeated string reserved_name = 10 [json_name = "reservedName"];ByteStringgetReservedNameBytes(int index)repeated string reserved_name = 10 [json_name = "reservedName"];intgetReservedNameCount()repeated string reserved_name = 10 [json_name = "reservedName"];ProtocolStringListgetReservedNameList()repeated string reserved_name = 10 [json_name = "reservedName"];DescriptorProtos.DescriptorProto.ReservedRangegetReservedRange(int index)repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];intgetReservedRangeCount()repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];java.util.List<DescriptorProtos.DescriptorProto.ReservedRange>getReservedRangeList()repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];DescriptorProtos.DescriptorProto.ReservedRangeOrBuildergetReservedRangeOrBuilder(int index)repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];java.util.List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder>getReservedRangeOrBuilderList()repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];intgetSerializedSize()Get the number of bytes required to encode this message.UnknownFieldSetgetUnknownFields()Get theUnknownFieldSetfor this message.inthashCode()Returns the hash code value for this message.booleanhasName()optional string name = 1 [json_name = "name"];booleanhasOptions()optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.static DescriptorProtos.DescriptorProto.BuildernewBuilder()static DescriptorProtos.DescriptorProto.BuildernewBuilder(DescriptorProtos.DescriptorProto prototype)DescriptorProtos.DescriptorProto.BuildernewBuilderForType()Constructs a new builder for a message of the same type as this message.protected DescriptorProtos.DescriptorProto.BuildernewBuilderForType(GeneratedMessageV3.BuilderParent parent)TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.protected java.lang.ObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameter unused)Creates a new instance of this message type.static DescriptorProtos.DescriptorProtoparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.DescriptorProtoparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.DescriptorProtoparseFrom(byte[] data)static DescriptorProtos.DescriptorProtoparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.DescriptorProtoparseFrom(ByteString data)static DescriptorProtos.DescriptorProtoparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.DescriptorProtoparseFrom(CodedInputStream input)static DescriptorProtos.DescriptorProtoparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.DescriptorProtoparseFrom(java.io.InputStream input)static DescriptorProtos.DescriptorProtoparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.DescriptorProtoparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.DescriptorProtoparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<DescriptorProtos.DescriptorProto>parser()DescriptorProtos.DescriptorProto.BuildertoBuilder()Constructs a builder initialized with the current message.voidwriteTo(CodedOutputStream output)Serializes the message and writes it tooutput.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIELD_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NESTED_TYPE_FIELD_NUMBER
public static final int NESTED_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENUM_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENSION_RANGE_FIELD_NUMBER
public static final int EXTENSION_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ONEOF_DECL_FIELD_NUMBER
public static final int ONEOF_DECL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_RANGE_FIELD_NUMBER
public static final int RESERVED_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_NAME_FIELD_NUMBER
public static final int RESERVED_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final Parser<DescriptorProtos.DescriptorProto> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Description copied from class:GeneratedMessageV3Creates a new instance of this message type. Overridden in the generated code.- Overrides:
newInstancein classGeneratedMessageV3
-
getUnknownFields
public final UnknownFieldSet getUnknownFields()
Description copied from interface:MessageOrBuilderGet theUnknownFieldSetfor this message.- Specified by:
getUnknownFieldsin interfaceMessageOrBuilder- Overrides:
getUnknownFieldsin classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
hasName
public boolean hasName()
optional string name = 1 [json_name = "name"];- Specified by:
hasNamein interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
getFieldList
public java.util.List<DescriptorProtos.FieldDescriptorProto> getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];- Specified by:
getFieldListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getFieldOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];- Specified by:
getFieldOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getFieldCount
public int getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];- Specified by:
getFieldCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getField
public DescriptorProtos.FieldDescriptorProto getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];- Specified by:
getFieldin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getFieldOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2 [json_name = "field"];- Specified by:
getFieldOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionList
public java.util.List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];- Specified by:
getExtensionListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];- Specified by:
getExtensionOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];- Specified by:
getExtensionCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtension
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];- Specified by:
getExtensionin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6 [json_name = "extension"];- Specified by:
getExtensionOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getNestedTypeList
public java.util.List<DescriptorProtos.DescriptorProto> getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];- Specified by:
getNestedTypeListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getNestedTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];- Specified by:
getNestedTypeOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getNestedTypeCount
public int getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];- Specified by:
getNestedTypeCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getNestedType
public DescriptorProtos.DescriptorProto getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];- Specified by:
getNestedTypein interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getNestedTypeOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3 [json_name = "nestedType"];- Specified by:
getNestedTypeOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getEnumTypeList
public java.util.List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];- Specified by:
getEnumTypeListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];- Specified by:
getEnumTypeOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];- Specified by:
getEnumTypeCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getEnumType
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];- Specified by:
getEnumTypein interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getEnumTypeOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4 [json_name = "enumType"];- Specified by:
getEnumTypeOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionRangeList
public java.util.List<DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];- Specified by:
getExtensionRangeListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionRangeOrBuilderList
public java.util.List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];- Specified by:
getExtensionRangeOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionRangeCount
public int getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];- Specified by:
getExtensionRangeCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionRange
public DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];- Specified by:
getExtensionRangein interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getExtensionRangeOrBuilder
public DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5 [json_name = "extensionRange"];- Specified by:
getExtensionRangeOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getOneofDeclList
public java.util.List<DescriptorProtos.OneofDescriptorProto> getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];- Specified by:
getOneofDeclListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getOneofDeclOrBuilderList
public java.util.List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];- Specified by:
getOneofDeclOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getOneofDeclCount
public int getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];- Specified by:
getOneofDeclCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getOneofDecl
public DescriptorProtos.OneofDescriptorProto getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];- Specified by:
getOneofDeclin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getOneofDeclOrBuilder
public DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8 [json_name = "oneofDecl"];- Specified by:
getOneofDeclOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];- Specified by:
hasOptionsin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.MessageOptions getOptions()
optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];- Specified by:
getOptionsin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- The options.
-
getOptionsOrBuilder
public DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7 [json_name = "options"];- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedRangeList
public java.util.List<DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];- Specified by:
getReservedRangeListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedRangeOrBuilderList
public java.util.List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];- Specified by:
getReservedRangeOrBuilderListin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedRangeCount
public int getReservedRangeCount()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];- Specified by:
getReservedRangeCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedRange
public DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];- Specified by:
getReservedRangein interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedRangeOrBuilder
public DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9 [json_name = "reservedRange"];- Specified by:
getReservedRangeOrBuilderin interfaceDescriptorProtos.DescriptorProtoOrBuilder
-
getReservedNameList
public ProtocolStringList getReservedNameList()
repeated string reserved_name = 10 [json_name = "reservedName"];- Specified by:
getReservedNameListin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- A list containing the reservedName.
-
getReservedNameCount
public int getReservedNameCount()
repeated string reserved_name = 10 [json_name = "reservedName"];- Specified by:
getReservedNameCountin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Returns:
- The count of reservedName.
-
getReservedName
public java.lang.String getReservedName(int index)
repeated string reserved_name = 10 [json_name = "reservedName"];- Specified by:
getReservedNamein interfaceDescriptorProtos.DescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The reservedName at the given index.
-
getReservedNameBytes
public ByteString getReservedNameBytes(int index)
repeated string reserved_name = 10 [json_name = "reservedName"];- Specified by:
getReservedNameBytesin interfaceDescriptorProtos.DescriptorProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the reservedName at the given index.
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws java.io.IOException
Description copied from interface:MessageLiteSerializes the message and writes it tooutput. This does not flush or close the stream.- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
Description copied from interface:MessageLiteGet the number of bytes required to encode this message. The result is only computed on the first call and memoized after that. If this message requires more than Integer.MAX_VALUE bytes to encode, the return value will be smaller than the actual number of bytes required and might be negative.- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:MessageCompares the specified object with this message for equality. Returnstrueif the given object is a message of the same type (as defined bygetDescriptorForType()) and has identical values for all of its fields. Subclasses must implement this; inheritingObject.equals()is incorrect.- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage- Parameters:
obj- object to be compared for equality with this message- Returns:
trueif the specified object is equal to this message
-
hashCode
public int hashCode()
Description copied from interface:MessageReturns the hash code value for this message. The hash code of a message should mix the message's type (object identity of the descriptor) with its contents (known and unknown field values). Subclasses must implement this; inheritingObject.hashCode()is incorrect.- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein classAbstractMessage- Returns:
- the hash code value for this message
- See Also:
Map.hashCode()
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.DescriptorProto.Builder newBuilderForType()
Description copied from interface:MessageLiteConstructs a new builder for a message of the same type as this message.- Specified by:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
public static DescriptorProtos.DescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.DescriptorProto.Builder newBuilder(DescriptorProtos.DescriptorProto prototype)
-
toBuilder
public DescriptorProtos.DescriptorProto.Builder toBuilder()
Description copied from interface:MessageLiteConstructs a builder initialized with the current message. Use this to derive a new message from the current one.- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected DescriptorProtos.DescriptorProto.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Description copied from class:GeneratedMessageV3TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.- Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.DescriptorProto getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.DescriptorProto> parser()
-
getParserForType
public Parser<DescriptorProtos.DescriptorProto> getParserForType()
Description copied from interface:MessageLiteGets the parser for a message of the same type as this message.- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.DescriptorProto getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet 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 thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
-