All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.protobuf.JavaFeaturesProto Maven / Gradle / Ivy

Go to download

Core Protocol Buffers library. Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/java_features.proto
// Protobuf Java Version: 4.29.2

package com.google.protobuf;

public final class JavaFeaturesProto {
  private JavaFeaturesProto() {}
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 29,
      /* patch= */ 2,
      /* suffix= */ "",
      JavaFeaturesProto.class.getName());
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.google.protobuf.JavaFeaturesProto.java_);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface JavaFeaturesOrBuilder extends
      // @@protoc_insertion_point(interface_extends:pb.JavaFeatures)
      com.google.protobuf.MessageOrBuilder {

    /**
     * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return Whether the legacyClosedEnum field is set.
     */
    boolean hasLegacyClosedEnum();
    /**
     * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return The legacyClosedEnum.
     */
    boolean getLegacyClosedEnum();

    /**
     * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return Whether the utf8Validation field is set.
     */
    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 = { ... }
     * @return The utf8Validation.
     */
    com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation();
  }
  /**
   * Protobuf type {@code pb.JavaFeatures}
   */
  public static final class JavaFeatures extends
      com.google.protobuf.GeneratedMessage implements
      // @@protoc_insertion_point(message_implements:pb.JavaFeatures)
      JavaFeaturesOrBuilder {
  private static final long serialVersionUID = 0L;
    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 29,
        /* patch= */ 2,
        /* suffix= */ "",
        JavaFeatures.class.getName());
    }
    // Use JavaFeatures.newBuilder() to construct.
    private JavaFeatures(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
    }
    private JavaFeatures() {
      utf8Validation_ = 0;
    }

    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.protobuf.JavaFeaturesProto.internal_static_pb_JavaFeatures_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.protobuf.JavaFeaturesProto.internal_static_pb_JavaFeatures_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.protobuf.JavaFeaturesProto.JavaFeatures.class, com.google.protobuf.JavaFeaturesProto.JavaFeatures.Builder.class);
    }

    /**
     * Protobuf enum {@code pb.JavaFeatures.Utf8Validation}
     */
    public enum Utf8Validation
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * UTF8_VALIDATION_UNKNOWN = 0;
       */
      UTF8_VALIDATION_UNKNOWN(0),
      /**
       * DEFAULT = 1;
       */
      DEFAULT(1),
      /**
       * VERIFY = 2;
       */
      VERIFY(2),
      ;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
          com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
          /* major= */ 4,
          /* minor= */ 29,
          /* patch= */ 2,
          /* suffix= */ "",
          Utf8Validation.class.getName());
      }
      /**
       * UTF8_VALIDATION_UNKNOWN = 0;
       */
      public static final int UTF8_VALIDATION_UNKNOWN_VALUE = 0;
      /**
       * DEFAULT = 1;
       */
      public static final int DEFAULT_VALUE = 1;
      /**
       * VERIFY = 2;
       */
      public static final int VERIFY_VALUE = 2;


      public final int getNumber() {
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Utf8Validation valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Utf8Validation forNumber(int value) {
        switch (value) {
          case 0: return UTF8_VALIDATION_UNKNOWN;
          case 1: return DEFAULT;
          case 2: return VERIFY;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Utf8Validation> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap() {
              public Utf8Validation findValueByNumber(int number) {
                return Utf8Validation.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDescriptor().getEnumTypes().get(0);
      }

      private static final Utf8Validation[] VALUES = values();

      public static Utf8Validation valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Utf8Validation(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:pb.JavaFeatures.Utf8Validation)
    }

    private int bitField0_;
    public static final int LEGACY_CLOSED_ENUM_FIELD_NUMBER = 1;
    private boolean legacyClosedEnum_ = false;
    /**
     * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return Whether the legacyClosedEnum field is set.
     */
    @java.lang.Override
    public boolean hasLegacyClosedEnum() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return The legacyClosedEnum.
     */
    @java.lang.Override
    public boolean getLegacyClosedEnum() {
      return legacyClosedEnum_;
    }

    public static final int UTF8_VALIDATION_FIELD_NUMBER = 2;
    private int utf8Validation_ = 0;
    /**
     * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return Whether the utf8Validation field is set.
     */
    @java.lang.Override public boolean hasUtf8Validation() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
     * @return The utf8Validation.
     */
    @java.lang.Override public com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation() {
      com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation result = com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.forNumber(utf8Validation_);
      return result == null ? com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.UTF8_VALIDATION_UNKNOWN : result;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeBool(1, legacyClosedEnum_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        output.writeEnum(2, utf8Validation_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(1, legacyClosedEnum_);
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, utf8Validation_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.protobuf.JavaFeaturesProto.JavaFeatures)) {
        return super.equals(obj);
      }
      com.google.protobuf.JavaFeaturesProto.JavaFeatures other = (com.google.protobuf.JavaFeaturesProto.JavaFeatures) obj;

      if (hasLegacyClosedEnum() != other.hasLegacyClosedEnum()) return false;
      if (hasLegacyClosedEnum()) {
        if (getLegacyClosedEnum()
            != other.getLegacyClosedEnum()) return false;
      }
      if (hasUtf8Validation() != other.hasUtf8Validation()) return false;
      if (hasUtf8Validation()) {
        if (utf8Validation_ != other.utf8Validation_) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasLegacyClosedEnum()) {
        hash = (37 * hash) + LEGACY_CLOSED_ENUM_FIELD_NUMBER;
        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
            getLegacyClosedEnum());
      }
      if (hasUtf8Validation()) {
        hash = (37 * hash) + UTF8_VALIDATION_FIELD_NUMBER;
        hash = (53 * hash) + utf8Validation_;
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input);
    }
    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.google.protobuf.JavaFeaturesProto.JavaFeatures prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code pb.JavaFeatures}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder implements
        // @@protoc_insertion_point(builder_implements:pb.JavaFeatures)
        com.google.protobuf.JavaFeaturesProto.JavaFeaturesOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.protobuf.JavaFeaturesProto.internal_static_pb_JavaFeatures_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.protobuf.JavaFeaturesProto.internal_static_pb_JavaFeatures_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.protobuf.JavaFeaturesProto.JavaFeatures.class, com.google.protobuf.JavaFeaturesProto.JavaFeatures.Builder.class);
      }

      // Construct using com.google.protobuf.JavaFeaturesProto.JavaFeatures.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        legacyClosedEnum_ = false;
        utf8Validation_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.protobuf.JavaFeaturesProto.internal_static_pb_JavaFeatures_descriptor;
      }

      @java.lang.Override
      public com.google.protobuf.JavaFeaturesProto.JavaFeatures getDefaultInstanceForType() {
        return com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDefaultInstance();
      }

      @java.lang.Override
      public com.google.protobuf.JavaFeaturesProto.JavaFeatures build() {
        com.google.protobuf.JavaFeaturesProto.JavaFeatures result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.protobuf.JavaFeaturesProto.JavaFeatures buildPartial() {
        com.google.protobuf.JavaFeaturesProto.JavaFeatures result = new com.google.protobuf.JavaFeaturesProto.JavaFeatures(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.google.protobuf.JavaFeaturesProto.JavaFeatures result) {
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.legacyClosedEnum_ = legacyClosedEnum_;
          to_bitField0_ |= 0x00000001;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.utf8Validation_ = utf8Validation_;
          to_bitField0_ |= 0x00000002;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.protobuf.JavaFeaturesProto.JavaFeatures) {
          return mergeFrom((com.google.protobuf.JavaFeaturesProto.JavaFeatures)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.protobuf.JavaFeaturesProto.JavaFeatures other) {
        if (other == com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDefaultInstance()) return this;
        if (other.hasLegacyClosedEnum()) {
          setLegacyClosedEnum(other.getLegacyClosedEnum());
        }
        if (other.hasUtf8Validation()) {
          setUtf8Validation(other.getUtf8Validation());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8: {
                legacyClosedEnum_ = input.readBool();
                bitField0_ |= 0x00000001;
                break;
              } // case 8
              case 16: {
                int tmpRaw = input.readEnum();
                com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation tmpValue =
                    com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.forNumber(tmpRaw);
                if (tmpValue == null) {
                  mergeUnknownVarintField(2, tmpRaw);
                } else {
                  utf8Validation_ = tmpRaw;
                  bitField0_ |= 0x00000002;
                }
                break;
              } // case 16
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private boolean legacyClosedEnum_ ;
      /**
       * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return Whether the legacyClosedEnum field is set.
       */
      @java.lang.Override
      public boolean hasLegacyClosedEnum() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return The legacyClosedEnum.
       */
      @java.lang.Override
      public boolean getLegacyClosedEnum() {
        return legacyClosedEnum_;
      }
      /**
       * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @param value The legacyClosedEnum to set.
       * @return This builder for chaining.
       */
      public Builder setLegacyClosedEnum(boolean value) {

        legacyClosedEnum_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * optional bool legacy_closed_enum = 1 [json_name = "legacyClosedEnum", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return This builder for chaining.
       */
      public Builder clearLegacyClosedEnum() {
        bitField0_ = (bitField0_ & ~0x00000001);
        legacyClosedEnum_ = false;
        onChanged();
        return this;
      }

      private int utf8Validation_ = 0;
      /**
       * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return Whether the utf8Validation field is set.
       */
      @java.lang.Override public boolean hasUtf8Validation() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return The utf8Validation.
       */
      @java.lang.Override
      public com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation() {
        com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation result = com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.forNumber(utf8Validation_);
        return result == null ? com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation.UTF8_VALIDATION_UNKNOWN : result;
      }
      /**
       * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @param value The utf8Validation to set.
       * @return This builder for chaining.
       */
      public Builder setUtf8Validation(com.google.protobuf.JavaFeaturesProto.JavaFeatures.Utf8Validation value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        utf8Validation_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [json_name = "utf8Validation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
       * @return This builder for chaining.
       */
      public Builder clearUtf8Validation() {
        bitField0_ = (bitField0_ & ~0x00000002);
        utf8Validation_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:pb.JavaFeatures)
    }

    // @@protoc_insertion_point(class_scope:pb.JavaFeatures)
    private static final com.google.protobuf.JavaFeaturesProto.JavaFeatures DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.protobuf.JavaFeaturesProto.JavaFeatures();
    }

    public static com.google.protobuf.JavaFeaturesProto.JavaFeatures getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public JavaFeatures parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.JavaFeaturesProto.JavaFeatures getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public static final int JAVA_FIELD_NUMBER = 1001;
  /**
   * extend .google.protobuf.FeatureSet { ... }
   */
  public static final
    com.google.protobuf.GeneratedMessage.GeneratedExtension<
      com.google.protobuf.DescriptorProtos.FeatureSet,
      com.google.protobuf.JavaFeaturesProto.JavaFeatures> java_ = com.google.protobuf.GeneratedMessage
          .newFileScopedGeneratedExtension(
        com.google.protobuf.JavaFeaturesProto.JavaFeatures.class,
        com.google.protobuf.JavaFeaturesProto.JavaFeatures.getDefaultInstance());
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_pb_JavaFeatures_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_pb_JavaFeatures_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n#google/protobuf/java_features.proto\022\002p" +
      "b\032 google/protobuf/descriptor.proto\"\233\005\n\014" +
      "JavaFeatures\022\220\002\n\022legacy_closed_enum\030\001 \001(" +
      "\010B\341\001\210\001\001\230\001\004\230\001\001\242\001\t\022\004true\030\204\007\242\001\n\022\005false\030\347\007\262\001" +
      "\273\001\010\350\007\020\350\007\032\262\001The legacy closed enum behavi" +
      "or in Java is deprecated and is schedule" +
      "d to be removed in edition 2025.  See ht" +
      "tp://protobuf.dev/programming-guides/enu" +
      "m/#java for more information.R\020legacyClo" +
      "sedEnum\022\257\002\n\017utf8_validation\030\002 \001(\0162\037.pb.J" +
      "avaFeatures.Utf8ValidationB\344\001\210\001\001\230\001\004\230\001\001\242\001" +
      "\014\022\007DEFAULT\030\204\007\262\001\310\001\010\350\007\020\351\007\032\277\001The Java-speci" +
      "fic utf8 validation feature is deprecate" +
      "d and is scheduled to be removed in edit" +
      "ion 2025.  Utf8 validation behavior shou" +
      "ld use the global cross-language utf8_va" +
      "lidation feature.R\016utf8Validation\"F\n\016Utf" +
      "8Validation\022\033\n\027UTF8_VALIDATION_UNKNOWN\020\000" +
      "\022\013\n\007DEFAULT\020\001\022\n\n\006VERIFY\020\002:B\n\004java\022\033.goog" +
      "le.protobuf.FeatureSet\030\351\007 \001(\0132\020.pb.JavaF" +
      "eaturesR\004javaB(\n\023com.google.protobufB\021Ja" +
      "vaFeaturesProto"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.DescriptorProtos.getDescriptor(),
        });
    internal_static_pb_JavaFeatures_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_pb_JavaFeatures_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessage.FieldAccessorTable(
        internal_static_pb_JavaFeatures_descriptor,
        new java.lang.String[] { "LegacyClosedEnum", "Utf8Validation", });
    java_.internalInit(descriptor.getExtensions().get(0));
    descriptor.resolveAllFeaturesImmutable();
    com.google.protobuf.DescriptorProtos.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy