Class DescriptorProtos.FieldOptions.FeatureSupport.Builder

All Implemented Interfaces:
DescriptorProtos.FieldOptions.FeatureSupportOrBuilder, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Enclosing class:
DescriptorProtos.FieldOptions.FeatureSupport

Information about the support window of a feature.
Protobuf type google.protobuf.FieldOptions.FeatureSupport
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • hasEditionIntroduced

      public boolean hasEditionIntroduced()
      The edition that this feature was first available in.  In editions
      earlier than this one, the default assigned to EDITION_LEGACY will be
      used, and proto files will not be able to override it.
      
      optional .google.protobuf.Edition edition_introduced = 1;
      Specified by:
      hasEditionIntroduced in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      Whether the editionIntroduced field is set.
    • getEditionIntroduced

      public DescriptorProtos.Edition getEditionIntroduced()
      The edition that this feature was first available in.  In editions
      earlier than this one, the default assigned to EDITION_LEGACY will be
      used, and proto files will not be able to override it.
      
      optional .google.protobuf.Edition edition_introduced = 1;
      Specified by:
      getEditionIntroduced in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      The editionIntroduced.
    • setEditionIntroduced

      The edition that this feature was first available in.  In editions
      earlier than this one, the default assigned to EDITION_LEGACY will be
      used, and proto files will not be able to override it.
      
      optional .google.protobuf.Edition edition_introduced = 1;
      Parameters:
      value - The enum numeric value on the wire for editionIntroduced to set.
      Returns:
      This builder for chaining.
    • clearEditionIntroduced

      The edition that this feature was first available in.  In editions
      earlier than this one, the default assigned to EDITION_LEGACY will be
      used, and proto files will not be able to override it.
      
      optional .google.protobuf.Edition edition_introduced = 1;
      Returns:
      This builder for chaining.
    • hasEditionDeprecated

      public boolean hasEditionDeprecated()
      The edition this feature becomes deprecated in.  Using this after this
      edition may trigger warnings.
      
      optional .google.protobuf.Edition edition_deprecated = 2;
      Specified by:
      hasEditionDeprecated in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      Whether the editionDeprecated field is set.
    • getEditionDeprecated

      public DescriptorProtos.Edition getEditionDeprecated()
      The edition this feature becomes deprecated in.  Using this after this
      edition may trigger warnings.
      
      optional .google.protobuf.Edition edition_deprecated = 2;
      Specified by:
      getEditionDeprecated in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      The editionDeprecated.
    • setEditionDeprecated

      The edition this feature becomes deprecated in.  Using this after this
      edition may trigger warnings.
      
      optional .google.protobuf.Edition edition_deprecated = 2;
      Parameters:
      value - The enum numeric value on the wire for editionDeprecated to set.
      Returns:
      This builder for chaining.
    • clearEditionDeprecated

      The edition this feature becomes deprecated in.  Using this after this
      edition may trigger warnings.
      
      optional .google.protobuf.Edition edition_deprecated = 2;
      Returns:
      This builder for chaining.
    • hasDeprecationWarning

      public boolean hasDeprecationWarning()
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Specified by:
      hasDeprecationWarning in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      Whether the deprecationWarning field is set.
    • getDeprecationWarning

      public String getDeprecationWarning()
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Specified by:
      getDeprecationWarning in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      The deprecationWarning.
    • getDeprecationWarningBytes

      public ByteString getDeprecationWarningBytes()
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Specified by:
      getDeprecationWarningBytes in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      The bytes for deprecationWarning.
    • setDeprecationWarning

      public DescriptorProtos.FieldOptions.FeatureSupport.Builder setDeprecationWarning(String value)
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Parameters:
      value - The deprecationWarning to set.
      Returns:
      This builder for chaining.
    • clearDeprecationWarning

      public DescriptorProtos.FieldOptions.FeatureSupport.Builder clearDeprecationWarning()
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Returns:
      This builder for chaining.
    • setDeprecationWarningBytes

      public DescriptorProtos.FieldOptions.FeatureSupport.Builder setDeprecationWarningBytes(ByteString value)
      The deprecation warning text if this feature is used after the edition it
      was marked deprecated in.
      
      optional string deprecation_warning = 3;
      Parameters:
      value - The bytes for deprecationWarning to set.
      Returns:
      This builder for chaining.
    • hasEditionRemoved

      public boolean hasEditionRemoved()
      The edition this feature is no longer available in.  In editions after
      this one, the last default assigned will be used, and proto files will
      not be able to override it.
      
      optional .google.protobuf.Edition edition_removed = 4;
      Specified by:
      hasEditionRemoved in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      Whether the editionRemoved field is set.
    • getEditionRemoved

      public DescriptorProtos.Edition getEditionRemoved()
      The edition this feature is no longer available in.  In editions after
      this one, the last default assigned will be used, and proto files will
      not be able to override it.
      
      optional .google.protobuf.Edition edition_removed = 4;
      Specified by:
      getEditionRemoved in interface DescriptorProtos.FieldOptions.FeatureSupportOrBuilder
      Returns:
      The editionRemoved.
    • setEditionRemoved

      The edition this feature is no longer available in.  In editions after
      this one, the last default assigned will be used, and proto files will
      not be able to override it.
      
      optional .google.protobuf.Edition edition_removed = 4;
      Parameters:
      value - The enum numeric value on the wire for editionRemoved to set.
      Returns:
      This builder for chaining.
    • clearEditionRemoved

      The edition this feature is no longer available in.  In editions after
      this one, the last default assigned will be used, and proto files will
      not be able to override it.
      
      optional .google.protobuf.Edition edition_removed = 4;
      Returns:
      This builder for chaining.