public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.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.getStatementId() != 0) { setStatementId(other.getStatementId()); } if (other.getMaxRowsTotal() != 0L) { setMaxRowsTotal(other.getMaxRowsTotal()); } if (other.getFirstFrameMaxSize() != 0) { setFirstFrameMaxSize(other.getFirstFrameMaxSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest other) { if (other == org.apache.calcite.avatica.proto.Requests.PrepareAndExecuteRequest.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.getStatementId() != 0) { setStatementId(other.getStatementId()); } if (other.getMaxRowsTotal() != 0L) { setMaxRowsTotal(other.getMaxRowsTotal()); } if (other.getFirstFrameMaxSize() != 0) { setFirstFrameMaxSize(other.getFirstFrameMaxSize()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
setConnectionId(connectionId).setSql(sql).setMaxRowsTotal(maxRowCount). setFirstFrameMaxSize(maxRowsInFirstFrame).build(); .setMaxRowsTotal(maxRowCount).build(); .setMaxRowsTotal(maxRowCount).setFirstFrameMaxSize(maxRowsInFirstFrame).build();
setConnectionId(connectionId).setSql(sql).setMaxRowsTotal(maxRowCount). setFirstFrameMaxSize(maxRowsInFirstFrame).build(); .setMaxRowsTotal(maxRowCount).build(); .setMaxRowsTotal(maxRowCount).setFirstFrameMaxSize(maxRowsInFirstFrame).build();
@Override Requests.PrepareAndExecuteRequest serialize() { Requests.PrepareAndExecuteRequest.Builder builder = Requests.PrepareAndExecuteRequest .newBuilder(); if (null != connectionId) { builder.setConnectionId(connectionId); } if (null != sql) { builder.setSql(sql); } builder.setStatementId(statementId); // Set both attributes for backwards compat builder.setMaxRowCount(maxRowCount).setMaxRowsTotal(maxRowCount); builder.setFirstFrameMaxSize(maxRowsInFirstFrame); return builder.build(); }
@Override Requests.PrepareAndExecuteRequest serialize() { Requests.PrepareAndExecuteRequest.Builder builder = Requests.PrepareAndExecuteRequest .newBuilder(); if (null != connectionId) { builder.setConnectionId(connectionId); } if (null != sql) { builder.setSql(sql); } builder.setStatementId(statementId); // Set both attributes for backwards compat builder.setMaxRowCount(maxRowCount).setMaxRowsTotal(maxRowCount); builder.setFirstFrameMaxSize(maxRowsInFirstFrame); return builder.build(); }