public static final class DescriptorProtos.DescriptorProto extends com.google.protobuf.GeneratedMessageV3 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 |
com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
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<DescriptorProtos.DescriptorProto> |
PARSER
Deprecated.
|
static int |
RESERVED_NAME_FIELD_NUMBER |
static int |
RESERVED_RANGE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this message for equality.
|
static DescriptorProtos.DescriptorProto |
getDefaultInstance() |
DescriptorProtos.DescriptorProto |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
DescriptorProtos.EnumDescriptorProto |
getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
int |
getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
java.util.List<DescriptorProtos.EnumDescriptorProto> |
getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
DescriptorProtos.EnumDescriptorProtoOrBuilder |
getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4; |
java.util.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; |
java.util.List<DescriptorProtos.FieldDescriptorProto> |
getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
DescriptorProtos.FieldDescriptorProtoOrBuilder |
getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6; |
java.util.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; |
java.util.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; |
java.util.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; |
java.util.List<DescriptorProtos.FieldDescriptorProto> |
getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2; |
DescriptorProtos.FieldDescriptorProtoOrBuilder |
getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2; |
java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> |
getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2; |
java.lang.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; |
java.util.List<DescriptorProtos.DescriptorProto> |
getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3; |
DescriptorProtos.DescriptorProtoOrBuilder |
getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3; |
java.util.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; |
java.util.List<DescriptorProtos.OneofDescriptorProto> |
getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
DescriptorProtos.OneofDescriptorProtoOrBuilder |
getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
java.util.List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> |
getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8; |
DescriptorProtos.MessageOptions |
getOptions()
optional .google.protobuf.MessageOptions options = 7; |
DescriptorProtos.MessageOptionsOrBuilder |
getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7; |
Parser<DescriptorProtos.DescriptorProto> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
java.lang.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.
|
ProtocolStringList |
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; |
java.util.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; |
java.util.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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message. |
int |
hashCode()
Returns the hash code value for this message.
|
boolean |
hasName()
optional string name = 1; |
boolean |
hasOptions()
optional .google.protobuf.MessageOptions options = 7; |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false
otherwise.
|
static DescriptorProtos.DescriptorProto.Builder |
newBuilder() |
static DescriptorProtos.DescriptorProto.Builder |
newBuilder(DescriptorProtos.DescriptorProto prototype) |
DescriptorProtos.DescriptorProto.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
static DescriptorProtos.DescriptorProto |
parseDelimitedFrom(java.io.InputStream input) |
static DescriptorProtos.DescriptorProto |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(byte[] data) |
static DescriptorProtos.DescriptorProto |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.DescriptorProto |
parseFrom(java.nio.ByteBuffer data) |
static DescriptorProtos.DescriptorProto |
parseFrom(java.nio.ByteBuffer 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(java.io.InputStream input) |
static DescriptorProtos.DescriptorProto |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.DescriptorProto> |
parser() |
DescriptorProtos.DescriptorProto.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
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 final int RESERVED_RANGE_FIELD_NUMBER
public static final int RESERVED_NAME_FIELD_NUMBER
@Deprecated public static final Parser<DescriptorProtos.DescriptorProto> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
public boolean hasName()
optional string name = 1;
hasName
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.lang.String getName()
optional string name = 1;
getName
in interface DescriptorProtos.DescriptorProtoOrBuilder
public ByteString getNameBytes()
optional string name = 1;
getNameBytes
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.FieldDescriptorProto> getFieldList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getFieldOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getFieldCount()
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProto getField(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
getField
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getFieldOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto field = 2;
getFieldOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtension
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 6;
getExtensionOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.DescriptorProto> getNestedTypeList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getNestedTypeOrBuilderList()
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getNestedTypeCount()
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto getNestedType(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedType
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getNestedTypeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto nested_type = 3;
getNestedTypeOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumType
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
getEnumTypeOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.DescriptorProto.ExtensionRange> getExtensionRangeList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder> getExtensionRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getExtensionRangeCount()
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto.ExtensionRange getExtensionRange(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRange
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto.ExtensionRangeOrBuilder getExtensionRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
getExtensionRangeOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.OneofDescriptorProto> getOneofDeclList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.OneofDescriptorProtoOrBuilder> getOneofDeclOrBuilderList()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getOneofDeclCount()
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.OneofDescriptorProto getOneofDecl(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDecl
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.OneofDescriptorProtoOrBuilder getOneofDeclOrBuilder(int index)
repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
getOneofDeclOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public boolean hasOptions()
optional .google.protobuf.MessageOptions options = 7;
hasOptions
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.MessageOptions getOptions()
optional .google.protobuf.MessageOptions options = 7;
getOptions
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.MessageOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.MessageOptions options = 7;
getOptionsOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<DescriptorProtos.DescriptorProto.ReservedRange> getReservedRangeList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.util.List<? extends DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder> getReservedRangeOrBuilderList()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeOrBuilderList
in interface DescriptorProtos.DescriptorProtoOrBuilder
public int getReservedRangeCount()
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto.ReservedRange getReservedRange(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRange
in interface DescriptorProtos.DescriptorProtoOrBuilder
public DescriptorProtos.DescriptorProto.ReservedRangeOrBuilder getReservedRangeOrBuilder(int index)
repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
getReservedRangeOrBuilder
in interface DescriptorProtos.DescriptorProtoOrBuilder
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;
getReservedNameList
in interface DescriptorProtos.DescriptorProtoOrBuilder
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;
getReservedNameCount
in interface DescriptorProtos.DescriptorProtoOrBuilder
public java.lang.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.DescriptorProtoOrBuilder
index
- The index of the element to return.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;
getReservedNameBytes
in interface DescriptorProtos.DescriptorProtoOrBuilder
index
- The index of the value to return.public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLite
output
. This does not flush or close the
stream.writeTo
in interface MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(java.lang.Object obj)
Message
true
if the given
object is a message of the same type (as defined by getDescriptorForType()
) and has
identical values for all of its fields. Subclasses must implement this; inheriting Object.equals()
is incorrect.equals
in interface Message
equals
in class AbstractMessage
obj
- object to be compared for equality with this messagetrue
if the specified object is equal to this messagepublic int hashCode()
Message
Object.hashCode()
is incorrect.hashCode
in interface Message
hashCode
in class AbstractMessage
Map.hashCode()
public static DescriptorProtos.DescriptorProto parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.DescriptorProto parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.DescriptorProto parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.DescriptorProto parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.DescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public DescriptorProtos.DescriptorProto.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.DescriptorProto.Builder newBuilder()
public static DescriptorProtos.DescriptorProto.Builder newBuilder(DescriptorProtos.DescriptorProto prototype)
public DescriptorProtos.DescriptorProto.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
public static DescriptorProtos.DescriptorProto getDefaultInstance()
public static Parser<DescriptorProtos.DescriptorProto> parser()
public Parser<DescriptorProtos.DescriptorProto> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
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.getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder