Class DescriptorProtos.FieldOptions.Builder

All Implemented Interfaces:
DescriptorProtos.FieldOptionsOrBuilder, GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>, Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable
Enclosing class:
DescriptorProtos.FieldOptions

Protobuf type google.protobuf.FieldOptions
  • Field Details

  • Constructor Details

  • Method Details

    • getDescriptor

      public static final Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Description copied from class: GeneratedMessage.Builder
      Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.
      Specified by:
      internalGetFieldAccessorTable in class GeneratedMessage.Builder<DescriptorProtos.FieldOptions.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

      Description copied from class: GeneratedMessage.Builder
      Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.
      Specified by:
      clear in interface Message.Builder
      Specified by:
      clear in interface MessageLite.Builder
      Overrides:
      clear in class GeneratedMessage.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
    • getDescriptorForType

      public Descriptors.Descriptor getDescriptorForType()
      Description copied from interface: Message.Builder
      Get the message's type's descriptor. See MessageOrBuilder.getDescriptorForType().
      Specified by:
      getDescriptorForType in interface Message.Builder
      Specified by:
      getDescriptorForType in interface MessageOrBuilder
      Overrides:
      getDescriptorForType in class GeneratedMessage.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 the getDefaultInstance() method of generated message classes in that this method is an abstract method of the MessageLite interface whereas getDefaultInstance() is a static method of a specific class. They return the same thing.
      Specified by:
      getDefaultInstanceForType in interface GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.FieldOptions>
      Specified by:
      getDefaultInstanceForType in interface MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface MessageOrBuilder
    • 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 interface Message.Builder
      Specified by:
      build in interface MessageLite.Builder
    • buildPartial

      public DescriptorProtos.FieldOptions buildPartial()
      Description copied from interface: MessageLite.Builder
      Like MessageLite.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 interface Message.Builder
      Specified by:
      buildPartial in interface MessageLite.Builder
    • buildPartialRepeatedFields

      private void buildPartialRepeatedFields(DescriptorProtos.FieldOptions result)
    • buildPartial0

      private void buildPartial0(DescriptorProtos.FieldOptions result)
    • mergeFrom

      Description copied from interface: Message.Builder
      Merge other into the message being built. other must have the exact same type as this (i.e. getDescriptorForType() == other.getDescriptorForType()).

      Merging occurs as follows. For each field:
      * For singular primitive fields, if the field is set in other, then other's value overwrites the value in this message.
      * For singular message fields, if the field is set in other, it is merged into the corresponding sub-message of this message using the same merging rules.
      * For repeated fields, the elements in other 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 interface Message.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<DescriptorProtos.FieldOptions.Builder>
    • mergeFrom

    • 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.

      See also: MessageOrBuilder.getInitializationErrorString()

      Specified by:
      isInitialized in interface MessageLiteOrBuilder
      Overrides:
      isInitialized in class GeneratedMessage.ExtendableBuilder<DescriptorProtos.FieldOptions,DescriptorProtos.FieldOptions.Builder>
    • mergeFrom

      public DescriptorProtos.FieldOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Description copied from interface: MessageLite.Builder
      Like MessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered in extensionRegistry. Extensions not in the registry will be treated as unknown fields.
      Specified by:
      mergeFrom in interface Message.Builder
      Specified by:
      mergeFrom in interface MessageLite.Builder
      Overrides:
      mergeFrom in class AbstractMessage.Builder<DescriptorProtos.FieldOptions.Builder>
      Throws:
      IOException - an I/O error reading from the stream
    • hasCtype

      public boolean hasCtype()
       NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
       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.
       TODO: make ctype actually deprecated.
       
      optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
      Specified by:
      hasCtype in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the ctype field is set.
    • getCtype

       NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
       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.
       TODO: make ctype actually deprecated.
       
      optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
      Specified by:
      getCtype in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The ctype.
    • setCtype

       NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
       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.
       TODO: make ctype actually deprecated.
       
      optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
      Parameters:
      value - The ctype to set.
      Returns:
      This builder for chaining.
    • clearCtype

       NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
       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.
       TODO: make ctype actually deprecated.
       
      optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
      Returns:
      This builder for chaining.
    • 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.  This option is prohibited in
       Editions, but the `repeated_field_encoding` feature can be used to control
       the behavior.
       
      optional bool packed = 2;
      Specified by:
      hasPacked in interface DescriptorProtos.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.  This option is prohibited in
       Editions, but the `repeated_field_encoding` feature can be used to control
       the behavior.
       
      optional bool packed = 2;
      Specified by:
      getPacked in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The packed.
    • setPacked

      public DescriptorProtos.FieldOptions.Builder setPacked(boolean value)
       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.  This option is prohibited in
       Editions, but the `repeated_field_encoding` feature can be used to control
       the behavior.
       
      optional bool packed = 2;
      Parameters:
      value - The packed to set.
      Returns:
      This builder for chaining.
    • clearPacked

       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.  This option is prohibited in
       Editions, but the `repeated_field_encoding` feature can be used to control
       the behavior.
       
      optional bool packed = 2;
      Returns:
      This builder for chaining.
    • 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:
      hasJstype in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the jstype field is set.
    • 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:
      getJstype in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The jstype.
    • setJstype

       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];
      Parameters:
      value - The jstype to set.
      Returns:
      This builder for chaining.
    • clearJstype

       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];
      Returns:
      This builder for chaining.
    • 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 lazy message fields are still eagerly verified to check
       ill-formed wireformat or missing required fields. Calling IsInitialized()
       on the outer message would fail if the inner message has missing required
       fields. Failed verification would result in parsing failure (except when
       uninitialized messages are acceptable).
       
      optional bool lazy = 5 [default = false];
      Specified by:
      hasLazy in interface DescriptorProtos.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 lazy message fields are still eagerly verified to check
       ill-formed wireformat or missing required fields. Calling IsInitialized()
       on the outer message would fail if the inner message has missing required
       fields. Failed verification would result in parsing failure (except when
       uninitialized messages are acceptable).
       
      optional bool lazy = 5 [default = false];
      Specified by:
      getLazy in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The lazy.
    • setLazy

      public DescriptorProtos.FieldOptions.Builder setLazy(boolean value)
       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 lazy message fields are still eagerly verified to check
       ill-formed wireformat or missing required fields. Calling IsInitialized()
       on the outer message would fail if the inner message has missing required
       fields. Failed verification would result in parsing failure (except when
       uninitialized messages are acceptable).
       
      optional bool lazy = 5 [default = false];
      Parameters:
      value - The lazy to set.
      Returns:
      This builder for chaining.
    • clearLazy

       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 lazy message fields are still eagerly verified to check
       ill-formed wireformat or missing required fields. Calling IsInitialized()
       on the outer message would fail if the inner message has missing required
       fields. Failed verification would result in parsing failure (except when
       uninitialized messages are acceptable).
       
      optional bool lazy = 5 [default = false];
      Returns:
      This builder for chaining.
    • 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:
      hasUnverifiedLazy in interface DescriptorProtos.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:
      getUnverifiedLazy in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The unverifiedLazy.
    • setUnverifiedLazy

      public DescriptorProtos.FieldOptions.Builder setUnverifiedLazy(boolean value)
       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];
      Parameters:
      value - The unverifiedLazy to set.
      Returns:
      This builder for chaining.
    • clearUnverifiedLazy

      public DescriptorProtos.FieldOptions.Builder clearUnverifiedLazy()
       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];
      Returns:
      This builder for chaining.
    • 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:
      hasDeprecated in interface DescriptorProtos.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:
      getDeprecated in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The deprecated.
    • setDeprecated

      public DescriptorProtos.FieldOptions.Builder setDeprecated(boolean value)
       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];
      Parameters:
      value - The deprecated to set.
      Returns:
      This builder for chaining.
    • clearDeprecated

      public DescriptorProtos.FieldOptions.Builder clearDeprecated()
       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];
      Returns:
      This builder for chaining.
    • hasWeak

      @Deprecated public boolean hasWeak()
      Deprecated.
      google.protobuf.FieldOptions.weak is deprecated. See google/protobuf/descriptor.proto;l=757
       DEPRECATED. DO NOT USE!
       For Google-internal migration only. Do not use.
       
      optional bool weak = 10 [default = false, deprecated = true];
      Specified by:
      hasWeak in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the weak field is set.
    • getWeak

      @Deprecated public boolean getWeak()
      Deprecated.
      google.protobuf.FieldOptions.weak is deprecated. See google/protobuf/descriptor.proto;l=757
       DEPRECATED. DO NOT USE!
       For Google-internal migration only. Do not use.
       
      optional bool weak = 10 [default = false, deprecated = true];
      Specified by:
      getWeak in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The weak.
    • setWeak

      @Deprecated public DescriptorProtos.FieldOptions.Builder setWeak(boolean value)
      Deprecated.
      google.protobuf.FieldOptions.weak is deprecated. See google/protobuf/descriptor.proto;l=757
       DEPRECATED. DO NOT USE!
       For Google-internal migration only. Do not use.
       
      optional bool weak = 10 [default = false, deprecated = true];
      Parameters:
      value - The weak to set.
      Returns:
      This builder for chaining.
    • clearWeak

      Deprecated.
      google.protobuf.FieldOptions.weak is deprecated. See google/protobuf/descriptor.proto;l=757
       DEPRECATED. DO NOT USE!
       For Google-internal migration only. Do not use.
       
      optional bool weak = 10 [default = false, deprecated = true];
      Returns:
      This builder for chaining.
    • 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:
      hasDebugRedact in interface DescriptorProtos.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:
      getDebugRedact in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The debugRedact.
    • setDebugRedact

      public DescriptorProtos.FieldOptions.Builder setDebugRedact(boolean value)
       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];
      Parameters:
      value - The debugRedact to set.
      Returns:
      This builder for chaining.
    • clearDebugRedact

      public DescriptorProtos.FieldOptions.Builder clearDebugRedact()
       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];
      Returns:
      This builder for chaining.
    • hasRetention

      public boolean hasRetention()
      optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
      Specified by:
      hasRetention in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the retention field is set.
    • getRetention

      optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
      Specified by:
      getRetention in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The retention.
    • setRetention

      optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
      Parameters:
      value - The retention to set.
      Returns:
      This builder for chaining.
    • clearRetention

      public DescriptorProtos.FieldOptions.Builder clearRetention()
      optional .google.protobuf.FieldOptions.OptionRetention retention = 17;
      Returns:
      This builder for chaining.
    • ensureTargetsIsMutable

      private void ensureTargetsIsMutable()
    • getTargetsList

      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Specified by:
      getTargetsList in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      A list containing the targets.
    • getTargetsCount

      public int getTargetsCount()
      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Specified by:
      getTargetsCount in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The count of targets.
    • getTargets

      public DescriptorProtos.FieldOptions.OptionTargetType getTargets(int index)
      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Specified by:
      getTargets in interface DescriptorProtos.FieldOptionsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The targets at the given index.
    • setTargets

      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Parameters:
      index - The index to set the value at.
      value - The targets to set.
      Returns:
      This builder for chaining.
    • addTargets

      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Parameters:
      value - The targets to add.
      Returns:
      This builder for chaining.
    • addAllTargets

      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Parameters:
      values - The targets to add.
      Returns:
      This builder for chaining.
    • clearTargets

      repeated .google.protobuf.FieldOptions.OptionTargetType targets = 19;
      Returns:
      This builder for chaining.
    • ensureEditionDefaultsIsMutable

      private void ensureEditionDefaultsIsMutable()
    • getEditionDefaultsList

      public List<DescriptorProtos.FieldOptions.EditionDefault> getEditionDefaultsList()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
      Specified by:
      getEditionDefaultsList in interface DescriptorProtos.FieldOptionsOrBuilder
    • getEditionDefaultsCount

      public int getEditionDefaultsCount()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
      Specified by:
      getEditionDefaultsCount in interface DescriptorProtos.FieldOptionsOrBuilder
    • getEditionDefaults

      public DescriptorProtos.FieldOptions.EditionDefault getEditionDefaults(int index)
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
      Specified by:
      getEditionDefaults in interface DescriptorProtos.FieldOptionsOrBuilder
    • setEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • setEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addAllEditionDefaults

      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • clearEditionDefaults

      public DescriptorProtos.FieldOptions.Builder clearEditionDefaults()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • removeEditionDefaults

      public DescriptorProtos.FieldOptions.Builder removeEditionDefaults(int index)
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • getEditionDefaultsBuilder

      public DescriptorProtos.FieldOptions.EditionDefault.Builder getEditionDefaultsBuilder(int index)
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • getEditionDefaultsOrBuilder

      public DescriptorProtos.FieldOptions.EditionDefaultOrBuilder getEditionDefaultsOrBuilder(int index)
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
      Specified by:
      getEditionDefaultsOrBuilder in interface DescriptorProtos.FieldOptionsOrBuilder
    • getEditionDefaultsOrBuilderList

      public List<? extends DescriptorProtos.FieldOptions.EditionDefaultOrBuilder> getEditionDefaultsOrBuilderList()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
      Specified by:
      getEditionDefaultsOrBuilderList in interface DescriptorProtos.FieldOptionsOrBuilder
    • addEditionDefaultsBuilder

      public DescriptorProtos.FieldOptions.EditionDefault.Builder addEditionDefaultsBuilder()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • addEditionDefaultsBuilder

      public DescriptorProtos.FieldOptions.EditionDefault.Builder addEditionDefaultsBuilder(int index)
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • getEditionDefaultsBuilderList

      public List<DescriptorProtos.FieldOptions.EditionDefault.Builder> getEditionDefaultsBuilderList()
      repeated .google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
    • internalGetEditionDefaultsFieldBuilder

    • hasFeatures

      public boolean hasFeatures()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
      Specified by:
      hasFeatures in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the features field is set.
    • getFeatures

      public DescriptorProtos.FeatureSet getFeatures()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
      Specified by:
      getFeatures in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The features.
    • setFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • setFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • mergeFeatures

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • clearFeatures

      public DescriptorProtos.FieldOptions.Builder clearFeatures()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • getFeaturesBuilder

      public DescriptorProtos.FeatureSet.Builder getFeaturesBuilder()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • getFeaturesOrBuilder

      public DescriptorProtos.FeatureSetOrBuilder getFeaturesOrBuilder()
       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
      Specified by:
      getFeaturesOrBuilder in interface DescriptorProtos.FieldOptionsOrBuilder
    • internalGetFeaturesFieldBuilder

       Any features defined in the specific edition.
       WARNING: This field should only be used by protobuf plugins or special
       cases like the proto compiler. Other uses are discouraged and
       developers should rely on the protoreflect APIs for their client language.
       
      optional .google.protobuf.FeatureSet features = 21;
    • hasFeatureSupport

      public boolean hasFeatureSupport()
      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
      Specified by:
      hasFeatureSupport in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      Whether the featureSupport field is set.
    • getFeatureSupport

      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
      Specified by:
      getFeatureSupport in interface DescriptorProtos.FieldOptionsOrBuilder
      Returns:
      The featureSupport.
    • setFeatureSupport

      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • setFeatureSupport

      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • mergeFeatureSupport

      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • clearFeatureSupport

      public DescriptorProtos.FieldOptions.Builder clearFeatureSupport()
      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • getFeatureSupportBuilder

      public DescriptorProtos.FieldOptions.FeatureSupport.Builder getFeatureSupportBuilder()
      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • getFeatureSupportOrBuilder

      public DescriptorProtos.FieldOptions.FeatureSupportOrBuilder getFeatureSupportOrBuilder()
      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
      Specified by:
      getFeatureSupportOrBuilder in interface DescriptorProtos.FieldOptionsOrBuilder
    • internalGetFeatureSupportFieldBuilder

      optional .google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
    • ensureUninterpretedOptionIsMutable

      private void ensureUninterpretedOptionIsMutable()
    • getUninterpretedOptionList

      public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
      Specified by:
      getUninterpretedOptionList in interface DescriptorProtos.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:
      getUninterpretedOptionCount in interface DescriptorProtos.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:
      getUninterpretedOption in interface DescriptorProtos.FieldOptionsOrBuilder
    • setUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • setUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addUninterpretedOption

       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addAllUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • clearUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder clearUninterpretedOption()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • removeUninterpretedOption

      public DescriptorProtos.FieldOptions.Builder removeUninterpretedOption(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • getUninterpretedOptionBuilder

      public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • 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:
      getUninterpretedOptionOrBuilder in interface DescriptorProtos.FieldOptionsOrBuilder
    • getUninterpretedOptionOrBuilderList

      public 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:
      getUninterpretedOptionOrBuilderList in interface DescriptorProtos.FieldOptionsOrBuilder
    • addUninterpretedOptionBuilder

      public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • addUninterpretedOptionBuilder

      public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • getUninterpretedOptionBuilderList

      public List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
    • internalGetUninterpretedOptionFieldBuilder