Interface DescriptorProtos.FileDescriptorProtoOrBuilder

public static interface DescriptorProtos.FileDescriptorProtoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDependency(int index)

public abstract String getDependency(int index)

Names of files imported by this file.

repeated string dependency = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The dependency at the given index.

getDependencyBytes(int index)

public abstract ByteString getDependencyBytes(int index)

Names of files imported by this file.

repeated string dependency = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the dependency at the given index.

getDependencyCount()

public abstract int getDependencyCount()

Names of files imported by this file.

repeated string dependency = 3;

Returns
TypeDescription
int

The count of dependency.

getDependencyList()

public abstract List<String> getDependencyList()

Names of files imported by this file.

repeated string dependency = 3;

Returns
TypeDescription
List<String>

A list containing the dependency.

getEnumType(int index)

public abstract DescriptorProtos.EnumDescriptorProto getEnumType(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProto

getEnumTypeCount()

public abstract int getEnumTypeCount()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
int

getEnumTypeList()

public abstract List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
List<EnumDescriptorProto>

getEnumTypeOrBuilder(int index)

public abstract DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProtoOrBuilder

getEnumTypeOrBuilderList()

public abstract List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder>

getExtension(int index)

public abstract DescriptorProtos.FieldDescriptorProto getExtension(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProto

getExtensionCount()

public abstract int getExtensionCount()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
int

getExtensionList()

public abstract List<DescriptorProtos.FieldDescriptorProto> getExtensionList()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
List<FieldDescriptorProto>

getExtensionOrBuilder(int index)

public abstract DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProtoOrBuilder

getExtensionOrBuilderList()

public abstract List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
List<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>

getMessageType(int index)

public abstract DescriptorProtos.DescriptorProto getMessageType(int index)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.DescriptorProto

getMessageTypeCount()

public abstract int getMessageTypeCount()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
int

getMessageTypeList()

public abstract List<DescriptorProtos.DescriptorProto> getMessageTypeList()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
List<DescriptorProto>

getMessageTypeOrBuilder(int index)

public abstract DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.DescriptorProtoOrBuilder

getMessageTypeOrBuilderList()

public abstract List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>

getName()

public abstract String getName()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptions()

public abstract DescriptorProtos.FileOptions getOptions()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileOptions

The options.

getOptionsOrBuilder()

public abstract DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileOptionsOrBuilder

getPackage()

public abstract String getPackage()

e.g. "foo", "foo.bar", etc.

optional string package = 2;

Returns
TypeDescription
String

The package.

getPackageBytes()

public abstract ByteString getPackageBytes()

e.g. "foo", "foo.bar", etc.

optional string package = 2;

Returns
TypeDescription
ByteString

The bytes for package.

getPublicDependency(int index)

public abstract int getPublicDependency(int index)

Indexes of the public imported files in the dependency list above.

repeated int32 public_dependency = 10;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The publicDependency at the given index.

getPublicDependencyCount()

public abstract int getPublicDependencyCount()

Indexes of the public imported files in the dependency list above.

repeated int32 public_dependency = 10;

Returns
TypeDescription
int

The count of publicDependency.

getPublicDependencyList()

public abstract List<Integer> getPublicDependencyList()

Indexes of the public imported files in the dependency list above.

repeated int32 public_dependency = 10;

Returns
TypeDescription
List<Integer>

A list containing the publicDependency.

getService(int index)

public abstract DescriptorProtos.ServiceDescriptorProto getService(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProto

getServiceCount()

public abstract int getServiceCount()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
int

getServiceList()

public abstract List<DescriptorProtos.ServiceDescriptorProto> getServiceList()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
List<ServiceDescriptorProto>

getServiceOrBuilder(int index)

public abstract DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProtoOrBuilder

getServiceOrBuilderList()

public abstract List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
List<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProtoOrBuilder>

getSourceCodeInfo()

public abstract 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
TypeDescription
DescriptorProtos.SourceCodeInfo

The sourceCodeInfo.

getSourceCodeInfoOrBuilder()

public abstract 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;

Returns
TypeDescription
DescriptorProtos.SourceCodeInfoOrBuilder

getSyntax()

public abstract String getSyntax()

The syntax of the proto file. The supported values are "proto2" and "proto3".

optional string syntax = 12;

Returns
TypeDescription
String

The syntax.

getSyntaxBytes()

public abstract ByteString getSyntaxBytes()

The syntax of the proto file. The supported values are "proto2" and "proto3".

optional string syntax = 12;

Returns
TypeDescription
ByteString

The bytes for syntax.

getWeakDependency(int index)

public abstract 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The weakDependency at the given index.

getWeakDependencyCount()

public abstract 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
TypeDescription
int

The count of weakDependency.

getWeakDependencyList()

public abstract 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
TypeDescription
List<Integer>

A list containing the weakDependency.

hasName()

public abstract boolean hasName()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
boolean

Whether the name field is set.

hasOptions()

public abstract boolean hasOptions()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
boolean

Whether the options field is set.

hasPackage()

public abstract boolean hasPackage()

e.g. "foo", "foo.bar", etc.

optional string package = 2;

Returns
TypeDescription
boolean

Whether the package field is set.

hasSourceCodeInfo()

public abstract 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
TypeDescription
boolean

Whether the sourceCodeInfo field is set.

hasSyntax()

public abstract boolean hasSyntax()

The syntax of the proto file. The supported values are "proto2" and "proto3".

optional string syntax = 12;

Returns
TypeDescription
boolean

Whether the syntax field is set.