Package com.google.protobuf
Interface DescriptorProtos.FileDescriptorProtoOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
DescriptorProtos.FileDescriptorProto
,DescriptorProtos.FileDescriptorProto.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.FileDescriptorProtoOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.List<String>
getDependencyList()
Names of files imported by this file.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.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.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.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.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.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
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
String getName()
file name, relative to root of source tree
optional string name = 1;
- Returns:
- The name.
-
getNameBytes
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
String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Returns:
- The package.
-
getPackageBytes
ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Returns:
- The bytes for package.
-
getDependencyList
List<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
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
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
List<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
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;
- 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
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
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
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
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
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
List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceOrBuilder
DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getExtensionList
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
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" and "proto3".
optional string syntax = 12;
- Returns:
- Whether the syntax field is set.
-
getSyntax
String getSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
- Returns:
- The syntax.
-
getSyntaxBytes
ByteString getSyntaxBytes()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
- Returns:
- The bytes for syntax.
-
-