public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp prototype) {
public static Builder newBuilder(com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public static CreatePreparedStatementResp build(BatchSchema schema, ServerPreparedStatementState handle, QueryId queryId, String catalogName) { final CreatePreparedStatementResp.Builder respBuilder = CreatePreparedStatementResp.newBuilder(); final PreparedStatement.Builder prepStmtBuilder = PreparedStatement.newBuilder(); prepStmtBuilder.setServerHandle(PreparedStatementHandle.newBuilder().setServerInfo(handle.toByteString())); for (Field field : schema) { prepStmtBuilder.addColumns(serializeColumn(field, catalogName)); } respBuilder.setStatus(RequestStatus.OK); respBuilder.setPreparedStatement(prepStmtBuilder.build()); respBuilder.setQueryId(queryId); return respBuilder.build(); }
public com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp.Builder newMessage() { return com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp.newBuilder(); } public java.lang.String getFieldName(int number)
@Override protected CreatePreparedStatementResp getException(UserException ex) { final CreatePreparedStatementResp.Builder respBuilder = CreatePreparedStatementResp.newBuilder(); respBuilder.setStatus(RequestStatus.FAILED); respBuilder.setError(ex.getOrCreatePBError(false)); return respBuilder.build(); }