Class DescriptorProtos.FieldOptions.FeatureSupport.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

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

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionIntroduced​(DescriptorProtos.Edition value)
         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

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder 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.
      • setEditionDeprecated

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionDeprecated​(DescriptorProtos.Edition value)
         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

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder 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.
      • setDeprecationWarning

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder setDeprecationWarning​(java.lang.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.
      • setEditionRemoved

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder setEditionRemoved​(DescriptorProtos.Edition value)
         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

        public DescriptorProtos.FieldOptions.FeatureSupport.Builder 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.