Class DescriptorProtos.FieldOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
- com.google.protobuf.DescriptorProtos.FieldOptions.Builder
-
- All Implemented Interfaces:
DescriptorProtos.FieldOptionsOrBuilder
,GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>
,Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.FieldOptions
public static final class DescriptorProtos.FieldOptions.Builder extends GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder> implements DescriptorProtos.FieldOptionsOrBuilder
Protobuf typegoogle.protobuf.FieldOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.FieldOptions.Builder
addAllEditionDefaults(java.lang.Iterable<? extends DescriptorProtos.FieldOptions.EditionDefault> values)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
addAllTargets(java.lang.Iterable<? extends DescriptorProtos.FieldOptions.OptionTargetType> values)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
DescriptorProtos.FieldOptions.Builder
addAllUninterpretedOption(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption> values)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
addEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
addEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
addEditionDefaults(DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
addEditionDefaults(DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.EditionDefault.Builder
addEditionDefaultsBuilder()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.EditionDefault.Builder
addEditionDefaultsBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
<Type> DescriptorProtos.FieldOptions.Builder
addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,java.util.List<Type>> extension, Type value)
Append a value to a repeated extension.DescriptorProtos.FieldOptions.Builder
addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
LikesetRepeatedField
, but appends the value as a new element.DescriptorProtos.FieldOptions.Builder
addTargets(DescriptorProtos.FieldOptions.OptionTargetType value)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
DescriptorProtos.FieldOptions.Builder
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.UninterpretedOption.Builder
addUninterpretedOptionBuilder()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.UninterpretedOption.Builder
addUninterpretedOptionBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions
build()
Constructs the message based on the state of the Builder.DescriptorProtos.FieldOptions
buildPartial()
LikeMessageLite.Builder.build()
, but does not throw an exception if the message is missing required fields.DescriptorProtos.FieldOptions.Builder
clear()
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.DescriptorProtos.FieldOptions.Builder
clearCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
DescriptorProtos.FieldOptions.Builder
clearDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
DescriptorProtos.FieldOptions.Builder
clearDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
DescriptorProtos.FieldOptions.Builder
clearEditionDefaults()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
<T> DescriptorProtos.FieldOptions.Builder
clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,T> extension)
Clears an extension.DescriptorProtos.FieldOptions.Builder
clearFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FieldOptions.Builder
clearField(Descriptors.FieldDescriptor field)
Clears the field.DescriptorProtos.FieldOptions.Builder
clearJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
DescriptorProtos.FieldOptions.Builder
clearLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
DescriptorProtos.FieldOptions.Builder
clearOneof(Descriptors.OneofDescriptor oneof)
TODO(jieluo): Clear it when all subclasses have implemented this method.DescriptorProtos.FieldOptions.Builder
clearPacked()
optional bool packed = 2 [json_name = "packed"];
DescriptorProtos.FieldOptions.Builder
clearRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
DescriptorProtos.FieldOptions.Builder
clearTargets()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
DescriptorProtos.FieldOptions.Builder
clearUninterpretedOption()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
clearUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
DescriptorProtos.FieldOptions.Builder
clearWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
DescriptorProtos.FieldOptions.Builder
clone()
Clones the Builder.DescriptorProtos.FieldOptions.CType
getCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
boolean
getDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
DescriptorProtos.FieldOptions
getDefaultInstanceForType()
Get an instance of the type with no fields set.boolean
getDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
static Descriptors.Descriptor
getDescriptor()
Descriptors.Descriptor
getDescriptorForType()
Get the message's type's descriptor.DescriptorProtos.FieldOptions.EditionDefault
getEditionDefaults(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.EditionDefault.Builder
getEditionDefaultsBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
java.util.List<DescriptorProtos.FieldOptions.EditionDefault.Builder>
getEditionDefaultsBuilderList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
int
getEditionDefaultsCount()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
java.util.List<DescriptorProtos.FieldOptions.EditionDefault>
getEditionDefaultsList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.EditionDefaultOrBuilder
getEditionDefaultsOrBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
java.util.List<? extends DescriptorProtos.FieldOptions.EditionDefaultOrBuilder>
getEditionDefaultsOrBuilderList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FeatureSet
getFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FeatureSet.Builder
getFeaturesBuilder()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FeatureSetOrBuilder
getFeaturesOrBuilder()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FieldOptions.JSType
getJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
boolean
getLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
boolean
getPacked()
optional bool packed = 2 [json_name = "packed"];
DescriptorProtos.FieldOptions.OptionRetention
getRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
DescriptorProtos.FieldOptions.OptionTargetType
getTargets(int index)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
int
getTargetsCount()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
java.util.List<DescriptorProtos.FieldOptions.OptionTargetType>
getTargetsList()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
DescriptorProtos.UninterpretedOption
getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.UninterpretedOption.Builder
getUninterpretedOptionBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
java.util.List<DescriptorProtos.UninterpretedOption.Builder>
getUninterpretedOptionBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
int
getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
java.util.List<DescriptorProtos.UninterpretedOption>
getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.UninterpretedOptionOrBuilder
getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder>
getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
boolean
getUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
boolean
getWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
boolean
hasCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
boolean
hasDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
boolean
hasDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
boolean
hasFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
boolean
hasJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
boolean
hasLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
boolean
hasPacked()
optional bool packed = 2 [json_name = "packed"];
boolean
hasRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
boolean
hasUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
boolean
hasWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
protected GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.boolean
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false otherwise.DescriptorProtos.FieldOptions.Builder
mergeFeatures(DescriptorProtos.FeatureSet value)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FieldOptions.Builder
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
LikeMessageLite.Builder.mergeFrom(CodedInputStream)
, but also parses extensions.DescriptorProtos.FieldOptions.Builder
mergeFrom(DescriptorProtos.FieldOptions other)
DescriptorProtos.FieldOptions.Builder
mergeFrom(Message other)
Mergeother
into the message being built.DescriptorProtos.FieldOptions.Builder
mergeUnknownFields(UnknownFieldSet unknownFields)
Merge some unknown fields into theUnknownFieldSet
for this message.DescriptorProtos.FieldOptions.Builder
removeEditionDefaults(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
removeUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
setCtype(DescriptorProtos.FieldOptions.CType value)
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
DescriptorProtos.FieldOptions.Builder
setDebugRedact(boolean value)
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
DescriptorProtos.FieldOptions.Builder
setDeprecated(boolean value)
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
DescriptorProtos.FieldOptions.Builder
setEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
DescriptorProtos.FieldOptions.Builder
setEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
<Type> DescriptorProtos.FieldOptions.Builder
setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,java.util.List<Type>> extension, int index, Type value)
Set the value of one element of a repeated extension.<Type> DescriptorProtos.FieldOptions.Builder
setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,Type> extension, Type value)
Set the value of an extension.DescriptorProtos.FieldOptions.Builder
setFeatures(DescriptorProtos.FeatureSet value)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FieldOptions.Builder
setFeatures(DescriptorProtos.FeatureSet.Builder builderForValue)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
DescriptorProtos.FieldOptions.Builder
setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Sets a field to the given value.DescriptorProtos.FieldOptions.Builder
setJstype(DescriptorProtos.FieldOptions.JSType value)
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
DescriptorProtos.FieldOptions.Builder
setLazy(boolean value)
optional bool lazy = 5 [default = false, json_name = "lazy"];
DescriptorProtos.FieldOptions.Builder
setPacked(boolean value)
optional bool packed = 2 [json_name = "packed"];
DescriptorProtos.FieldOptions.Builder
setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Sets an element of a repeated field to the given value.DescriptorProtos.FieldOptions.Builder
setRetention(DescriptorProtos.FieldOptions.OptionRetention value)
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
DescriptorProtos.FieldOptions.Builder
setTargets(int index, DescriptorProtos.FieldOptions.OptionTargetType value)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
DescriptorProtos.FieldOptions.Builder
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
DescriptorProtos.FieldOptions.Builder
setUnknownFields(UnknownFieldSet unknownFields)
Set theUnknownFieldSet
for this message.DescriptorProtos.FieldOptions.Builder
setUnverifiedLazy(boolean value)
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
DescriptorProtos.FieldOptions.Builder
setWeak(boolean value)
optional bool weak = 10 [default = false, json_name = "weak"];
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getOneofFieldDescriptor, getParentForChildren, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
-
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.Builder
Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
-
clear
public DescriptorProtos.FieldOptions.Builder clear()
Description copied from class:GeneratedMessageV3.Builder
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.Builder
Get the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType()
.- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
-
getDefaultInstanceForType
public DescriptorProtos.FieldOptions getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilder
Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()
method of generated message classes in that this method is an abstract method of theMessageLite
interface whereasgetDefaultInstance()
is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForType
in interfaceGeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public DescriptorProtos.FieldOptions build()
Description copied from interface:MessageLite.Builder
Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public DescriptorProtos.FieldOptions buildPartial()
Description copied from interface:MessageLite.Builder
LikeMessageLite.Builder.build()
, but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public DescriptorProtos.FieldOptions.Builder clone()
Description copied from interface:MessageLite.Builder
Clones the Builder.- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
- See Also:
Object.clone()
-
setField
public DescriptorProtos.FieldOptions.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.Builder
Sets 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:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
clearField
public DescriptorProtos.FieldOptions.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.Builder
Clears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
clearOneof
public DescriptorProtos.FieldOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.Builder
TODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
-
setRepeatedField
public DescriptorProtos.FieldOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.Builder
Sets 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:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
addRepeatedField
public DescriptorProtos.FieldOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.Builder
LikesetRepeatedField
, but appends the value as a new element.- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
setExtension
public <Type> DescriptorProtos.FieldOptions.Builder setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,Type> extension, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilder
Set the value of an extension.TODO(b/258340024): handled by ExtensionLite version
-
setExtension
public <Type> DescriptorProtos.FieldOptions.Builder setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,java.util.List<Type>> extension, int index, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilder
Set the value of one element of a repeated extension.TODO(b/258340024): handled by ExtensionLite version
-
addExtension
public <Type> DescriptorProtos.FieldOptions.Builder addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,java.util.List<Type>> extension, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilder
Append a value to a repeated extension.TODO(b/258340024): handled by ExtensionLite version
-
clearExtension
public <T> DescriptorProtos.FieldOptions.Builder clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,T> extension)
Description copied from class:GeneratedMessageV3.ExtendableBuilder
Clears an extension.TODO(b/258340024): handled by ExtensionLite version
-
mergeFrom
public DescriptorProtos.FieldOptions.Builder mergeFrom(Message other)
Description copied from interface:Message.Builder
Mergeother
into the message being built.other
must have the exact same type asthis
(i.e.getDescriptorForType() == other.getDescriptorForType()
).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother
, thenother
's value overwrites the value in this message.
* For singular message fields, if the field is set inother
, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inother
are concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrom
method in C++.- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.FieldOptions.Builder>
-
mergeFrom
public DescriptorProtos.FieldOptions.Builder mergeFrom(DescriptorProtos.FieldOptions other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilder
Returns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
-
mergeFrom
public DescriptorProtos.FieldOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.Builder
LikeMessageLite.Builder.mergeFrom(CodedInputStream)
, but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry
. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.FieldOptions.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.java.io.IOException
- an I/O error reading from the stream
-
hasCtype
public boolean hasCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
- Specified by:
hasCtype
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the ctype field is set.
-
getCtype
public DescriptorProtos.FieldOptions.CType getCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
- Specified by:
getCtype
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The ctype.
-
setCtype
public DescriptorProtos.FieldOptions.Builder setCtype(DescriptorProtos.FieldOptions.CType value)
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
- Parameters:
value
- The ctype to set.- Returns:
- This builder for chaining.
-
clearCtype
public DescriptorProtos.FieldOptions.Builder clearCtype()
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING, json_name = "ctype"];
- Returns:
- This builder for chaining.
-
hasPacked
public boolean hasPacked()
optional bool packed = 2 [json_name = "packed"];
- Specified by:
hasPacked
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the packed field is set.
-
getPacked
public boolean getPacked()
optional bool packed = 2 [json_name = "packed"];
- Specified by:
getPacked
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The packed.
-
setPacked
public DescriptorProtos.FieldOptions.Builder setPacked(boolean value)
optional bool packed = 2 [json_name = "packed"];
- Parameters:
value
- The packed to set.- Returns:
- This builder for chaining.
-
clearPacked
public DescriptorProtos.FieldOptions.Builder clearPacked()
optional bool packed = 2 [json_name = "packed"];
- Returns:
- This builder for chaining.
-
hasJstype
public boolean hasJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
- Specified by:
hasJstype
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the jstype field is set.
-
getJstype
public DescriptorProtos.FieldOptions.JSType getJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
- Specified by:
getJstype
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The jstype.
-
setJstype
public DescriptorProtos.FieldOptions.Builder setJstype(DescriptorProtos.FieldOptions.JSType value)
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
- Parameters:
value
- The jstype to set.- Returns:
- This builder for chaining.
-
clearJstype
public DescriptorProtos.FieldOptions.Builder clearJstype()
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL, json_name = "jstype"];
- Returns:
- This builder for chaining.
-
hasLazy
public boolean hasLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
- Specified by:
hasLazy
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the lazy field is set.
-
getLazy
public boolean getLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
- Specified by:
getLazy
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The lazy.
-
setLazy
public DescriptorProtos.FieldOptions.Builder setLazy(boolean value)
optional bool lazy = 5 [default = false, json_name = "lazy"];
- Parameters:
value
- The lazy to set.- Returns:
- This builder for chaining.
-
clearLazy
public DescriptorProtos.FieldOptions.Builder clearLazy()
optional bool lazy = 5 [default = false, json_name = "lazy"];
- Returns:
- This builder for chaining.
-
hasUnverifiedLazy
public boolean hasUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
- Specified by:
hasUnverifiedLazy
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the unverifiedLazy field is set.
-
getUnverifiedLazy
public boolean getUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
- Specified by:
getUnverifiedLazy
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The unverifiedLazy.
-
setUnverifiedLazy
public DescriptorProtos.FieldOptions.Builder setUnverifiedLazy(boolean value)
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
- Parameters:
value
- The unverifiedLazy to set.- Returns:
- This builder for chaining.
-
clearUnverifiedLazy
public DescriptorProtos.FieldOptions.Builder clearUnverifiedLazy()
optional bool unverified_lazy = 15 [default = false, json_name = "unverifiedLazy"];
- Returns:
- This builder for chaining.
-
hasDeprecated
public boolean hasDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
- Specified by:
hasDeprecated
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public boolean getDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
- Specified by:
getDeprecated
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The deprecated.
-
setDeprecated
public DescriptorProtos.FieldOptions.Builder setDeprecated(boolean value)
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
- Parameters:
value
- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
public DescriptorProtos.FieldOptions.Builder clearDeprecated()
optional bool deprecated = 3 [default = false, json_name = "deprecated"];
- Returns:
- This builder for chaining.
-
hasWeak
public boolean hasWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
- Specified by:
hasWeak
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the weak field is set.
-
getWeak
public boolean getWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
- Specified by:
getWeak
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The weak.
-
setWeak
public DescriptorProtos.FieldOptions.Builder setWeak(boolean value)
optional bool weak = 10 [default = false, json_name = "weak"];
- Parameters:
value
- The weak to set.- Returns:
- This builder for chaining.
-
clearWeak
public DescriptorProtos.FieldOptions.Builder clearWeak()
optional bool weak = 10 [default = false, json_name = "weak"];
- Returns:
- This builder for chaining.
-
hasDebugRedact
public boolean hasDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
- Specified by:
hasDebugRedact
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the debugRedact field is set.
-
getDebugRedact
public boolean getDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
- Specified by:
getDebugRedact
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The debugRedact.
-
setDebugRedact
public DescriptorProtos.FieldOptions.Builder setDebugRedact(boolean value)
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
- Parameters:
value
- The debugRedact to set.- Returns:
- This builder for chaining.
-
clearDebugRedact
public DescriptorProtos.FieldOptions.Builder clearDebugRedact()
optional bool debug_redact = 16 [default = false, json_name = "debugRedact"];
- Returns:
- This builder for chaining.
-
hasRetention
public boolean hasRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
- Specified by:
hasRetention
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the retention field is set.
-
getRetention
public DescriptorProtos.FieldOptions.OptionRetention getRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
- Specified by:
getRetention
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The retention.
-
setRetention
public DescriptorProtos.FieldOptions.Builder setRetention(DescriptorProtos.FieldOptions.OptionRetention value)
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
- Parameters:
value
- The retention to set.- Returns:
- This builder for chaining.
-
clearRetention
public DescriptorProtos.FieldOptions.Builder clearRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17 [json_name = "retention"];
- Returns:
- This builder for chaining.
-
getTargetsList
public java.util.List<DescriptorProtos.FieldOptions.OptionTargetType> getTargetsList()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Specified by:
getTargetsList
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- A list containing the targets.
-
getTargetsCount
public int getTargetsCount()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Specified by:
getTargetsCount
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The count of targets.
-
getTargets
public DescriptorProtos.FieldOptions.OptionTargetType getTargets(int index)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Specified by:
getTargets
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The targets at the given index.
-
setTargets
public DescriptorProtos.FieldOptions.Builder setTargets(int index, DescriptorProtos.FieldOptions.OptionTargetType value)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Parameters:
index
- The index to set the value at.value
- The targets to set.- Returns:
- This builder for chaining.
-
addTargets
public DescriptorProtos.FieldOptions.Builder addTargets(DescriptorProtos.FieldOptions.OptionTargetType value)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Parameters:
value
- The targets to add.- Returns:
- This builder for chaining.
-
addAllTargets
public DescriptorProtos.FieldOptions.Builder addAllTargets(java.lang.Iterable<? extends DescriptorProtos.FieldOptions.OptionTargetType> values)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Parameters:
values
- The targets to add.- Returns:
- This builder for chaining.
-
clearTargets
public DescriptorProtos.FieldOptions.Builder clearTargets()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19 [json_name = "targets"];
- Returns:
- This builder for chaining.
-
getEditionDefaultsList
public java.util.List<DescriptorProtos.FieldOptions.EditionDefault> getEditionDefaultsList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
- Specified by:
getEditionDefaultsList
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaultsCount
public int getEditionDefaultsCount()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
- Specified by:
getEditionDefaultsCount
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaults
public DescriptorProtos.FieldOptions.EditionDefault getEditionDefaults(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
- Specified by:
getEditionDefaults
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
setEditionDefaults
public DescriptorProtos.FieldOptions.Builder setEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
setEditionDefaults
public DescriptorProtos.FieldOptions.Builder setEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addEditionDefaults
public DescriptorProtos.FieldOptions.Builder addEditionDefaults(DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addEditionDefaults
public DescriptorProtos.FieldOptions.Builder addEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault value)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addEditionDefaults
public DescriptorProtos.FieldOptions.Builder addEditionDefaults(DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addEditionDefaults
public DescriptorProtos.FieldOptions.Builder addEditionDefaults(int index, DescriptorProtos.FieldOptions.EditionDefault.Builder builderForValue)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addAllEditionDefaults
public DescriptorProtos.FieldOptions.Builder addAllEditionDefaults(java.lang.Iterable<? extends DescriptorProtos.FieldOptions.EditionDefault> values)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
clearEditionDefaults
public DescriptorProtos.FieldOptions.Builder clearEditionDefaults()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
removeEditionDefaults
public DescriptorProtos.FieldOptions.Builder removeEditionDefaults(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
getEditionDefaultsBuilder
public DescriptorProtos.FieldOptions.EditionDefault.Builder getEditionDefaultsBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
getEditionDefaultsOrBuilder
public DescriptorProtos.FieldOptions.EditionDefaultOrBuilder getEditionDefaultsOrBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
- Specified by:
getEditionDefaultsOrBuilder
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaultsOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldOptions.EditionDefaultOrBuilder> getEditionDefaultsOrBuilderList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
- Specified by:
getEditionDefaultsOrBuilderList
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
addEditionDefaultsBuilder
public DescriptorProtos.FieldOptions.EditionDefault.Builder addEditionDefaultsBuilder()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
addEditionDefaultsBuilder
public DescriptorProtos.FieldOptions.EditionDefault.Builder addEditionDefaultsBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
getEditionDefaultsBuilderList
public java.util.List<DescriptorProtos.FieldOptions.EditionDefault.Builder> getEditionDefaultsBuilderList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20 [json_name = "editionDefaults"];
-
hasFeatures
public boolean hasFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
- Specified by:
hasFeatures
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- Whether the features field is set.
-
getFeatures
public DescriptorProtos.FeatureSet getFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
- Specified by:
getFeatures
in interfaceDescriptorProtos.FieldOptionsOrBuilder
- Returns:
- The features.
-
setFeatures
public DescriptorProtos.FieldOptions.Builder setFeatures(DescriptorProtos.FeatureSet value)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
-
setFeatures
public DescriptorProtos.FieldOptions.Builder setFeatures(DescriptorProtos.FeatureSet.Builder builderForValue)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
-
mergeFeatures
public DescriptorProtos.FieldOptions.Builder mergeFeatures(DescriptorProtos.FeatureSet value)
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
-
clearFeatures
public DescriptorProtos.FieldOptions.Builder clearFeatures()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
-
getFeaturesBuilder
public DescriptorProtos.FeatureSet.Builder getFeaturesBuilder()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
-
getFeaturesOrBuilder
public DescriptorProtos.FeatureSetOrBuilder getFeaturesOrBuilder()
optional .google.protobuf.FeatureSet features = 21 [json_name = "features"];
- Specified by:
getFeaturesOrBuilder
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionList
public java.util.List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
- Specified by:
getUninterpretedOptionList
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionCount
public int getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
- Specified by:
getUninterpretedOptionCount
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOption
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
- Specified by:
getUninterpretedOption
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
setUninterpretedOption
public DescriptorProtos.FieldOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
setUninterpretedOption
public DescriptorProtos.FieldOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addUninterpretedOption
public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addUninterpretedOption
public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addUninterpretedOption
public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addUninterpretedOption
public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addAllUninterpretedOption
public DescriptorProtos.FieldOptions.Builder addAllUninterpretedOption(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption> values)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
clearUninterpretedOption
public DescriptorProtos.FieldOptions.Builder clearUninterpretedOption()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
removeUninterpretedOption
public DescriptorProtos.FieldOptions.Builder removeUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
getUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
getUninterpretedOptionOrBuilder
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
- Specified by:
getUninterpretedOptionOrBuilder
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionOrBuilderList
public java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
- Specified by:
getUninterpretedOptionOrBuilderList
in interfaceDescriptorProtos.FieldOptionsOrBuilder
-
addUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
addUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
getUninterpretedOptionBuilderList
public java.util.List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-
setUnknownFields
public final DescriptorProtos.FieldOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.Builder
Set theUnknownFieldSet
for this message.- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
-
mergeUnknownFields
public final DescriptorProtos.FieldOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.Builder
Merge some unknown fields into theUnknownFieldSet
for this message.- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<DescriptorProtos.FieldOptions.Builder>
-
-