Package com.google.protobuf
Interface DescriptorProtos.FileDescriptorProtoOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorProto.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.FileDescriptorProtoOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDependency(int index)Names of files imported by this file.com.google.protobuf.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.java.lang.StringgetEdition()The edition of the proto file, which is an opaque string.com.google.protobuf.ByteStringgetEditionBytes()The edition of the proto file, which is an opaque string.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 treecom.google.protobuf.ByteStringgetNameBytes()file name, relative to root of source treeDescriptorProtos.FileOptionsgetOptions()optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.FileOptions options = 8;java.lang.StringgetPackage()e.g.com.google.protobuf.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.DescriptorProtos.SourceCodeInfoOrBuildergetSourceCodeInfoOrBuilder()This field contains optional information about the original source code.java.lang.StringgetSyntax()The syntax of the proto file.com.google.protobuf.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, which is an opaque string.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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasName
boolean hasName()
file name, relative to root of source tree
optional string name = 1;- Returns:
- Whether the name field is set.
-
getName
java.lang.String getName()
file name, relative to root of source tree
optional string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;- Returns:
- The bytes for name.
-
hasPackage
boolean hasPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Returns:
- Whether the package field is set.
-
getPackage
java.lang.String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Returns:
- The package.
-
getPackageBytes
com.google.protobuf.ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Returns:
- The bytes for package.
-
getDependencyList
java.util.List<java.lang.String> getDependencyList()
Names of files imported by this file.
repeated string dependency = 3;- Returns:
- A list containing the dependency.
-
getDependencyCount
int getDependencyCount()
Names of files imported by this file.
repeated string dependency = 3;- Returns:
- The count of dependency.
-
getDependency
java.lang.String getDependency(int index)
Names of files imported by this file.
repeated string dependency = 3;- 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;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
getPublicDependencyList
java.util.List<java.lang.Integer> getPublicDependencyList()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- 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;- 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;- Parameters:
index- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
getWeakDependencyList
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;- 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;- 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;- Parameters:
index- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
getMessageTypeList
java.util.List<DescriptorProtos.DescriptorProto> getMessageTypeList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageType
DescriptorProtos.DescriptorProto getMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeCount
int getMessageTypeCount()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeOrBuilderList
java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeOrBuilder
DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getEnumTypeList
java.util.List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumType
DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeCount
int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeOrBuilderList
java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeOrBuilder
DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getServiceList
java.util.List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getService
DescriptorProtos.ServiceDescriptorProto getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceCount
int getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceOrBuilderList
java.util.List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceOrBuilder
DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getExtensionList
java.util.List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtension
DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionCount
int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionOrBuilderList
java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionOrBuilder
DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
hasOptions
boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;- Returns:
- Whether the options field is set.
-
getOptions
DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;- Returns:
- The options.
-
getOptionsOrBuilder
DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.FileOptions options = 8;
-
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;- 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;- Returns:
- The sourceCodeInfo.
-
getSourceCodeInfoOrBuilder
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;
-
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;- Returns:
- Whether the syntax field is set.
-
getSyntax
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;- 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;- Returns:
- The bytes for syntax.
-
hasEdition
boolean hasEdition()
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Returns:
- Whether the edition field is set.
-
getEdition
java.lang.String getEdition()
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Returns:
- The edition.
-
getEditionBytes
com.google.protobuf.ByteString getEditionBytes()
The edition of the proto file, which is an opaque string.
optional string edition = 13;- Returns:
- The bytes for edition.
-
-