Package com.google.protobuf
Class DescriptorProtos.FieldOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FieldOptions>
-
- com.google.protobuf.DescriptorProtos.FieldOptions
-
- All Implemented Interfaces:
DescriptorProtos.FieldOptionsOrBuilder,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos
public static final class DescriptorProtos.FieldOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FieldOptions> implements DescriptorProtos.FieldOptionsOrBuilder
Protobuf typegoogle.protobuf.FieldOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.FieldOptions.BuilderProtobuf typegoogle.protobuf.FieldOptionsstatic classDescriptorProtos.FieldOptions.CTypeProtobuf enumgoogle.protobuf.FieldOptions.CTypestatic classDescriptorProtos.FieldOptions.EditionDefaultProtobuf typegoogle.protobuf.FieldOptions.EditionDefaultstatic interfaceDescriptorProtos.FieldOptions.EditionDefaultOrBuilderstatic classDescriptorProtos.FieldOptions.JSTypeProtobuf enumgoogle.protobuf.FieldOptions.JSTypestatic classDescriptorProtos.FieldOptions.OptionRetentionIf set to RETENTION_SOURCE, the option will be omitted from the binary.static classDescriptorProtos.FieldOptions.OptionTargetTypeThis indicates the types of entities that the field may apply to when used as an option.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCTYPE_FIELD_NUMBERstatic intDEBUG_REDACT_FIELD_NUMBERstatic intDEPRECATED_FIELD_NUMBERstatic intEDITION_DEFAULTS_FIELD_NUMBERstatic intFEATURES_FIELD_NUMBERstatic intJSTYPE_FIELD_NUMBERstatic intLAZY_FIELD_NUMBERstatic intPACKED_FIELD_NUMBERstatic com.google.protobuf.Parser<DescriptorProtos.FieldOptions>PARSERDeprecated.static intRETENTION_FIELD_NUMBERstatic intTARGETS_FIELD_NUMBERstatic intUNINTERPRETED_OPTION_FIELD_NUMBERstatic intUNVERIFIED_LAZY_FIELD_NUMBERstatic intWEAK_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DescriptorProtos.FieldOptions.CTypegetCtype()The ctype option instructs the C++ code generator to use a different representation of the field than it normally would.booleangetDebugRedact()Indicate that the field value should not be printed out when using debug formats, e.g.static DescriptorProtos.FieldOptionsgetDefaultInstance()DescriptorProtos.FieldOptionsgetDefaultInstanceForType()booleangetDeprecated()Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DescriptorProtos.FieldOptions.EditionDefaultgetEditionDefaults(int index)repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;intgetEditionDefaultsCount()repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;java.util.List<DescriptorProtos.FieldOptions.EditionDefault>getEditionDefaultsList()repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;DescriptorProtos.FieldOptions.EditionDefaultOrBuildergetEditionDefaultsOrBuilder(int index)repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;java.util.List<? extends DescriptorProtos.FieldOptions.EditionDefaultOrBuilder>getEditionDefaultsOrBuilderList()repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;DescriptorProtos.FeatureSetgetFeatures()Any features defined in the specific edition.DescriptorProtos.FeatureSetOrBuildergetFeaturesOrBuilder()Any features defined in the specific edition.DescriptorProtos.FieldOptions.JSTypegetJstype()The jstype option determines the JavaScript type used for values of the field.booleangetLazy()Should this field be parsed lazily? Lazy applies only to message-type fields.booleangetPacked()The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire.com.google.protobuf.Parser<DescriptorProtos.FieldOptions>getParserForType()DescriptorProtos.FieldOptions.OptionRetentiongetRetention()optional .google.protobuf.FieldOptions.OptionRetention retention = 17;intgetSerializedSize()DescriptorProtos.FieldOptions.OptionTargetTypegetTargets(int index)repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;intgetTargetsCount()repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;java.util.List<DescriptorProtos.FieldOptions.OptionTargetType>getTargetsList()repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;DescriptorProtos.UninterpretedOptiongetUninterpretedOption(int index)The parser stores options it doesn't recognize here.intgetUninterpretedOptionCount()The parser stores options it doesn't recognize here.java.util.List<DescriptorProtos.UninterpretedOption>getUninterpretedOptionList()The parser stores options it doesn't recognize here.DescriptorProtos.UninterpretedOptionOrBuildergetUninterpretedOptionOrBuilder(int index)The parser stores options it doesn't recognize here.java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder>getUninterpretedOptionOrBuilderList()The parser stores options it doesn't recognize here.booleangetUnverifiedLazy()unverified_lazy does no correctness checks on the byte stream.booleangetWeak()For Google-internal migration only.booleanhasCtype()The ctype option instructs the C++ code generator to use a different representation of the field than it normally would.booleanhasDebugRedact()Indicate that the field value should not be printed out when using debug formats, e.g.booleanhasDeprecated()Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields.booleanhasFeatures()Any features defined in the specific edition.inthashCode()booleanhasJstype()The jstype option determines the JavaScript type used for values of the field.booleanhasLazy()Should this field be parsed lazily? Lazy applies only to message-type fields.booleanhasPacked()The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire.booleanhasRetention()optional .google.protobuf.FieldOptions.OptionRetention retention = 17;booleanhasUnverifiedLazy()unverified_lazy does no correctness checks on the byte stream.booleanhasWeak()For Google-internal migration only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DescriptorProtos.FieldOptions.BuildernewBuilder()static DescriptorProtos.FieldOptions.BuildernewBuilder(DescriptorProtos.FieldOptions prototype)DescriptorProtos.FieldOptions.BuildernewBuilderForType()protected DescriptorProtos.FieldOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DescriptorProtos.FieldOptionsparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.FieldOptionsparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldOptionsparseFrom(byte[] data)static DescriptorProtos.FieldOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldOptionsparseFrom(com.google.protobuf.ByteString data)static DescriptorProtos.FieldOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldOptionsparseFrom(com.google.protobuf.CodedInputStream input)static DescriptorProtos.FieldOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldOptionsparseFrom(java.io.InputStream input)static DescriptorProtos.FieldOptionsparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.FieldOptionsparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.FieldOptionsparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DescriptorProtos.FieldOptions>parser()DescriptorProtos.FieldOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, getUnknownFields, hasOneof, internalGetMapField, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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
-
-
-
-
Field Detail
-
CTYPE_FIELD_NUMBER
public static final int CTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PACKED_FIELD_NUMBER
public static final int PACKED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
JSTYPE_FIELD_NUMBER
public static final int JSTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAZY_FIELD_NUMBER
public static final int LAZY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNVERIFIED_LAZY_FIELD_NUMBER
public static final int UNVERIFIED_LAZY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPRECATED_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WEAK_FIELD_NUMBER
public static final int WEAK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEBUG_REDACT_FIELD_NUMBER
public static final int DEBUG_REDACT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETENTION_FIELD_NUMBER
public static final int RETENTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TARGETS_FIELD_NUMBER
public static final int TARGETS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EDITION_DEFAULTS_FIELD_NUMBER
public static final int EDITION_DEFAULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UNINTERPRETED_OPTION_FIELD_NUMBER
public static final int UNINTERPRETED_OPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.FieldOptions> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCtype
public boolean hasCtype()
The ctype option instructs the C++ code generator to use a different representation of the field than it normally would. See the specific options below. This option is only implemented to support use of [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of type "bytes" in the open source release -- sorry, we'll try to include other types in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];- Specified by:
hasCtypein interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the ctype field is set.
-
getCtype
public DescriptorProtos.FieldOptions.CType getCtype()
The ctype option instructs the C++ code generator to use a different representation of the field than it normally would. See the specific options below. This option is only implemented to support use of [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of type "bytes" in the open source release -- sorry, we'll try to include other types in a future version!
optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];- Specified by:
getCtypein interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The ctype.
-
hasPacked
public boolean hasPacked()
The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire. Rather than repeatedly writing the tag and type for each element, the entire array is encoded as a single length-delimited blob. In proto3, only explicit setting it to false will avoid using packed encoding.
optional bool packed = 2;- Specified by:
hasPackedin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the packed field is set.
-
getPacked
public boolean getPacked()
The packed option can be enabled for repeated primitive fields to enable a more efficient representation on the wire. Rather than repeatedly writing the tag and type for each element, the entire array is encoded as a single length-delimited blob. In proto3, only explicit setting it to false will avoid using packed encoding.
optional bool packed = 2;- Specified by:
getPackedin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The packed.
-
hasJstype
public boolean hasJstype()
The jstype option determines the JavaScript type used for values of the field. The option is permitted only for 64 bit integral and fixed types (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING is represented as JavaScript string, which avoids loss of precision that can happen when a large value is converted to a floating point JavaScript. Specifying JS_NUMBER for the jstype causes the generated JavaScript code to use the JavaScript "number" type. The behavior of the default option JS_NORMAL is implementation dependent. This option is an enum to permit additional types to be added, e.g. goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];- Specified by:
hasJstypein interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the jstype field is set.
-
getJstype
public DescriptorProtos.FieldOptions.JSType getJstype()
The jstype option determines the JavaScript type used for values of the field. The option is permitted only for 64 bit integral and fixed types (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING is represented as JavaScript string, which avoids loss of precision that can happen when a large value is converted to a floating point JavaScript. Specifying JS_NUMBER for the jstype causes the generated JavaScript code to use the JavaScript "number" type. The behavior of the default option JS_NORMAL is implementation dependent. This option is an enum to permit additional types to be added, e.g. goog.math.Integer.
optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];- Specified by:
getJstypein interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The jstype.
-
hasLazy
public boolean hasLazy()
Should this field be parsed lazily? Lazy applies only to message-type fields. It means that when the outer message is initially parsed, the inner message's contents will not be parsed but instead stored in encoded form. The inner message will actually be parsed when it is first accessed. This is only a hint. Implementations are free to choose whether to use eager or lazy parsing regardless of the value of this option. However, setting this option true suggests that the protocol author believes that using lazy parsing on this field is worth the additional bookkeeping overhead typically needed to implement it. This option does not affect the public interface of any generated code; all method signatures remain the same. Furthermore, thread-safety of the interface is not affected by this option; const methods remain safe to call from multiple threads concurrently, while non-const methods continue to require exclusive access. Note that implementations may choose not to check required fields within a lazy sub-message. That is, calling IsInitialized() on the outer message may return true even if the inner message has missing required fields. This is necessary because otherwise the inner message would have to be parsed in order to perform the check, defeating the purpose of lazy parsing. An implementation which chooses not to check required fields must be consistent about it. That is, for any particular sub-message, the implementation must either *always* check its required fields, or *never* check its required fields, regardless of whether or not the message has been parsed. As of May 2022, lazy verifies the contents of the byte stream during parsing. An invalid byte stream will cause the overall parsing to fail.
optional bool lazy = 5 [default = false];- Specified by:
hasLazyin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the lazy field is set.
-
getLazy
public boolean getLazy()
Should this field be parsed lazily? Lazy applies only to message-type fields. It means that when the outer message is initially parsed, the inner message's contents will not be parsed but instead stored in encoded form. The inner message will actually be parsed when it is first accessed. This is only a hint. Implementations are free to choose whether to use eager or lazy parsing regardless of the value of this option. However, setting this option true suggests that the protocol author believes that using lazy parsing on this field is worth the additional bookkeeping overhead typically needed to implement it. This option does not affect the public interface of any generated code; all method signatures remain the same. Furthermore, thread-safety of the interface is not affected by this option; const methods remain safe to call from multiple threads concurrently, while non-const methods continue to require exclusive access. Note that implementations may choose not to check required fields within a lazy sub-message. That is, calling IsInitialized() on the outer message may return true even if the inner message has missing required fields. This is necessary because otherwise the inner message would have to be parsed in order to perform the check, defeating the purpose of lazy parsing. An implementation which chooses not to check required fields must be consistent about it. That is, for any particular sub-message, the implementation must either *always* check its required fields, or *never* check its required fields, regardless of whether or not the message has been parsed. As of May 2022, lazy verifies the contents of the byte stream during parsing. An invalid byte stream will cause the overall parsing to fail.
optional bool lazy = 5 [default = false];- Specified by:
getLazyin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The lazy.
-
hasUnverifiedLazy
public boolean hasUnverifiedLazy()
unverified_lazy does no correctness checks on the byte stream. This should only be used where lazy with verification is prohibitive for performance reasons.
optional bool unverified_lazy = 15 [default = false];- Specified by:
hasUnverifiedLazyin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the unverifiedLazy field is set.
-
getUnverifiedLazy
public boolean getUnverifiedLazy()
unverified_lazy does no correctness checks on the byte stream. This should only be used where lazy with verification is prohibitive for performance reasons.
optional bool unverified_lazy = 15 [default = false];- Specified by:
getUnverifiedLazyin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The unverifiedLazy.
-
hasDeprecated
public boolean hasDeprecated()
Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];- Specified by:
hasDeprecatedin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public boolean getDeprecated()
Is this field deprecated? Depending on the target platform, this can emit Deprecated annotations for accessors, or it will be completely ignored; in the very least, this is a formalization for deprecating fields.
optional bool deprecated = 3 [default = false];- Specified by:
getDeprecatedin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The deprecated.
-
hasWeak
public boolean hasWeak()
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];- Specified by:
hasWeakin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the weak field is set.
-
getWeak
public boolean getWeak()
For Google-internal migration only. Do not use.
optional bool weak = 10 [default = false];- Specified by:
getWeakin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The weak.
-
hasDebugRedact
public boolean hasDebugRedact()
Indicate that the field value should not be printed out when using debug formats, e.g. when the field contains sensitive credentials.
optional bool debug_redact = 16 [default = false];- Specified by:
hasDebugRedactin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the debugRedact field is set.
-
getDebugRedact
public boolean getDebugRedact()
Indicate that the field value should not be printed out when using debug formats, e.g. when the field contains sensitive credentials.
optional bool debug_redact = 16 [default = false];- Specified by:
getDebugRedactin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The debugRedact.
-
hasRetention
public boolean hasRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17;- Specified by:
hasRetentionin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the retention field is set.
-
getRetention
public DescriptorProtos.FieldOptions.OptionRetention getRetention()
optional .google.protobuf.FieldOptions.OptionRetention retention = 17;- Specified by:
getRetentionin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The retention.
-
getTargetsList
public java.util.List<DescriptorProtos.FieldOptions.OptionTargetType> getTargetsList()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;- Specified by:
getTargetsListin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- A list containing the targets.
-
getTargetsCount
public int getTargetsCount()
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;- Specified by:
getTargetsCountin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The count of targets.
-
getTargets
public DescriptorProtos.FieldOptions.OptionTargetType getTargets(int index)
repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;- Specified by:
getTargetsin interfaceDescriptorProtos.FieldOptionsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targets at the given index.
-
getEditionDefaultsList
public java.util.List<DescriptorProtos.FieldOptions.EditionDefault> getEditionDefaultsList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;- Specified by:
getEditionDefaultsListin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaultsOrBuilderList
public java.util.List<? extends DescriptorProtos.FieldOptions.EditionDefaultOrBuilder> getEditionDefaultsOrBuilderList()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;- Specified by:
getEditionDefaultsOrBuilderListin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaultsCount
public int getEditionDefaultsCount()
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;- Specified by:
getEditionDefaultsCountin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaults
public DescriptorProtos.FieldOptions.EditionDefault getEditionDefaults(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;- Specified by:
getEditionDefaultsin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getEditionDefaultsOrBuilder
public DescriptorProtos.FieldOptions.EditionDefaultOrBuilder getEditionDefaultsOrBuilder(int index)
repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;- Specified by:
getEditionDefaultsOrBuilderin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
hasFeatures
public boolean hasFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 21;- Specified by:
hasFeaturesin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- Whether the features field is set.
-
getFeatures
public DescriptorProtos.FeatureSet getFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 21;- Specified by:
getFeaturesin interfaceDescriptorProtos.FieldOptionsOrBuilder- Returns:
- The features.
-
getFeaturesOrBuilder
public DescriptorProtos.FeatureSetOrBuilder getFeaturesOrBuilder()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 21;- Specified by:
getFeaturesOrBuilderin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionList
public java.util.List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionListin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionOrBuilderList
public java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionOrBuilderListin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionCount
public int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionCountin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOption
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
getUninterpretedOptionOrBuilder
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionOrBuilderin interfaceDescriptorProtos.FieldOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FieldOptions>
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.FieldOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.FieldOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DescriptorProtos.FieldOptions.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.FieldOptions.Builder newBuilder(DescriptorProtos.FieldOptions prototype)
-
toBuilder
public DescriptorProtos.FieldOptions.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DescriptorProtos.FieldOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.FieldOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.FieldOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<DescriptorProtos.FieldOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.FieldOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-