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

alluxio.grpc.table.Value Maven / Gradle / Ivy

// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/table/table_master.proto

package alluxio.grpc.table;

/**
 * Protobuf type {@code alluxio.grpc.table.Value}
 */
public final class Value extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.table.Value)
    ValueOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Value.newBuilder() to construct.
  private Value(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Value() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Value();
  }

  @java.lang.Override
  public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_Value_descriptor;
  }

  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_Value_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.table.Value.class, alluxio.grpc.table.Value.Builder.class);
  }

  private int bitField0_;
  private int valueCase_ = 0;
  private java.lang.Object value_;
  public enum ValueCase
      implements alluxio.shaded.client.com.google.protobuf.Internal.EnumLite,
          alluxio.shaded.client.com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    LONG_TYPE(1),
    DOUBLE_TYPE(2),
    STRING_TYPE(3),
    BOOLEAN_TYPE(4),
    VALUE_NOT_SET(0);
    private final int value;
    private ValueCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ValueCase valueOf(int value) {
      return forNumber(value);
    }

    public static ValueCase forNumber(int value) {
      switch (value) {
        case 1: return LONG_TYPE;
        case 2: return DOUBLE_TYPE;
        case 3: return STRING_TYPE;
        case 4: return BOOLEAN_TYPE;
        case 0: return VALUE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ValueCase
  getValueCase() {
    return ValueCase.forNumber(
        valueCase_);
  }

  public static final int LONG_TYPE_FIELD_NUMBER = 1;
  /**
   * int64 long_type = 1;
   * @return Whether the longType field is set.
   */
  @java.lang.Override
  public boolean hasLongType() {
    return valueCase_ == 1;
  }
  /**
   * int64 long_type = 1;
   * @return The longType.
   */
  @java.lang.Override
  public long getLongType() {
    if (valueCase_ == 1) {
      return (java.lang.Long) value_;
    }
    return 0L;
  }

  public static final int DOUBLE_TYPE_FIELD_NUMBER = 2;
  /**
   * double double_type = 2;
   * @return Whether the doubleType field is set.
   */
  @java.lang.Override
  public boolean hasDoubleType() {
    return valueCase_ == 2;
  }
  /**
   * double double_type = 2;
   * @return The doubleType.
   */
  @java.lang.Override
  public double getDoubleType() {
    if (valueCase_ == 2) {
      return (java.lang.Double) value_;
    }
    return 0D;
  }

  public static final int STRING_TYPE_FIELD_NUMBER = 3;
  /**
   * string string_type = 3;
   * @return Whether the stringType field is set.
   */
  public boolean hasStringType() {
    return valueCase_ == 3;
  }
  /**
   * string string_type = 3;
   * @return The stringType.
   */
  public java.lang.String getStringType() {
    java.lang.Object ref = "";
    if (valueCase_ == 3) {
      ref = value_;
    }
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      alluxio.shaded.client.com.google.protobuf.ByteString bs = 
          (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8() && (valueCase_ == 3)) {
        value_ = s;
      }
      return s;
    }
  }
  /**
   * string string_type = 3;
   * @return The bytes for stringType.
   */
  public alluxio.shaded.client.com.google.protobuf.ByteString
      getStringTypeBytes() {
    java.lang.Object ref = "";
    if (valueCase_ == 3) {
      ref = value_;
    }
    if (ref instanceof java.lang.String) {
      alluxio.shaded.client.com.google.protobuf.ByteString b = 
          alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      if (valueCase_ == 3) {
        value_ = b;
      }
      return b;
    } else {
      return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
    }
  }

  public static final int BOOLEAN_TYPE_FIELD_NUMBER = 4;
  /**
   * bool boolean_type = 4;
   * @return Whether the booleanType field is set.
   */
  @java.lang.Override
  public boolean hasBooleanType() {
    return valueCase_ == 4;
  }
  /**
   * bool boolean_type = 4;
   * @return The booleanType.
   */
  @java.lang.Override
  public boolean getBooleanType() {
    if (valueCase_ == 4) {
      return (java.lang.Boolean) value_;
    }
    return false;
  }

  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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
                      throws java.alluxio.shaded.client.io.IOException {
    if (valueCase_ == 1) {
      output.writeInt64(
          1, (long)((java.lang.Long) value_));
    }
    if (valueCase_ == 2) {
      output.writeDouble(
          2, (double)((java.lang.Double) value_));
    }
    if (valueCase_ == 3) {
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
    }
    if (valueCase_ == 4) {
      output.writeBool(
          4, (boolean)((java.lang.Boolean) value_));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (valueCase_ == 1) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteInt64Size(
            1, (long)((java.lang.Long) value_));
    }
    if (valueCase_ == 2) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteDoubleSize(
            2, (double)((java.lang.Double) value_));
    }
    if (valueCase_ == 3) {
      size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, value_);
    }
    if (valueCase_ == 4) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteBoolSize(
            4, (boolean)((java.lang.Boolean) value_));
    }
    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 alluxio.grpc.table.Value)) {
      return super.equals(obj);
    }
    alluxio.grpc.table.Value other = (alluxio.grpc.table.Value) obj;

    if (!getValueCase().equals(other.getValueCase())) return false;
    switch (valueCase_) {
      case 1:
        if (getLongType()
            != other.getLongType()) return false;
        break;
      case 2:
        if (java.lang.Double.doubleToLongBits(getDoubleType())
            != java.lang.Double.doubleToLongBits(
                other.getDoubleType())) return false;
        break;
      case 3:
        if (!getStringType()
            .equals(other.getStringType())) return false;
        break;
      case 4:
        if (getBooleanType()
            != other.getBooleanType()) return false;
        break;
      case 0:
      default:
    }
    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();
    switch (valueCase_) {
      case 1:
        hash = (37 * hash) + LONG_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
            getLongType());
        break;
      case 2:
        hash = (37 * hash) + DOUBLE_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong(
            java.lang.Double.doubleToLongBits(getDoubleType()));
        break;
      case 3:
        hash = (37 * hash) + STRING_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + getStringType().hashCode();
        break;
      case 4:
        hash = (37 * hash) + BOOLEAN_TYPE_FIELD_NUMBER;
        hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean(
            getBooleanType());
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static alluxio.grpc.table.Value parseFrom(
      java.nio.ByteBuffer data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.Value parseFrom(
      java.nio.ByteBuffer data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.Value parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.Value parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.Value parseFrom(byte[] data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.table.Value parseFrom(
      byte[] data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.table.Value parseFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.Value parseFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.table.Value parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.Value parseDelimitedFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.table.Value parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.table.Value parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(alluxio.grpc.table.Value 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(
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code alluxio.grpc.table.Value}
   */
  public static final class Builder extends
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:alluxio.grpc.table.Value)
      alluxio.grpc.table.ValueOrBuilder {
    public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_Value_descriptor;
    }

    @java.lang.Override
    protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_Value_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.grpc.table.Value.class, alluxio.grpc.table.Value.Builder.class);
    }

    // Construct using alluxio.grpc.table.Value.newBuilder()
    private Builder() {

    }

    private Builder(
        alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      valueCase_ = 0;
      value_ = null;
      return this;
    }

    @java.lang.Override
    public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return alluxio.grpc.table.TableMasterProto.internal_static_alluxio_grpc_table_Value_descriptor;
    }

    @java.lang.Override
    public alluxio.grpc.table.Value getDefaultInstanceForType() {
      return alluxio.grpc.table.Value.getDefaultInstance();
    }

    @java.lang.Override
    public alluxio.grpc.table.Value build() {
      alluxio.grpc.table.Value result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public alluxio.grpc.table.Value buildPartial() {
      alluxio.grpc.table.Value result = new alluxio.grpc.table.Value(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (valueCase_ == 1) {
        result.value_ = value_;
      }
      if (valueCase_ == 2) {
        result.value_ = value_;
      }
      if (valueCase_ == 3) {
        result.value_ = value_;
      }
      if (valueCase_ == 4) {
        result.value_ = value_;
      }
      result.bitField0_ = to_bitField0_;
      result.valueCase_ = valueCase_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
      if (other instanceof alluxio.grpc.table.Value) {
        return mergeFrom((alluxio.grpc.table.Value)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.table.Value other) {
      if (other == alluxio.grpc.table.Value.getDefaultInstance()) return this;
      switch (other.getValueCase()) {
        case LONG_TYPE: {
          setLongType(other.getLongType());
          break;
        }
        case DOUBLE_TYPE: {
          setDoubleType(other.getDoubleType());
          break;
        }
        case STRING_TYPE: {
          valueCase_ = 3;
          value_ = other.value_;
          onChanged();
          break;
        }
        case BOOLEAN_TYPE: {
          setBooleanType(other.getBooleanType());
          break;
        }
        case VALUE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

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

    @java.lang.Override
    public Builder mergeFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.alluxio.shaded.client.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: {
              value_ = input.readInt64();
              valueCase_ = 1;
              break;
            } // case 8
            case 17: {
              value_ = input.readDouble();
              valueCase_ = 2;
              break;
            } // case 17
            case 26: {
              alluxio.shaded.client.com.google.protobuf.ByteString bs = input.readBytes();
              valueCase_ = 3;
              value_ = bs;
              break;
            } // case 26
            case 32: {
              value_ = input.readBool();
              valueCase_ = 4;
              break;
            } // case 32
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int valueCase_ = 0;
    private java.lang.Object value_;
    public ValueCase
        getValueCase() {
      return ValueCase.forNumber(
          valueCase_);
    }

    public Builder clearValue() {
      valueCase_ = 0;
      value_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    /**
     * int64 long_type = 1;
     * @return Whether the longType field is set.
     */
    public boolean hasLongType() {
      return valueCase_ == 1;
    }
    /**
     * int64 long_type = 1;
     * @return The longType.
     */
    public long getLongType() {
      if (valueCase_ == 1) {
        return (java.lang.Long) value_;
      }
      return 0L;
    }
    /**
     * int64 long_type = 1;
     * @param value The longType to set.
     * @return This builder for chaining.
     */
    public Builder setLongType(long value) {
      valueCase_ = 1;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * int64 long_type = 1;
     * @return This builder for chaining.
     */
    public Builder clearLongType() {
      if (valueCase_ == 1) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * double double_type = 2;
     * @return Whether the doubleType field is set.
     */
    public boolean hasDoubleType() {
      return valueCase_ == 2;
    }
    /**
     * double double_type = 2;
     * @return The doubleType.
     */
    public double getDoubleType() {
      if (valueCase_ == 2) {
        return (java.lang.Double) value_;
      }
      return 0D;
    }
    /**
     * double double_type = 2;
     * @param value The doubleType to set.
     * @return This builder for chaining.
     */
    public Builder setDoubleType(double value) {
      valueCase_ = 2;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * double double_type = 2;
     * @return This builder for chaining.
     */
    public Builder clearDoubleType() {
      if (valueCase_ == 2) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }

    /**
     * string string_type = 3;
     * @return Whether the stringType field is set.
     */
    @java.lang.Override
    public boolean hasStringType() {
      return valueCase_ == 3;
    }
    /**
     * string string_type = 3;
     * @return The stringType.
     */
    @java.lang.Override
    public java.lang.String getStringType() {
      java.lang.Object ref = "";
      if (valueCase_ == 3) {
        ref = value_;
      }
      if (!(ref instanceof java.lang.String)) {
        alluxio.shaded.client.com.google.protobuf.ByteString bs =
            (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        if (valueCase_ == 3) {
          if (bs.isValidUtf8()) {
            value_ = s;
          }
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string string_type = 3;
     * @return The bytes for stringType.
     */
    @java.lang.Override
    public alluxio.shaded.client.com.google.protobuf.ByteString
        getStringTypeBytes() {
      java.lang.Object ref = "";
      if (valueCase_ == 3) {
        ref = value_;
      }
      if (ref instanceof String) {
        alluxio.shaded.client.com.google.protobuf.ByteString b = 
            alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        if (valueCase_ == 3) {
          value_ = b;
        }
        return b;
      } else {
        return (alluxio.shaded.client.com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string string_type = 3;
     * @param value The stringType to set.
     * @return This builder for chaining.
     */
    public Builder setStringType(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  valueCase_ = 3;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * string string_type = 3;
     * @return This builder for chaining.
     */
    public Builder clearStringType() {
      if (valueCase_ == 3) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }
    /**
     * string string_type = 3;
     * @param value The bytes for stringType to set.
     * @return This builder for chaining.
     */
    public Builder setStringTypeBytes(
        alluxio.shaded.client.com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  valueCase_ = 3;
      value_ = value;
      onChanged();
      return this;
    }

    /**
     * bool boolean_type = 4;
     * @return Whether the booleanType field is set.
     */
    public boolean hasBooleanType() {
      return valueCase_ == 4;
    }
    /**
     * bool boolean_type = 4;
     * @return The booleanType.
     */
    public boolean getBooleanType() {
      if (valueCase_ == 4) {
        return (java.lang.Boolean) value_;
      }
      return false;
    }
    /**
     * bool boolean_type = 4;
     * @param value The booleanType to set.
     * @return This builder for chaining.
     */
    public Builder setBooleanType(boolean value) {
      valueCase_ = 4;
      value_ = value;
      onChanged();
      return this;
    }
    /**
     * bool boolean_type = 4;
     * @return This builder for chaining.
     */
    public Builder clearBooleanType() {
      if (valueCase_ == 4) {
        valueCase_ = 0;
        value_ = null;
        onChanged();
      }
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:alluxio.grpc.table.Value)
  }

  // @@protoc_insertion_point(class_scope:alluxio.grpc.table.Value)
  private static final alluxio.grpc.table.Value DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new alluxio.grpc.table.Value();
  }

  public static alluxio.grpc.table.Value getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public alluxio.grpc.table.Value getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy