Class JavaFeaturesProto.JavaFeatures.Builder

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

public static final class JavaFeaturesProto.JavaFeatures.Builder extends GeneratedMessage.Builder<JavaFeaturesProto.JavaFeatures.Builder> implements JavaFeaturesProto.JavaFeaturesOrBuilder
Protobuf type pb.JavaFeatures
  • Field Details

    • bitField0_

      private int bitField0_
    • legacyClosedEnum_

      private boolean legacyClosedEnum_
    • utf8Validation_

      private int utf8Validation_
    • useOldOuterClassnameDefault_

      private boolean useOldOuterClassnameDefault_
  • 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<JavaFeaturesProto.JavaFeatures.Builder>
    • 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.Builder<JavaFeaturesProto.JavaFeatures.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<JavaFeaturesProto.JavaFeatures.Builder>
    • getDefaultInstanceForType

      public JavaFeaturesProto.JavaFeatures 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 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 JavaFeaturesProto.JavaFeatures 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
    • buildPartial0

      private void buildPartial0(JavaFeaturesProto.JavaFeatures 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<JavaFeaturesProto.JavaFeatures.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.Builder<JavaFeaturesProto.JavaFeatures.Builder>
    • mergeFrom

      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<JavaFeaturesProto.JavaFeatures.Builder>
      Throws:
      IOException - an I/O error reading from the stream
    • 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 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.
    • 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.