Class JavaFeaturesProto.JavaFeatures.Builder

All Implemented Interfaces:
JavaFeaturesProto.JavaFeaturesOrBuilder, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Enclosing class:
JavaFeaturesProto.JavaFeatures

Protobuf type pb.JavaFeatures
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • hasLegacyClosedEnum

      public boolean hasLegacyClosedEnum()
       Whether or not to treat an enum field as closed.  This option is only
       applicable to enum fields, and will be removed in the future.  It is
       consistent with the legacy behavior of using proto3 enum types for proto2
       fields.
       
      optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasLegacyClosedEnum in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      Whether the legacyClosedEnum field is set.
    • getLegacyClosedEnum

      public boolean getLegacyClosedEnum()
       Whether or not to treat an enum field as closed.  This option is only
       applicable to enum fields, and will be removed in the future.  It is
       consistent with the legacy behavior of using proto3 enum types for proto2
       fields.
       
      optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getLegacyClosedEnum in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      The legacyClosedEnum.
    • setLegacyClosedEnum

      public JavaFeaturesProto.JavaFeatures.Builder setLegacyClosedEnum(boolean value)
       Whether or not to treat an enum field as closed.  This option is only
       applicable to enum fields, and will be removed in the future.  It is
       consistent with the legacy behavior of using proto3 enum types for proto2
       fields.
       
      optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The legacyClosedEnum to set.
      Returns:
      This builder for chaining.
    • clearLegacyClosedEnum

      public JavaFeaturesProto.JavaFeatures.Builder clearLegacyClosedEnum()
       Whether or not to treat an enum field as closed.  This option is only
       applicable to enum fields, and will be removed in the future.  It is
       consistent with the legacy behavior of using proto3 enum types for proto2
       fields.
       
      optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • hasUtf8Validation

      public boolean hasUtf8Validation()
      optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasUtf8Validation in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      Whether the utf8Validation field is set.
    • getUtf8Validation

      optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getUtf8Validation in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      The utf8Validation.
    • setUtf8Validation

      optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for utf8Validation to set.
      Returns:
      This builder for chaining.
    • clearUtf8Validation

      public JavaFeaturesProto.JavaFeatures.Builder clearUtf8Validation()
      optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • hasLargeEnum

      public boolean hasLargeEnum()
       Allows creation of large Java enums, extending beyond the standard
       constant limits imposed by the Java language.
       
      optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasLargeEnum in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      Whether the largeEnum field is set.
    • getLargeEnum

      public boolean getLargeEnum()
       Allows creation of large Java enums, extending beyond the standard
       constant limits imposed by the Java language.
       
      optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getLargeEnum in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      The largeEnum.
    • setLargeEnum

      public JavaFeaturesProto.JavaFeatures.Builder setLargeEnum(boolean value)
       Allows creation of large Java enums, extending beyond the standard
       constant limits imposed by the Java language.
       
      optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The largeEnum to set.
      Returns:
      This builder for chaining.
    • clearLargeEnum

      public JavaFeaturesProto.JavaFeatures.Builder clearLargeEnum()
       Allows creation of large Java enums, extending beyond the standard
       constant limits imposed by the Java language.
       
      optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • hasUseOldOuterClassnameDefault

      public boolean hasUseOldOuterClassnameDefault()
       Whether to use the old default outer class name scheme, or the new feature
       which adds a "Proto" suffix to the outer class name.
      
       Users will not be able to set this option, because we removed it in the
       same edition that it was introduced. But we use it to determine which
       naming scheme to use for outer class name defaults.
       
      optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasUseOldOuterClassnameDefault in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      Whether the useOldOuterClassnameDefault field is set.
    • getUseOldOuterClassnameDefault

      public boolean getUseOldOuterClassnameDefault()
       Whether to use the old default outer class name scheme, or the new feature
       which adds a "Proto" suffix to the outer class name.
      
       Users will not be able to set this option, because we removed it in the
       same edition that it was introduced. But we use it to determine which
       naming scheme to use for outer class name defaults.
       
      optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getUseOldOuterClassnameDefault in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      The useOldOuterClassnameDefault.
    • setUseOldOuterClassnameDefault

      public JavaFeaturesProto.JavaFeatures.Builder setUseOldOuterClassnameDefault(boolean value)
       Whether to use the old default outer class name scheme, or the new feature
       which adds a "Proto" suffix to the outer class name.
      
       Users will not be able to set this option, because we removed it in the
       same edition that it was introduced. But we use it to determine which
       naming scheme to use for outer class name defaults.
       
      optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The useOldOuterClassnameDefault to set.
      Returns:
      This builder for chaining.
    • clearUseOldOuterClassnameDefault

      public JavaFeaturesProto.JavaFeatures.Builder clearUseOldOuterClassnameDefault()
       Whether to use the old default outer class name scheme, or the new feature
       which adds a "Proto" suffix to the outer class name.
      
       Users will not be able to set this option, because we removed it in the
       same edition that it was introduced. But we use it to determine which
       naming scheme to use for outer class name defaults.
       
      optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • hasNestInFileClass

      public boolean hasNestInFileClass()
       Whether to nest the generated class in the generated file class. This is
       only applicable to *top-level* messages, enums, and services.
       
      optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
      Specified by:
      hasNestInFileClass in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      Whether the nestInFileClass field is set.
    • getNestInFileClass

       Whether to nest the generated class in the generated file class. This is
       only applicable to *top-level* messages, enums, and services.
       
      optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
      Specified by:
      getNestInFileClass in interface JavaFeaturesProto.JavaFeaturesOrBuilder
      Returns:
      The nestInFileClass.
    • setNestInFileClass

       Whether to nest the generated class in the generated file class. This is
       only applicable to *top-level* messages, enums, and services.
       
      optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for nestInFileClass to set.
      Returns:
      This builder for chaining.
    • clearNestInFileClass

      public JavaFeaturesProto.JavaFeatures.Builder clearNestInFileClass()
       Whether to nest the generated class in the generated file class. This is
       only applicable to *top-level* messages, enums, and services.
       
      optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
      Returns:
      This builder for chaining.