public static final class DescriptorProtos.DescriptorProto extends GeneratedMessageLite<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder> implements DescriptorProtos.DescriptorProtoOrBuilder
Describes a message type.Protobuf type
google.protobuf.DescriptorProto| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos.DescriptorProto.Builder
Describes a message type.
|
static class |
DescriptorProtos.DescriptorProto.ExtensionRange
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange |
static interface |
DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder |
static class |
DescriptorProtos.DescriptorProto.ReservedRange
Range of reserved tag numbers.
|
static interface |
DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder |
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MergeFromVisitor, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm, GeneratedMessageLite.Visitor| Modifier and Type | Field and Description |
|---|---|
static int |
ENUM_TYPE_FIELD_NUMBER |
static int |
EXTENSION_FIELD_NUMBER |
static int |
EXTENSION_RANGE_FIELD_NUMBER |
static int |
FIELD_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NESTED_TYPE_FIELD_NUMBER |
static int |
ONEOF_DECL_FIELD_NUMBER |
static int |
OPTIONS_FIELD_NUMBER |
static int |
RESERVED_NAME_FIELD_NUMBER |
static int |
RESERVED_RANGE_FIELD_NUMBER |
memoizedSerializedSize, unknownFieldsmemoizedHashCode| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1)
A method that implements different types of operations described in
GeneratedMessageLite.MethodToInvoke. |
static DescriptorProtos.DescriptorProto |
getDefaultInstance() |
DescriptorProtos.EnumDescriptorProto |
getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
int |
getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
List<DescriptorProtos.EnumDescriptorProto> |
getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
DescriptorProtos.EnumDescriptorProtoOrBuilder |
getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> |
getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
DescriptorProtos.FieldDescriptorProto |
getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
int |
getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
List<DescriptorProtos.FieldDescriptorProto> |
getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
DescriptorProtos.FieldDescriptorProtoOrBuilder |
getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> |
getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
DescriptorProtos.DescriptorProto.ExtensionRange |
getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
int |
getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
List<DescriptorProtos.DescriptorProto.ExtensionRange> |
getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder |
getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> |
getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; |
DescriptorProtos.FieldDescriptorProto |
getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2; |
int |
getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2; |
List<DescriptorProtos.FieldDescriptorProto> |
getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2; |
DescriptorProtos.FieldDescriptorProtoOrBuilder |
getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2; |
List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> |
getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2; |
String |
getName()
optional string name = 1; |
ByteString |
getNameBytes()
optional string name = 1; |
DescriptorProtos.DescriptorProto |
getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3; |
int |
getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3; |
List<DescriptorProtos.DescriptorProto> |
getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3; |
DescriptorProtos.DescriptorProtoOrBuilder |
getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3; |
List<? extends DescriptorProtos.DescriptorProtoOrBuilder> |
getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3; |
DescriptorProtos.OneofDescriptorProto |
getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
int |
getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
List<DescriptorProtos.OneofDescriptorProto> |
getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
DescriptorProtos.OneofDescriptorProtoOrBuilder |
getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> |
getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
DescriptorProtos.MessageOptions |
getOptions()
optional .google.protobuf.MessageOptions options = 7; |
String |
getReservedName(int index)
Reserved field names, which may not be used by fields in the same message.
|
ByteString |
getReservedNameBytes(int index)
Reserved field names, which may not be used by fields in the same message.
|
int |
getReservedNameCount()
Reserved field names, which may not be used by fields in the same message.
|
List<String> |
getReservedNameList()
Reserved field names, which may not be used by fields in the same message.
|
DescriptorProtos.DescriptorProto.ReservedRange |
getReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
int |
getReservedRangeCount()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
List<DescriptorProtos.DescriptorProto.ReservedRange> |
getReservedRangeList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder |
getReservedRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> |
getReservedRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; |
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
boolean |
hasName()
optional string name = 1; |
boolean |
hasOptions()
optional .google.protobuf.MessageOptions options = 7; |
static DescriptorProtos.DescriptorProto.Builder |
newBuilder() |
static DescriptorProtos.DescriptorProto.Builder |
newBuilder(DescriptorProtos.DescriptorProto prototype) |
static DescriptorProtos.DescriptorProto |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.DescriptorProto |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(byte[] data) |
static DescriptorProtos.DescriptorProto |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(ByteString data) |
static DescriptorProtos.DescriptorProto |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(CodedInputStream input) |
static DescriptorProtos.DescriptorProto |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(InputStream input) |
static DescriptorProtos.DescriptorProto |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.DescriptorProto> |
parser() |
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output. |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic static final int NAME_FIELD_NUMBER
public static final int FIELD_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
public static final int NESTED_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER
public static final int EXTENSION_RANGE_FIELD_NUMBER
public static final int ONEOF_DECL_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
public static final int RESERVED_RANGE_FIELD_NUMBER
public static final int RESERVED_NAME_FIELD_NUMBER
public boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.DescriptorProtoOrBuilderpublic String getName()
optional string name = 1;getName in interface DescriptorProtos.DescriptorProtoOrBuilderpublic ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<DescriptorProtos.FieldDescriptorProto> getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2;getFieldList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;public int getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2;getFieldCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProto getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;getField in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;getExtensionList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6;getExtensionCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;getExtension in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;public List<DescriptorProtos.DescriptorProto> getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3;getNestedTypeList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;public int getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3;getNestedTypeCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;getNestedType in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;getEnumTypeList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;getEnumTypeCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;getEnumType in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;public List<DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;getExtensionRangeList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;public int getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;getExtensionRangeCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;getExtensionRange in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;public List<DescriptorProtos.OneofDescriptorProto> getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;getOneofDeclList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;public int getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;getOneofDeclCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.OneofDescriptorProto getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;getOneofDecl in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;public boolean hasOptions()
optional .google.protobuf.MessageOptions options = 7;hasOptions in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.MessageOptions getOptions()
optional .google.protobuf.MessageOptions options = 7;getOptions in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;getReservedRangeList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;public int getReservedRangeCount()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;getReservedRangeCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;getReservedRange in interface DescriptorProtos.DescriptorProtoOrBuilderpublic DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;public List<String> 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;getReservedNameList in interface DescriptorProtos.DescriptorProtoOrBuilderpublic 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;getReservedNameCount in interface DescriptorProtos.DescriptorProtoOrBuilderpublic 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;getReservedName in interface DescriptorProtos.DescriptorProtoOrBuilderpublic 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;getReservedNameBytes in interface DescriptorProtos.DescriptorProtoOrBuilderpublic void writeTo(CodedOutputStream output) throws IOException
MessageLiteoutput. This does not
flush or close the stream.writeTo in interface MessageLiteIOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitepublic static DescriptorProtos.DescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.DescriptorProto.Builder newBuilder()
public static DescriptorProtos.DescriptorProto.Builder newBuilder(DescriptorProtos.DescriptorProto prototype)
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
GeneratedMessageLiteGeneratedMessageLite.MethodToInvoke.
Theses different kinds of operations are required to implement message-level operations for
builders in the runtime. This method bundles those operations to reduce the generated methods
count.
MERGE_FROM_STREAM is parameterized with an CodedInputStream and
ExtensionRegistryLite. It consumes the input stream, parsing the contents into the
returned protocol buffer. If parsing throws an InvalidProtocolBufferException, the
implementation wraps it in a RuntimeException.
NEW_INSTANCE returns a new instance of the protocol buffer that has not yet been
made immutable. See MAKE_IMMUTABLE.
IS_INITIALIZED is parameterized with a Boolean detailing whether to
memoize. It returns null for false and the default instance for true. We optionally
memoize to support the Builder case, where memoization is not desired.
NEW_BUILDER returns a BuilderType instance.
VISIT is parameterized with a Visitor and a MessageType and
recursively iterates through the fields side by side between this and the instance.
MAKE_IMMUTABLE sets all internal fields to an immutable state.
For use by generated code only.
dynamicMethod in class GeneratedMessageLite<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder>public static DescriptorProtos.DescriptorProto getDefaultInstance()
public static Parser<DescriptorProtos.DescriptorProto> parser()
Copyright © 2008–2016 Google. All rights reserved.