@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 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; }
if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs());
if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs());
? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0;
? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0;
if (other.getHasArgs() != false) { setHasArgs(other.getHasArgs());
? MetaDataOperation.fromProto(protoState.getOp()) : null; Object[] opArgs = null; if (protoState.getHasArgs()) { opArgs = new Object[protoState.getArgsCount()]; int i = 0;
@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; }