public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getSqlQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, handle_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, prepareId_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSqlQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, handle_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, prepareId_); } getUnknownFields().writeTo(output); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasSqlQuery()) { hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER; hash = (53 * hash) + getSqlQuery().hashCode(); } if (hasHandle()) { hash = (37 * hash) + HANDLE_FIELD_NUMBER; hash = (53 * hash) + hashLong(getHandle()); } if (hasPrepareId()) { hash = (37 * hash) + PREPARE_ID_FIELD_NUMBER; hash = (53 * hash) + getPrepareId().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState)) { return super.equals(obj); } com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState other = (com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState) obj; boolean result = true; result = result && (hasSqlQuery() == other.hasSqlQuery()); if (hasSqlQuery()) { result = result && getSqlQuery() .equals(other.getSqlQuery()); } result = result && (hasHandle() == other.hasHandle()); if (hasHandle()) { result = result && (getHandle() == other.getHandle()); } result = result && (hasPrepareId() == other.hasPrepareId()); if (hasPrepareId()) { result = result && getPrepareId() .equals(other.getPrepareId()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState other) { if (other == com.dremio.exec.proto.ExecProtos.ServerPreparedStatementState.getDefaultInstance()) return this; if (other.hasSqlQuery()) { bitField0_ |= 0x00000001; sqlQuery_ = other.sqlQuery_; onChanged(); } if (other.hasHandle()) { setHandle(other.getHandle()); } if (other.hasPrepareId()) { mergePrepareId(other.getPrepareId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }