@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) + STATEMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getStatementId(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (37 * hash) + FETCH_MAX_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFetchMaxRowCount(); hash = (37 * hash) + FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getFrameMaxSize(); 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) + STATEMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getStatementId(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getOffset()); hash = (37 * hash) + FETCH_MAX_ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + getFetchMaxRowCount(); hash = (37 * hash) + FRAME_MAX_SIZE_FIELD_NUMBER; hash = (53 * hash) + getFrameMaxSize(); 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.FetchRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.FetchRequest other = (org.apache.calcite.avatica.proto.Requests.FetchRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && (getStatementId() == other.getStatementId()); result = result && (getOffset() == other.getOffset()); result = result && (getFetchMaxRowCount() == other.getFetchMaxRowCount()); result = result && (getFrameMaxSize() == other.getFrameMaxSize()); 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.FetchRequest)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Requests.FetchRequest other = (org.apache.calcite.avatica.proto.Requests.FetchRequest) obj; boolean result = true; result = result && getConnectionId() .equals(other.getConnectionId()); result = result && (getStatementId() == other.getStatementId()); result = result && (getOffset() == other.getOffset()); result = result && (getFetchMaxRowCount() == other.getFetchMaxRowCount()); result = result && (getFrameMaxSize() == other.getFrameMaxSize()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.FetchRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.FetchRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.getStatementId() != 0) { setStatementId(other.getStatementId()); } if (other.getOffset() != 0L) { setOffset(other.getOffset()); } if (other.getFetchMaxRowCount() != 0) { setFetchMaxRowCount(other.getFetchMaxRowCount()); } if (other.getFrameMaxSize() != 0) { setFrameMaxSize(other.getFrameMaxSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.FetchRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.FetchRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.getStatementId() != 0) { setStatementId(other.getStatementId()); } if (other.getOffset() != 0L) { setOffset(other.getOffset()); } if (other.getFetchMaxRowCount() != 0) { setFetchMaxRowCount(other.getFetchMaxRowCount()); } if (other.getFrameMaxSize() != 0) { setFrameMaxSize(other.getFrameMaxSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.FetchRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.FetchRequest.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.getStatementId() != 0) { setStatementId(other.getStatementId()); } if (other.getOffset() != 0L) { setOffset(other.getOffset()); } if (other.getFetchMaxRowCount() != 0) { setFetchMaxRowCount(other.getFetchMaxRowCount()); } onChanged(); return this; }
@Override FetchRequest deserialize(Message genericMsg) { final Requests.FetchRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.FetchRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } int fetchMaxRowCount = msg.getFetchMaxRowCount(); if (msg.hasField(FRAME_MAX_SIZE_DESCRIPTOR)) { fetchMaxRowCount = msg.getFrameMaxSize(); } return new FetchRequest(connectionId, msg.getStatementId(), msg.getOffset(), fetchMaxRowCount); }
@Override FetchRequest deserialize(Message genericMsg) { final Requests.FetchRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.FetchRequest.class); final Descriptor desc = msg.getDescriptorForType(); String connectionId = null; if (ProtobufService.hasField(msg, desc, Requests.FetchRequest.CONNECTION_ID_FIELD_NUMBER)) { connectionId = msg.getConnectionId(); } return new FetchRequest(connectionId, msg.getStatementId(), msg.getOffset(), msg.getFetchMaxRowCount()); }
@Override FetchRequest deserialize(Message genericMsg) { final Requests.FetchRequest msg = ProtobufService.castProtobufMessage(genericMsg, Requests.FetchRequest.class); String connectionId = null; if (msg.hasField(CONNECTION_ID_DESCRIPTOR)) { connectionId = msg.getConnectionId(); } int fetchMaxRowCount = msg.getFetchMaxRowCount(); if (msg.hasField(FRAME_MAX_SIZE_DESCRIPTOR)) { fetchMaxRowCount = msg.getFrameMaxSize(); } return new FetchRequest(connectionId, msg.getStatementId(), msg.getOffset(), fetchMaxRowCount); }