Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
com.google.protobuf.DescriptorProtos.FileDescriptorProto.Builder
- All Implemented Interfaces:
DescriptorProtos.FileDescriptorProtoOrBuilder
,Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.FileDescriptorProto
public static final class DescriptorProtos.FileDescriptorProto.Builder
extends GeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
implements DescriptorProtos.FileDescriptorProtoOrBuilder
Describes a complete .proto file.Protobuf type
google.protobuf.FileDescriptorProto
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private LazyStringArrayList
private int
private List
<DescriptorProtos.EnumDescriptorProto> private RepeatedFieldBuilder
<DescriptorProtos.EnumDescriptorProto, DescriptorProtos.EnumDescriptorProto.Builder, DescriptorProtos.EnumDescriptorProtoOrBuilder> private RepeatedFieldBuilder
<DescriptorProtos.FieldDescriptorProto, DescriptorProtos.FieldDescriptorProto.Builder, DescriptorProtos.FieldDescriptorProtoOrBuilder> private List
<DescriptorProtos.DescriptorProto> private RepeatedFieldBuilder
<DescriptorProtos.DescriptorProto, DescriptorProtos.DescriptorProto.Builder, DescriptorProtos.DescriptorProtoOrBuilder> private Object
private DescriptorProtos.FileOptions
private SingleFieldBuilder
<DescriptorProtos.FileOptions, DescriptorProtos.FileOptions.Builder, DescriptorProtos.FileOptionsOrBuilder> private Object
private Internal.IntList
private RepeatedFieldBuilder
<DescriptorProtos.ServiceDescriptorProto, DescriptorProtos.ServiceDescriptorProto.Builder, DescriptorProtos.ServiceDescriptorProtoOrBuilder> private DescriptorProtos.SourceCodeInfo
private SingleFieldBuilder
<DescriptorProtos.SourceCodeInfo, DescriptorProtos.SourceCodeInfo.Builder, DescriptorProtos.SourceCodeInfoOrBuilder> private Object
private Internal.IntList
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Builder()
private
Builder
(AbstractMessage.BuilderParent parent) -
Method Summary
Modifier and TypeMethodDescriptionaddAllDependency
(Iterable<String> values) Names of files imported by this file.addAllEnumType
(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
addAllExtension
(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7;
addAllMessageType
(Iterable<? extends DescriptorProtos.DescriptorProto> values) All top-level definitions in this file.addAllPublicDependency
(Iterable<? extends Integer> values) Indexes of the public imported files in the dependency list above.addAllService
(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values) repeated .google.protobuf.ServiceDescriptorProto service = 6;
addAllWeakDependency
(Iterable<? extends Integer> values) Indexes of the weak imported files in the dependency list.addDependency
(String value) Names of files imported by this file.addDependencyBytes
(ByteString value) Names of files imported by this file.addEnumType
(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
addEnumType
(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
addEnumType
(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
addEnumTypeBuilder
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
addExtension
(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;
addExtension
(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
addExtension
(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
addExtensionBuilder
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;
addMessageType
(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.addMessageType
(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.All top-level definitions in this file.addMessageType
(DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.All top-level definitions in this file.addMessageTypeBuilder
(int index) All top-level definitions in this file.addPublicDependency
(int value) Indexes of the public imported files in the dependency list above.addService
(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;
addService
(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
addService
(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
addServiceBuilder
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;
addWeakDependency
(int value) Indexes of the weak imported files in the dependency list.build()
Constructs the message based on the state of the Builder.LikeMessageLite.Builder.build()
, but does not throw an exception if the message is missing required fields.private void
private void
clear()
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.Names of files imported by this file.The edition of the proto file.repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
All top-level definitions in this file.file name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8;
e.g.Indexes of the public imported files in the dependency list above.repeated .google.protobuf.ServiceDescriptorProto service = 6;
This field contains optional information about the original source code.The syntax of the proto file.Indexes of the weak imported files in the dependency list.private void
private void
private void
private void
private void
private void
private void
Get an instance of the type with no fields set.getDependency
(int index) Names of files imported by this file.getDependencyBytes
(int index) Names of files imported by this file.int
Names of files imported by this file.Names of files imported by this file.static final Descriptors.Descriptor
Get the message's type's descriptor.The edition of the proto file.getEnumType
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
getEnumTypeBuilder
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
int
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
getEnumTypeOrBuilder
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
getExtension
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;
getExtensionBuilder
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
int
repeated .google.protobuf.FieldDescriptorProto extension = 7;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
getExtensionOrBuilder
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;
repeated .google.protobuf.FieldDescriptorProto extension = 7;
getMessageType
(int index) All top-level definitions in this file.getMessageTypeBuilder
(int index) All top-level definitions in this file.All top-level definitions in this file.int
All top-level definitions in this file.All top-level definitions in this file.getMessageTypeOrBuilder
(int index) All top-level definitions in this file.List
<? extends DescriptorProtos.DescriptorProtoOrBuilder> All top-level definitions in this file.getName()
file name, relative to root of source treefile name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8;
optional .google.protobuf.FileOptions options = 8;
optional .google.protobuf.FileOptions options = 8;
e.g.e.g.int
getPublicDependency
(int index) Indexes of the public imported files in the dependency list above.int
Indexes of the public imported files in the dependency list above.Indexes of the public imported files in the dependency list above.getService
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;
getServiceBuilder
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
int
repeated .google.protobuf.ServiceDescriptorProto service = 6;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
getServiceOrBuilder
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;
repeated .google.protobuf.ServiceDescriptorProto service = 6;
This field contains optional information about the original source code.This field contains optional information about the original source code.This field contains optional information about the original source code.The syntax of the proto file.The syntax of the proto file.int
getWeakDependency
(int index) Indexes of the weak imported files in the dependency list.int
Indexes of the weak imported files in the dependency list.Indexes of the weak imported files in the dependency list.boolean
The edition of the proto file.boolean
hasName()
file name, relative to root of source treeboolean
optional .google.protobuf.FileOptions options = 8;
boolean
e.g.boolean
This field contains optional information about the original source code.boolean
The syntax of the proto file.private RepeatedFieldBuilder
<DescriptorProtos.EnumDescriptorProto, DescriptorProtos.EnumDescriptorProto.Builder, DescriptorProtos.EnumDescriptorProtoOrBuilder> private RepeatedFieldBuilder
<DescriptorProtos.FieldDescriptorProto, DescriptorProtos.FieldDescriptorProto.Builder, DescriptorProtos.FieldDescriptorProtoOrBuilder> protected GeneratedMessage.FieldAccessorTable
Get the FieldAccessorTable for this type.private RepeatedFieldBuilder
<DescriptorProtos.DescriptorProto, DescriptorProtos.DescriptorProto.Builder, DescriptorProtos.DescriptorProtoOrBuilder> private SingleFieldBuilder
<DescriptorProtos.FileOptions, DescriptorProtos.FileOptions.Builder, DescriptorProtos.FileOptionsOrBuilder> optional .google.protobuf.FileOptions options = 8;
private RepeatedFieldBuilder
<DescriptorProtos.ServiceDescriptorProto, DescriptorProtos.ServiceDescriptorProto.Builder, DescriptorProtos.ServiceDescriptorProtoOrBuilder> private SingleFieldBuilder
<DescriptorProtos.SourceCodeInfo, DescriptorProtos.SourceCodeInfo.Builder, DescriptorProtos.SourceCodeInfoOrBuilder> This field contains optional information about the original source code.final boolean
Returns true if all required fields in the message and all embedded messages are set, false otherwise.private void
mergeFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) LikeMessageLite.Builder.mergeFrom(CodedInputStream)
, but also parses extensions.Mergeother
into the message being built.optional .google.protobuf.FileOptions options = 8;
This field contains optional information about the original source code.removeEnumType
(int index) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
removeExtension
(int index) repeated .google.protobuf.FieldDescriptorProto extension = 7;
removeMessageType
(int index) All top-level definitions in this file.removeService
(int index) repeated .google.protobuf.ServiceDescriptorProto service = 6;
setDependency
(int index, String value) Names of files imported by this file.The edition of the proto file.setEnumType
(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
setEnumType
(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
setExtension
(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;
setExtension
(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
setMessageType
(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.setMessageType
(int index, DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.file name, relative to root of source treesetNameBytes
(ByteString value) file name, relative to root of source treeoptional .google.protobuf.FileOptions options = 8;
setOptions
(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8;
setPackage
(String value) e.g.setPackageBytes
(ByteString value) e.g.setPublicDependency
(int index, int value) Indexes of the public imported files in the dependency list above.setService
(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;
setService
(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
This field contains optional information about the original source code.setSourceCodeInfo
(DescriptorProtos.SourceCodeInfo.Builder builderForValue) This field contains optional information about the original source code.The syntax of the proto file.setSyntaxBytes
(ByteString value) The syntax of the proto file.setWeakDependency
(int index, int value) Indexes of the weak imported files in the dependency list.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, dispose, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
name_
-
package_
-
dependency_
-
publicDependency_
-
weakDependency_
-
messageType_
-
messageTypeBuilder_
-
enumType_
-
enumTypeBuilder_
-
service_
-
serviceBuilder_
-
extension_
-
extensionBuilder_
-
options_
-
optionsBuilder_
-
sourceCodeInfo_
-
sourceCodeInfoBuilder_
private SingleFieldBuilder<DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Builder, sourceCodeInfoBuilder_DescriptorProtos.SourceCodeInfoOrBuilder> -
syntax_
-
edition_
private int edition_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
-
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
Description copied from class:GeneratedMessage.Builder
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.- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
Description copied from class:GeneratedMessage.Builder
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
getDescriptorForType
Description copied from interface:Message.Builder
Get the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType()
.- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
getDefaultInstanceForType
Description copied from interface:MessageLiteOrBuilder
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 thegetDefaultInstance()
method of generated message classes in that this method is an abstract method of theMessageLite
interface whereasgetDefaultInstance()
is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
Description copied from interface:MessageLite.Builder
Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
Description copied from interface:MessageLite.Builder
LikeMessageLite.Builder.build()
, but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
Description copied from interface:Message.Builder
Mergeother
into the message being built.other
must have the exact same type asthis
(i.e.getDescriptorForType() == other.getDescriptorForType()
).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother
, thenother
's value overwrites the value in this message.
* For singular message fields, if the field is set inother
, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inother
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++.- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other) -
isInitialized
public final boolean isInitialized()Description copied from interface:MessageLiteOrBuilder
Returns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Description copied from interface:MessageLite.Builder
LikeMessageLite.Builder.mergeFrom(CodedInputStream)
, but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry
. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
- Throws:
IOException
- an I/O error reading from the stream
-
hasName
public boolean hasName()file name, relative to root of source tree
optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
file name, relative to root of source tree
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
file name, relative to root of source tree
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
file name, relative to root of source tree
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
file name, relative to root of source tree
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasPackage
public boolean hasPackage()e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
hasPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the package field is set.
-
getPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackage
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The package.
-
getPackageBytes
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Specified by:
getPackageBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for package.
-
setPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Parameters:
value
- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Returns:
- This builder for chaining.
-
setPackageBytes
e.g. "foo", "foo.bar", etc.
optional string package = 2;
- Parameters:
value
- The bytes for package to set.- Returns:
- This builder for chaining.
-
ensureDependencyIsMutable
private void ensureDependencyIsMutable() -
getDependencyList
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the dependency.
-
getDependencyCount
public int getDependencyCount()Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of dependency.
-
getDependency
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dependency at the given index.
-
getDependencyBytes
Names of files imported by this file.
repeated string dependency = 3;
- Specified by:
getDependencyBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the dependency at the given index.
-
setDependency
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
index
- The index to set the value at.value
- The dependency to set.- Returns:
- This builder for chaining.
-
addDependency
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
value
- The dependency to add.- Returns:
- This builder for chaining.
-
addAllDependency
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
values
- The dependency to add.- Returns:
- This builder for chaining.
-
clearDependency
Names of files imported by this file.
repeated string dependency = 3;
- Returns:
- This builder for chaining.
-
addDependencyBytes
Names of files imported by this file.
repeated string dependency = 3;
- Parameters:
value
- The bytes of the dependency to add.- Returns:
- This builder for chaining.
-
ensurePublicDependencyIsMutable
private void ensurePublicDependencyIsMutable() -
getPublicDependencyList
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the publicDependency.
-
getPublicDependencyCount
public int getPublicDependencyCount()Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of publicDependency.
-
getPublicDependency
public int getPublicDependency(int index) Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Specified by:
getPublicDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The publicDependency at the given index.
-
setPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Parameters:
index
- The index to set the value at.value
- The publicDependency to set.- Returns:
- This builder for chaining.
-
addPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Parameters:
value
- The publicDependency to add.- Returns:
- This builder for chaining.
-
addAllPublicDependency
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;
- Parameters:
values
- The publicDependency to add.- Returns:
- This builder for chaining.
-
clearPublicDependency
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;
- Returns:
- This builder for chaining.
-
ensureWeakDependencyIsMutable
private void ensureWeakDependencyIsMutable() -
getWeakDependencyList
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Specified by:
getWeakDependencyList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- A list containing the weakDependency.
-
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;
- Specified by:
getWeakDependencyCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The count of weakDependency.
-
getWeakDependency
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;
- Specified by:
getWeakDependency
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The weakDependency at the given index.
-
setWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Parameters:
index
- The index to set the value at.value
- The weakDependency to set.- Returns:
- This builder for chaining.
-
addWeakDependency
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;
- Parameters:
value
- The weakDependency to add.- Returns:
- This builder for chaining.
-
addAllWeakDependency
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;
- Parameters:
values
- The weakDependency to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
ensureMessageTypeIsMutable
private void ensureMessageTypeIsMutable() -
getMessageTypeList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setMessageType
public DescriptorProtos.FileDescriptorProto.Builder setMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
setMessageType
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;
-
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(int index, DescriptorProtos.DescriptorProto value) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageType
public DescriptorProtos.FileDescriptorProto.Builder addMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageType
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;
-
addAllMessageType
public DescriptorProtos.FileDescriptorProto.Builder addAllMessageType(Iterable<? extends DescriptorProtos.DescriptorProto> values) All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
clearMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
removeMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeOrBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
- Specified by:
getMessageTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageTypeBuilder
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeBuilderList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
internalGetMessageTypeFieldBuilder
private RepeatedFieldBuilder<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder, internalGetMessageTypeFieldBuilder()DescriptorProtos.DescriptorProtoOrBuilder> -
ensureEnumTypeIsMutable
private void ensureEnumTypeIsMutable() -
getEnumTypeList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumType
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
setEnumType
public DescriptorProtos.FileDescriptorProto.Builder setEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto value) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumType
public DescriptorProtos.FileDescriptorProto.Builder addEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addAllEnumType
public DescriptorProtos.FileDescriptorProto.Builder addAllEnumType(Iterable<? extends DescriptorProtos.EnumDescriptorProto> values) repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
clearEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
removeEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeOrBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
- Specified by:
getEnumTypeOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumTypeBuilder
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
internalGetEnumTypeFieldBuilder
private RepeatedFieldBuilder<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder, internalGetEnumTypeFieldBuilder()DescriptorProtos.EnumDescriptorProtoOrBuilder> -
ensureServiceIsMutable
private void ensureServiceIsMutable() -
getServiceList
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getService
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
setService
public DescriptorProtos.FileDescriptorProto.Builder setService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto value) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addService
public DescriptorProtos.FileDescriptorProto.Builder addService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addAllService
public DescriptorProtos.FileDescriptorProto.Builder addAllService(Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values) repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
clearService
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
removeService
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceOrBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6;
- Specified by:
getServiceOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
internalGetServiceFieldBuilder
private RepeatedFieldBuilder<DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.ServiceDescriptorProto.Builder, internalGetServiceFieldBuilder()DescriptorProtos.ServiceDescriptorProtoOrBuilder> -
ensureExtensionIsMutable
private void ensureExtensionIsMutable() -
getExtensionList
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionCount
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtension
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
setExtension
public DescriptorProtos.FileDescriptorProto.Builder setExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto value) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtension
public DescriptorProtos.FileDescriptorProto.Builder addExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addAllExtension
public DescriptorProtos.FileDescriptorProto.Builder addAllExtension(Iterable<? extends DescriptorProtos.FieldDescriptorProto> values) repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
clearExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
removeExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionOrBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7;
- Specified by:
getExtensionOrBuilderList
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
internalGetExtensionFieldBuilder
private RepeatedFieldBuilder<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder, internalGetExtensionFieldBuilder()DescriptorProtos.FieldDescriptorProtoOrBuilder> -
hasOptions
public boolean hasOptions()optional .google.protobuf.FileOptions options = 8;
- Specified by:
hasOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.FileOptions options = 8;
- Specified by:
getOptions
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The options.
-
setOptions
optional .google.protobuf.FileOptions options = 8;
-
setOptions
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions.Builder builderForValue) optional .google.protobuf.FileOptions options = 8;
-
mergeOptions
public DescriptorProtos.FileDescriptorProto.Builder mergeOptions(DescriptorProtos.FileOptions value) optional .google.protobuf.FileOptions options = 8;
-
clearOptions
optional .google.protobuf.FileOptions options = 8;
-
getOptionsBuilder
optional .google.protobuf.FileOptions options = 8;
-
getOptionsOrBuilder
optional .google.protobuf.FileOptions options = 8;
- Specified by:
getOptionsOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
internalGetOptionsFieldBuilder
private SingleFieldBuilder<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder, internalGetOptionsFieldBuilder()DescriptorProtos.FileOptionsOrBuilder> optional .google.protobuf.FileOptions options = 8;
-
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;
- Specified by:
hasSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the sourceCodeInfo field is set.
-
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;
- Specified by:
getSourceCodeInfo
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The sourceCodeInfo.
-
setSourceCodeInfo
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;
-
setSourceCodeInfo
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;
-
mergeSourceCodeInfo
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;
-
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;
-
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;
-
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;
- Specified by:
getSourceCodeInfoOrBuilder
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
internalGetSourceCodeInfoFieldBuilder
private SingleFieldBuilder<DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Builder, internalGetSourceCodeInfoFieldBuilder()DescriptorProtos.SourceCodeInfoOrBuilder> This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
-
hasSyntax
public boolean hasSyntax()The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Specified by:
hasSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the syntax field is set.
-
getSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Specified by:
getSyntax
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The syntax.
-
getSyntaxBytes
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Specified by:
getSyntaxBytes
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The bytes for syntax.
-
setSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Parameters:
value
- The syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Returns:
- This builder for chaining.
-
setSyntaxBytes
The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If `edition` is present, this value must be "editions". WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional string syntax = 12;
- Parameters:
value
- The bytes for syntax to set.- Returns:
- This builder for chaining.
-
hasEdition
public boolean hasEdition()The edition of the proto file. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.Edition edition = 14;
- Specified by:
hasEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- Whether the edition field is set.
-
getEdition
The edition of the proto file. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.Edition edition = 14;
- Specified by:
getEdition
in interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
- Returns:
- The edition.
-
setEdition
The edition of the proto file. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.Edition edition = 14;
- Parameters:
value
- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
The edition of the proto file. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.Edition edition = 14;
- Returns:
- This builder for chaining.
-