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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DescriptorProtos.FileDescriptorProto.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<String> The dependency to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.DescriptorProtos.FieldDescriptorProto> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.DescriptorProtos.DescriptorProto> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Integer> The publicDependency to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends com.google.protobuf.DescriptorProtos.ServiceDescriptorProto> |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
values | Iterable<? extends java.lang.Integer> The weakDependency to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The dependency to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes of the dependency to add. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | DescriptorProtos.EnumDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.EnumDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.EnumDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.EnumDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addEnumTypeBuilder()
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto.Builder |
addEnumTypeBuilder(int index)
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto.Builder |
addExtension(DescriptorProtos.FieldDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
value | DescriptorProtos.FieldDescriptorProto |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.FieldDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.FieldDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.FieldDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addExtensionBuilder()
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FieldDescriptorProto.Builder |
addExtensionBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | DescriptorProtos.DescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.DescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.DescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.DescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addMessageTypeBuilder()
public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The publicDependency to add. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.FileDescriptorProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | Descriptors.FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addService(DescriptorProtos.ServiceDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
value | DescriptorProtos.ServiceDescriptorProto |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.ServiceDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.ServiceDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.ServiceDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
addServiceBuilder()
public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
DescriptorProtos.ServiceDescriptorProto.Builder |
addServiceBuilder(int index)
public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | int The weakDependency to add. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
build()
public DescriptorProtos.FileDescriptorProto build()
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto |
buildPartial()
public DescriptorProtos.FileDescriptorProto buildPartial()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearDependency()
public DescriptorProtos.FileDescriptorProto.Builder clearDependency()
Names of files imported by this file.
repeated string dependency = 3;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
clearEnumType()
public DescriptorProtos.FileDescriptorProto.Builder clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearExtension()
public DescriptorProtos.FileDescriptorProto.Builder clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearField(Descriptors.FieldDescriptor field)
public DescriptorProtos.FileDescriptorProto.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | Descriptors.FieldDescriptor |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearMessageType()
public DescriptorProtos.FileDescriptorProto.Builder clearMessageType()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearName()
public DescriptorProtos.FileDescriptorProto.Builder clearName()
file name, relative to root of source tree
optional string name = 1;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
oneof | Descriptors.OneofDescriptor |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearOptions()
public DescriptorProtos.FileDescriptorProto.Builder clearOptions()
optional .google.protobuf.FileOptions options = 8;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
clearPackage()
public DescriptorProtos.FileDescriptorProto.Builder clearPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
clearService()
public DescriptorProtos.FileDescriptorProto.Builder clearService()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
clone()
public DescriptorProtos.FileDescriptorProto.Builder clone()
Clones the Builder.
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
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 | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto |
getDependency(int index)
public String getDependency(int index)
Names of files imported by this file.
repeated string dependency = 3;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int | The count of dependency. |
getDependencyList()
public ProtocolStringList getDependencyList()
Names of files imported by this file.
repeated string dependency = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Descriptors.Descriptor |
getEnumType(int index)
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto |
getEnumTypeBuilder(int index)
public DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto.Builder |
getEnumTypeBuilderList()
public List<DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
List<Builder> |
getEnumTypeCount()
public int getEnumTypeCount()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
int |
getEnumTypeList()
public List<DescriptorProtos.EnumDescriptorProto> getEnumTypeList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
List<EnumDescriptorProto> |
getEnumTypeOrBuilder(int index)
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProtoOrBuilder |
getEnumTypeOrBuilderList()
public List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProtoOrBuilder> |
getExtension(int index)
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FieldDescriptorProto |
getExtensionBuilder(int index)
public DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FieldDescriptorProto.Builder |
getExtensionBuilderList()
public List<DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
List<Builder> |
getExtensionCount()
public int getExtensionCount()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
int |
getExtensionList()
public List<DescriptorProtos.FieldDescriptorProto> getExtensionList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
List<FieldDescriptorProto> |
getExtensionOrBuilder(int index)
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FieldDescriptorProtoOrBuilder |
getExtensionOrBuilderList()
public List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<Builder> |
getMessageTypeCount()
public int getMessageTypeCount()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
Returns | |
---|---|
Type | Description |
int |
getMessageTypeList()
public List<DescriptorProtos.DescriptorProto> getMessageTypeList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.DescriptorProtoOrBuilder |
getMessageTypeOrBuilderList()
public List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> |
getName()
public String getName()
file name, relative to root of source tree
optional string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
getOptions()
public DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileOptions | The options. |
getOptionsBuilder()
public DescriptorProtos.FileOptions.Builder getOptionsBuilder()
optional .google.protobuf.FileOptions options = 8;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileOptions.Builder |
getOptionsOrBuilder()
public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.FileOptions options = 8;
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileOptionsOrBuilder |
getPackage()
public String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns | |
---|---|
Type | Description |
String | The package. |
getPackageBytes()
public ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<Integer> | A list containing the publicDependency. |
getService(int index)
public DescriptorProtos.ServiceDescriptorProto getService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.ServiceDescriptorProto |
getServiceBuilder(int index)
public DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.ServiceDescriptorProto.Builder |
getServiceBuilderList()
public List<DescriptorProtos.ServiceDescriptorProto.Builder> getServiceBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
List<Builder> |
getServiceCount()
public int getServiceCount()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
int |
getServiceList()
public List<DescriptorProtos.ServiceDescriptorProto> getServiceList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
List<ServiceDescriptorProto> |
getServiceOrBuilder(int index)
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.ServiceDescriptorProtoOrBuilder |
getServiceOrBuilderList()
public List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
DescriptorProtos.SourceCodeInfoOrBuilder |
getSyntax()
public String getSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
List<Integer> | A list containing the weakDependency. |
hasName()
public boolean hasName()
file name, relative to root of source tree
optional string name = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the name field is set. |
hasOptions()
public boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;
Returns | |
---|---|
Type | Description |
boolean | Whether the options field is set. |
hasPackage()
public boolean hasPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
GeneratedMessageV3.FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false otherwise.
Returns | |
---|---|
Type | Description |
boolean |
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 | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(DescriptorProtos.FileDescriptorProto other)
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other)
Parameter | |
---|---|
Name | Description |
other | DescriptorProtos.FileDescriptorProto |
Returns | |
---|---|
Type | Description |
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
, thenother
'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 | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
mergeOptions(DescriptorProtos.FileOptions value)
public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value)
optional .google.protobuf.FileOptions options = 8;
Parameter | |
---|---|
Name | Description |
value | DescriptorProtos.FileOptions |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | DescriptorProtos.SourceCodeInfo |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
removeEnumType(int index)
public DescriptorProtos.FileDescriptorProto.Builder removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
removeExtension(int index)
public DescriptorProtos.FileDescriptorProto.Builder removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
removeService(int index)
public DescriptorProtos.FileDescriptorProto.Builder removeService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The dependency to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.EnumDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.EnumDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.FieldDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.FieldDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.FileDescriptorProto.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | Descriptors.FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
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 | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.DescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.DescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | DescriptorProtos.FileOptions |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
setOptions(DescriptorProtos.FileOptions.Builder builderForValue)
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue)
optional .google.protobuf.FileOptions options = 8;
Parameter | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.FileOptions.Builder |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
setPackage(String value)
public DescriptorProtos.FileDescriptorProto.Builder setPackage(String value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;
Parameter | |
---|---|
Name | Description |
value | String The package to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for package to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | int The publicDependency to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | Descriptors.FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
setService(int index, DescriptorProtos.ServiceDescriptorProto value)
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
Parameters | |
---|---|
Name | Description |
index | int |
value | DescriptorProtos.ServiceDescriptorProto |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int |
builderForValue | DescriptorProtos.ServiceDescriptorProto.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | DescriptorProtos.SourceCodeInfo |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue | DescriptorProtos.SourceCodeInfo.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The syntax to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for syntax to set. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.FileDescriptorProto.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder |
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 | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | int The weakDependency to set. |
Returns | |
---|---|
Type | Description |
DescriptorProtos.FileDescriptorProto.Builder | This builder for chaining. |