Package com.google.protobuf
Interface DescriptorProtos.FileDescriptorProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.FileDescriptorProtoOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetDependency(int index) Names of files imported by this file.com.google.protobuf.ByteStringgetDependencyBytes(int index) Names of files imported by this file.intNames of files imported by this file.Names of files imported by this file.The edition of the proto file, which is an opaque string.com.google.protobuf.ByteStringThe edition of the proto file, which is an opaque string.getEnumType(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"];intrepeated .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"];intrepeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"];getMessageType(int index) All top-level definitions in this file.intAll top-level definitions in this file.All top-level definitions in this file.getName()file name, relative to root of source treecom.google.protobuf.ByteStringfile name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8 [json_name = "options"];e.g.com.google.protobuf.ByteStringe.g.intgetPublicDependency(int index) Indexes of the public imported files in the dependency list above.intIndexes of the public imported files in the dependency list above.Indexes of the public imported files in the dependency list above.getService(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];intrepeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"];This field contains optional information about the original source code.The syntax of the proto file.com.google.protobuf.ByteStringThe syntax of the proto file.intgetWeakDependency(int index) Indexes of the weak imported files in the dependency list.intIndexes of the weak imported files in the dependency list.Indexes of the weak imported files in the dependency list.booleanThe edition of the proto file, which is an opaque string.booleanhasName()file name, relative to root of source treebooleanoptional .google.protobuf.FileOptions options = 8 [json_name = "options"];booleane.g.booleanThis field contains optional information about the original source code.booleanThe syntax of the proto file.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasName
boolean hasName()file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- Returns:
- Whether the name field is set.
-
getName
String getName()file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()file name, relative to root of source tree
optional string name = 1 [json_name = "name"];- Returns:
- The bytes for name.
-
hasPackage
boolean hasPackage()e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- Returns:
- Whether the package field is set.
-
getPackage
String getPackage()e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- Returns:
- The package.
-
getPackageBytes
com.google.protobuf.ByteString getPackageBytes()e.g. "foo", "foo.bar", etc.
optional string package = 2 [json_name = "package"];- Returns:
- The bytes for package.
-
getDependencyList
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- Returns:
- A list containing the dependency.
-
getDependencyCount
int getDependencyCount()Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- Returns:
- The count of dependency.
-
getDependency
Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- Parameters:
index- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
com.google.protobuf.ByteString getDependencyBytes(int index) Names of files imported by this file.
repeated string dependency = 3 [json_name = "dependency"];- Parameters:
index- The index of the element to return.- Returns:
- The dependency at the given index.
-
getPublicDependencyList
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10 [json_name = "publicDependency"];- Returns:
- A list containing the publicDependency.
-
getPublicDependencyCount
int getPublicDependencyCount()Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10 [json_name = "publicDependency"];- Returns:
- The count of publicDependency.
-
getPublicDependency
int getPublicDependency(int index) Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10 [json_name = "publicDependency"];- Parameters:
index- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
getWeakDependencyList
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11 [json_name = "weakDependency"];- Returns:
- A list containing the weakDependency.
-
getWeakDependencyCount
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 [json_name = "weakDependency"];- Returns:
- The count of weakDependency.
-
getWeakDependency
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 [json_name = "weakDependency"];- Parameters:
index- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
getMessageTypeList
List<DescriptorProtos.DescriptorProto> getMessageTypeList()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
getMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
getMessageTypeCount
int getMessageTypeCount()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4 [json_name = "messageType"]; -
getEnumTypeList
List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
getEnumTypeCount
int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5 [json_name = "enumType"]; -
getServiceList
List<DescriptorProtos.ServiceDescriptorProto> getServiceList()repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
getServiceCount
int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6 [json_name = "service"]; -
getExtensionList
List<DescriptorProtos.FieldDescriptorProto> getExtensionList()repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
getExtensionCount
int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7 [json_name = "extension"]; -
hasOptions
boolean hasOptions()optional .google.protobuf.FileOptions options = 8 [json_name = "options"];- Returns:
- Whether the options field is set.
-
getOptions
DescriptorProtos.FileOptions getOptions()optional .google.protobuf.FileOptions options = 8 [json_name = "options"];- Returns:
- The options.
-
hasSourceCodeInfo
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 [json_name = "sourceCodeInfo"];- Returns:
- Whether the sourceCodeInfo field is set.
-
getSourceCodeInfo
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 [json_name = "sourceCodeInfo"];- Returns:
- The sourceCodeInfo.
-
hasSyntax
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 [json_name = "syntax"];- Returns:
- Whether the syntax field is set.
-
getSyntax
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 [json_name = "syntax"];- Returns:
- The syntax.
-
getSyntaxBytes
com.google.protobuf.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 [json_name = "syntax"];- Returns:
- The bytes for syntax.
-
hasEdition
boolean hasEdition()The edition of the proto file, which is an opaque string.
optional string edition = 13 [json_name = "edition"];- Returns:
- Whether the edition field is set.
-
getEdition
String getEdition()The edition of the proto file, which is an opaque string.
optional string edition = 13 [json_name = "edition"];- Returns:
- The edition.
-
getEditionBytes
com.google.protobuf.ByteString getEditionBytes()The edition of the proto file, which is an opaque string.
optional string edition = 13 [json_name = "edition"];- Returns:
- The bytes for edition.
-