Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.protobuf.DescriptorProtos.FileDescriptorProto
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder
,Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,MessageOrBuilder
,Serializable
- Enclosing class:
DescriptorProtos
public static final class DescriptorProtos.FileDescriptorProto
extends GeneratedMessage
implements DescriptorProtos.FileDescriptorProtoOrBuilder
Protobuf type
google.protobuf.FileDescriptorProto
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Protobuf typegoogle.protobuf.FileDescriptorProto
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
GeneratedMessage.ExtendableBuilder<MessageT extends GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, GeneratedMessage.ExtendableMessage<MessageT extends GeneratedMessage.ExtendableMessage<MessageT>>, GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends GeneratedMessage.ExtendableMessage<MessageT>>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingT extends Message, T>, GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares the specified object with this message for equality.getDependency
(int index) repeated string dependency = 3 [json_name = "dependency"];
com.google.protobuf.ByteString
getDependencyBytes
(int index) repeated string dependency = 3 [json_name = "dependency"];
int
repeated string dependency = 3 [json_name = "dependency"];
com.google.protobuf.ProtocolStringList
repeated string dependency = 3 [json_name = "dependency"];
static final Descriptors.Descriptor
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];
getEnumType
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
int
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
getEnumTypeOrBuilder
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
getExtension
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
int
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
getExtensionOrBuilder
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
getMessageType
(int index) repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
int
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
getMessageTypeOrBuilder
(int index) repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
List
<? extends DescriptorProtos.DescriptorProtoOrBuilder> repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
getName()
optional string name = 1 [json_name = "name"];
com.google.protobuf.ByteString
optional string name = 1 [json_name = "name"];
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
optional string package = 2 [json_name = "package"];
com.google.protobuf.ByteString
optional string package = 2 [json_name = "package"];
com.google.protobuf.Parser
<DescriptorProtos.FileDescriptorProto> TODO: Remove this unnecessary intermediate implementation of this method.int
getPublicDependency
(int index) repeated int32 public_dependency = 10 [json_name = "publicDependency"];
int
repeated int32 public_dependency = 10 [json_name = "publicDependency"];
repeated int32 public_dependency = 10 [json_name = "publicDependency"];
int
getService
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
int
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
getServiceOrBuilder
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
optional string syntax = 12 [json_name = "syntax"];
com.google.protobuf.ByteString
optional string syntax = 12 [json_name = "syntax"];
int
getWeakDependency
(int index) repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
int
repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
boolean
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];
int
hashCode()
Returns the hash code value for this message.boolean
hasName()
optional string name = 1 [json_name = "name"];
boolean
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
boolean
optional string package = 2 [json_name = "package"];
boolean
optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
boolean
optional string syntax = 12 [json_name = "syntax"];
protected GeneratedMessage.FieldAccessorTable
Get the FieldAccessorTable for this type.final boolean
newBuilder
(DescriptorProtos.FileDescriptorProto prototype) Create a nested builder.parseDelimitedFrom
(InputStream input) parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(byte[] data) parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.ByteString data) parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(com.google.protobuf.CodedInputStream input) parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(InputStream input) parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom
(ByteBuffer data) parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser
<DescriptorProtos.FileDescriptorProto> parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
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, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
PACKAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER- See Also:
-
DEPENDENCY_FIELD_NUMBER
public static final int DEPENDENCY_FIELD_NUMBER- See Also:
-
PUBLIC_DEPENDENCY_FIELD_NUMBER
public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER- See Also:
-
WEAK_DEPENDENCY_FIELD_NUMBER
public static final int WEAK_DEPENDENCY_FIELD_NUMBER- See Also:
-
MESSAGE_TYPE_FIELD_NUMBER
public static final int MESSAGE_TYPE_FIELD_NUMBER- See Also:
-
ENUM_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER- See Also:
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER- See Also:
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
SOURCE_CODE_INFO_FIELD_NUMBER
public static final int SOURCE_CODE_INFO_FIELD_NUMBER- See Also:
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER- See Also:
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
Description copied from class:GeneratedMessage
Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessage
-
hasName
public boolean hasName()optional string name = 1 [json_name = "name"];
- Specified by:
hasName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
optional string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()optional string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
hasPackage
public boolean hasPackage()optional string package = 2 [json_name = "package"];
- Specified by:
hasPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the package field is set.
-
getPackage
optional string package = 2 [json_name = "package"];
- Specified by:
getPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The package.
-
getPackageBytes
public com.google.protobuf.ByteString getPackageBytes()optional string package = 2 [json_name = "package"];
- Specified by:
getPackageBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for package.
-
getDependencyList
public com.google.protobuf.ProtocolStringList getDependencyList()repeated string dependency = 3 [json_name = "dependency"];
- Specified by:
getDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the dependency.
-
getDependencyCount
public int getDependencyCount()repeated string dependency = 3 [json_name = "dependency"];
- Specified by:
getDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of dependency.
-
getDependency
repeated string dependency = 3 [json_name = "dependency"];
- Specified by:
getDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
public com.google.protobuf.ByteString getDependencyBytes(int index) repeated string dependency = 3 [json_name = "dependency"];
- Specified by:
getDependencyBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
getPublicDependencyList
repeated int32 public_dependency = 10 [json_name = "publicDependency"];
- Specified by:
getPublicDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the publicDependency.
-
getPublicDependencyCount
public int getPublicDependencyCount()repeated int32 public_dependency = 10 [json_name = "publicDependency"];
- Specified by:
getPublicDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of publicDependency.
-
getPublicDependency
public int getPublicDependency(int index) repeated int32 public_dependency = 10 [json_name = "publicDependency"];
- Specified by:
getPublicDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
getWeakDependencyList
repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
- Specified by:
getWeakDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the weakDependency.
-
getWeakDependencyCount
public int getWeakDependencyCount()repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
- Specified by:
getWeakDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of weakDependency.
-
getWeakDependency
public int getWeakDependency(int index) repeated int32 weak_dependency = 11 [json_name = "weakDependency"];
- Specified by:
getWeakDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
getMessageTypeList
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
- Specified by:
getMessageTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
- Specified by:
getMessageTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
- Specified by:
getMessageTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
- Specified by:
getMessageType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilder
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"];
- Specified by:
getMessageTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
- Specified by:
getEnumTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
- Specified by:
getEnumTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
- Specified by:
getEnumTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
- Specified by:
getEnumType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];
- Specified by:
getEnumTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceList
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
- Specified by:
getServiceList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
- Specified by:
getServiceOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
- Specified by:
getServiceCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
- Specified by:
getService
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];
- Specified by:
getServiceOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionList
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
- Specified by:
getExtensionList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
- Specified by:
getExtensionOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
- Specified by:
getExtensionCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
- Specified by:
getExtension
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];
- Specified by:
getExtensionOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasOptions
public boolean hasOptions()optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
- Specified by:
hasOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
- Specified by:
getOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The options.
-
getOptionsOrBuilder
optional .google.protobuf.FileOptions options = 8 [json_name = "options"];
- Specified by:
getOptionsOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSourceCodeInfo
public boolean hasSourceCodeInfo()optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
- Specified by:
hasSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the sourceCodeInfo field is set.
-
getSourceCodeInfo
optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
- Specified by:
getSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The sourceCodeInfo.
-
getSourceCodeInfoOrBuilder
optional .google.protobuf.SourceCodeInfo source_code_info = 9 [json_name = "sourceCodeInfo"];
- Specified by:
getSourceCodeInfoOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSyntax
public boolean hasSyntax()optional string syntax = 12 [json_name = "syntax"];
- Specified by:
hasSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the syntax field is set.
-
getSyntax
optional string syntax = 12 [json_name = "syntax"];
- Specified by:
getSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The syntax.
-
getSyntaxBytes
public com.google.protobuf.ByteString getSyntaxBytes()optional string syntax = 12 [json_name = "syntax"];
- Specified by:
getSyntaxBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for syntax.
-
hasEdition
public boolean hasEdition()optional .google.protobuf.Edition edition = 14 [json_name = "edition"];
- Specified by:
hasEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the edition field is set.
-
getEdition
optional .google.protobuf.Edition edition = 14 [json_name = "edition"];
- Specified by:
getEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The edition.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classGeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classGeneratedMessage
-
equals
Description copied from interface:Message
Compares the specified object with this message for equality. Returnstrue
if 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:
equals
in interfaceMessage
- Overrides:
equals
in classAbstractMessage
- Parameters:
obj
- object to be compared for equality with this message- Returns:
true
if the specified object is equal to this message
-
hashCode
public int hashCode()Description copied from interface:Message
Returns 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:
hashCode
in interfaceMessage
- Overrides:
hashCode
in classAbstractMessage
- Returns:
- the hash code value for this message
- See Also:
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder(DescriptorProtos.FileDescriptorProto prototype) -
toBuilder
-
newBuilderForType
protected DescriptorProtos.FileDescriptorProto.Builder newBuilderForType(AbstractMessage.BuilderParent parent) Description copied from class:AbstractMessage
Create a nested builder.- Overrides:
newBuilderForType
in classAbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
Description copied from class:GeneratedMessage
TODO: Remove this unnecessary intermediate implementation of this method.- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classGeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-