Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.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 GeneratedMessageV3.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 intprivate LazyStringArrayListprivate intprivate List<DescriptorProtos.EnumDescriptorProto>private RepeatedFieldBuilderV3<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder, DescriptorProtos.EnumDescriptorProtoOrBuilder> private RepeatedFieldBuilderV3<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder, DescriptorProtos.FieldDescriptorProtoOrBuilder> private List<DescriptorProtos.DescriptorProto>private RepeatedFieldBuilderV3<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder, DescriptorProtos.DescriptorProtoOrBuilder> private Objectprivate DescriptorProtos.FileOptionsprivate SingleFieldBuilderV3<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder, DescriptorProtos.FileOptionsOrBuilder> private Objectprivate Internal.IntListprivate RepeatedFieldBuilderV3<DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.ServiceDescriptorProto.Builder, DescriptorProtos.ServiceDescriptorProtoOrBuilder> private DescriptorProtos.SourceCodeInfoprivate SingleFieldBuilderV3<DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Builder, DescriptorProtos.SourceCodeInfoOrBuilder> private Objectprivate Internal.IntList -
Constructor Summary
Constructors -
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.addRepeatedField(Descriptors.FieldDescriptor field, Object value) LikesetRepeatedField, but appends the value as a new element.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 voidprivate voidclear()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;Clears the field.All top-level definitions in this file.file name, relative to root of source treeTODO: Clear it when all subclasses have implemented this method.optional .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.clone()Clones the Builder.private voidprivate voidprivate voidprivate voidprivate voidprivate voidprivate voidGet 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.intNames of files imported by this file.Names of files imported by this file.static final Descriptors.DescriptorGet 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;intrepeated .google.protobuf.EnumDescriptorProto enum_type = 5;private RepeatedFieldBuilderV3<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder, DescriptorProtos.EnumDescriptorProtoOrBuilder> 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;intrepeated .google.protobuf.FieldDescriptorProto extension = 7;private RepeatedFieldBuilderV3<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder, DescriptorProtos.FieldDescriptorProtoOrBuilder> 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.intAll top-level definitions in this file.private RepeatedFieldBuilderV3<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder, DescriptorProtos.DescriptorProtoOrBuilder> 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;private SingleFieldBuilderV3<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder, DescriptorProtos.FileOptionsOrBuilder> optional .google.protobuf.FileOptions options = 8;optional .google.protobuf.FileOptions options = 8;e.g.e.g.intgetPublicDependency(int index) Indexes of the public imported files in the dependency list above.intIndexes 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;intrepeated .google.protobuf.ServiceDescriptorProto service = 6;private RepeatedFieldBuilderV3<DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.ServiceDescriptorProto.Builder, DescriptorProtos.ServiceDescriptorProtoOrBuilder> 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.private SingleFieldBuilderV3<DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Builder, DescriptorProtos.SourceCodeInfoOrBuilder> 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.intgetWeakDependency(int index) Indexes of the weak imported files in the dependency list.intIndexes of the weak imported files in the dependency list.Indexes of the weak imported files in the dependency list.booleanThe edition of the proto file.booleanhasName()file name, relative to root of source treebooleanoptional .google.protobuf.FileOptions options = 8;booleane.g.booleanThis field contains optional information about the original source code.booleanThe syntax of the proto file.protected GeneratedMessageV3.FieldAccessorTableGet the FieldAccessorTable for this type.final booleanReturns true if all required fields in the message and all embedded messages are set, false otherwise.private voidmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.Mergeotherinto the message being built.optional .google.protobuf.FileOptions options = 8;This field contains optional information about the original source code.mergeUnknownFields(UnknownFieldSet unknownFields) Merge some unknown fields into theUnknownFieldSetfor this message.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;setField(Descriptors.FieldDescriptor field, Object value) Sets a field to the given value.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.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) Sets an element of a repeated field to the given value.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.setUnknownFields(UnknownFieldSet unknownFields) Set theUnknownFieldSetfor this message.setWeakDependency(int index, int value) Indexes of the weak imported files in the dependency list.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
dispose, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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 SingleFieldBuilderV3<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:GeneratedMessageV3.BuilderGet 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:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
getDescriptorForType
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
getDefaultInstanceForType
Description copied from interface:MessageLiteOrBuilderGet 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 theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
Description copied from interface:MessageLite.BuilderLikeMessageLite.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:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
clone
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>- See Also:
-
setField
public DescriptorProtos.FileDescriptorProto.Builder setField(Descriptors.FieldDescriptor field, Object value) Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, that is, the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)returns.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clearField
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clearOneof
Description copied from class:AbstractMessage.BuilderTODO: Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
setRepeatedField
public DescriptorProtos.FileDescriptorProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field; that is, the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)returns.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
addRepeatedField
public DescriptorProtos.FileDescriptorProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust 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 inotherare 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::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(DescriptorProtos.FileDescriptorProto other) -
isInitialized
public final boolean isInitialized()Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeFrom
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Description copied from interface:MessageLite.BuilderLikeMessageLite.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:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DescriptorProtos.FileDescriptorProto.Builder>- Throws:
InvalidProtocolBufferException- the bytes read are not syntactically correct according to the protobuf wire format specification. The data is corrupt, incomplete, or was never a protobuf in the first place.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:
hasNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNameBytesin 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:
hasPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the package field is set.
-
getPackage
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The package.
-
getPackageBytes
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackageBytesin 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:
getDependencyListin 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:
getDependencyCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The count of dependency.
-
getDependency
Names of files imported by this file.
repeated string dependency = 3;- Specified by:
getDependencyin 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:
getDependencyBytesin 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:
getPublicDependencyListin 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:
getPublicDependencyCountin 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:
getPublicDependencyin 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:
getWeakDependencyListin 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:
getWeakDependencyCountin 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:
getWeakDependencyin 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:
getMessageTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeCount
public int getMessageTypeCount()All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageType
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypein 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:
getMessageTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeOrBuilderListin 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; -
getMessageTypeFieldBuilder
private RepeatedFieldBuilderV3<DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.Builder, getMessageTypeFieldBuilder()DescriptorProtos.DescriptorProtoOrBuilder> -
ensureEnumTypeIsMutable
private void ensureEnumTypeIsMutable() -
getEnumTypeList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeCount
public int getEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumType
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypein 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:
getEnumTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeOrBuilderListin 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; -
getEnumTypeFieldBuilder
private RepeatedFieldBuilderV3<DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.Builder, getEnumTypeFieldBuilder()DescriptorProtos.EnumDescriptorProtoOrBuilder> -
ensureServiceIsMutable
private void ensureServiceIsMutable() -
getServiceList
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceCount
public int getServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getService
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServicein 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:
getServiceOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
addServiceBuilder
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getServiceBuilderList
repeated .google.protobuf.ServiceDescriptorProto service = 6; -
getServiceFieldBuilder
-
ensureExtensionIsMutable
private void ensureExtensionIsMutable() -
getExtensionList
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionCount
public int getExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionCountin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtension
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionin 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:
getExtensionOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
addExtensionBuilder
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
getExtensionBuilderList
repeated .google.protobuf.FieldDescriptorProto extension = 7; -
getExtensionFieldBuilder
private RepeatedFieldBuilderV3<DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldDescriptorProto.Builder, getExtensionFieldBuilder()DescriptorProtos.FieldDescriptorProtoOrBuilder> -
hasOptions
public boolean hasOptions()optional .google.protobuf.FileOptions options = 8;- Specified by:
hasOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsin 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:
getOptionsOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getOptionsFieldBuilder
private SingleFieldBuilderV3<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder, getOptionsFieldBuilder()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:
hasSourceCodeInfoin 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:
getSourceCodeInfoin 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:
getSourceCodeInfoOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getSourceCodeInfoFieldBuilder
private SingleFieldBuilderV3<DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Builder, getSourceCodeInfoFieldBuilder()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".
optional string syntax = 12;- Specified by:
hasSyntaxin 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".
optional string syntax = 12;- Specified by:
getSyntaxin 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".
optional string syntax = 12;- Specified by:
getSyntaxBytesin 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".
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".
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".
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.
optional .google.protobuf.Edition edition = 14;- Specified by:
hasEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the edition field is set.
-
getEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Specified by:
getEditionin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The edition.
-
setEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Parameters:
value- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
The edition of the proto file.
optional .google.protobuf.Edition edition = 14;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DescriptorProtos.FileDescriptorProto.Builder setUnknownFields(UnknownFieldSet unknownFields) Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
mergeUnknownFields
public final DescriptorProtos.FileDescriptorProto.Builder mergeUnknownFields(UnknownFieldSet unknownFields) Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-