public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, preparedStatement_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, queryId_); } 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.writeEnum(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, preparedStatement_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, error_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(13, queryId_); } getUnknownFields().writeTo(output); }
public Builder mergeFrom(com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp other) { if (other == com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasPreparedStatement()) { mergePreparedStatement(other.getPreparedStatement()); } if (other.hasError()) { mergeError(other.getError()); } if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }