public static final class DescriptorProtos.DescriptorProto extends GeneratedMessageimplements DescriptorProtos .DescriptorProtoOrBuilder
google.protobuf.DescriptorProto
Describes a message type.
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos
Protobuf type
google.protobuf.DescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange
|
static interface |
DescriptorProtos
|
GeneratedMessage.BuilderParent , GeneratedMessage.ExtendableBuilder <MessageType extends GeneratedMessage.ExtendableMessage ,BuilderType extends GeneratedMessage.ExtendableBuilder >, GeneratedMessage.ExtendableMessage <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.ExtendableMessageOrBuilder <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.FieldAccessorTable , GeneratedMessage.GeneratedExtension <ContainingType extends Message,Type> | 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 Parser |
PARSER
|
alwaysUseFieldBuildersmemoizedHashCode| Modifier and Type | Method and Description |
|---|---|
static DescriptorProtos |
getDefaultInstance()
|
DescriptorProtos |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors |
getDescriptor()
|
DescriptorProtos |
getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
|
int |
getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
|
List |
getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
|
DescriptorProtos |
getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
|
List |
getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
|
DescriptorProtos |
getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
|
int |
getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
|
List |
getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
|
DescriptorProtos |
getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
|
List |
getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
|
DescriptorProtos |
getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
|
int |
getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
|
List |
getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
|
DescriptorProtos |
getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
|
List |
getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
|
DescriptorProtos |
getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
|
int |
getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2;
|
List |
getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
|
DescriptorProtos |
getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
|
List |
getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
|
String |
getName()
optional string name = 1;
|
ByteString |
getNameBytes()
optional string name = 1;
|
DescriptorProtos |
getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
|
int |
getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3;
|
List |
getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
|
DescriptorProtos |
getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
|
List |
getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
|
DescriptorProtos |
getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
|
int |
getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
|
List |
getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
|
DescriptorProtos |
getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
|
List |
getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
|
DescriptorProtos |
getOptions()
optional .google.protobuf.MessageOptions options = 7;
|
DescriptorProtos |
getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7;
|
Parser |
getParserForType()
Gets the parser for a message of the same type as this message.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message.
|
boolean |
hasName()
optional string name = 1;
|
boolean |
hasOptions()
optional .google.protobuf.MessageOptions options = 7;
|
protected GeneratedMessage |
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false otherwise.
|
static DescriptorProtos |
newBuilder()
|
static DescriptorProtos |
newBuilder(DescriptorProtos
|
DescriptorProtos |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected DescriptorProtos |
newBuilderForType(GeneratedMessage
|
static DescriptorProtos |
parseDelimitedFrom(InputStream
|
static DescriptorProtos |
parseDelimitedFrom(InputStream
|
static DescriptorProtos |
parseFrom(byte[] data)
|
static DescriptorProtos |
parseFrom(byte[] data, ExtensionRegistryLite
|
static DescriptorProtos |
parseFrom(ByteString
|
static DescriptorProtos |
parseFrom(ByteString
|
static DescriptorProtos |
parseFrom(CodedInputStream
|
static DescriptorProtos |
parseFrom(CodedInputStream
|
static DescriptorProtos |
parseFrom(InputStream
|
static DescriptorProtos |
parseFrom(InputStream
|
DescriptorProtos |
toBuilder()
Constructs a builder initialized with the current message.
|
protected Object |
writeReplace()
Replaces this object in the output stream with a serialized form.
|
void |
writeTo(CodedOutputStream
Serializes the message and writes it to
output.
|
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static Parser<DescriptorProtos .DescriptorProto > PARSER
public 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 DescriptorProtos.DescriptorProto getDefaultInstance()
public DescriptorProtos.DescriptorProto getDefaultInstanceForType()
MessageLiteOrBuilder
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.
public final UnknownFieldSetgetUnknownFields()
MessageOrBuilder
UnknownFieldSet for this message.
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
public Parser<DescriptorProtos .DescriptorProto > getParserForType()
MessageLite
public boolean hasName()
optional string name = 1;
public StringgetName()
optional string name = 1;
public ByteStringgetNameBytes()
optional string name = 1;
public List<DescriptorProtos .FieldDescriptorProto > getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
public List<? extends DescriptorProtos .FieldDescriptorProtoOrBuilder > getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
public int getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2;
public DescriptorProtos.FieldDescriptorProto getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
public DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
public List<DescriptorProtos .FieldDescriptorProto > getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
public List<? extends DescriptorProtos .FieldDescriptorProtoOrBuilder > getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
public List<DescriptorProtos .DescriptorProto > getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
public List<? extends DescriptorProtos .DescriptorProtoOrBuilder > getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
public int getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3;
public DescriptorProtos.DescriptorProto getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
public DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
public List<DescriptorProtos .EnumDescriptorProto > getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
public List<? extends DescriptorProtos .EnumDescriptorProtoOrBuilder > getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
public 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;
public 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;
public DescriptorProtos.DescriptorProto .ExtensionRange getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
public 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;
public List<? extends DescriptorProtos .OneofDescriptorProtoOrBuilder > getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
public int getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
public DescriptorProtos.OneofDescriptorProto getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
public DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
public boolean hasOptions()
optional .google.protobuf.MessageOptions options = 7;
public DescriptorProtos.MessageOptions getOptions()
optional .google.protobuf.MessageOptions options = 7;
public DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7;
public final boolean isInitialized()
MessageLiteOrBuilder
public void writeTo(CodedOutputStreamoutput) throws IOException
MessageLite
output. This does not flush or close the stream.
writeTo in interface
MessageLite
writeTo in class
AbstractMessage
IOException
public int getSerializedSize()
MessageLite
protected ObjectwriteReplace() throws ObjectStreamException
GeneratedMessage
return super.writeReplace();
writeReplace in class
GeneratedMessage
ObjectStreamException
public static DescriptorProtos.DescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.DescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.DescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.DescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.DescriptorProto parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.DescriptorProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.DescriptorProto .Builder newBuilder()
public DescriptorProtos.DescriptorProto .Builder newBuilderForType()
MessageLite
public static DescriptorProtos.DescriptorProto .Builder newBuilder(DescriptorProtos .DescriptorProto prototype)
public DescriptorProtos.DescriptorProto .Builder toBuilder()
MessageLite
protected DescriptorProtos.DescriptorProto .Builder newBuilderForType(GeneratedMessage .BuilderParent parent)