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

com.scalar.db.rpc.ConditionalExpression Maven / Gradle / Ivy

There is a newer version: 3.13.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: scalardb.proto

package com.scalar.db.rpc;

/**
 * Protobuf type {@code rpc.ConditionalExpression}
 */
public final class ConditionalExpression extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:rpc.ConditionalExpression)
    ConditionalExpressionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ConditionalExpression.newBuilder() to construct.
  private ConditionalExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ConditionalExpression() {
    name_ = "";
    operator_ = 0;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.scalar.db.rpc.ConditionalExpression.class, com.scalar.db.rpc.ConditionalExpression.Builder.class);
  }

  /**
   * Protobuf enum {@code rpc.ConditionalExpression.Operator}
   */
  public enum Operator
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * EQ = 0;
     */
    EQ(0),
    /**
     * NE = 1;
     */
    NE(1),
    /**
     * GT = 2;
     */
    GT(2),
    /**
     * GTE = 3;
     */
    GTE(3),
    /**
     * LT = 4;
     */
    LT(4),
    /**
     * LTE = 5;
     */
    LTE(5),
    /**
     * IS_NULL = 6;
     */
    IS_NULL(6),
    /**
     * IS_NOT_NULL = 7;
     */
    IS_NOT_NULL(7),
    UNRECOGNIZED(-1),
    ;

    /**
     * EQ = 0;
     */
    public static final int EQ_VALUE = 0;
    /**
     * NE = 1;
     */
    public static final int NE_VALUE = 1;
    /**
     * GT = 2;
     */
    public static final int GT_VALUE = 2;
    /**
     * GTE = 3;
     */
    public static final int GTE_VALUE = 3;
    /**
     * LT = 4;
     */
    public static final int LT_VALUE = 4;
    /**
     * LTE = 5;
     */
    public static final int LTE_VALUE = 5;
    /**
     * IS_NULL = 6;
     */
    public static final int IS_NULL_VALUE = 6;
    /**
     * IS_NOT_NULL = 7;
     */
    public static final int IS_NOT_NULL_VALUE = 7;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      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 Operator 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 Operator forNumber(int value) {
      switch (value) {
        case 0: return EQ;
        case 1: return NE;
        case 2: return GT;
        case 3: return GTE;
        case 4: return LT;
        case 5: return LTE;
        case 6: return IS_NULL;
        case 7: return IS_NOT_NULL;
        default: return null;
      }
    }

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

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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.scalar.db.rpc.ConditionalExpression.getDescriptor().getEnumTypes().get(0);
    }

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

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

    private final int value;

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

    // @@protoc_insertion_point(enum_scope:rpc.ConditionalExpression.Operator)
  }

  public static final int NAME_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private volatile java.lang.Object name_ = "";
  /**
   * string name = 1 [deprecated = true];
   * @deprecated rpc.ConditionalExpression.name is deprecated.
   *     See scalardb.proto;l=91
   * @return The name.
   */
  @java.lang.Override
  @java.lang.Deprecated public java.lang.String getName() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      name_ = s;
      return s;
    }
  }
  /**
   * string name = 1 [deprecated = true];
   * @deprecated rpc.ConditionalExpression.name is deprecated.
   *     See scalardb.proto;l=91
   * @return The bytes for name.
   */
  @java.lang.Override
  @java.lang.Deprecated public com.google.protobuf.ByteString
      getNameBytes() {
    java.lang.Object ref = name_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      name_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VALUE_FIELD_NUMBER = 2;
  private com.scalar.db.rpc.Value value_;
  /**
   * .rpc.Value value = 2 [deprecated = true];
   * @deprecated rpc.ConditionalExpression.value is deprecated.
   *     See scalardb.proto;l=92
   * @return Whether the value field is set.
   */
  @java.lang.Override
  @java.lang.Deprecated public boolean hasValue() {
    return value_ != null;
  }
  /**
   * .rpc.Value value = 2 [deprecated = true];
   * @deprecated rpc.ConditionalExpression.value is deprecated.
   *     See scalardb.proto;l=92
   * @return The value.
   */
  @java.lang.Override
  @java.lang.Deprecated public com.scalar.db.rpc.Value getValue() {
    return value_ == null ? com.scalar.db.rpc.Value.getDefaultInstance() : value_;
  }
  /**
   * .rpc.Value value = 2 [deprecated = true];
   */
  @java.lang.Override
  @java.lang.Deprecated public com.scalar.db.rpc.ValueOrBuilder getValueOrBuilder() {
    return value_ == null ? com.scalar.db.rpc.Value.getDefaultInstance() : value_;
  }

  public static final int OPERATOR_FIELD_NUMBER = 3;
  private int operator_ = 0;
  /**
   * .rpc.ConditionalExpression.Operator operator = 3;
   * @return The enum numeric value on the wire for operator.
   */
  @java.lang.Override public int getOperatorValue() {
    return operator_;
  }
  /**
   * .rpc.ConditionalExpression.Operator operator = 3;
   * @return The operator.
   */
  @java.lang.Override public com.scalar.db.rpc.ConditionalExpression.Operator getOperator() {
    com.scalar.db.rpc.ConditionalExpression.Operator result = com.scalar.db.rpc.ConditionalExpression.Operator.forNumber(operator_);
    return result == null ? com.scalar.db.rpc.ConditionalExpression.Operator.UNRECOGNIZED : result;
  }

  public static final int COLUMN_FIELD_NUMBER = 4;
  private com.scalar.db.rpc.Column column_;
  /**
   * .rpc.Column column = 4;
   * @return Whether the column field is set.
   */
  @java.lang.Override
  public boolean hasColumn() {
    return column_ != null;
  }
  /**
   * .rpc.Column column = 4;
   * @return The column.
   */
  @java.lang.Override
  public com.scalar.db.rpc.Column getColumn() {
    return column_ == null ? com.scalar.db.rpc.Column.getDefaultInstance() : column_;
  }
  /**
   * .rpc.Column column = 4;
   */
  @java.lang.Override
  public com.scalar.db.rpc.ColumnOrBuilder getColumnOrBuilder() {
    return column_ == null ? com.scalar.db.rpc.Column.getDefaultInstance() : column_;
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (value_ != null) {
      output.writeMessage(2, getValue());
    }
    if (operator_ != com.scalar.db.rpc.ConditionalExpression.Operator.EQ.getNumber()) {
      output.writeEnum(3, operator_);
    }
    if (column_ != null) {
      output.writeMessage(4, getColumn());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (value_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getValue());
    }
    if (operator_ != com.scalar.db.rpc.ConditionalExpression.Operator.EQ.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(3, operator_);
    }
    if (column_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getColumn());
    }
    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.scalar.db.rpc.ConditionalExpression)) {
      return super.equals(obj);
    }
    com.scalar.db.rpc.ConditionalExpression other = (com.scalar.db.rpc.ConditionalExpression) obj;

    if (!getName()
        .equals(other.getName())) return false;
    if (hasValue() != other.hasValue()) return false;
    if (hasValue()) {
      if (!getValue()
          .equals(other.getValue())) return false;
    }
    if (operator_ != other.operator_) return false;
    if (hasColumn() != other.hasColumn()) return false;
    if (hasColumn()) {
      if (!getColumn()
          .equals(other.getColumn())) 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();
    hash = (37 * hash) + NAME_FIELD_NUMBER;
    hash = (53 * hash) + getName().hashCode();
    if (hasValue()) {
      hash = (37 * hash) + VALUE_FIELD_NUMBER;
      hash = (53 * hash) + getValue().hashCode();
    }
    hash = (37 * hash) + OPERATOR_FIELD_NUMBER;
    hash = (53 * hash) + operator_;
    if (hasColumn()) {
      hash = (37 * hash) + COLUMN_FIELD_NUMBER;
      hash = (53 * hash) + getColumn().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.scalar.db.rpc.ConditionalExpression parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return 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(com.scalar.db.rpc.ConditionalExpression 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.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code rpc.ConditionalExpression}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:rpc.ConditionalExpression)
      com.scalar.db.rpc.ConditionalExpressionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.scalar.db.rpc.ConditionalExpression.class, com.scalar.db.rpc.ConditionalExpression.Builder.class);
    }

    // Construct using com.scalar.db.rpc.ConditionalExpression.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      name_ = "";
      value_ = null;
      if (valueBuilder_ != null) {
        valueBuilder_.dispose();
        valueBuilder_ = null;
      }
      operator_ = 0;
      column_ = null;
      if (columnBuilder_ != null) {
        columnBuilder_.dispose();
        columnBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.scalar.db.rpc.ScalarDbProto.internal_static_rpc_ConditionalExpression_descriptor;
    }

    @java.lang.Override
    public com.scalar.db.rpc.ConditionalExpression getDefaultInstanceForType() {
      return com.scalar.db.rpc.ConditionalExpression.getDefaultInstance();
    }

    @java.lang.Override
    public com.scalar.db.rpc.ConditionalExpression build() {
      com.scalar.db.rpc.ConditionalExpression result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.scalar.db.rpc.ConditionalExpression buildPartial() {
      com.scalar.db.rpc.ConditionalExpression result = new com.scalar.db.rpc.ConditionalExpression(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.scalar.db.rpc.ConditionalExpression result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.name_ = name_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.value_ = valueBuilder_ == null
            ? value_
            : valueBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.operator_ = operator_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.column_ = columnBuilder_ == null
            ? column_
            : columnBuilder_.build();
      }
    }

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

    public Builder mergeFrom(com.scalar.db.rpc.ConditionalExpression other) {
      if (other == com.scalar.db.rpc.ConditionalExpression.getDefaultInstance()) return this;
      if (!other.getName().isEmpty()) {
        name_ = other.name_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (other.hasValue()) {
        mergeValue(other.getValue());
      }
      if (other.operator_ != 0) {
        setOperatorValue(other.getOperatorValue());
      }
      if (other.hasColumn()) {
        mergeColumn(other.getColumn());
      }
      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 10: {
              name_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getValueFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 24: {
              operator_ = input.readEnum();
              bitField0_ |= 0x00000004;
              break;
            } // case 24
            case 34: {
              input.readMessage(
                  getColumnFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000008;
              break;
            } // case 34
            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 java.lang.Object name_ = "";
    /**
     * string name = 1 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.name is deprecated.
     *     See scalardb.proto;l=91
     * @return The name.
     */
    @java.lang.Deprecated public java.lang.String getName() {
      java.lang.Object ref = name_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        name_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string name = 1 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.name is deprecated.
     *     See scalardb.proto;l=91
     * @return The bytes for name.
     */
    @java.lang.Deprecated public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string name = 1 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.name is deprecated.
     *     See scalardb.proto;l=91
     * @param value The name to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated public Builder setName(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * string name = 1 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.name is deprecated.
     *     See scalardb.proto;l=91
     * @return This builder for chaining.
     */
    @java.lang.Deprecated public Builder clearName() {
      name_ = getDefaultInstance().getName();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * string name = 1 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.name is deprecated.
     *     See scalardb.proto;l=91
     * @param value The bytes for name to set.
     * @return This builder for chaining.
     */
    @java.lang.Deprecated public Builder setNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      name_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private com.scalar.db.rpc.Value value_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.Value, com.scalar.db.rpc.Value.Builder, com.scalar.db.rpc.ValueOrBuilder> valueBuilder_;
    /**
     * .rpc.Value value = 2 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.value is deprecated.
     *     See scalardb.proto;l=92
     * @return Whether the value field is set.
     */
    @java.lang.Deprecated public boolean hasValue() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     * @deprecated rpc.ConditionalExpression.value is deprecated.
     *     See scalardb.proto;l=92
     * @return The value.
     */
    @java.lang.Deprecated public com.scalar.db.rpc.Value getValue() {
      if (valueBuilder_ == null) {
        return value_ == null ? com.scalar.db.rpc.Value.getDefaultInstance() : value_;
      } else {
        return valueBuilder_.getMessage();
      }
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public Builder setValue(com.scalar.db.rpc.Value value) {
      if (valueBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        value_ = value;
      } else {
        valueBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public Builder setValue(
        com.scalar.db.rpc.Value.Builder builderForValue) {
      if (valueBuilder_ == null) {
        value_ = builderForValue.build();
      } else {
        valueBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public Builder mergeValue(com.scalar.db.rpc.Value value) {
      if (valueBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          value_ != null &&
          value_ != com.scalar.db.rpc.Value.getDefaultInstance()) {
          getValueBuilder().mergeFrom(value);
        } else {
          value_ = value;
        }
      } else {
        valueBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public Builder clearValue() {
      bitField0_ = (bitField0_ & ~0x00000002);
      value_ = null;
      if (valueBuilder_ != null) {
        valueBuilder_.dispose();
        valueBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public com.scalar.db.rpc.Value.Builder getValueBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getValueFieldBuilder().getBuilder();
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    @java.lang.Deprecated public com.scalar.db.rpc.ValueOrBuilder getValueOrBuilder() {
      if (valueBuilder_ != null) {
        return valueBuilder_.getMessageOrBuilder();
      } else {
        return value_ == null ?
            com.scalar.db.rpc.Value.getDefaultInstance() : value_;
      }
    }
    /**
     * .rpc.Value value = 2 [deprecated = true];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.Value, com.scalar.db.rpc.Value.Builder, com.scalar.db.rpc.ValueOrBuilder> 
        getValueFieldBuilder() {
      if (valueBuilder_ == null) {
        valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.Value, com.scalar.db.rpc.Value.Builder, com.scalar.db.rpc.ValueOrBuilder>(
                getValue(),
                getParentForChildren(),
                isClean());
        value_ = null;
      }
      return valueBuilder_;
    }

    private int operator_ = 0;
    /**
     * .rpc.ConditionalExpression.Operator operator = 3;
     * @return The enum numeric value on the wire for operator.
     */
    @java.lang.Override public int getOperatorValue() {
      return operator_;
    }
    /**
     * .rpc.ConditionalExpression.Operator operator = 3;
     * @param value The enum numeric value on the wire for operator to set.
     * @return This builder for chaining.
     */
    public Builder setOperatorValue(int value) {
      operator_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * .rpc.ConditionalExpression.Operator operator = 3;
     * @return The operator.
     */
    @java.lang.Override
    public com.scalar.db.rpc.ConditionalExpression.Operator getOperator() {
      com.scalar.db.rpc.ConditionalExpression.Operator result = com.scalar.db.rpc.ConditionalExpression.Operator.forNumber(operator_);
      return result == null ? com.scalar.db.rpc.ConditionalExpression.Operator.UNRECOGNIZED : result;
    }
    /**
     * .rpc.ConditionalExpression.Operator operator = 3;
     * @param value The operator to set.
     * @return This builder for chaining.
     */
    public Builder setOperator(com.scalar.db.rpc.ConditionalExpression.Operator value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000004;
      operator_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * .rpc.ConditionalExpression.Operator operator = 3;
     * @return This builder for chaining.
     */
    public Builder clearOperator() {
      bitField0_ = (bitField0_ & ~0x00000004);
      operator_ = 0;
      onChanged();
      return this;
    }

    private com.scalar.db.rpc.Column column_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.Column, com.scalar.db.rpc.Column.Builder, com.scalar.db.rpc.ColumnOrBuilder> columnBuilder_;
    /**
     * .rpc.Column column = 4;
     * @return Whether the column field is set.
     */
    public boolean hasColumn() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * .rpc.Column column = 4;
     * @return The column.
     */
    public com.scalar.db.rpc.Column getColumn() {
      if (columnBuilder_ == null) {
        return column_ == null ? com.scalar.db.rpc.Column.getDefaultInstance() : column_;
      } else {
        return columnBuilder_.getMessage();
      }
    }
    /**
     * .rpc.Column column = 4;
     */
    public Builder setColumn(com.scalar.db.rpc.Column value) {
      if (columnBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        column_ = value;
      } else {
        columnBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .rpc.Column column = 4;
     */
    public Builder setColumn(
        com.scalar.db.rpc.Column.Builder builderForValue) {
      if (columnBuilder_ == null) {
        column_ = builderForValue.build();
      } else {
        columnBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .rpc.Column column = 4;
     */
    public Builder mergeColumn(com.scalar.db.rpc.Column value) {
      if (columnBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0) &&
          column_ != null &&
          column_ != com.scalar.db.rpc.Column.getDefaultInstance()) {
          getColumnBuilder().mergeFrom(value);
        } else {
          column_ = value;
        }
      } else {
        columnBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * .rpc.Column column = 4;
     */
    public Builder clearColumn() {
      bitField0_ = (bitField0_ & ~0x00000008);
      column_ = null;
      if (columnBuilder_ != null) {
        columnBuilder_.dispose();
        columnBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .rpc.Column column = 4;
     */
    public com.scalar.db.rpc.Column.Builder getColumnBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return getColumnFieldBuilder().getBuilder();
    }
    /**
     * .rpc.Column column = 4;
     */
    public com.scalar.db.rpc.ColumnOrBuilder getColumnOrBuilder() {
      if (columnBuilder_ != null) {
        return columnBuilder_.getMessageOrBuilder();
      } else {
        return column_ == null ?
            com.scalar.db.rpc.Column.getDefaultInstance() : column_;
      }
    }
    /**
     * .rpc.Column column = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.scalar.db.rpc.Column, com.scalar.db.rpc.Column.Builder, com.scalar.db.rpc.ColumnOrBuilder> 
        getColumnFieldBuilder() {
      if (columnBuilder_ == null) {
        columnBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.scalar.db.rpc.Column, com.scalar.db.rpc.Column.Builder, com.scalar.db.rpc.ColumnOrBuilder>(
                getColumn(),
                getParentForChildren(),
                isClean());
        column_ = null;
      }
      return columnBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:rpc.ConditionalExpression)
  }

  // @@protoc_insertion_point(class_scope:rpc.ConditionalExpression)
  private static final com.scalar.db.rpc.ConditionalExpression DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.scalar.db.rpc.ConditionalExpression();
  }

  public static com.scalar.db.rpc.ConditionalExpression getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ConditionalExpression 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.scalar.db.rpc.ConditionalExpression getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy