Package com.google.protobuf
Class DescriptorProtos.FileDescriptorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typegoogle.protobuf.FileDescriptorProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.FileDescriptorProto.BuilderaddAllDependency(java.lang.Iterable<java.lang.String> values)Names of files imported by this file.DescriptorProtos.FileDescriptorProto.BuilderaddAllEnumType(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderaddAllExtension(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderaddAllMessageType(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderaddAllPublicDependency(java.lang.Iterable<? extends java.lang.Integer> values)Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.BuilderaddAllService(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderaddAllWeakDependency(java.lang.Iterable<? extends java.lang.Integer> values)Indexes of the weak imported files in the dependency list.DescriptorProtos.FileDescriptorProto.BuilderaddDependency(java.lang.String value)Names of files imported by this file.DescriptorProtos.FileDescriptorProto.BuilderaddDependencyBytes(ByteString value)Names of files imported by this file.DescriptorProtos.FileDescriptorProto.BuilderaddEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderaddEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderaddEnumType(DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderaddEnumType(DescriptorProtos.EnumDescriptorProto.Builder builderForValue)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.EnumDescriptorProto.BuilderaddEnumTypeBuilder()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.EnumDescriptorProto.BuilderaddEnumTypeBuilder(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderaddExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderaddExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderaddExtension(DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderaddExtension(DescriptorProtos.FieldDescriptorProto.Builder builderForValue)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FieldDescriptorProto.BuilderaddExtensionBuilder()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FieldDescriptorProto.BuilderaddExtensionBuilder(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderaddMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderaddMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderaddMessageType(DescriptorProtos.DescriptorProto value)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderaddMessageType(DescriptorProtos.DescriptorProto.Builder builderForValue)All top-level definitions in this file.DescriptorProtos.DescriptorProto.BuilderaddMessageTypeBuilder()All top-level definitions in this file.DescriptorProtos.DescriptorProto.BuilderaddMessageTypeBuilder(int index)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderaddPublicDependency(int value)Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.DescriptorProtos.FileDescriptorProto.BuilderaddService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderaddService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderaddService(DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderaddService(DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.ServiceDescriptorProto.BuilderaddServiceBuilder()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.ServiceDescriptorProto.BuilderaddServiceBuilder(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderaddWeakDependency(int value)Indexes of the weak imported files in the dependency list.DescriptorProtos.FileDescriptorProtobuild()Constructs the message based on the state of the Builder.DescriptorProtos.FileDescriptorProtobuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.DescriptorProtos.FileDescriptorProto.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.DescriptorProtos.FileDescriptorProto.BuilderclearDependency()Names of files imported by this file.DescriptorProtos.FileDescriptorProto.BuilderclearEnumType()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderclearExtension()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.DescriptorProtos.FileDescriptorProto.BuilderclearMessageType()All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderclearName()file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.DescriptorProtos.FileDescriptorProto.BuilderclearOptions()optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileDescriptorProto.BuilderclearPackage()e.g.DescriptorProtos.FileDescriptorProto.BuilderclearPublicDependency()Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.BuilderclearService()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuilderclearSourceCodeInfo()This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.BuilderclearSyntax()The syntax of the proto file.DescriptorProtos.FileDescriptorProto.BuilderclearWeakDependency()Indexes of the weak imported files in the dependency list.DescriptorProtos.FileDescriptorProto.Builderclone()Clones the Builder.DescriptorProtos.FileDescriptorProtogetDefaultInstanceForType()Get an instance of the type with no fields set.java.lang.StringgetDependency(int index)Names of files imported by this file.ByteStringgetDependencyBytes(int index)Names of files imported by this file.intgetDependencyCount()Names of files imported by this file.ProtocolStringListgetDependencyList()Names of files imported by this file.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.DescriptorProtos.EnumDescriptorProtogetEnumType(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.EnumDescriptorProto.BuildergetEnumTypeBuilder(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;java.util.List<DescriptorProtos.EnumDescriptorProto.Builder>getEnumTypeBuilderList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;intgetEnumTypeCount()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;java.util.List<DescriptorProtos.EnumDescriptorProto>getEnumTypeList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.EnumDescriptorProtoOrBuildergetEnumTypeOrBuilder(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder>getEnumTypeOrBuilderList()repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FieldDescriptorProtogetExtension(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FieldDescriptorProto.BuildergetExtensionBuilder(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;java.util.List<DescriptorProtos.FieldDescriptorProto.Builder>getExtensionBuilderList()repeated .google.protobuf.FieldDescriptorProto extension = 7;intgetExtensionCount()repeated .google.protobuf.FieldDescriptorProto extension = 7;java.util.List<DescriptorProtos.FieldDescriptorProto>getExtensionList()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FieldDescriptorProtoOrBuildergetExtensionOrBuilder(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder>getExtensionOrBuilderList()repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.DescriptorProtogetMessageType(int index)All top-level definitions in this file.DescriptorProtos.DescriptorProto.BuildergetMessageTypeBuilder(int index)All top-level definitions in this file.java.util.List<DescriptorProtos.DescriptorProto.Builder>getMessageTypeBuilderList()All top-level definitions in this file.intgetMessageTypeCount()All top-level definitions in this file.java.util.List<DescriptorProtos.DescriptorProto>getMessageTypeList()All top-level definitions in this file.DescriptorProtos.DescriptorProtoOrBuildergetMessageTypeOrBuilder(int index)All top-level definitions in this file.java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder>getMessageTypeOrBuilderList()All top-level definitions in this file.java.lang.StringgetName()file name, relative to root of source treeByteStringgetNameBytes()file name, relative to root of source treeDescriptorProtos.FileOptionsgetOptions()optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileOptions.BuildergetOptionsBuilder()optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileOptionsOrBuildergetOptionsOrBuilder()optional .google.protobuf.FileOptions options = 8;java.lang.StringgetPackage()e.g.ByteStringgetPackageBytes()e.g.intgetPublicDependency(int index)Indexes of the public imported files in the dependency list above.intgetPublicDependencyCount()Indexes of the public imported files in the dependency list above.java.util.List<java.lang.Integer>getPublicDependencyList()Indexes of the public imported files in the dependency list above.DescriptorProtos.ServiceDescriptorProtogetService(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.ServiceDescriptorProto.BuildergetServiceBuilder(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;java.util.List<DescriptorProtos.ServiceDescriptorProto.Builder>getServiceBuilderList()repeated .google.protobuf.ServiceDescriptorProto service = 6;intgetServiceCount()repeated .google.protobuf.ServiceDescriptorProto service = 6;java.util.List<DescriptorProtos.ServiceDescriptorProto>getServiceList()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.ServiceDescriptorProtoOrBuildergetServiceOrBuilder(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;java.util.List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder>getServiceOrBuilderList()repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.SourceCodeInfogetSourceCodeInfo()This field contains optional information about the original source code.DescriptorProtos.SourceCodeInfo.BuildergetSourceCodeInfoBuilder()This field contains optional information about the original source code.DescriptorProtos.SourceCodeInfoOrBuildergetSourceCodeInfoOrBuilder()This field contains optional information about the original source code.java.lang.StringgetSyntax()The syntax of the proto file.ByteStringgetSyntaxBytes()The syntax of the proto file.intgetWeakDependency(int index)Indexes of the weak imported files in the dependency list.intgetWeakDependencyCount()Indexes of the weak imported files in the dependency list.java.util.List<java.lang.Integer>getWeakDependencyList()Indexes of the weak imported files in the dependency list.booleanhasName()file name, relative to root of source treebooleanhasOptions()optional .google.protobuf.FileOptions options = 8;booleanhasPackage()e.g.booleanhasSourceCodeInfo()This field contains optional information about the original source code.booleanhasSyntax()The syntax of the proto file.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.DescriptorProtos.FileDescriptorProto.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.DescriptorProtos.FileDescriptorProto.BuildermergeFrom(DescriptorProtos.FileDescriptorProto other)DescriptorProtos.FileDescriptorProto.BuildermergeFrom(Message other)Mergeotherinto the message being built.DescriptorProtos.FileDescriptorProto.BuildermergeOptions(DescriptorProtos.FileOptions value)optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileDescriptorProto.BuildermergeSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.DescriptorProtos.FileDescriptorProto.BuilderremoveEnumType(int index)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuilderremoveExtension(int index)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuilderremoveMessageType(int index)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuilderremoveService(int index)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuildersetDependency(int index, java.lang.String value)Names of files imported by this file.DescriptorProtos.FileDescriptorProto.BuildersetEnumType(int index, DescriptorProtos.EnumDescriptorProto value)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuildersetEnumType(int index, DescriptorProtos.EnumDescriptorProto.Builder builderForValue)repeated .google.protobuf.EnumDescriptorProto enum_type = 5;DescriptorProtos.FileDescriptorProto.BuildersetExtension(int index, DescriptorProtos.FieldDescriptorProto value)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuildersetExtension(int index, DescriptorProtos.FieldDescriptorProto.Builder builderForValue)repeated .google.protobuf.FieldDescriptorProto extension = 7;DescriptorProtos.FileDescriptorProto.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.DescriptorProtos.FileDescriptorProto.BuildersetMessageType(int index, DescriptorProtos.DescriptorProto value)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuildersetMessageType(int index, DescriptorProtos.DescriptorProto.Builder builderForValue)All top-level definitions in this file.DescriptorProtos.FileDescriptorProto.BuildersetName(java.lang.String value)file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.BuildersetNameBytes(ByteString value)file name, relative to root of source treeDescriptorProtos.FileDescriptorProto.BuildersetOptions(DescriptorProtos.FileOptions value)optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileDescriptorProto.BuildersetOptions(DescriptorProtos.FileOptions.Builder builderForValue)optional .google.protobuf.FileOptions options = 8;DescriptorProtos.FileDescriptorProto.BuildersetPackage(java.lang.String value)e.g.DescriptorProtos.FileDescriptorProto.BuildersetPackageBytes(ByteString value)e.g.DescriptorProtos.FileDescriptorProto.BuildersetPublicDependency(int index, int value)Indexes of the public imported files in the dependency list above.DescriptorProtos.FileDescriptorProto.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.DescriptorProtos.FileDescriptorProto.BuildersetService(int index, DescriptorProtos.ServiceDescriptorProto value)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuildersetService(int index, DescriptorProtos.ServiceDescriptorProto.Builder builderForValue)repeated .google.protobuf.ServiceDescriptorProto service = 6;DescriptorProtos.FileDescriptorProto.BuildersetSourceCodeInfo(DescriptorProtos.SourceCodeInfo value)This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.BuildersetSourceCodeInfo(DescriptorProtos.SourceCodeInfo.Builder builderForValue)This field contains optional information about the original source code.DescriptorProtos.FileDescriptorProto.BuildersetSyntax(java.lang.String value)The syntax of the proto file.DescriptorProtos.FileDescriptorProto.BuildersetSyntaxBytes(ByteString value)The syntax of the proto file.DescriptorProtos.FileDescriptorProto.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.DescriptorProtos.FileDescriptorProto.BuildersetWeakDependency(int index, int value)Indexes of the weak imported files in the dependency list.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, 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.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable 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>
-
clear
public DescriptorProtos.FileDescriptorProto.Builder 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
public Descriptors.Descriptor 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
public DescriptorProtos.FileDescriptorProto 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
public DescriptorProtos.FileDescriptorProto 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
public DescriptorProtos.FileDescriptorProto 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
-
clone
public DescriptorProtos.FileDescriptorProto.Builder 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:
Object.clone()
-
setField
public DescriptorProtos.FileDescriptorProto.Builder setField(Descriptors.FieldDescriptor field, java.lang.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, i.e. the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)would return.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
clearField
public DescriptorProtos.FileDescriptorProto.Builder clearField(Descriptors.FieldDescriptor field)
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
public DescriptorProtos.FileDescriptorProto.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): 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, java.lang.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, i.e. the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)would return.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<DescriptorProtos.FileDescriptorProto.Builder>
-
addRepeatedField
public DescriptorProtos.FileDescriptorProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.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
public DescriptorProtos.FileDescriptorProto.Builder mergeFrom(Message other)
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 java.io.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:
java.io.IOException
-
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
public java.lang.String getName()
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNamein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
file name, relative to root of source tree
optional string name = 1;- Specified by:
getNameBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.FileDescriptorProto.Builder setName(java.lang.String value)
file name, relative to root of source tree
optional string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.FileDescriptorProto.Builder clearName()
file name, relative to root of source tree
optional string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.FileDescriptorProto.Builder setNameBytes(ByteString value)
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
public java.lang.String getPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackagein interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The package.
-
getPackageBytes
public ByteString getPackageBytes()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Specified by:
getPackageBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for package.
-
setPackage
public DescriptorProtos.FileDescriptorProto.Builder setPackage(java.lang.String value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The package to set.- Returns:
- This builder for chaining.
-
clearPackage
public DescriptorProtos.FileDescriptorProto.Builder clearPackage()
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Returns:
- This builder for chaining.
-
setPackageBytes
public DescriptorProtos.FileDescriptorProto.Builder setPackageBytes(ByteString value)
e.g. "foo", "foo.bar", etc.
optional string package = 2;- Parameters:
value- The bytes for package to set.- Returns:
- This builder for chaining.
-
getDependencyList
public ProtocolStringList 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
public java.lang.String getDependency(int index)
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
public ByteString getDependencyBytes(int index)
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
public DescriptorProtos.FileDescriptorProto.Builder setDependency(int index, java.lang.String value)
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
public DescriptorProtos.FileDescriptorProto.Builder addDependency(java.lang.String value)
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
value- The dependency to add.- Returns:
- This builder for chaining.
-
addAllDependency
public DescriptorProtos.FileDescriptorProto.Builder addAllDependency(java.lang.Iterable<java.lang.String> values)
Names of files imported by this file.
repeated string dependency = 3;- Parameters:
values- The dependency to add.- Returns:
- This builder for chaining.
-
clearDependency
public DescriptorProtos.FileDescriptorProto.Builder clearDependency()
Names of files imported by this file.
repeated string dependency = 3;- Returns:
- This builder for chaining.
-
addDependencyBytes
public DescriptorProtos.FileDescriptorProto.Builder addDependencyBytes(ByteString value)
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.
-
getPublicDependencyList
public java.util.List<java.lang.Integer> 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
public DescriptorProtos.FileDescriptorProto.Builder setPublicDependency(int index, int value)
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Parameters:
index- The index to set the value at.value- The publicDependency to set.- Returns:
- This builder for chaining.
-
addPublicDependency
public DescriptorProtos.FileDescriptorProto.Builder addPublicDependency(int value)
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(java.lang.Iterable<? extends java.lang.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
public DescriptorProtos.FileDescriptorProto.Builder clearPublicDependency()
Indexes of the public imported files in the dependency list above.
repeated int32 public_dependency = 10;- Returns:
- This builder for chaining.
-
getWeakDependencyList
public java.util.List<java.lang.Integer> getWeakDependencyList()
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- 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
public DescriptorProtos.FileDescriptorProto.Builder setWeakDependency(int index, int value)
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
index- The index to set the value at.value- The weakDependency to set.- Returns:
- This builder for chaining.
-
addWeakDependency
public DescriptorProtos.FileDescriptorProto.Builder addWeakDependency(int value)
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Parameters:
value- The weakDependency to add.- Returns:
- This builder for chaining.
-
addAllWeakDependency
public DescriptorProtos.FileDescriptorProto.Builder addAllWeakDependency(java.lang.Iterable<? extends java.lang.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
public DescriptorProtos.FileDescriptorProto.Builder clearWeakDependency()
Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.
repeated int32 weak_dependency = 11;- Returns:
- This builder for chaining.
-
getMessageTypeList
public java.util.List<DescriptorProtos.DescriptorProto> 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
public DescriptorProtos.DescriptorProto getMessageType(int index)
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(java.lang.Iterable<? extends DescriptorProtos.DescriptorProto> values)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
clearMessageType
public DescriptorProtos.FileDescriptorProto.Builder clearMessageType()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
removeMessageType
public DescriptorProtos.FileDescriptorProto.Builder removeMessageType(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeBuilder
public DescriptorProtos.DescriptorProto.Builder getMessageTypeBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeOrBuilder
public DescriptorProtos.DescriptorProtoOrBuilder getMessageTypeOrBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getMessageTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.DescriptorProtoOrBuilder> getMessageTypeOrBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;- Specified by:
getMessageTypeOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addMessageTypeBuilder
public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
addMessageTypeBuilder
public DescriptorProtos.DescriptorProto.Builder addMessageTypeBuilder(int index)
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getMessageTypeBuilderList
public java.util.List<DescriptorProtos.DescriptorProto.Builder> getMessageTypeBuilderList()
All top-level definitions in this file.
repeated .google.protobuf.DescriptorProto message_type = 4;
-
getEnumTypeList
public java.util.List<DescriptorProtos.EnumDescriptorProto> 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
public DescriptorProtos.EnumDescriptorProto getEnumType(int index)
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(java.lang.Iterable<? extends DescriptorProtos.EnumDescriptorProto> values)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
clearEnumType
public DescriptorProtos.FileDescriptorProto.Builder clearEnumType()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
removeEnumType
public DescriptorProtos.FileDescriptorProto.Builder removeEnumType(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeBuilder
public DescriptorProtos.EnumDescriptorProto.Builder getEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeOrBuilder
public DescriptorProtos.EnumDescriptorProtoOrBuilder getEnumTypeOrBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getEnumTypeOrBuilderList
public java.util.List<? extends DescriptorProtos.EnumDescriptorProtoOrBuilder> getEnumTypeOrBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;- Specified by:
getEnumTypeOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addEnumTypeBuilder
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
addEnumTypeBuilder
public DescriptorProtos.EnumDescriptorProto.Builder addEnumTypeBuilder(int index)
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getEnumTypeBuilderList
public java.util.List<DescriptorProtos.EnumDescriptorProto.Builder> getEnumTypeBuilderList()
repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
-
getServiceList
public java.util.List<DescriptorProtos.ServiceDescriptorProto> 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
public DescriptorProtos.ServiceDescriptorProto getService(int index)
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(java.lang.Iterable<? extends DescriptorProtos.ServiceDescriptorProto> values)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
clearService
public DescriptorProtos.FileDescriptorProto.Builder clearService()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
removeService
public DescriptorProtos.FileDescriptorProto.Builder removeService(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceBuilder
public DescriptorProtos.ServiceDescriptorProto.Builder getServiceBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceOrBuilder
public DescriptorProtos.ServiceDescriptorProtoOrBuilder getServiceOrBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getServiceOrBuilderList
public java.util.List<? extends DescriptorProtos.ServiceDescriptorProtoOrBuilder> getServiceOrBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;- Specified by:
getServiceOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addServiceBuilder
public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
addServiceBuilder
public DescriptorProtos.ServiceDescriptorProto.Builder addServiceBuilder(int index)
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getServiceBuilderList
public java.util.List<DescriptorProtos.ServiceDescriptorProto.Builder> getServiceBuilderList()
repeated .google.protobuf.ServiceDescriptorProto service = 6;
-
getExtensionList
public java.util.List<DescriptorProtos.FieldDescriptorProto> 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
public DescriptorProtos.FieldDescriptorProto getExtension(int index)
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(java.lang.Iterable<? extends DescriptorProtos.FieldDescriptorProto> values)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
clearExtension
public DescriptorProtos.FileDescriptorProto.Builder clearExtension()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
removeExtension
public DescriptorProtos.FileDescriptorProto.Builder removeExtension(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionBuilder
public DescriptorProtos.FieldDescriptorProto.Builder getExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionOrBuilder
public DescriptorProtos.FieldDescriptorProtoOrBuilder getExtensionOrBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
getExtensionOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldDescriptorProtoOrBuilder> getExtensionOrBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;- Specified by:
getExtensionOrBuilderListin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
addExtensionBuilder
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
addExtensionBuilder
public DescriptorProtos.FieldDescriptorProto.Builder addExtensionBuilder(int index)
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
getExtensionBuilderList
public java.util.List<DescriptorProtos.FieldDescriptorProto.Builder> getExtensionBuilderList()
repeated .google.protobuf.FieldDescriptorProto extension = 7;
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.FileOptions options = 8;- Specified by:
hasOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.FileOptions getOptions()
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
public DescriptorProtos.FileDescriptorProto.Builder setOptions(DescriptorProtos.FileOptions value)
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
public DescriptorProtos.FileDescriptorProto.Builder clearOptions()
optional .google.protobuf.FileOptions options = 8;
-
getOptionsBuilder
public DescriptorProtos.FileOptions.Builder getOptionsBuilder()
optional .google.protobuf.FileOptions options = 8;
-
getOptionsOrBuilder
public DescriptorProtos.FileOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.FileOptions options = 8;- Specified by:
getOptionsOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
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
public DescriptorProtos.SourceCodeInfo getSourceCodeInfo()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;- 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
public DescriptorProtos.FileDescriptorProto.Builder clearSourceCodeInfo()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
-
getSourceCodeInfoBuilder
public DescriptorProtos.SourceCodeInfo.Builder getSourceCodeInfoBuilder()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;
-
getSourceCodeInfoOrBuilder
public DescriptorProtos.SourceCodeInfoOrBuilder getSourceCodeInfoOrBuilder()
This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.
optional .google.protobuf.SourceCodeInfo source_code_info = 9;- Specified by:
getSourceCodeInfoOrBuilderin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder
-
hasSyntax
public boolean hasSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Specified by:
hasSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- Whether the syntax field is set.
-
getSyntax
public java.lang.String getSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Specified by:
getSyntaxin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The syntax.
-
getSyntaxBytes
public ByteString getSyntaxBytes()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Specified by:
getSyntaxBytesin interfaceDescriptorProtos.FileDescriptorProtoOrBuilder- Returns:
- The bytes for syntax.
-
setSyntax
public DescriptorProtos.FileDescriptorProto.Builder setSyntax(java.lang.String value)
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Parameters:
value- The syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
public DescriptorProtos.FileDescriptorProto.Builder clearSyntax()
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Returns:
- This builder for chaining.
-
setSyntaxBytes
public DescriptorProtos.FileDescriptorProto.Builder setSyntaxBytes(ByteString value)
The syntax of the proto file. The supported values are "proto2" and "proto3".
optional string syntax = 12;- Parameters:
value- The bytes for syntax to set.- 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>
-
-