Class DescriptorProtos.FileDescriptorProto.Builder (3.19.4)

public static final class DescriptorProtos.FileDescriptorProto.Builder extends GeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder> implements DescriptorProtos.FileDescriptorProtoOrBuilder

Describes a complete .proto file.

Protobuf type google.protobuf.FileDescriptorProto

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptors.Descriptor

Methods

addAllDependency(Iterable<String> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllDependency(Iterable<String> values)

Names of files imported by this file.

repeated string dependency = 3;

Parameter
NameDescription
valuesIterable<String>

The dependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto>
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto>
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto>
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addAllPublicDependency(Iterable<? extends Integer> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllPublicDependency(Iterable<? extends Integer> values)

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

repeated int32 public_dependency = 10;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The publicDependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto>
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addAllWeakDependency(Iterable<? extends Integer> values)

public DescriptorProtos.FileDescriptorProto.Builder addAllWeakDependency(Iterable<? extends 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;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The weakDependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addDependency(String value)

public DescriptorProtos.FileDescriptorProto.Builder addDependency(String value)

Names of files imported by this file.

repeated string dependency = 3;

Parameter
NameDescription
valueString

The dependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addDependencyBytes(ByteString value)

public DescriptorProtos.FileDescriptorProto.Builder addDependencyBytes(ByteString value)

Names of files imported by this file.

repeated string dependency = 3;

Parameter
NameDescription
valueByteString

The bytes of the dependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addEnumType(DescriptorProtos.EnumDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
valueDescriptorProtos.EnumDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
builderForValueDescriptorProtos.EnumDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameters
NameDescription
indexint
valueDescriptorProtos.EnumDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.EnumDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addEnumTypeBuilder()

public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
DescriptorProtos.EnumDescriptorProto.Builder

addEnumTypeBuilder(int index)

public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProto.Builder

addExtension(DescriptorProtos.FieldDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
valueDescriptorProtos.FieldDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
builderForValueDescriptorProtos.FieldDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addExtension(int index, DescriptorProtos.FieldDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameters
NameDescription
indexint
valueDescriptorProtos.FieldDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.FieldDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addExtensionBuilder()

public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
DescriptorProtos.FieldDescriptorProto.Builder

addExtensionBuilder(int index)

public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProto.Builder

addMessageType(DescriptorProtos.DescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto value)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
valueDescriptorProtos.DescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
builderForValueDescriptorProtos.DescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addMessageType(int index, DescriptorProtos.DescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto value)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameters
NameDescription
indexint
valueDescriptorProtos.DescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.DescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addMessageTypeBuilder()

public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
DescriptorProtos.DescriptorProto.Builder

addMessageTypeBuilder(int index)

public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder(int index)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.DescriptorProto.Builder

addPublicDependency(int value)

public DescriptorProtos.FileDescriptorProto.Builder addPublicDependency(int value)

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

repeated int32 public_dependency = 10;

Parameter
NameDescription
valueint

The publicDependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DescriptorProtos.FileDescriptorProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldDescriptors.FieldDescriptor
valueObject
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

addService(DescriptorProtos.ServiceDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
valueDescriptorProtos.ServiceDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
builderForValueDescriptorProtos.ServiceDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addService(int index, DescriptorProtos.ServiceDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto value)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameters
NameDescription
indexint
valueDescriptorProtos.ServiceDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.ServiceDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

addServiceBuilder()

public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProto.Builder

addServiceBuilder(int index)

public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProto.Builder

addWeakDependency(int value)

public DescriptorProtos.FileDescriptorProto.Builder 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;

Parameter
NameDescription
valueint

The weakDependency to add.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

build()

public DescriptorProtos.FileDescriptorProto build()
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto

buildPartial()

public DescriptorProtos.FileDescriptorProto buildPartial()
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto

clear()

public DescriptorProtos.FileDescriptorProto.Builder clear()

Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

clearDependency()

public DescriptorProtos.FileDescriptorProto.Builder clearDependency()

Names of files imported by this file.

repeated string dependency = 3;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clearEnumType()

public DescriptorProtos.FileDescriptorProto.Builder clearEnumType()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearExtension()

public DescriptorProtos.FileDescriptorProto.Builder clearExtension()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearField(Descriptors.FieldDescriptor field)

public DescriptorProtos.FileDescriptorProto.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldDescriptors.FieldDescriptor
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

clearMessageType()

public DescriptorProtos.FileDescriptorProto.Builder clearMessageType()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearName()

public DescriptorProtos.FileDescriptorProto.Builder clearName()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DescriptorProtos.FileDescriptorProto.Builder clearOneof(Descriptors.OneofDescriptor oneof)

TODO(jieluo): Clear it when all subclasses have implemented this method.

Parameter
NameDescription
oneofDescriptors.OneofDescriptor
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

clearOptions()

public DescriptorProtos.FileDescriptorProto.Builder clearOptions()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearPackage()

public DescriptorProtos.FileDescriptorProto.Builder clearPackage()

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

optional string package = 2;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clearPublicDependency()

public DescriptorProtos.FileDescriptorProto.Builder clearPublicDependency()

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

repeated int32 public_dependency = 10;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clearService()

public DescriptorProtos.FileDescriptorProto.Builder clearService()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearSourceCodeInfo()

public DescriptorProtos.FileDescriptorProto.Builder 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;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

clearSyntax()

public DescriptorProtos.FileDescriptorProto.Builder clearSyntax()

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

optional string syntax = 12;

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clearWeakDependency()

public DescriptorProtos.FileDescriptorProto.Builder clearWeakDependency()

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
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

clone()

public DescriptorProtos.FileDescriptorProto.Builder clone()

Clones the Builder.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

getDefaultInstanceForType()

public DescriptorProtos.FileDescriptorProto getDefaultInstanceForType()

Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto

getDependency(int index)

public 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 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 int getDependencyCount()

Names of files imported by this file.

repeated string dependency = 3;

Returns
TypeDescription
int

The count of dependency.

getDependencyList()

public ProtocolStringList getDependencyList()

Names of files imported by this file.

repeated string dependency = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the dependency.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()

Get the message's type's descriptor. This differs from the getDescriptor() method of generated message classes in that this method is an abstract method of the Message interface whereas getDescriptor() is a static method of a specific class. They return the same thing.

Returns
TypeDescription
Descriptors.Descriptor
Overrides

getEnumType(int index)

public DescriptorProtos.EnumDescriptorProto getEnumType(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProto

getEnumTypeBuilder(int index)

public DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProto.Builder

getEnumTypeBuilderList()

public List<DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
List<Builder>

getEnumTypeCount()

public int getEnumTypeCount()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
int

getEnumTypeList()

public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Returns
TypeDescription
List<EnumDescriptorProto>

getEnumTypeOrBuilder(int index)

public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumDescriptorProtoOrBuilder

getEnumTypeOrBuilderList()

public 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 DescriptorProtos.FieldDescriptorProto getExtension(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProto

getExtensionBuilder(int index)

public DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProto.Builder

getExtensionBuilderList()

public List<DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
List<Builder>

getExtensionCount()

public int getExtensionCount()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
int

getExtensionList()

public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Returns
TypeDescription
List<FieldDescriptorProto>

getExtensionOrBuilder(int index)

public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FieldDescriptorProtoOrBuilder

getExtensionOrBuilderList()

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

repeated .google.protobuf.FieldDescriptorProto extension = 7;

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

getMessageType(int index)

public 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

getMessageTypeBuilder(int index)

public DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder(int index)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.DescriptorProto.Builder

getMessageTypeBuilderList()

public List<DescriptorProtos.DescriptorProto.Builder> getMessageTypeBuilderList()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
List<Builder>

getMessageTypeCount()

public int getMessageTypeCount()

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Returns
TypeDescription
int

getMessageTypeList()

public 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 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 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 String getName()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

file name, relative to root of source tree

optional string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptions()

public DescriptorProtos.FileOptions getOptions()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileOptions

The options.

getOptionsBuilder()

public DescriptorProtos.FileOptions.Builder getOptionsBuilder()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileOptions.Builder

getOptionsOrBuilder()

public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
DescriptorProtos.FileOptionsOrBuilder

getPackage()

public String getPackage()

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

optional string package = 2;

Returns
TypeDescription
String

The package.

getPackageBytes()

public ByteString getPackageBytes()

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

optional string package = 2;

Returns
TypeDescription
ByteString

The bytes for package.

getPublicDependency(int index)

public 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 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 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 DescriptorProtos.ServiceDescriptorProto getService(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProto

getServiceBuilder(int index)

public DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProto.Builder

getServiceBuilderList()

public List<DescriptorProtos.ServiceDescriptorProto.Builder> getServiceBuilderList()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
List<Builder>

getServiceCount()

public int getServiceCount()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
int

getServiceList()

public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Returns
TypeDescription
List<ServiceDescriptorProto>

getServiceOrBuilder(int index)

public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.ServiceDescriptorProtoOrBuilder

getServiceOrBuilderList()

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

repeated .google.protobuf.ServiceDescriptorProto service = 6;

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

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;

Returns
TypeDescription
DescriptorProtos.SourceCodeInfo

The sourceCodeInfo.

getSourceCodeInfoBuilder()

public DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder()

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.Builder

getSourceCodeInfoOrBuilder()

public 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 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 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 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 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 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 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 boolean hasOptions()

optional .google.protobuf.FileOptions options = 8;

Returns
TypeDescription
boolean

Whether the options field is set.

hasPackage()

public boolean hasPackage()

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

optional string package = 2;

Returns
TypeDescription
boolean

Whether the package field is set.

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;

Returns
TypeDescription
boolean

Whether the sourceCodeInfo field is set.

hasSyntax()

public 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()

Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.

Returns
TypeDescription
GeneratedMessageV3.FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()

Returns true if all required fields in the message and all embedded messages are set, false otherwise.

See also: MessageOrBuilder#getInitializationErrorString()

Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in extensionRegistry. Extensions not in the registry will be treated as unknown fields.

Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(DescriptorProtos.FileDescriptorProto other)

public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other)
Parameter
NameDescription
otherDescriptorProtos.FileDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

mergeFrom(Message other)

public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(Message other)

Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

Merging occurs as follows. For each field:

  • For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
  • For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
  • For repeated fields, the elements in other are concatenated with the elements in this message.
  • For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.

    This is equivalent to the Message::MergeFrom method in C++.

Parameter
NameDescription
otherMessage
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

mergeOptions(DescriptorProtos.FileOptions value)

public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value)

optional .google.protobuf.FileOptions options = 8;

Parameter
NameDescription
valueDescriptorProtos.FileOptions
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

mergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)

public DescriptorProtos.FileDescriptorProto.Builder 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;

Parameter
NameDescription
valueDescriptorProtos.SourceCodeInfo
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DescriptorProtos.FileDescriptorProto.Builder mergeUnknownFields(UnknownFieldSet unknownFields)

Merge some unknown fields into the UnknownFieldSet for this message.

Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

removeEnumType(int index)

public DescriptorProtos.FileDescriptorProto.Builder removeEnumType(int index)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

removeExtension(int index)

public DescriptorProtos.FileDescriptorProto.Builder removeExtension(int index)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

removeMessageType(int index)

public DescriptorProtos.FileDescriptorProto.Builder removeMessageType(int index)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

removeService(int index)

public DescriptorProtos.FileDescriptorProto.Builder removeService(int index)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setDependency(int index, String value)

public DescriptorProtos.FileDescriptorProto.Builder setDependency(int index, String value)

Names of files imported by this file.

repeated string dependency = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The dependency to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameters
NameDescription
indexint
valueDescriptorProtos.EnumDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)

repeated .google.protobuf.EnumDescriptorProto enum_type = 5;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.EnumDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setExtension(int index, DescriptorProtos.FieldDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameters
NameDescription
indexint
valueDescriptorProtos.FieldDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)

repeated .google.protobuf.FieldDescriptorProto extension = 7;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.FieldDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DescriptorProtos.FileDescriptorProto.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldDescriptors.FieldDescriptor
valueObject
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

setMessageType(int index, DescriptorProtos.DescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto value)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameters
NameDescription
indexint
valueDescriptorProtos.DescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)

All top-level definitions in this file.

repeated .google.protobuf.DescriptorProto message_type = 4;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.DescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setName(String value)

public DescriptorProtos.FileDescriptorProto.Builder setName(String value)

file name, relative to root of source tree

optional string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DescriptorProtos.FileDescriptorProto.Builder setNameBytes(ByteString value)

file name, relative to root of source tree

optional string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setOptions(DescriptorProtos.FileOptions value)

public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions value)

optional .google.protobuf.FileOptions options = 8;

Parameter
NameDescription
valueDescriptorProtos.FileOptions
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setOptions(DescriptorProtos.FileOptions.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue)

optional .google.protobuf.FileOptions options = 8;

Parameter
NameDescription
builderForValueDescriptorProtos.FileOptions.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setPackage(String value)

public DescriptorProtos.FileDescriptorProto.Builder setPackage(String value)

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

optional string package = 2;

Parameter
NameDescription
valueString

The package to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setPackageBytes(ByteString value)

public DescriptorProtos.FileDescriptorProto.Builder setPackageBytes(ByteString value)

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

optional string package = 2;

Parameter
NameDescription
valueByteString

The bytes for package to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setPublicDependency(int index, int value)

public DescriptorProtos.FileDescriptorProto.Builder setPublicDependency(int index, int value)

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

repeated int32 public_dependency = 10;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The publicDependency to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DescriptorProtos.FileDescriptorProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldDescriptors.FieldDescriptor
indexint
valueObject
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

setService(int index, DescriptorProtos.ServiceDescriptorProto value)

public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameters
NameDescription
indexint
valueDescriptorProtos.ServiceDescriptorProto
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)

repeated .google.protobuf.ServiceDescriptorProto service = 6;

Parameters
NameDescription
indexint
builderForValueDescriptorProtos.ServiceDescriptorProto.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)

public DescriptorProtos.FileDescriptorProto.Builder 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;

Parameter
NameDescription
valueDescriptorProtos.SourceCodeInfo
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue)

public DescriptorProtos.FileDescriptorProto.Builder setSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueDescriptorProtos.SourceCodeInfo.Builder
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

setSyntax(String value)

public DescriptorProtos.FileDescriptorProto.Builder setSyntax(String value)

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

optional string syntax = 12;

Parameter
NameDescription
valueString

The syntax to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setSyntaxBytes(ByteString value)

public DescriptorProtos.FileDescriptorProto.Builder setSyntaxBytes(ByteString value)

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

optional string syntax = 12;

Parameter
NameDescription
valueByteString

The bytes for syntax to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DescriptorProtos.FileDescriptorProto.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder
Overrides

setWeakDependency(int index, int value)

public DescriptorProtos.FileDescriptorProto.Builder 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
NameDescription
indexint

The index to set the value at.

valueint

The weakDependency to set.

Returns
TypeDescription
DescriptorProtos.FileDescriptorProto.Builder

This builder for chaining.