Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.FileDescriptorProto
-
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder,MessageLite,MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FileDescriptorProto extends GeneratedMessageLite<DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder> implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.
Protobuf typegoogle.protobuf.FileDescriptorProto
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.FileDescriptorProto.BuilderDescribes a complete .proto file.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtensionDescriptor, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Constructor Summary
Constructors Modifier Constructor Description privateFileDescriptorProto()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddAllDependency(java.lang.Iterable<java.lang.String> values)Names of files imported by this file.private voidaddAllEnumType(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidaddAllExtension(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidaddAllMessageType(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)All top-level definitions in this file.private voidaddAllPublicDependency(java.lang.Iterable<? extends java.lang.Integer> values)Indexes of the public imported files in the dependency list above.private voidaddAllService(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidaddAllWeakDependency(java.lang.Iterable<? extends java.lang.Integer> values)Indexes of the weak imported files in the dependency list.private voidaddDependency(java.lang.String value)Names of files imported by this file.private voidaddDependencyBytes(ByteString value)Names of files imported by this file.private voidaddEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidaddEnumType(DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidaddExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidaddExtension(DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidaddMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.private voidaddMessageType(DescriptorProtos.DescriptorProto value)All top-level definitions in this file.private voidaddPublicDependency(int value)Indexes of the public imported files in the dependency list above.private voidaddService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidaddService(DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidaddWeakDependency(int value)Indexes of the weak imported files in the dependency list.private voidclearDependency()Names of files imported by this file.private voidclearEdition()The edition of the proto file.private voidclearEnumType()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidclearExtension()repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidclearMessageType()All top-level definitions in this file.private voidclearName()file name, relative to root of source treeprivate voidclearOptions()optional .google.protobuf.FileOptions options = 8;private voidclearPackage()e.g.private voidclearPublicDependency()Indexes of the public imported files in the dependency list above.private voidclearService()repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidclearSourceCodeInfo()This field contains optional information about the original source code.private voidclearSyntax()The syntax of the proto file.private voidclearWeakDependency()Indexes of the weak imported files in the dependency list.protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.private voidensureDependencyIsMutable()private voidensureEnumTypeIsMutable()private voidensureExtensionIsMutable()private voidensureMessageTypeIsMutable()private voidensurePublicDependencyIsMutable()private voidensureServiceIsMutable()private voidensureWeakDependencyIsMutable()static DescriptorProtos.FileDescriptorProtogetDefaultInstance()java.lang.StringgetDependency(int index)Names of files imported by this file.ByteStringgetDependencyBytes(int index)Names of files imported by this file.intgetDependencyCount()Names of files imported by this file.java.util.List<java.lang.String>getDependencyList()Names of files imported by this file.DescriptorProtos.EditiongetEdition()The edition of the proto file.DescriptorProtos.EnumDescriptorProtogetEnumType(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;intgetEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;java.util.List<DescriptorProtos.EnumDescriptorProto>getEnumTypeList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.EnumDescriptorProtoOrBuildergetEnumTypeOrBuilder(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder>getEnumTypeOrBuilderList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FieldDescriptorProtogetExtension(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;intgetExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7;java.util.List<DescriptorProtos.FieldDescriptorProto>getExtensionList()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FieldDescriptorProtoOrBuildergetExtensionOrBuilder(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder>getExtensionOrBuilderList()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.DescriptorProtogetMessageType(int index)All top-level definitions in this file.intgetMessageTypeCount()All top-level definitions in this file.java.util.List<DescriptorProtos.DescriptorProto>getMessageTypeList()All top-level definitions in this file.DescriptorProtos.DescriptorProtoOrBuildergetMessageTypeOrBuilder(int index)All top-level definitions in this file.java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder>getMessageTypeOrBuilderList()All top-level definitions in this file.java.lang.StringgetName()file name, relative to root of source treeByteStringgetNameBytes()file name, relative to root of source treeDescriptorProtos.FileOptionsgetOptions()optional .google.protobuf.FileOptions options = 8;java.lang.StringgetPackage()e.g.ByteStringgetPackageBytes()e.g.intgetPublicDependency(int index)Indexes of the public imported files in the dependency list above.intgetPublicDependencyCount()Indexes of the public imported files in the dependency list above.java.util.List<java.lang.Integer>getPublicDependencyList()Indexes of the public imported files in the dependency list above.DescriptorProtos.ServiceDescriptorProtogetService(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;intgetServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6;java.util.List<DescriptorProtos.ServiceDescriptorProto>getServiceList()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.ServiceDescriptorProtoOrBuildergetServiceOrBuilder(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;java.util.List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder>getServiceOrBuilderList()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.SourceCodeInfogetSourceCodeInfo()This field contains optional information about the original source code.java.lang.StringgetSyntax()The syntax of the proto file.ByteStringgetSyntaxBytes()The syntax of the proto file.intgetWeakDependency(int index)Indexes of the weak imported files in the dependency list.intgetWeakDependencyCount()Indexes of the weak imported files in the dependency list.java.util.List<java.lang.Integer>getWeakDependencyList()Indexes of the weak imported files in the dependency list.booleanhasEdition()The edition of the proto file.booleanhasName()file name, relative to root of source treebooleanhasOptions()optional .google.protobuf.FileOptions options = 8;booleanhasPackage()e.g.booleanhasSourceCodeInfo()This field contains optional information about the original source code.booleanhasSyntax()The syntax of the proto file.private voidmergeOptions(DescriptorProtos.FileOptions value)optional .google.protobuf.FileOptions options = 8;private voidmergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)This field contains optional information about the original source code.static DescriptorProtos.FileDescriptorProto.BuildernewBuilder()static DescriptorProtos.FileDescriptorProto.BuildernewBuilder(DescriptorProtos.FileDescriptorProto prototype)static DescriptorProtos.FileDescriptorProtoparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.FileDescriptorProtoparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FileDescriptorProtoparseFrom(byte[] data)static DescriptorProtos.FileDescriptorProtoparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FileDescriptorProtoparseFrom(ByteString data)static DescriptorProtos.FileDescriptorProtoparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FileDescriptorProtoparseFrom(CodedInputStream input)static DescriptorProtos.FileDescriptorProtoparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FileDescriptorProtoparseFrom(java.io.InputStream input)static DescriptorProtos.FileDescriptorProtoparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FileDescriptorProtoparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.FileDescriptorProtoparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<DescriptorProtos.FileDescriptorProto>parser()private voidremoveEnumType(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidremoveExtension(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidremoveMessageType(int index)All top-level definitions in this file.private voidremoveService(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidsetDependency(int index, java.lang.String value)Names of files imported by this file.private voidsetEdition(DescriptorProtos.Edition value)The edition of the proto file.private voidsetEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;private voidsetExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;private voidsetMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.private voidsetName(java.lang.String value)file name, relative to root of source treeprivate voidsetNameBytes(ByteString value)file name, relative to root of source treeprivate voidsetOptions(DescriptorProtos.FileOptions value)optional .google.protobuf.FileOptions options = 8;private voidsetPackage(java.lang.String value)e.g.private voidsetPackageBytes(ByteString value)e.g.private voidsetPublicDependency(int index, int value)Indexes of the public imported files in the dependency list above.private voidsetService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;private voidsetSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)This field contains optional information about the original source code.private voidsetSyntax(java.lang.String value)The syntax of the proto file.private voidsetSyntaxBytes(ByteString value)The syntax of the proto file.private voidsetWeakDependency(int index, int value)Indexes of the weak imported files in the dependency list.-
Methods inherited from class com.google.protobuf.GeneratedMessageLite
buildMessageInfo, clearMemoizedHashCode, clearMemoizedSerializedSize, computeHashCode, createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstance, getDefaultInstanceForType, getMemoizedHashCode, getMemoizedSerializedSize, getMethodOrDie, getParserForType, getSerializedSize, getSerializedSize, hashCode, hashCodeIsNotMemoized, invokeOrDie, isInitialized, isInitialized, isMutable, makeImmutable, markImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newMutableInstance, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, setMemoizedHashCode, setMemoizedSerializedSize, toBuilder, toString, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, 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.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
name_
private java.lang.String name_
-
PACKAGE_FIELD_NUMBER
public static final int PACKAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
package_
private java.lang.String package_
-
DEPENDENCY_FIELD_NUMBER
public static final int DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
dependency_
private Internal.ProtobufList<java.lang.String> dependency_
-
PUBLIC_DEPENDENCY_FIELD_NUMBER
public static final int PUBLIC_DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
publicDependency_
private Internal.IntList publicDependency_
-
WEAK_DEPENDENCY_FIELD_NUMBER
public static final int WEAK_DEPENDENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
weakDependency_
private Internal.IntList weakDependency_
-
MESSAGE_TYPE_FIELD_NUMBER
public static final int MESSAGE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
messageType_
private Internal.ProtobufList<DescriptorProtos.DescriptorProto> messageType_
-
ENUM_TYPE_FIELD_NUMBER
public static final int ENUM_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
enumType_
private Internal.ProtobufList<DescriptorProtos.EnumDescriptorProto> enumType_
-
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
service_
private Internal.ProtobufList<DescriptorProtos.ServiceDescriptorProto> service_
-
EXTENSION_FIELD_NUMBER
public static final int EXTENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
extension_
private Internal.ProtobufList<DescriptorProtos.FieldDescriptorProto> extension_
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
options_
private DescriptorProtos.FileOptions options_
-
SOURCE_CODE_INFO_FIELD_NUMBER
public static final int SOURCE_CODE_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
sourceCodeInfo_
private DescriptorProtos.SourceCodeInfo sourceCodeInfo_
-
SYNTAX_FIELD_NUMBER
public static final int SYNTAX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
syntax_
private java.lang.String syntax_
-
EDITION_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
edition_
private int edition_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final DescriptorProtos.FileDescriptorProto DEFAULT_INSTANCE
-
PARSER
private static volatile Parser<DescriptorProtos.FileDescriptorProto> PARSER
-
-
Method Detail
-
hasName
public boolean hasName()
file name, relative to root of source tree
optional string name = 1;- Specified by:
hasNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
private void setName(java.lang.String value)
file name, relative to root of source tree
optional string name = 1;- Parameters:
value- The name to set.
-
clearName
private void clearName()
file name, relative to root of source tree
optional string name = 1;
-
setNameBytes
private void setNameBytes(ByteString value)
file name, relative to root of source tree
optional string name = 1;- Parameters:
value- The bytes for name to set.
-
hasPackage
public boolean hasPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
hasPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the package field is set.
-
getPackage
public java.lang.String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The package.
-
getPackageBytes
public ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackageBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for package.
-
setPackage
private void setPackage(java.lang.String value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The package to set.
-
clearPackage
private void clearPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
-
setPackageBytes
private void setPackageBytes(ByteString value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The bytes for package to set.
-
getDependencyList
public java.util.List<java.lang.String> getDependencyList()
Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyListin 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:
getDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of dependency.
-
getDependency
public java.lang.String getDependency(int index)
Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyin 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:
getDependencyBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
ensureDependencyIsMutable
private void ensureDependencyIsMutable()
-
setDependency
private void setDependency(int index, java.lang.String value)Names of files imported by this file.
repeated string dependency = 3;- Parameters:
index- The index to set the value at.value- The dependency to set.
-
addDependency
private void addDependency(java.lang.String value)
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
value- The dependency to add.
-
addAllDependency
private void addAllDependency(java.lang.Iterable<java.lang.String> values)
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
values- The dependency to add.
-
clearDependency
private void clearDependency()
Names of files imported by this file.
repeated string dependency = 3;
-
addDependencyBytes
private void addDependencyBytes(ByteString value)
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
value- The bytes of the dependency to add.
-
getPublicDependencyList
public java.util.List<java.lang.Integer> getPublicDependencyList()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Specified by:
getPublicDependencyListin 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:
getPublicDependencyCountin 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:
getPublicDependencyin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
ensurePublicDependencyIsMutable
private void ensurePublicDependencyIsMutable()
-
setPublicDependency
private void setPublicDependency(int index, int value)Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
index- The index to set the value at.value- The publicDependency to set.
-
addPublicDependency
private void addPublicDependency(int value)
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
value- The publicDependency to add.
-
addAllPublicDependency
private void addAllPublicDependency(java.lang.Iterable<? extends java.lang.Integer> values)
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
values- The publicDependency to add.
-
clearPublicDependency
private void clearPublicDependency()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
-
getWeakDependencyList
public java.util.List<java.lang.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:
getWeakDependencyListin 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:
getWeakDependencyCountin 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:
getWeakDependencyin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
ensureWeakDependencyIsMutable
private void ensureWeakDependencyIsMutable()
-
setWeakDependency
private void setWeakDependency(int index, int value)Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
index- The index to set the value at.value- The weakDependency to set.
-
addWeakDependency
private void addWeakDependency(int value)
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
value- The weakDependency to add.
-
addAllWeakDependency
private void addAllWeakDependency(java.lang.Iterable<? extends java.lang.Integer> values)
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
values- The weakDependency to add.
-
clearWeakDependency
private void clearWeakDependency()
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
-
getMessageTypeList
public java.util.List<DescriptorProtos.DescriptorProto> getMessageTypeList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeCount
public int getMessageTypeCount()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeCountin 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:
getMessageTypein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
ensureMessageTypeIsMutable
private void ensureMessageTypeIsMutable()
-
setMessageType
private void setMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageType
private void addMessageType(DescriptorProtos.DescriptorProto value)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageType
private void addMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addAllMessageType
private void addAllMessageType(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
clearMessageType
private void clearMessageType()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
removeMessageType
private void removeMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getEnumTypeList
public java.util.List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeCount
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
ensureEnumTypeIsMutable
private void ensureEnumTypeIsMutable()
-
setEnumType
private void setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
private void addEnumType(DescriptorProtos.EnumDescriptorProto value)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
private void addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addAllEnumType
private void addAllEnumType(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
clearEnumType
private void clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
removeEnumType
private void removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getServiceList
public java.util.List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
public java.util.List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceCount
public int getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
public DescriptorProtos.ServiceDescriptorProto getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServicein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilder
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
ensureServiceIsMutable
private void ensureServiceIsMutable()
-
setService
private void setService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
private void addService(DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
private void addService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addAllService
private void addAllService(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
clearService
private void clearService()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
removeService
private void removeService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getExtensionList
public java.util.List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionCount
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
ensureExtensionIsMutable
private void ensureExtensionIsMutable()
-
setExtension
private void setExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
private void addExtension(DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
private void addExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addAllExtension
private void addAllExtension(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
clearExtension
private void clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
removeExtension
private void removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;- Specified by:
hasOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
private void setOptions(DescriptorProtos.FileOptions value)
optional .google.protobuf.FileOptions options = 8;
-
mergeOptions
private void mergeOptions(DescriptorProtos.FileOptions value)
optional .google.protobuf.FileOptions options = 8;
-
clearOptions
private void clearOptions()
optional .google.protobuf.FileOptions options = 8;
-
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:
hasSourceCodeInfoin 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:
getSourceCodeInfoin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The sourceCodeInfo.
-
setSourceCodeInfo
private void setSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
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;
-
mergeSourceCodeInfo
private void mergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)
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;
-
clearSourceCodeInfo
private void clearSourceCodeInfo()
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;
-
hasSyntax
public boolean hasSyntax()
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
hasSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the syntax field is set.
-
getSyntax
public java.lang.String getSyntax()
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
getSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The syntax.
-
getSyntaxBytes
public ByteString getSyntaxBytes()
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Specified by:
getSyntaxBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for syntax.
-
setSyntax
private void setSyntax(java.lang.String value)
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Parameters:
value- The syntax to set.
-
clearSyntax
private void clearSyntax()
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;
-
setSyntaxBytes
private void setSyntaxBytes(ByteString value)
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions".
optional string syntax = 12;- Parameters:
value- The bytes for syntax to set.
-
hasEdition
public boolean hasEdition()
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Specified by:
hasEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the edition field is set.
-
getEdition
public DescriptorProtos.Edition getEdition()
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Specified by:
getEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The edition.
-
setEdition
private void setEdition(DescriptorProtos.Edition value)
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Parameters:
value- The edition to set.
-
clearEdition
private void clearEdition()
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FileDescriptorProto parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FileDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FileDescriptorProto.Builder newBuilder(DescriptorProtos.FileDescriptorProto prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
Description copied from class:GeneratedMessageLiteA method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
-
getDefaultInstance
public static DescriptorProtos.FileDescriptorProto getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.FileDescriptorProto> parser()
-
-