@Override protected MessageLite getResponseDefaultInstance(int rpcType) throws RpcException { switch (rpcType) { case RpcType.ACK_VALUE: return Ack.getDefaultInstance(); case RpcType.HANDSHAKE_VALUE: return BitToUserHandshake.getDefaultInstance(); case RpcType.QUERY_HANDLE_VALUE: return QueryId.getDefaultInstance(); case RpcType.QUERY_RESULT_VALUE: return QueryResult.getDefaultInstance(); case RpcType.QUERY_DATA_VALUE: return QueryData.getDefaultInstance(); case RpcType.QUERY_PLAN_FRAGMENTS_VALUE: return QueryPlanFragments.getDefaultInstance(); case RpcType.CATALOGS_VALUE: return GetCatalogsResp.getDefaultInstance(); case RpcType.SCHEMAS_VALUE: return GetSchemasResp.getDefaultInstance(); case RpcType.TABLES_VALUE: return GetTablesResp.getDefaultInstance(); case RpcType.COLUMNS_VALUE: return GetColumnsResp.getDefaultInstance(); case RpcType.PREPARED_STATEMENT_VALUE: return CreatePreparedStatementResp.getDefaultInstance(); case RpcType.SERVER_META_VALUE: return GetServerMetaResp.getDefaultInstance(); } throw new RpcException(String.format("Unable to deal with RpcType of %d", rpcType)); }
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; }
public com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp getDefaultInstanceForType() { return com.dremio.exec.proto.UserProtos.CreatePreparedStatementResp.getDefaultInstance(); }