@java.lang.Override public org.apache.calcite.avatica.proto.Common.QueryState buildPartial() { org.apache.calcite.avatica.proto.Common.QueryState result = new org.apache.calcite.avatica.proto.Common.QueryState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.sql_ = sql_; result.op_ = op_; if (argsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } result.hasArgs_ = hasArgs_; result.hasSql_ = hasSql_; result.hasOp_ = hasOp_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (37 * hash) + HAS_ARGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasArgs()); hash = (37 * hash) + HAS_SQL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasSql()); hash = (37 * hash) + HAS_OP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasOp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.QueryState other) { if (other == org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); setOpValue(other.getOpValue()); if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs()); if (other.getHasSql() != false) { setHasSql(other.getHasSql()); if (other.getHasOp() != false) { setHasOp(other.getHasOp());
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.QueryState other) { if (other == org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); setOpValue(other.getOpValue()); if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs()); if (other.getHasSql() != false) { setHasSql(other.getHasSql()); if (other.getHasOp() != false) { setHasOp(other.getHasOp());
public static QueryState fromProto(Common.QueryState protoState) { StateType type = StateType.fromProto(protoState.getType()); String sql = protoState.getHasSql() ? protoState.getSql() : null; MetaDataOperation op = protoState.getHasOp() ? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING:
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.QueryState other) { if (other == org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); setOpValue(other.getOpValue()); if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs()); if (other.getHasSql() != false) { setHasSql(other.getHasSql()); if (other.getHasOp() != false) { setHasOp(other.getHasOp());
public static QueryState fromProto(Common.QueryState protoState) { StateType type = StateType.fromProto(protoState.getType()); String sql = protoState.getHasSql() ? protoState.getSql() : null; MetaDataOperation op = protoState.getHasOp() ? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING:
public static QueryState fromProto(Common.QueryState protoState) { StateType type = StateType.fromProto(protoState.getType()); String sql = protoState.getHasSql() ? protoState.getSql() : null; MetaDataOperation op = protoState.getHasOp() ? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0; for (Common.MetaDataOperationArgument arg : protoState.getArgsList()) { switch (arg.getType()) { case STRING:
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.QueryState)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.QueryState other = (org.apache.calcite.avatica.proto.Common.QueryState) obj; boolean result = true; result = result && type_ == other.type_; result = result && getSql() .equals(other.getSql()); result = result && op_ == other.op_; result = result && getArgsList() .equals(other.getArgsList()); result = result && (getHasArgs() == other.getHasArgs()); result = result && (getHasSql() == other.getHasSql()); result = result && (getHasOp() == other.getHasOp()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); hash = (37 * hash) + OP_FIELD_NUMBER; hash = (53 * hash) + op_; if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } hash = (37 * hash) + HAS_ARGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasArgs()); hash = (37 * hash) + HAS_SQL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasSql()); hash = (37 * hash) + HAS_OP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasOp()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.QueryState)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.QueryState other = (org.apache.calcite.avatica.proto.Common.QueryState) obj; boolean result = true; result = result && type_ == other.type_; result = result && getSql() .equals(other.getSql()); result = result && op_ == other.op_; result = result && getArgsList() .equals(other.getArgsList()); result = result && (getHasArgs() == other.getHasArgs()); result = result && (getHasSql() == other.getHasSql()); result = result && (getHasOp() == other.getHasOp()); result = result && unknownFields.equals(other.unknownFields); return result; }
public org.apache.calcite.avatica.proto.Common.QueryState buildPartial() { org.apache.calcite.avatica.proto.Common.QueryState result = new org.apache.calcite.avatica.proto.Common.QueryState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.sql_ = sql_; result.op_ = op_; if (argsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } result.hasArgs_ = hasArgs_; result.hasSql_ = hasSql_; result.hasOp_ = hasOp_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public org.apache.calcite.avatica.proto.Common.QueryState buildPartial() { org.apache.calcite.avatica.proto.Common.QueryState result = new org.apache.calcite.avatica.proto.Common.QueryState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.type_ = type_; result.sql_ = sql_; result.op_ = op_; if (argsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { args_ = java.util.Collections.unmodifiableList(args_); bitField0_ = (bitField0_ & ~0x00000008); } result.args_ = args_; } else { result.args_ = argsBuilder_.build(); } result.hasArgs_ = hasArgs_; result.hasSql_ = hasSql_; result.hasOp_ = hasOp_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
@java.lang.Override public org.apache.calcite.avatica.proto.Common.QueryState getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance(); }
@java.lang.Override public org.apache.calcite.avatica.proto.Common.QueryState getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance(); }
/** * <code>.QueryState state = 3;</code> */ public org.apache.calcite.avatica.proto.Common.QueryState getState() { return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_; } /**
public org.apache.calcite.avatica.proto.Common.QueryState getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance(); }
/** * <code>.QueryState state = 3;</code> */ public org.apache.calcite.avatica.proto.Common.QueryStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_; } } /**
/** * <code>.QueryState state = 3;</code> */ public org.apache.calcite.avatica.proto.Common.QueryState getState() { if (stateBuilder_ == null) { return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /**
/** * <code>optional .QueryState state = 3;</code> */ public org.apache.calcite.avatica.proto.Common.QueryState getState() { if (stateBuilder_ == null) { return state_ == null ? org.apache.calcite.avatica.proto.Common.QueryState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /**