Class JavaFeaturesProto.JavaFeatures.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder>
com.google.protobuf.JavaFeaturesProto.JavaFeatures.Builder
All Implemented Interfaces:
JavaFeaturesProto.JavaFeaturesOrBuilder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable
Enclosing class:
JavaFeaturesProto.JavaFeatures

public static final class JavaFeaturesProto.JavaFeatures.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder> implements JavaFeaturesProto.JavaFeaturesOrBuilder
Protobuf type pb.JavaFeatures
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Whether or not to treat an enum field as closed.
    optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
    boolean
    Whether or not to treat an enum field as closed.
    optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
    boolean
    Whether or not to treat an enum field as closed.
    boolean
    optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
    setLegacyClosedEnum(boolean value)
    Whether or not to treat an enum field as closed.
    optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • 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 [json_name = "legacyClosedEnum", 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 [json_name = "legacyClosedEnum", 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 [json_name = "legacyClosedEnum", 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 [json_name = "legacyClosedEnum", 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 [json_name = "utf8Validation", 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 [json_name = "utf8Validation", 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 [json_name = "utf8Validation", 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 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.