Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.FileDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder
,Message
,MessageLite
,MessageLiteOrBuilder
,MessageOrBuilder
,Serializable
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FileDescriptorProto extends GeneratedMessageV3 implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.
Protobuf typegoogle.protobuf.FileDescriptorProto
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescriptorProtos.FileDescriptorProto.Builder
Describes a complete .proto file.-
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 int
DEPENDENCY_FIELD_NUMBER
static int
ENUM_TYPE_FIELD_NUMBER
static int
EXTENSION_FIELD_NUMBER
static int
MESSAGE_TYPE_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
OPTIONS_FIELD_NUMBER
static int
PACKAGE_FIELD_NUMBER
static Parser<DescriptorProtos.FileDescriptorProto>
PARSER
Deprecated.static int
PUBLIC_DEPENDENCY_FIELD_NUMBER
static int
SERVICE_FIELD_NUMBER
static int
SOURCE_CODE_INFO_FIELD_NUMBER
static int
SYNTAX_FIELD_NUMBER
static int
WEAK_DEPENDENCY_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 boolean
equals(Object obj)
Compares the specified object with this message for equality.static DescriptorProtos.FileDescriptorProto
getDefaultInstance()
DescriptorProtos.FileDescriptorProto
getDefaultInstanceForType()
Get an instance of the type with no fields set.String
getDependency(int index)
Names of files imported by this file.ByteString
getDependencyBytes(int index)
Names of files imported by this file.int
getDependencyCount()
Names of files imported by this file.ProtocolStringList
getDependencyList()
Names of files imported by this file.static Descriptors.Descriptor
getDescriptor()
DescriptorProtos.EnumDescriptorProto
getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
int
getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
List<DescriptorProtos.EnumDescriptorProto>
getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.EnumDescriptorProtoOrBuilder
getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder>
getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
DescriptorProtos.FieldDescriptorProto
getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
int
getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
List<DescriptorProtos.FieldDescriptorProto>
getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.FieldDescriptorProtoOrBuilder
getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder>
getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
DescriptorProtos.DescriptorProto
getMessageType(int index)
All top-level definitions in this file.int
getMessageTypeCount()
All top-level definitions in this file.List<DescriptorProtos.DescriptorProto>
getMessageTypeList()
All top-level definitions in this file.DescriptorProtos.DescriptorProtoOrBuilder
getMessageTypeOrBuilder(int index)
All top-level definitions in this file.List<? extends DescriptorProtos.DescriptorProtoOrBuilder>
getMessageTypeOrBuilderList()
All top-level definitions in this file.String
getName()
file name, relative to root of source treeByteString
getNameBytes()
file name, relative to root of source treeDescriptorProtos.FileOptions
getOptions()
optional .google.protobuf.FileOptions options = 8;
DescriptorProtos.FileOptionsOrBuilder
getOptionsOrBuilder()
optional .google.protobuf.FileOptions options = 8;
String
getPackage()
e.g.ByteString
getPackageBytes()
e.g.Parser<DescriptorProtos.FileDescriptorProto>
getParserForType()
Gets the parser for a message of the same type as this message.int
getPublicDependency(int index)
Indexes of the public imported files in the dependency list above.int
getPublicDependencyCount()
Indexes of the public imported files in the dependency list above.List<Integer>
getPublicDependencyList()
Indexes of the public imported files in the dependency list above.int
getSerializedSize()
Get the number of bytes required to encode this message.DescriptorProtos.ServiceDescriptorProto
getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
int
getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
List<DescriptorProtos.ServiceDescriptorProto>
getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.ServiceDescriptorProtoOrBuilder
getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder>
getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
DescriptorProtos.SourceCodeInfo
getSourceCodeInfo()
This field contains optional information about the original source code.DescriptorProtos.SourceCodeInfoOrBuilder
getSourceCodeInfoOrBuilder()
This field contains optional information about the original source code.String
getSyntax()
The syntax of the proto file.ByteString
getSyntaxBytes()
The syntax of the proto file.UnknownFieldSet
getUnknownFields()
Get theUnknownFieldSet
for this message.int
getWeakDependency(int index)
Indexes of the weak imported files in the dependency list.int
getWeakDependencyCount()
Indexes of the weak imported files in the dependency list.List<Integer>
getWeakDependencyList()
Indexes of the weak imported files in the dependency list.int
hashCode()
Returns the hash code value for this message.boolean
hasName()
file name, relative to root of source treeboolean
hasOptions()
optional .google.protobuf.FileOptions options = 8;
boolean
hasPackage()
e.g.boolean
hasSourceCodeInfo()
This field contains optional information about the original source code.boolean
hasSyntax()
The syntax of the proto file.protected GeneratedMessageV3.FieldAccessorTable
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.FileDescriptorProto.Builder
newBuilder()
static DescriptorProtos.FileDescriptorProto.Builder
newBuilder(DescriptorProtos.FileDescriptorProto prototype)
DescriptorProtos.FileDescriptorProto.Builder
newBuilderForType()
Constructs a new builder for a message of the same type as this message.protected DescriptorProtos.FileDescriptorProto.Builder
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.protected Object
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Creates a new instance of this message type.static DescriptorProtos.FileDescriptorProto
parseDelimitedFrom(InputStream input)
static DescriptorProtos.FileDescriptorProto
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
parseFrom(byte[] data)
static DescriptorProtos.FileDescriptorProto
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
parseFrom(ByteString data)
static DescriptorProtos.FileDescriptorProto
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
parseFrom(CodedInputStream input)
static DescriptorProtos.FileDescriptorProto
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
parseFrom(InputStream input)
static DescriptorProtos.FileDescriptorProto
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.FileDescriptorProto
parseFrom(ByteBuffer data)
static DescriptorProtos.FileDescriptorProto
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<DescriptorProtos.FileDescriptorProto>
parser()
DescriptorProtos.FileDescriptorProto.Builder
toBuilder()
Constructs a builder initialized with the current message.void
writeTo(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
-
PACKAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPENDENCY_FIELD_NUMBER
public static final int DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PUBLIC_DEPENDENCY_FIELD_NUMBER
public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEAK_DEPENDENCY_FIELD_NUMBER
public static final int WEAK_DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MESSAGE_TYPE_FIELD_NUMBER
public static final int MESSAGE_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
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_CODE_INFO_FIELD_NUMBER
public static final int SOURCE_CODE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final Parser<DescriptorProtos.FileDescriptorProto> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Description copied from class:GeneratedMessageV3
Creates a new instance of this message type. Overridden in the generated code.- Overrides:
newInstance
in classGeneratedMessageV3
-
getUnknownFields
public final UnknownFieldSet getUnknownFields()
Description copied from interface:MessageOrBuilder
Get theUnknownFieldSet
for this message.- Specified by:
getUnknownFields
in interfaceMessageOrBuilder
- Overrides:
getUnknownFields
in classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3
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 classGeneratedMessageV3
-
hasName
public boolean hasName()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public String getName()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
hasPackage
public boolean hasPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
hasPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the package field is set.
-
getPackage
public String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The package.
-
getPackageBytes
public ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackageBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for package.
-
getDependencyList
public ProtocolStringList getDependencyList()
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the dependency.
-
getDependencyCount
public int getDependencyCount()
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of dependency.
-
getDependency
public String getDependency(int index)
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
public ByteString getDependencyBytes(int index)
Names of files imported by this file.
repeated string dependency = 3;
- 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
public List<Integer> getPublicDependencyList()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the publicDependency.
-
getPublicDependencyCount
public int getPublicDependencyCount()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of publicDependency.
-
getPublicDependency
public int getPublicDependency(int index)
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
getWeakDependencyList
public List<Integer> getWeakDependencyList()
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Specified by:
getWeakDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the weakDependency.
-
getWeakDependencyCount
public int getWeakDependencyCount()
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Specified by:
getWeakDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of weakDependency.
-
getWeakDependency
public int getWeakDependency(int index)
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Specified by:
getWeakDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
getMessageTypeList
public List<DescriptorProtos.DescriptorProto> getMessageTypeList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
public List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
public DescriptorProtos.DescriptorProto getMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeList
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
public List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceList
public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
public List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
public DescriptorProtos.ServiceDescriptorProto getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getService
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilder
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionList
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
public List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtension
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;
- Specified by:
hasOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;
- Specified by:
getOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The options.
-
getOptionsOrBuilder
public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.FileOptions options = 8;
- Specified by:
getOptionsOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSourceCodeInfo
public boolean hasSourceCodeInfo()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
- Specified by:
hasSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the sourceCodeInfo field is set.
-
getSourceCodeInfo
public DescriptorProtos.SourceCodeInfo getSourceCodeInfo()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
- Specified by:
getSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The sourceCodeInfo.
-
getSourceCodeInfoOrBuilder
public DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
- Specified by:
getSourceCodeInfoOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSyntax
public boolean hasSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
- Specified by:
hasSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the syntax field is set.
-
getSyntax
public String getSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
- Specified by:
getSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The syntax.
-
getSyntaxBytes
public ByteString getSyntaxBytes()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
- Specified by:
getSyntaxBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for syntax.
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilder
Returns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws IOException
Description copied from interface:MessageLite
Serializes the message and writes it tooutput
. This does not flush or close the stream.- Specified by:
writeTo
in interfaceMessageLite
- Overrides:
writeTo
in classGeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
Description copied from interface:MessageLite
Get 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:
getSerializedSize
in interfaceMessageLite
- Overrides:
getSerializedSize
in classGeneratedMessageV3
-
equals
public boolean equals(Object obj)
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:
Map.hashCode()
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(InputStream input, 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, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DescriptorProtos.FileDescriptorProto.Builder newBuilderForType()
Description copied from interface:MessageLite
Constructs a new builder for a message of the same type as this message.- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder(DescriptorProtos.FileDescriptorProto prototype)
-
toBuilder
public DescriptorProtos.FileDescriptorProto.Builder toBuilder()
Description copied from interface:MessageLite
Constructs a builder initialized with the current message. Use this to derive a new message from the current one.- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected DescriptorProtos.FileDescriptorProto.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Description copied from class:GeneratedMessageV3
TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.- Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.FileDescriptorProto getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.FileDescriptorProto> parser()
-
getParserForType
public Parser<DescriptorProtos.FileDescriptorProto> getParserForType()
Description copied from interface:MessageLite
Gets the parser for a message of the same type as this message.- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.FileDescriptorProto getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilder
Get 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 theMessageLite
interface whereasgetDefaultInstance()
is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
-