@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().hashCode(); hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); hash = (37 * hash) + MAX_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxRowCount()); hash = (37 * hash) + MAX_ROWS_TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxRowsTotal()); 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) + CONNECTION_ID_FIELD_NUMBER; hash = (53 * hash) + getConnectionId().hashCode(); hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); hash = (37 * hash) + MAX_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxRowCount()); hash = (37 * hash) + MAX_ROWS_TOTAL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getMaxRowsTotal()); 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.Requests.PrepareRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.PrepareRequest other = (org.apache.calcite.avatica.proto.Requests.PrepareRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && getSql() .equals(other.getSql()); result = result && (getMaxRowCount() == other.getMaxRowCount()); result = result && (getMaxRowsTotal() == other.getMaxRowsTotal()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Requests.PrepareRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.PrepareRequest other = (org.apache.calcite.avatica.proto.Requests.PrepareRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && getSql() .equals(other.getSql()); result = result && (getMaxRowCount() == other.getMaxRowCount()); result = result && (getMaxRowsTotal() == other.getMaxRowsTotal()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } if (other.getMaxRowCount() != 0L) { setMaxRowCount(other.getMaxRowCount()); } if (other.getMaxRowsTotal() != 0L) { setMaxRowsTotal(other.getMaxRowsTotal()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override PrepareRequest deserialize(Message genericMsg) { final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.PrepareRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } String sql = null; if (msg.hasField(SQL_DESCRIPTOR)) { sql = msg.getSql(); } // Use the old field unless the new field is provided long totalRowsForStatement = msg.getMaxRowCount(); if (msg.hasField(MAX_ROWS_TOTAL_DESCRIPTOR)) { totalRowsForStatement = msg.getMaxRowsTotal(); } return new PrepareRequest(connectionId, sql, totalRowsForStatement); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } if (other.getMaxRowCount() != 0L) { setMaxRowCount(other.getMaxRowCount()); } if (other.getMaxRowsTotal() != 0L) { setMaxRowsTotal(other.getMaxRowsTotal()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override PrepareRequest deserialize(Message genericMsg) { final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.PrepareRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } String sql = null; if (msg.hasField(SQL_DESCRIPTOR)) { sql = msg.getSql(); } // Use the old field unless the new field is provided long totalRowsForStatement = msg.getMaxRowCount(); if (msg.hasField(MAX_ROWS_TOTAL_DESCRIPTOR)) { totalRowsForStatement = msg.getMaxRowsTotal(); } return new PrepareRequest(connectionId, sql, totalRowsForStatement); }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.PrepareRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } if (other.getMaxRowCount() != 0L) { setMaxRowCount(other.getMaxRowCount()); } onChanged(); return this; }
@Override PrepareRequest deserialize(Message genericMsg) { final Requests.PrepareRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.PrepareRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.PrepareRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } String sql = null; if (ProtobufService.hasField(msg, desc, Requests.PrepareRequest.SQL_FIELD_NUMBER)) { sql = msg.getSql(); } return new PrepareRequest(connectionId, sql, msg.getMaxRowCount()); }
/** * <code>string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
/** * <code>optional string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**
/** * <code>string connection_id = 1;</code> */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /**