/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: User.proto package org.apache.drill.exec.proto; public final class UserProtos { private UserProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } /** * Protobuf enum {@code exec.user.RpcType} * * <pre> *//// User <-> Bit RPC /////// * </pre> */ public enum RpcType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>HANDSHAKE = 0;</code> */ HANDSHAKE(0, 0), /** * <code>ACK = 1;</code> */ ACK(1, 1), /** * <code>GOODBYE = 2;</code> */ GOODBYE(2, 2), /** * <code>RUN_QUERY = 3;</code> * * <pre> * user to bit * </pre> */ RUN_QUERY(3, 3), /** * <code>CANCEL_QUERY = 4;</code> * * <pre> * user is sending a query cancellation request to the drillbit * </pre> */ CANCEL_QUERY(4, 4), /** * <code>REQUEST_RESULTS = 5;</code> */ REQUEST_RESULTS(5, 5), /** * <code>RESUME_PAUSED_QUERY = 11;</code> * * <pre> * user is sending a query resume request to the drillbit * </pre> */ RESUME_PAUSED_QUERY(6, 11), /** * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code> * * <pre> * to get plan fragments from query * </pre> */ GET_QUERY_PLAN_FRAGMENTS(7, 12), /** * <code>GET_CATALOGS = 14;</code> * * <pre> * user is requesting metadata of catalog(s). * </pre> */ GET_CATALOGS(8, 14), /** * <code>GET_SCHEMAS = 15;</code> * * <pre> * user is requesting metadata of schema(s) * </pre> */ GET_SCHEMAS(9, 15), /** * <code>GET_TABLES = 16;</code> * * <pre> * user is requesting metadata of table(s) * </pre> */ GET_TABLES(10, 16), /** * <code>GET_COLUMNS = 17;</code> * * <pre> * user is requesting metadata of column(s) * </pre> */ GET_COLUMNS(11, 17), /** * <code>CREATE_PREPARED_STATEMENT = 22;</code> * * <pre> * user is sending a request to create prepared statement * </pre> */ CREATE_PREPARED_STATEMENT(12, 22), /** * <code>GET_SERVER_META = 8;</code> * * <pre> * user is sending a request to receive server metadata * </pre> */ GET_SERVER_META(13, 8), /** * <code>QUERY_DATA = 6;</code> * * <pre> * bit to user * </pre> */ QUERY_DATA(14, 6), /** * <code>QUERY_HANDLE = 7;</code> */ QUERY_HANDLE(15, 7), /** * <code>QUERY_PLAN_FRAGMENTS = 13;</code> * * <pre> * return plan fragments * </pre> */ QUERY_PLAN_FRAGMENTS(16, 13), /** * <code>CATALOGS = 18;</code> * * <pre> * return catalogs metadata in response to GET_CATALOGS * </pre> */ CATALOGS(17, 18), /** * <code>SCHEMAS = 19;</code> * * <pre> * return schema metadata in response to GET_SCHEMAS * </pre> */ SCHEMAS(18, 19), /** * <code>TABLES = 20;</code> * * <pre> * return table metadata in response to GET_TABLES * </pre> */ TABLES(19, 20), /** * <code>COLUMNS = 21;</code> * * <pre> * return column metadata in response to GET_COLUMNS * </pre> */ COLUMNS(20, 21), /** * <code>PREPARED_STATEMENT = 23;</code> * * <pre> * return preparated statement in response to CREATE_PREPARED_STATEMENT * </pre> */ PREPARED_STATEMENT(21, 23), /** * <code>SERVER_META = 9;</code> * * <pre> * return server infos in respose to GET_SERVER_META * </pre> */ SERVER_META(22, 9), /** * <code>QUERY_RESULT = 10;</code> * * <pre> * drillbit is reporting a query status change, most likely a terminal message, to the user * </pre> */ QUERY_RESULT(23, 10), /** * <code>SASL_MESSAGE = 24;</code> * * <pre> * user to bit and bit to user * </pre> */ SASL_MESSAGE(24, 24), ; /** * <code>HANDSHAKE = 0;</code> */ public static final int HANDSHAKE_VALUE = 0; /** * <code>ACK = 1;</code> */ public static final int ACK_VALUE = 1; /** * <code>GOODBYE = 2;</code> */ public static final int GOODBYE_VALUE = 2; /** * <code>RUN_QUERY = 3;</code> * * <pre> * user to bit * </pre> */ public static final int RUN_QUERY_VALUE = 3; /** * <code>CANCEL_QUERY = 4;</code> * * <pre> * user is sending a query cancellation request to the drillbit * </pre> */ public static final int CANCEL_QUERY_VALUE = 4; /** * <code>REQUEST_RESULTS = 5;</code> */ public static final int REQUEST_RESULTS_VALUE = 5; /** * <code>RESUME_PAUSED_QUERY = 11;</code> * * <pre> * user is sending a query resume request to the drillbit * </pre> */ public static final int RESUME_PAUSED_QUERY_VALUE = 11; /** * <code>GET_QUERY_PLAN_FRAGMENTS = 12;</code> * * <pre> * to get plan fragments from query * </pre> */ public static final int GET_QUERY_PLAN_FRAGMENTS_VALUE = 12; /** * <code>GET_CATALOGS = 14;</code> * * <pre> * user is requesting metadata of catalog(s). * </pre> */ public static final int GET_CATALOGS_VALUE = 14; /** * <code>GET_SCHEMAS = 15;</code> * * <pre> * user is requesting metadata of schema(s) * </pre> */ public static final int GET_SCHEMAS_VALUE = 15; /** * <code>GET_TABLES = 16;</code> * * <pre> * user is requesting metadata of table(s) * </pre> */ public static final int GET_TABLES_VALUE = 16; /** * <code>GET_COLUMNS = 17;</code> * * <pre> * user is requesting metadata of column(s) * </pre> */ public static final int GET_COLUMNS_VALUE = 17; /** * <code>CREATE_PREPARED_STATEMENT = 22;</code> * * <pre> * user is sending a request to create prepared statement * </pre> */ public static final int CREATE_PREPARED_STATEMENT_VALUE = 22; /** * <code>GET_SERVER_META = 8;</code> * * <pre> * user is sending a request to receive server metadata * </pre> */ public static final int GET_SERVER_META_VALUE = 8; /** * <code>QUERY_DATA = 6;</code> * * <pre> * bit to user * </pre> */ public static final int QUERY_DATA_VALUE = 6; /** * <code>QUERY_HANDLE = 7;</code> */ public static final int QUERY_HANDLE_VALUE = 7; /** * <code>QUERY_PLAN_FRAGMENTS = 13;</code> * * <pre> * return plan fragments * </pre> */ public static final int QUERY_PLAN_FRAGMENTS_VALUE = 13; /** * <code>CATALOGS = 18;</code> * * <pre> * return catalogs metadata in response to GET_CATALOGS * </pre> */ public static final int CATALOGS_VALUE = 18; /** * <code>SCHEMAS = 19;</code> * * <pre> * return schema metadata in response to GET_SCHEMAS * </pre> */ public static final int SCHEMAS_VALUE = 19; /** * <code>TABLES = 20;</code> * * <pre> * return table metadata in response to GET_TABLES * </pre> */ public static final int TABLES_VALUE = 20; /** * <code>COLUMNS = 21;</code> * * <pre> * return column metadata in response to GET_COLUMNS * </pre> */ public static final int COLUMNS_VALUE = 21; /** * <code>PREPARED_STATEMENT = 23;</code> * * <pre> * return preparated statement in response to CREATE_PREPARED_STATEMENT * </pre> */ public static final int PREPARED_STATEMENT_VALUE = 23; /** * <code>SERVER_META = 9;</code> * * <pre> * return server infos in respose to GET_SERVER_META * </pre> */ public static final int SERVER_META_VALUE = 9; /** * <code>QUERY_RESULT = 10;</code> * * <pre> * drillbit is reporting a query status change, most likely a terminal message, to the user * </pre> */ public static final int QUERY_RESULT_VALUE = 10; /** * <code>SASL_MESSAGE = 24;</code> * * <pre> * user to bit and bit to user * </pre> */ public static final int SASL_MESSAGE_VALUE = 24; public final int getNumber() { return value; } public static RpcType valueOf(int value) { switch (value) { case 0: return HANDSHAKE; case 1: return ACK; case 2: return GOODBYE; case 3: return RUN_QUERY; case 4: return CANCEL_QUERY; case 5: return REQUEST_RESULTS; case 11: return RESUME_PAUSED_QUERY; case 12: return GET_QUERY_PLAN_FRAGMENTS; case 14: return GET_CATALOGS; case 15: return GET_SCHEMAS; case 16: return GET_TABLES; case 17: return GET_COLUMNS; case 22: return CREATE_PREPARED_STATEMENT; case 8: return GET_SERVER_META; case 6: return QUERY_DATA; case 7: return QUERY_HANDLE; case 13: return QUERY_PLAN_FRAGMENTS; case 18: return CATALOGS; case 19: return SCHEMAS; case 20: return TABLES; case 21: return COLUMNS; case 23: return PREPARED_STATEMENT; case 9: return SERVER_META; case 10: return QUERY_RESULT; case 24: return SASL_MESSAGE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<RpcType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<RpcType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<RpcType>() { public RpcType findValueByNumber(int number) { return RpcType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(0); } private static final RpcType[] VALUES = values(); public static RpcType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private RpcType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.RpcType) } /** * Protobuf enum {@code exec.user.SaslSupport} */ public enum SaslSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNKNOWN_SASL_SUPPORT = 0;</code> */ UNKNOWN_SASL_SUPPORT(0, 0), /** * <code>SASL_AUTH = 1;</code> */ SASL_AUTH(1, 1), ; /** * <code>UNKNOWN_SASL_SUPPORT = 0;</code> */ public static final int UNKNOWN_SASL_SUPPORT_VALUE = 0; /** * <code>SASL_AUTH = 1;</code> */ public static final int SASL_AUTH_VALUE = 1; public final int getNumber() { return value; } public static SaslSupport valueOf(int value) { switch (value) { case 0: return UNKNOWN_SASL_SUPPORT; case 1: return SASL_AUTH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<SaslSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<SaslSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<SaslSupport>() { public SaslSupport findValueByNumber(int number) { return SaslSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(1); } private static final SaslSupport[] VALUES = values(); public static SaslSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private SaslSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.SaslSupport) } /** * Protobuf enum {@code exec.user.QueryResultsMode} */ public enum QueryResultsMode implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STREAM_FULL = 1;</code> * * <pre> * Server will inform the client regularly on the status of the query. Once the query is completed, service will inform the client as each query chunk is made available. * </pre> */ STREAM_FULL(0, 1), ; /** * <code>STREAM_FULL = 1;</code> * * <pre> * Server will inform the client regularly on the status of the query. Once the query is completed, service will inform the client as each query chunk is made available. * </pre> */ public static final int STREAM_FULL_VALUE = 1; public final int getNumber() { return value; } public static QueryResultsMode valueOf(int value) { switch (value) { case 1: return STREAM_FULL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<QueryResultsMode> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<QueryResultsMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<QueryResultsMode>() { public QueryResultsMode findValueByNumber(int number) { return QueryResultsMode.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(2); } private static final QueryResultsMode[] VALUES = values(); public static QueryResultsMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private QueryResultsMode(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.QueryResultsMode) } /** * Protobuf enum {@code exec.user.HandshakeStatus} */ public enum HandshakeStatus implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SUCCESS = 1;</code> * * <pre> * Handshake is successful (including authentication if any) * </pre> */ SUCCESS(0, 1), /** * <code>RPC_VERSION_MISMATCH = 2;</code> * * <pre> * Client and Server RPC versions are different * </pre> */ RPC_VERSION_MISMATCH(1, 2), /** * <code>AUTH_FAILED = 3;</code> * * <pre> * User authentication failed * </pre> */ AUTH_FAILED(2, 3), /** * <code>UNKNOWN_FAILURE = 4;</code> * * <pre> * Unknown failure, refer to the error message for more details * </pre> */ UNKNOWN_FAILURE(3, 4), /** * <code>AUTH_REQUIRED = 5;</code> * * <pre> * User authentication required * </pre> */ AUTH_REQUIRED(4, 5), ; /** * <code>SUCCESS = 1;</code> * * <pre> * Handshake is successful (including authentication if any) * </pre> */ public static final int SUCCESS_VALUE = 1; /** * <code>RPC_VERSION_MISMATCH = 2;</code> * * <pre> * Client and Server RPC versions are different * </pre> */ public static final int RPC_VERSION_MISMATCH_VALUE = 2; /** * <code>AUTH_FAILED = 3;</code> * * <pre> * User authentication failed * </pre> */ public static final int AUTH_FAILED_VALUE = 3; /** * <code>UNKNOWN_FAILURE = 4;</code> * * <pre> * Unknown failure, refer to the error message for more details * </pre> */ public static final int UNKNOWN_FAILURE_VALUE = 4; /** * <code>AUTH_REQUIRED = 5;</code> * * <pre> * User authentication required * </pre> */ public static final int AUTH_REQUIRED_VALUE = 5; public final int getNumber() { return value; } public static HandshakeStatus valueOf(int value) { switch (value) { case 1: return SUCCESS; case 2: return RPC_VERSION_MISMATCH; case 3: return AUTH_FAILED; case 4: return UNKNOWN_FAILURE; case 5: return AUTH_REQUIRED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<HandshakeStatus> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<HandshakeStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<HandshakeStatus>() { public HandshakeStatus findValueByNumber(int number) { return HandshakeStatus.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(3); } private static final HandshakeStatus[] VALUES = values(); public static HandshakeStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private HandshakeStatus(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.HandshakeStatus) } /** * Protobuf enum {@code exec.user.RequestStatus} * * <pre> * * Enum indicating the request status. * </pre> */ public enum RequestStatus implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNKNOWN_STATUS = 0;</code> */ UNKNOWN_STATUS(0, 0), /** * <code>OK = 1;</code> */ OK(1, 1), /** * <code>FAILED = 2;</code> */ FAILED(2, 2), /** * <code>TIMEOUT = 3;</code> * * <pre> ** * Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request. * </pre> */ TIMEOUT(3, 3), ; /** * <code>UNKNOWN_STATUS = 0;</code> */ public static final int UNKNOWN_STATUS_VALUE = 0; /** * <code>OK = 1;</code> */ public static final int OK_VALUE = 1; /** * <code>FAILED = 2;</code> */ public static final int FAILED_VALUE = 2; /** * <code>TIMEOUT = 3;</code> * * <pre> ** * Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request. * </pre> */ public static final int TIMEOUT_VALUE = 3; public final int getNumber() { return value; } public static RequestStatus valueOf(int value) { switch (value) { case 0: return UNKNOWN_STATUS; case 1: return OK; case 2: return FAILED; case 3: return TIMEOUT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<RequestStatus> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<RequestStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<RequestStatus>() { public RequestStatus findValueByNumber(int number) { return RequestStatus.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(4); } private static final RequestStatus[] VALUES = values(); public static RequestStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private RequestStatus(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.RequestStatus) } /** * Protobuf enum {@code exec.user.ColumnSearchability} * * <pre> * * How a column can be used in WHERE clause * </pre> */ public enum ColumnSearchability implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNKNOWN_SEARCHABILITY = 0;</code> */ UNKNOWN_SEARCHABILITY(0, 0), /** * <code>NONE = 1;</code> * * <pre> * can't be used in WHERE clause * </pre> */ NONE(1, 1), /** * <code>CHAR = 2;</code> * * <pre> * can be used in WHERE clause but only with LIKE predicate * </pre> */ CHAR(2, 2), /** * <code>NUMBER = 3;</code> * * <pre> * can be used in a WHERE clause with all the comparison operators except LIKE * </pre> */ NUMBER(3, 3), /** * <code>ALL = 4;</code> * * <pre> * can be used in a WHERE clause with all the comparison operators * </pre> */ ALL(4, 4), ; /** * <code>UNKNOWN_SEARCHABILITY = 0;</code> */ public static final int UNKNOWN_SEARCHABILITY_VALUE = 0; /** * <code>NONE = 1;</code> * * <pre> * can't be used in WHERE clause * </pre> */ public static final int NONE_VALUE = 1; /** * <code>CHAR = 2;</code> * * <pre> * can be used in WHERE clause but only with LIKE predicate * </pre> */ public static final int CHAR_VALUE = 2; /** * <code>NUMBER = 3;</code> * * <pre> * can be used in a WHERE clause with all the comparison operators except LIKE * </pre> */ public static final int NUMBER_VALUE = 3; /** * <code>ALL = 4;</code> * * <pre> * can be used in a WHERE clause with all the comparison operators * </pre> */ public static final int ALL_VALUE = 4; public final int getNumber() { return value; } public static ColumnSearchability valueOf(int value) { switch (value) { case 0: return UNKNOWN_SEARCHABILITY; case 1: return NONE; case 2: return CHAR; case 3: return NUMBER; case 4: return ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ColumnSearchability> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ColumnSearchability> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ColumnSearchability>() { public ColumnSearchability findValueByNumber(int number) { return ColumnSearchability.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(5); } private static final ColumnSearchability[] VALUES = values(); public static ColumnSearchability valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ColumnSearchability(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.ColumnSearchability) } /** * Protobuf enum {@code exec.user.ColumnUpdatability} * * <pre> * * Whether a column can be updatable. * </pre> */ public enum ColumnUpdatability implements com.google.protobuf.ProtocolMessageEnum { /** * <code>UNKNOWN_UPDATABILITY = 0;</code> */ UNKNOWN_UPDATABILITY(0, 0), /** * <code>READ_ONLY = 1;</code> */ READ_ONLY(1, 1), /** * <code>WRITABLE = 2;</code> */ WRITABLE(2, 2), ; /** * <code>UNKNOWN_UPDATABILITY = 0;</code> */ public static final int UNKNOWN_UPDATABILITY_VALUE = 0; /** * <code>READ_ONLY = 1;</code> */ public static final int READ_ONLY_VALUE = 1; /** * <code>WRITABLE = 2;</code> */ public static final int WRITABLE_VALUE = 2; public final int getNumber() { return value; } public static ColumnUpdatability valueOf(int value) { switch (value) { case 0: return UNKNOWN_UPDATABILITY; case 1: return READ_ONLY; case 2: return WRITABLE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ColumnUpdatability> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ColumnUpdatability> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ColumnUpdatability>() { public ColumnUpdatability findValueByNumber(int number) { return ColumnUpdatability.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(6); } private static final ColumnUpdatability[] VALUES = values(); public static ColumnUpdatability valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ColumnUpdatability(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.ColumnUpdatability) } /** * Protobuf enum {@code exec.user.CollateSupport} */ public enum CollateSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>CS_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ CS_UNKNOWN(0, 0), /** * <code>CS_GROUP_BY = 1;</code> * * <pre> * COLLATE clause can be added after each grouping column * </pre> */ CS_GROUP_BY(1, 1), ; /** * <code>CS_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int CS_UNKNOWN_VALUE = 0; /** * <code>CS_GROUP_BY = 1;</code> * * <pre> * COLLATE clause can be added after each grouping column * </pre> */ public static final int CS_GROUP_BY_VALUE = 1; public final int getNumber() { return value; } public static CollateSupport valueOf(int value) { switch (value) { case 0: return CS_UNKNOWN; case 1: return CS_GROUP_BY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<CollateSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<CollateSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<CollateSupport>() { public CollateSupport findValueByNumber(int number) { return CollateSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(7); } private static final CollateSupport[] VALUES = values(); public static CollateSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private CollateSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.CollateSupport) } /** * Protobuf enum {@code exec.user.CorrelationNamesSupport} */ public enum CorrelationNamesSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>CN_NONE = 1;</code> * * <pre> * Correlation names are not supported * </pre> */ CN_NONE(0, 1), /** * <code>CN_DIFFERENT_NAMES = 2;</code> * * <pre> * Correlation names are supported, but names have to * </pre> */ CN_DIFFERENT_NAMES(1, 2), /** * <code>CN_ANY = 3;</code> * * <pre> * be different from the tables they represent * </pre> */ CN_ANY(2, 3), ; /** * <code>CN_NONE = 1;</code> * * <pre> * Correlation names are not supported * </pre> */ public static final int CN_NONE_VALUE = 1; /** * <code>CN_DIFFERENT_NAMES = 2;</code> * * <pre> * Correlation names are supported, but names have to * </pre> */ public static final int CN_DIFFERENT_NAMES_VALUE = 2; /** * <code>CN_ANY = 3;</code> * * <pre> * be different from the tables they represent * </pre> */ public static final int CN_ANY_VALUE = 3; public final int getNumber() { return value; } public static CorrelationNamesSupport valueOf(int value) { switch (value) { case 1: return CN_NONE; case 2: return CN_DIFFERENT_NAMES; case 3: return CN_ANY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<CorrelationNamesSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<CorrelationNamesSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<CorrelationNamesSupport>() { public CorrelationNamesSupport findValueByNumber(int number) { return CorrelationNamesSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(8); } private static final CorrelationNamesSupport[] VALUES = values(); public static CorrelationNamesSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private CorrelationNamesSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.CorrelationNamesSupport) } /** * Protobuf enum {@code exec.user.DateTimeLiteralsSupport} */ public enum DateTimeLiteralsSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>DL_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ DL_UNKNOWN(0, 0), /** * <code>DL_DATE = 1;</code> * * <pre> * DATE literal is supported * </pre> */ DL_DATE(1, 1), /** * <code>DL_TIME = 2;</code> * * <pre> * TIME literal is supported * </pre> */ DL_TIME(2, 2), /** * <code>DL_TIMESTAMP = 3;</code> * * <pre> * TIMESTAMP literal is supported * </pre> */ DL_TIMESTAMP(3, 3), /** * <code>DL_INTERVAL_YEAR = 4;</code> * * <pre> * INTERVAL YEAR literal is supported * </pre> */ DL_INTERVAL_YEAR(4, 4), /** * <code>DL_INTERVAL_MONTH = 5;</code> * * <pre> * INTERVAL MONTH literal is supported * </pre> */ DL_INTERVAL_MONTH(5, 5), /** * <code>DL_INTERVAL_DAY = 6;</code> * * <pre> * INTERVAL DAY literal is supported * </pre> */ DL_INTERVAL_DAY(6, 6), /** * <code>DL_INTERVAL_HOUR = 7;</code> * * <pre> * INTERVAL HOUR literal is supported * </pre> */ DL_INTERVAL_HOUR(7, 7), /** * <code>DL_INTERVAL_MINUTE = 8;</code> * * <pre> * INTERVAL MINUTE literal is supported * </pre> */ DL_INTERVAL_MINUTE(8, 8), /** * <code>DL_INTERVAL_SECOND = 9;</code> * * <pre> * INTERVAL SECOND literal is supported * </pre> */ DL_INTERVAL_SECOND(9, 9), /** * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code> * * <pre> * INTERVAL YEAR TO MONTH literal is supported * </pre> */ DL_INTERVAL_YEAR_TO_MONTH(10, 10), /** * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code> * * <pre> * INTERVAL DAY TO HOUR literal is supported * </pre> */ DL_INTERVAL_DAY_TO_HOUR(11, 11), /** * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code> * * <pre> * INTERVAL DAY TO MINUTE literal is supported * </pre> */ DL_INTERVAL_DAY_TO_MINUTE(12, 12), /** * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code> * * <pre> * INTERVAL DAY TO SECOND literal is supported * </pre> */ DL_INTERVAL_DAY_TO_SECOND(13, 13), /** * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code> * * <pre> * INTERVAL HOUR TO MINUTE literal is supported * </pre> */ DL_INTERVAL_HOUR_TO_MINUTE(14, 14), /** * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code> * * <pre> * INTERVAL HOUR TO SECOND literal is supported * </pre> */ DL_INTERVAL_HOUR_TO_SECOND(15, 15), /** * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code> * * <pre> * INTERVAL MINUTE TO SECOND literal is supported * </pre> */ DL_INTERVAL_MINUTE_TO_SECOND(16, 16), ; /** * <code>DL_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int DL_UNKNOWN_VALUE = 0; /** * <code>DL_DATE = 1;</code> * * <pre> * DATE literal is supported * </pre> */ public static final int DL_DATE_VALUE = 1; /** * <code>DL_TIME = 2;</code> * * <pre> * TIME literal is supported * </pre> */ public static final int DL_TIME_VALUE = 2; /** * <code>DL_TIMESTAMP = 3;</code> * * <pre> * TIMESTAMP literal is supported * </pre> */ public static final int DL_TIMESTAMP_VALUE = 3; /** * <code>DL_INTERVAL_YEAR = 4;</code> * * <pre> * INTERVAL YEAR literal is supported * </pre> */ public static final int DL_INTERVAL_YEAR_VALUE = 4; /** * <code>DL_INTERVAL_MONTH = 5;</code> * * <pre> * INTERVAL MONTH literal is supported * </pre> */ public static final int DL_INTERVAL_MONTH_VALUE = 5; /** * <code>DL_INTERVAL_DAY = 6;</code> * * <pre> * INTERVAL DAY literal is supported * </pre> */ public static final int DL_INTERVAL_DAY_VALUE = 6; /** * <code>DL_INTERVAL_HOUR = 7;</code> * * <pre> * INTERVAL HOUR literal is supported * </pre> */ public static final int DL_INTERVAL_HOUR_VALUE = 7; /** * <code>DL_INTERVAL_MINUTE = 8;</code> * * <pre> * INTERVAL MINUTE literal is supported * </pre> */ public static final int DL_INTERVAL_MINUTE_VALUE = 8; /** * <code>DL_INTERVAL_SECOND = 9;</code> * * <pre> * INTERVAL SECOND literal is supported * </pre> */ public static final int DL_INTERVAL_SECOND_VALUE = 9; /** * <code>DL_INTERVAL_YEAR_TO_MONTH = 10;</code> * * <pre> * INTERVAL YEAR TO MONTH literal is supported * </pre> */ public static final int DL_INTERVAL_YEAR_TO_MONTH_VALUE = 10; /** * <code>DL_INTERVAL_DAY_TO_HOUR = 11;</code> * * <pre> * INTERVAL DAY TO HOUR literal is supported * </pre> */ public static final int DL_INTERVAL_DAY_TO_HOUR_VALUE = 11; /** * <code>DL_INTERVAL_DAY_TO_MINUTE = 12;</code> * * <pre> * INTERVAL DAY TO MINUTE literal is supported * </pre> */ public static final int DL_INTERVAL_DAY_TO_MINUTE_VALUE = 12; /** * <code>DL_INTERVAL_DAY_TO_SECOND = 13;</code> * * <pre> * INTERVAL DAY TO SECOND literal is supported * </pre> */ public static final int DL_INTERVAL_DAY_TO_SECOND_VALUE = 13; /** * <code>DL_INTERVAL_HOUR_TO_MINUTE = 14;</code> * * <pre> * INTERVAL HOUR TO MINUTE literal is supported * </pre> */ public static final int DL_INTERVAL_HOUR_TO_MINUTE_VALUE = 14; /** * <code>DL_INTERVAL_HOUR_TO_SECOND = 15;</code> * * <pre> * INTERVAL HOUR TO SECOND literal is supported * </pre> */ public static final int DL_INTERVAL_HOUR_TO_SECOND_VALUE = 15; /** * <code>DL_INTERVAL_MINUTE_TO_SECOND = 16;</code> * * <pre> * INTERVAL MINUTE TO SECOND literal is supported * </pre> */ public static final int DL_INTERVAL_MINUTE_TO_SECOND_VALUE = 16; public final int getNumber() { return value; } public static DateTimeLiteralsSupport valueOf(int value) { switch (value) { case 0: return DL_UNKNOWN; case 1: return DL_DATE; case 2: return DL_TIME; case 3: return DL_TIMESTAMP; case 4: return DL_INTERVAL_YEAR; case 5: return DL_INTERVAL_MONTH; case 6: return DL_INTERVAL_DAY; case 7: return DL_INTERVAL_HOUR; case 8: return DL_INTERVAL_MINUTE; case 9: return DL_INTERVAL_SECOND; case 10: return DL_INTERVAL_YEAR_TO_MONTH; case 11: return DL_INTERVAL_DAY_TO_HOUR; case 12: return DL_INTERVAL_DAY_TO_MINUTE; case 13: return DL_INTERVAL_DAY_TO_SECOND; case 14: return DL_INTERVAL_HOUR_TO_MINUTE; case 15: return DL_INTERVAL_HOUR_TO_SECOND; case 16: return DL_INTERVAL_MINUTE_TO_SECOND; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<DateTimeLiteralsSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<DateTimeLiteralsSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<DateTimeLiteralsSupport>() { public DateTimeLiteralsSupport findValueByNumber(int number) { return DateTimeLiteralsSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(9); } private static final DateTimeLiteralsSupport[] VALUES = values(); public static DateTimeLiteralsSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private DateTimeLiteralsSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.DateTimeLiteralsSupport) } /** * Protobuf enum {@code exec.user.GroupBySupport} */ public enum GroupBySupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>GB_NONE = 1;</code> * * <pre> * Group by is not supported * </pre> */ GB_NONE(0, 1), /** * <code>GB_SELECT_ONLY = 2;</code> * * <pre> * Group by supported with non aggregated columns in select * </pre> */ GB_SELECT_ONLY(1, 2), /** * <code>GB_BEYOND_SELECT = 3;</code> * * <pre> * Group by supported with columns absent from the select list *if all the non-aggregated colums from the select list are also added * </pre> */ GB_BEYOND_SELECT(2, 3), /** * <code>GB_UNRELATED = 4;</code> * * <pre> * Group by supported with columns absent from the select list * </pre> */ GB_UNRELATED(3, 4), ; /** * <code>GB_NONE = 1;</code> * * <pre> * Group by is not supported * </pre> */ public static final int GB_NONE_VALUE = 1; /** * <code>GB_SELECT_ONLY = 2;</code> * * <pre> * Group by supported with non aggregated columns in select * </pre> */ public static final int GB_SELECT_ONLY_VALUE = 2; /** * <code>GB_BEYOND_SELECT = 3;</code> * * <pre> * Group by supported with columns absent from the select list *if all the non-aggregated colums from the select list are also added * </pre> */ public static final int GB_BEYOND_SELECT_VALUE = 3; /** * <code>GB_UNRELATED = 4;</code> * * <pre> * Group by supported with columns absent from the select list * </pre> */ public static final int GB_UNRELATED_VALUE = 4; public final int getNumber() { return value; } public static GroupBySupport valueOf(int value) { switch (value) { case 1: return GB_NONE; case 2: return GB_SELECT_ONLY; case 3: return GB_BEYOND_SELECT; case 4: return GB_UNRELATED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<GroupBySupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<GroupBySupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<GroupBySupport>() { public GroupBySupport findValueByNumber(int number) { return GroupBySupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(10); } private static final GroupBySupport[] VALUES = values(); public static GroupBySupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private GroupBySupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.GroupBySupport) } /** * Protobuf enum {@code exec.user.IdentifierCasing} */ public enum IdentifierCasing implements com.google.protobuf.ProtocolMessageEnum { /** * <code>IC_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ IC_UNKNOWN(0, 0), /** * <code>IC_STORES_LOWER = 1;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in lower case * </pre> */ IC_STORES_LOWER(1, 1), /** * <code>IC_STORES_MIXED = 2;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in mixed case * </pre> */ IC_STORES_MIXED(2, 2), /** * <code>IC_STORES_UPPER = 3;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in upper case * </pre> */ IC_STORES_UPPER(3, 3), /** * <code>IC_SUPPORTS_MIXED = 4;</code> * * <pre> * Mixed case identifier is treated as case sensitive *and stored in mixed case * </pre> */ IC_SUPPORTS_MIXED(4, 4), ; /** * <code>IC_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int IC_UNKNOWN_VALUE = 0; /** * <code>IC_STORES_LOWER = 1;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in lower case * </pre> */ public static final int IC_STORES_LOWER_VALUE = 1; /** * <code>IC_STORES_MIXED = 2;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in mixed case * </pre> */ public static final int IC_STORES_MIXED_VALUE = 2; /** * <code>IC_STORES_UPPER = 3;</code> * * <pre> * Mixed case identifier is treated as case insensitive *and stored in upper case * </pre> */ public static final int IC_STORES_UPPER_VALUE = 3; /** * <code>IC_SUPPORTS_MIXED = 4;</code> * * <pre> * Mixed case identifier is treated as case sensitive *and stored in mixed case * </pre> */ public static final int IC_SUPPORTS_MIXED_VALUE = 4; public final int getNumber() { return value; } public static IdentifierCasing valueOf(int value) { switch (value) { case 0: return IC_UNKNOWN; case 1: return IC_STORES_LOWER; case 2: return IC_STORES_MIXED; case 3: return IC_STORES_UPPER; case 4: return IC_SUPPORTS_MIXED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<IdentifierCasing> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<IdentifierCasing> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<IdentifierCasing>() { public IdentifierCasing findValueByNumber(int number) { return IdentifierCasing.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(11); } private static final IdentifierCasing[] VALUES = values(); public static IdentifierCasing valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private IdentifierCasing(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.IdentifierCasing) } /** * Protobuf enum {@code exec.user.NullCollation} */ public enum NullCollation implements com.google.protobuf.ProtocolMessageEnum { /** * <code>NC_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ NC_UNKNOWN(0, 0), /** * <code>NC_AT_START = 1;</code> * * <pre> * NULL values are sorted at the start regardless of the order * </pre> */ NC_AT_START(1, 1), /** * <code>NC_AT_END = 2;</code> * * <pre> * NULL values are sorted at the end regardless of the order * </pre> */ NC_AT_END(2, 2), /** * <code>NC_HIGH = 3;</code> * * <pre> * NULL is the highest value * </pre> */ NC_HIGH(3, 3), /** * <code>NC_LOW = 4;</code> * * <pre> * NULL is the lowest value * </pre> */ NC_LOW(4, 4), ; /** * <code>NC_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int NC_UNKNOWN_VALUE = 0; /** * <code>NC_AT_START = 1;</code> * * <pre> * NULL values are sorted at the start regardless of the order * </pre> */ public static final int NC_AT_START_VALUE = 1; /** * <code>NC_AT_END = 2;</code> * * <pre> * NULL values are sorted at the end regardless of the order * </pre> */ public static final int NC_AT_END_VALUE = 2; /** * <code>NC_HIGH = 3;</code> * * <pre> * NULL is the highest value * </pre> */ public static final int NC_HIGH_VALUE = 3; /** * <code>NC_LOW = 4;</code> * * <pre> * NULL is the lowest value * </pre> */ public static final int NC_LOW_VALUE = 4; public final int getNumber() { return value; } public static NullCollation valueOf(int value) { switch (value) { case 0: return NC_UNKNOWN; case 1: return NC_AT_START; case 2: return NC_AT_END; case 3: return NC_HIGH; case 4: return NC_LOW; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<NullCollation> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<NullCollation> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<NullCollation>() { public NullCollation findValueByNumber(int number) { return NullCollation.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(12); } private static final NullCollation[] VALUES = values(); public static NullCollation valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private NullCollation(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.NullCollation) } /** * Protobuf enum {@code exec.user.OrderBySupport} */ public enum OrderBySupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>OB_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ OB_UNKNOWN(0, 0), /** * <code>OB_UNRELATED = 1;</code> * * <pre> * ORDER BY supported with columns not in SELECT list * </pre> */ OB_UNRELATED(1, 1), /** * <code>OB_EXPRESSION = 2;</code> * * <pre> * ORDER BY with expressions is supported * </pre> */ OB_EXPRESSION(2, 2), ; /** * <code>OB_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int OB_UNKNOWN_VALUE = 0; /** * <code>OB_UNRELATED = 1;</code> * * <pre> * ORDER BY supported with columns not in SELECT list * </pre> */ public static final int OB_UNRELATED_VALUE = 1; /** * <code>OB_EXPRESSION = 2;</code> * * <pre> * ORDER BY with expressions is supported * </pre> */ public static final int OB_EXPRESSION_VALUE = 2; public final int getNumber() { return value; } public static OrderBySupport valueOf(int value) { switch (value) { case 0: return OB_UNKNOWN; case 1: return OB_UNRELATED; case 2: return OB_EXPRESSION; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<OrderBySupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<OrderBySupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<OrderBySupport>() { public OrderBySupport findValueByNumber(int number) { return OrderBySupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(13); } private static final OrderBySupport[] VALUES = values(); public static OrderBySupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private OrderBySupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.OrderBySupport) } /** * Protobuf enum {@code exec.user.OuterJoinSupport} */ public enum OuterJoinSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>OJ_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ OJ_UNKNOWN(0, 0), /** * <code>OJ_LEFT = 1;</code> * * <pre> * Left outer join is supported * </pre> */ OJ_LEFT(1, 1), /** * <code>OJ_RIGHT = 2;</code> * * <pre> * Right outer join is supported * </pre> */ OJ_RIGHT(2, 2), /** * <code>OJ_FULL = 3;</code> * * <pre> * Full outer join is supported * </pre> */ OJ_FULL(3, 3), /** * <code>OJ_NESTED = 4;</code> * * <pre> * Nested outer join is supported * </pre> */ OJ_NESTED(4, 4), /** * <code>OJ_NOT_ORDERED = 5;</code> * * <pre> * Column names in the ON clause don't have to share the same order *as their respective table names in the OUTER JOIN clase * </pre> */ OJ_NOT_ORDERED(5, 5), /** * <code>OJ_INNER = 6;</code> * * <pre> * Inner table can also be used in an inner join * </pre> */ OJ_INNER(6, 6), /** * <code>OJ_ALL_COMPARISON_OPS = 7;</code> * * <pre> * Any comparison operator is supported in the ON clause * </pre> */ OJ_ALL_COMPARISON_OPS(7, 7), ; /** * <code>OJ_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int OJ_UNKNOWN_VALUE = 0; /** * <code>OJ_LEFT = 1;</code> * * <pre> * Left outer join is supported * </pre> */ public static final int OJ_LEFT_VALUE = 1; /** * <code>OJ_RIGHT = 2;</code> * * <pre> * Right outer join is supported * </pre> */ public static final int OJ_RIGHT_VALUE = 2; /** * <code>OJ_FULL = 3;</code> * * <pre> * Full outer join is supported * </pre> */ public static final int OJ_FULL_VALUE = 3; /** * <code>OJ_NESTED = 4;</code> * * <pre> * Nested outer join is supported * </pre> */ public static final int OJ_NESTED_VALUE = 4; /** * <code>OJ_NOT_ORDERED = 5;</code> * * <pre> * Column names in the ON clause don't have to share the same order *as their respective table names in the OUTER JOIN clase * </pre> */ public static final int OJ_NOT_ORDERED_VALUE = 5; /** * <code>OJ_INNER = 6;</code> * * <pre> * Inner table can also be used in an inner join * </pre> */ public static final int OJ_INNER_VALUE = 6; /** * <code>OJ_ALL_COMPARISON_OPS = 7;</code> * * <pre> * Any comparison operator is supported in the ON clause * </pre> */ public static final int OJ_ALL_COMPARISON_OPS_VALUE = 7; public final int getNumber() { return value; } public static OuterJoinSupport valueOf(int value) { switch (value) { case 0: return OJ_UNKNOWN; case 1: return OJ_LEFT; case 2: return OJ_RIGHT; case 3: return OJ_FULL; case 4: return OJ_NESTED; case 5: return OJ_NOT_ORDERED; case 6: return OJ_INNER; case 7: return OJ_ALL_COMPARISON_OPS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<OuterJoinSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<OuterJoinSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<OuterJoinSupport>() { public OuterJoinSupport findValueByNumber(int number) { return OuterJoinSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(14); } private static final OuterJoinSupport[] VALUES = values(); public static OuterJoinSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private OuterJoinSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.OuterJoinSupport) } /** * Protobuf enum {@code exec.user.SubQuerySupport} */ public enum SubQuerySupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SQ_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ SQ_UNKNOWN(0, 0), /** * <code>SQ_CORRELATED = 1;</code> * * <pre> * Correlated subquery is supported * </pre> */ SQ_CORRELATED(1, 1), /** * <code>SQ_IN_COMPARISON = 2;</code> * * <pre> * Subquery in comparison expression is supported * </pre> */ SQ_IN_COMPARISON(2, 2), /** * <code>SQ_IN_EXISTS = 3;</code> * * <pre> * Subquery in EXISTS expression is supported * </pre> */ SQ_IN_EXISTS(3, 3), /** * <code>SQ_IN_INSERT = 4;</code> * * <pre> * Subquery in INSERT expression is supported * </pre> */ SQ_IN_INSERT(4, 4), /** * <code>SQ_IN_QUANTIFIED = 5;</code> * * <pre> * Subquery in quantified expression is supported * </pre> */ SQ_IN_QUANTIFIED(5, 5), ; /** * <code>SQ_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int SQ_UNKNOWN_VALUE = 0; /** * <code>SQ_CORRELATED = 1;</code> * * <pre> * Correlated subquery is supported * </pre> */ public static final int SQ_CORRELATED_VALUE = 1; /** * <code>SQ_IN_COMPARISON = 2;</code> * * <pre> * Subquery in comparison expression is supported * </pre> */ public static final int SQ_IN_COMPARISON_VALUE = 2; /** * <code>SQ_IN_EXISTS = 3;</code> * * <pre> * Subquery in EXISTS expression is supported * </pre> */ public static final int SQ_IN_EXISTS_VALUE = 3; /** * <code>SQ_IN_INSERT = 4;</code> * * <pre> * Subquery in INSERT expression is supported * </pre> */ public static final int SQ_IN_INSERT_VALUE = 4; /** * <code>SQ_IN_QUANTIFIED = 5;</code> * * <pre> * Subquery in quantified expression is supported * </pre> */ public static final int SQ_IN_QUANTIFIED_VALUE = 5; public final int getNumber() { return value; } public static SubQuerySupport valueOf(int value) { switch (value) { case 0: return SQ_UNKNOWN; case 1: return SQ_CORRELATED; case 2: return SQ_IN_COMPARISON; case 3: return SQ_IN_EXISTS; case 4: return SQ_IN_INSERT; case 5: return SQ_IN_QUANTIFIED; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<SubQuerySupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<SubQuerySupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<SubQuerySupport>() { public SubQuerySupport findValueByNumber(int number) { return SubQuerySupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(15); } private static final SubQuerySupport[] VALUES = values(); public static SubQuerySupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private SubQuerySupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.SubQuerySupport) } /** * Protobuf enum {@code exec.user.UnionSupport} */ public enum UnionSupport implements com.google.protobuf.ProtocolMessageEnum { /** * <code>U_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ U_UNKNOWN(0, 0), /** * <code>U_UNION = 1;</code> * * <pre> * UNION is supported * </pre> */ U_UNION(1, 1), /** * <code>U_UNION_ALL = 2;</code> * * <pre> * UNION_ALL is supported * </pre> */ U_UNION_ALL(2, 2), ; /** * <code>U_UNKNOWN = 0;</code> * * <pre> * Unknown support (for forward compatibility) * </pre> */ public static final int U_UNKNOWN_VALUE = 0; /** * <code>U_UNION = 1;</code> * * <pre> * UNION is supported * </pre> */ public static final int U_UNION_VALUE = 1; /** * <code>U_UNION_ALL = 2;</code> * * <pre> * UNION_ALL is supported * </pre> */ public static final int U_UNION_ALL_VALUE = 2; public final int getNumber() { return value; } public static UnionSupport valueOf(int value) { switch (value) { case 0: return U_UNKNOWN; case 1: return U_UNION; case 2: return U_UNION_ALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<UnionSupport> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<UnionSupport> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<UnionSupport>() { public UnionSupport findValueByNumber(int number) { return UnionSupport.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.getDescriptor().getEnumTypes().get(16); } private static final UnionSupport[] VALUES = values(); public static UnionSupport valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private UnionSupport(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:exec.user.UnionSupport) } public interface PropertyOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string key = 1; /** * <code>required string key = 1;</code> */ boolean hasKey(); /** * <code>required string key = 1;</code> */ java.lang.String getKey(); /** * <code>required string key = 1;</code> */ com.google.protobuf.ByteString getKeyBytes(); // required string value = 2; /** * <code>required string value = 2;</code> */ boolean hasValue(); /** * <code>required string value = 2;</code> */ java.lang.String getValue(); /** * <code>required string value = 2;</code> */ com.google.protobuf.ByteString getValueBytes(); } /** * Protobuf type {@code exec.user.Property} */ public static final class Property extends com.google.protobuf.GeneratedMessage implements PropertyOrBuilder { // Use Property.newBuilder() to construct. private Property(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Property(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Property defaultInstance; public static Property getDefaultInstance() { return defaultInstance; } public Property getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Property( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.Property.class, org.apache.drill.exec.proto.UserProtos.Property.Builder.class); } public static com.google.protobuf.Parser<Property> PARSER = new com.google.protobuf.AbstractParser<Property>() { public Property parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Property(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Property> getParserForType() { return PARSER; } private int bitField0_; // required string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * <code>required string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { value_ = s; } return s; } } /** * <code>required string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; value_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKey()) { memoizedIsInitialized = 0; return false; } if (!hasValue()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.Property parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.Property parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.Property parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.Property prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.Property} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.Property.class, org.apache.drill.exec.proto.UserProtos.Property.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.Property.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor; } public org.apache.drill.exec.proto.UserProtos.Property getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.Property build() { org.apache.drill.exec.proto.UserProtos.Property result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.Property buildPartial() { org.apache.drill.exec.proto.UserProtos.Property result = new org.apache.drill.exec.proto.UserProtos.Property(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.Property) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.Property)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.Property other) { if (other == org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } if (!hasValue()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.Property parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.Property) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string key = 1; private java.lang.Object key_ = ""; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string key = 1;</code> */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } // required string value = 2; private java.lang.Object value_ = ""; /** * <code>required string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string value = 2;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>required string value = 2;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>required string value = 2;</code> */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.Property) } static { defaultInstance = new Property(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.Property) } public interface UserPropertiesOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .exec.user.Property properties = 1; /** * <code>repeated .exec.user.Property properties = 1;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.Property> getPropertiesList(); /** * <code>repeated .exec.user.Property properties = 1;</code> */ org.apache.drill.exec.proto.UserProtos.Property getProperties(int index); /** * <code>repeated .exec.user.Property properties = 1;</code> */ int getPropertiesCount(); /** * <code>repeated .exec.user.Property properties = 1;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> getPropertiesOrBuilderList(); /** * <code>repeated .exec.user.Property properties = 1;</code> */ org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder getPropertiesOrBuilder( int index); } /** * Protobuf type {@code exec.user.UserProperties} */ public static final class UserProperties extends com.google.protobuf.GeneratedMessage implements UserPropertiesOrBuilder { // Use UserProperties.newBuilder() to construct. private UserProperties(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserProperties(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserProperties defaultInstance; public static UserProperties getDefaultInstance() { return defaultInstance; } public UserProperties getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { properties_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.Property>(); mutable_bitField0_ |= 0x00000001; } properties_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.Property.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { properties_ = java.util.Collections.unmodifiableList(properties_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.UserProperties.class, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder.class); } public static com.google.protobuf.Parser<UserProperties> PARSER = new com.google.protobuf.AbstractParser<UserProperties>() { public UserProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserProperties(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<UserProperties> getParserForType() { return PARSER; } // repeated .exec.user.Property properties = 1; public static final int PROPERTIES_FIELD_NUMBER = 1; private java.util.List<org.apache.drill.exec.proto.UserProtos.Property> properties_; /** * <code>repeated .exec.user.Property properties = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.Property> getPropertiesList() { return properties_; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> getPropertiesOrBuilderList() { return properties_; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public int getPropertiesCount() { return properties_.size(); } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.Property getProperties(int index) { return properties_.get(index); } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder getPropertiesOrBuilder( int index) { return properties_.get(index); } private void initFields() { properties_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getPropertiesCount(); i++) { if (!getProperties(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < properties_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, properties_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.UserProperties prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.UserProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.UserProperties.class, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.UserProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPropertiesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { propertiesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor; } public org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.UserProperties build() { org.apache.drill.exec.proto.UserProtos.UserProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.UserProperties buildPartial() { org.apache.drill.exec.proto.UserProtos.UserProperties result = new org.apache.drill.exec.proto.UserProtos.UserProperties(this); int from_bitField0_ = bitField0_; if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { properties_ = java.util.Collections.unmodifiableList(properties_); bitField0_ = (bitField0_ & ~0x00000001); } result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.UserProperties) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.UserProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.UserProperties other) { if (other == org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance()) return this; if (propertiesBuilder_ == null) { if (!other.properties_.isEmpty()) { if (properties_.isEmpty()) { properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePropertiesIsMutable(); properties_.addAll(other.properties_); } onChanged(); } } else { if (!other.properties_.isEmpty()) { if (propertiesBuilder_.isEmpty()) { propertiesBuilder_.dispose(); propertiesBuilder_ = null; properties_ = other.properties_; bitField0_ = (bitField0_ & ~0x00000001); propertiesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getPropertiesFieldBuilder() : null; } else { propertiesBuilder_.addAllMessages(other.properties_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getPropertiesCount(); i++) { if (!getProperties(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.UserProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.UserProperties) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .exec.user.Property properties = 1; private java.util.List<org.apache.drill.exec.proto.UserProtos.Property> properties_ = java.util.Collections.emptyList(); private void ensurePropertiesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { properties_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.Property>(properties_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> propertiesBuilder_; /** * <code>repeated .exec.user.Property properties = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.Property> getPropertiesList() { if (propertiesBuilder_ == null) { return java.util.Collections.unmodifiableList(properties_); } else { return propertiesBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public int getPropertiesCount() { if (propertiesBuilder_ == null) { return properties_.size(); } else { return propertiesBuilder_.getCount(); } } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.Property getProperties(int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder setProperties( int index, org.apache.drill.exec.proto.UserProtos.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.set(index, value); onChanged(); } else { propertiesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder setProperties( int index, org.apache.drill.exec.proto.UserProtos.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.set(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder addProperties(org.apache.drill.exec.proto.UserProtos.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(value); onChanged(); } else { propertiesBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder addProperties( int index, org.apache.drill.exec.proto.UserProtos.Property value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePropertiesIsMutable(); properties_.add(index, value); onChanged(); } else { propertiesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder addProperties( org.apache.drill.exec.proto.UserProtos.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder addProperties( int index, org.apache.drill.exec.proto.UserProtos.Property.Builder builderForValue) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.add(index, builderForValue.build()); onChanged(); } else { propertiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder addAllProperties( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.Property> values) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); super.addAll(values, properties_); onChanged(); } else { propertiesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { propertiesBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public Builder removeProperties(int index) { if (propertiesBuilder_ == null) { ensurePropertiesIsMutable(); properties_.remove(index); onChanged(); } else { propertiesBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.Property.Builder getPropertiesBuilder( int index) { return getPropertiesFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder getPropertiesOrBuilder( int index) { if (propertiesBuilder_ == null) { return properties_.get(index); } else { return propertiesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> getPropertiesOrBuilderList() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(properties_); } } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.Property.Builder addPropertiesBuilder() { return getPropertiesFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance()); } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.Property.Builder addPropertiesBuilder( int index) { return getPropertiesFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance()); } /** * <code>repeated .exec.user.Property properties = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.Property.Builder> getPropertiesBuilderList() { return getPropertiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder>( properties_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.UserProperties) } static { defaultInstance = new UserProperties(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.UserProperties) } public interface RpcEndpointInfosOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string name = 1; /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ boolean hasName(); /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ java.lang.String getName(); /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ com.google.protobuf.ByteString getNameBytes(); // optional string version = 2; /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ boolean hasVersion(); /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ java.lang.String getVersion(); /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ com.google.protobuf.ByteString getVersionBytes(); // optional uint32 majorVersion = 3; /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ boolean hasMajorVersion(); /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ int getMajorVersion(); // optional uint32 minorVersion = 4; /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ boolean hasMinorVersion(); /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ int getMinorVersion(); // optional uint32 patchVersion = 5; /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ boolean hasPatchVersion(); /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ int getPatchVersion(); // optional string application = 6; /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ boolean hasApplication(); /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ java.lang.String getApplication(); /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ com.google.protobuf.ByteString getApplicationBytes(); // optional uint32 buildNumber = 7; /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ boolean hasBuildNumber(); /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ int getBuildNumber(); // optional string versionQualifier = 8; /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ boolean hasVersionQualifier(); /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ java.lang.String getVersionQualifier(); /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ com.google.protobuf.ByteString getVersionQualifierBytes(); } /** * Protobuf type {@code exec.user.RpcEndpointInfos} */ public static final class RpcEndpointInfos extends com.google.protobuf.GeneratedMessage implements RpcEndpointInfosOrBuilder { // Use RpcEndpointInfos.newBuilder() to construct. private RpcEndpointInfos(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RpcEndpointInfos(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RpcEndpointInfos defaultInstance; public static RpcEndpointInfos getDefaultInstance() { return defaultInstance; } public RpcEndpointInfos getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RpcEndpointInfos( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; name_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; version_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000004; majorVersion_ = input.readUInt32(); break; } case 32: { bitField0_ |= 0x00000008; minorVersion_ = input.readUInt32(); break; } case 40: { bitField0_ |= 0x00000010; patchVersion_ = input.readUInt32(); break; } case 50: { bitField0_ |= 0x00000020; application_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; buildNumber_ = input.readUInt32(); break; } case 66: { bitField0_ |= 0x00000080; versionQualifier_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.class, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder.class); } public static com.google.protobuf.Parser<RpcEndpointInfos> PARSER = new com.google.protobuf.AbstractParser<RpcEndpointInfos>() { public RpcEndpointInfos parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RpcEndpointInfos(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RpcEndpointInfos> getParserForType() { return PARSER; } private int bitField0_; // optional string name = 1; public static final int NAME_FIELD_NUMBER = 1; private java.lang.Object name_; /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { name_ = s; } return s; } } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string version = 2; public static final int VERSION_FIELD_NUMBER = 2; private java.lang.Object version_; /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { version_ = s; } return s; } } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint32 majorVersion = 3; public static final int MAJORVERSION_FIELD_NUMBER = 3; private int majorVersion_; /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public boolean hasMajorVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public int getMajorVersion() { return majorVersion_; } // optional uint32 minorVersion = 4; public static final int MINORVERSION_FIELD_NUMBER = 4; private int minorVersion_; /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public boolean hasMinorVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public int getMinorVersion() { return minorVersion_; } // optional uint32 patchVersion = 5; public static final int PATCHVERSION_FIELD_NUMBER = 5; private int patchVersion_; /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public boolean hasPatchVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public int getPatchVersion() { return patchVersion_; } // optional string application = 6; public static final int APPLICATION_FIELD_NUMBER = 6; private java.lang.Object application_; /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public boolean hasApplication() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public java.lang.String getApplication() { java.lang.Object ref = application_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { application_ = s; } return s; } } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public com.google.protobuf.ByteString getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); application_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint32 buildNumber = 7; public static final int BUILDNUMBER_FIELD_NUMBER = 7; private int buildNumber_; /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public boolean hasBuildNumber() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public int getBuildNumber() { return buildNumber_; } // optional string versionQualifier = 8; public static final int VERSIONQUALIFIER_FIELD_NUMBER = 8; private java.lang.Object versionQualifier_; /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public boolean hasVersionQualifier() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public java.lang.String getVersionQualifier() { java.lang.Object ref = versionQualifier_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { versionQualifier_ = s; } return s; } } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public com.google.protobuf.ByteString getVersionQualifierBytes() { java.lang.Object ref = versionQualifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionQualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { name_ = ""; version_ = ""; majorVersion_ = 0; minorVersion_ = 0; patchVersion_ = 0; application_ = ""; buildNumber_ = 0; versionQualifier_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getVersionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, majorVersion_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeUInt32(4, minorVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeUInt32(5, patchVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getApplicationBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeUInt32(7, buildNumber_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getVersionQualifierBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getVersionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, majorVersion_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, minorVersion_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, patchVersion_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getApplicationBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, buildNumber_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getVersionQualifierBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.RpcEndpointInfos} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.class, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); version_ = ""; bitField0_ = (bitField0_ & ~0x00000002); majorVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000004); minorVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000008); patchVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000010); application_ = ""; bitField0_ = (bitField0_ & ~0x00000020); buildNumber_ = 0; bitField0_ = (bitField0_ & ~0x00000040); versionQualifier_ = ""; bitField0_ = (bitField0_ & ~0x00000080); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor; } public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos build() { org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos buildPartial() { org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos result = new org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.version_ = version_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.majorVersion_ = majorVersion_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.minorVersion_ = minorVersion_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.patchVersion_ = patchVersion_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.application_ = application_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.buildNumber_ = buildNumber_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.versionQualifier_ = versionQualifier_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos other) { if (other == org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasVersion()) { bitField0_ |= 0x00000002; version_ = other.version_; onChanged(); } if (other.hasMajorVersion()) { setMajorVersion(other.getMajorVersion()); } if (other.hasMinorVersion()) { setMinorVersion(other.getMinorVersion()); } if (other.hasPatchVersion()) { setPatchVersion(other.getPatchVersion()); } if (other.hasApplication()) { bitField0_ |= 0x00000020; application_ = other.application_; onChanged(); } if (other.hasBuildNumber()) { setBuildNumber(other.getBuildNumber()); } if (other.hasVersionQualifier()) { bitField0_ |= 0x00000080; versionQualifier_ = other.versionQualifier_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string name = 1; private java.lang.Object name_ = ""; /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public boolean hasName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * <code>optional string name = 1;</code> * * <pre> * example: Apache Drill Server, Apache Drill C++ client * </pre> */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } // optional string version = 2; private java.lang.Object version_ = ""; /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public boolean hasVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; version_ = value; onChanged(); return this; } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000002); version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** * <code>optional string version = 2;</code> * * <pre> * example: 1.9.0 * </pre> */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; version_ = value; onChanged(); return this; } // optional uint32 majorVersion = 3; private int majorVersion_ ; /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public boolean hasMajorVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public int getMajorVersion() { return majorVersion_; } /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public Builder setMajorVersion(int value) { bitField0_ |= 0x00000004; majorVersion_ = value; onChanged(); return this; } /** * <code>optional uint32 majorVersion = 3;</code> * * <pre> * example: 1 * </pre> */ public Builder clearMajorVersion() { bitField0_ = (bitField0_ & ~0x00000004); majorVersion_ = 0; onChanged(); return this; } // optional uint32 minorVersion = 4; private int minorVersion_ ; /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public boolean hasMinorVersion() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public int getMinorVersion() { return minorVersion_; } /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public Builder setMinorVersion(int value) { bitField0_ |= 0x00000008; minorVersion_ = value; onChanged(); return this; } /** * <code>optional uint32 minorVersion = 4;</code> * * <pre> * example: 9 * </pre> */ public Builder clearMinorVersion() { bitField0_ = (bitField0_ & ~0x00000008); minorVersion_ = 0; onChanged(); return this; } // optional uint32 patchVersion = 5; private int patchVersion_ ; /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public boolean hasPatchVersion() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public int getPatchVersion() { return patchVersion_; } /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public Builder setPatchVersion(int value) { bitField0_ |= 0x00000010; patchVersion_ = value; onChanged(); return this; } /** * <code>optional uint32 patchVersion = 5;</code> * * <pre> * example: 0 * </pre> */ public Builder clearPatchVersion() { bitField0_ = (bitField0_ & ~0x00000010); patchVersion_ = 0; onChanged(); return this; } // optional string application = 6; private java.lang.Object application_ = ""; /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public boolean hasApplication() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public java.lang.String getApplication() { java.lang.Object ref = application_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); application_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public com.google.protobuf.ByteString getApplicationBytes() { java.lang.Object ref = application_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); application_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public Builder setApplication( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; application_ = value; onChanged(); return this; } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public Builder clearApplication() { bitField0_ = (bitField0_ & ~0x00000020); application_ = getDefaultInstance().getApplication(); onChanged(); return this; } /** * <code>optional string application = 6;</code> * * <pre> * example: Tableau 9.3 * </pre> */ public Builder setApplicationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; application_ = value; onChanged(); return this; } // optional uint32 buildNumber = 7; private int buildNumber_ ; /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public boolean hasBuildNumber() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public int getBuildNumber() { return buildNumber_; } /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public Builder setBuildNumber(int value) { bitField0_ |= 0x00000040; buildNumber_ = value; onChanged(); return this; } /** * <code>optional uint32 buildNumber = 7;</code> * * <pre> * example: 32 * </pre> */ public Builder clearBuildNumber() { bitField0_ = (bitField0_ & ~0x00000040); buildNumber_ = 0; onChanged(); return this; } // optional string versionQualifier = 8; private java.lang.Object versionQualifier_ = ""; /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public boolean hasVersionQualifier() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public java.lang.String getVersionQualifier() { java.lang.Object ref = versionQualifier_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); versionQualifier_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public com.google.protobuf.ByteString getVersionQualifierBytes() { java.lang.Object ref = versionQualifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); versionQualifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public Builder setVersionQualifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; versionQualifier_ = value; onChanged(); return this; } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public Builder clearVersionQualifier() { bitField0_ = (bitField0_ & ~0x00000080); versionQualifier_ = getDefaultInstance().getVersionQualifier(); onChanged(); return this; } /** * <code>optional string versionQualifier = 8;</code> * * <pre> * example: SNAPSHOT * </pre> */ public Builder setVersionQualifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; versionQualifier_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.RpcEndpointInfos) } static { defaultInstance = new RpcEndpointInfos(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.RpcEndpointInfos) } public interface UserToBitHandshakeOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.shared.RpcChannel channel = 1 [default = USER]; /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ boolean hasChannel(); /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel(); // optional bool support_listening = 2; /** * <code>optional bool support_listening = 2;</code> */ boolean hasSupportListening(); /** * <code>optional bool support_listening = 2;</code> */ boolean getSupportListening(); // optional int32 rpc_version = 3; /** * <code>optional int32 rpc_version = 3;</code> */ boolean hasRpcVersion(); /** * <code>optional int32 rpc_version = 3;</code> */ int getRpcVersion(); // optional .exec.shared.UserCredentials credentials = 4; /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ boolean hasCredentials(); /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials(); /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder(); // optional .exec.user.UserProperties properties = 5; /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ boolean hasProperties(); /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ org.apache.drill.exec.proto.UserProtos.UserProperties getProperties(); /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder getPropertiesOrBuilder(); // optional bool support_complex_types = 6 [default = false]; /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ boolean hasSupportComplexTypes(); /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ boolean getSupportComplexTypes(); // optional bool support_timeout = 7 [default = false]; /** * <code>optional bool support_timeout = 7 [default = false];</code> */ boolean hasSupportTimeout(); /** * <code>optional bool support_timeout = 7 [default = false];</code> */ boolean getSupportTimeout(); // optional .exec.user.RpcEndpointInfos client_infos = 8; /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ boolean hasClientInfos(); /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getClientInfos(); /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getClientInfosOrBuilder(); // optional .exec.user.SaslSupport sasl_support = 9; /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ boolean hasSaslSupport(); /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ org.apache.drill.exec.proto.UserProtos.SaslSupport getSaslSupport(); } /** * Protobuf type {@code exec.user.UserToBitHandshake} */ public static final class UserToBitHandshake extends com.google.protobuf.GeneratedMessage implements UserToBitHandshakeOrBuilder { // Use UserToBitHandshake.newBuilder() to construct. private UserToBitHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UserToBitHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UserToBitHandshake defaultInstance; public static UserToBitHandshake getDefaultInstance() { return defaultInstance; } public UserToBitHandshake getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UserToBitHandshake( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserBitShared.RpcChannel value = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; channel_ = value; } break; } case 16: { bitField0_ |= 0x00000002; supportListening_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; rpcVersion_ = input.readInt32(); break; } case 34: { org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = credentials_.toBuilder(); } credentials_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.UserCredentials.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(credentials_); credentials_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } case 42: { org.apache.drill.exec.proto.UserProtos.UserProperties.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = properties_.toBuilder(); } properties_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.UserProperties.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(properties_); properties_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 48: { bitField0_ |= 0x00000020; supportComplexTypes_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000040; supportTimeout_ = input.readBool(); break; } case 66: { org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder subBuilder = null; if (((bitField0_ & 0x00000080) == 0x00000080)) { subBuilder = clientInfos_.toBuilder(); } clientInfos_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clientInfos_); clientInfos_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 72: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.SaslSupport value = org.apache.drill.exec.proto.UserProtos.SaslSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000100; saslSupport_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.class, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.Builder.class); } public static com.google.protobuf.Parser<UserToBitHandshake> PARSER = new com.google.protobuf.AbstractParser<UserToBitHandshake>() { public UserToBitHandshake parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UserToBitHandshake(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<UserToBitHandshake> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.shared.RpcChannel channel = 1 [default = USER]; public static final int CHANNEL_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_; /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public boolean hasChannel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() { return channel_; } // optional bool support_listening = 2; public static final int SUPPORT_LISTENING_FIELD_NUMBER = 2; private boolean supportListening_; /** * <code>optional bool support_listening = 2;</code> */ public boolean hasSupportListening() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool support_listening = 2;</code> */ public boolean getSupportListening() { return supportListening_; } // optional int32 rpc_version = 3; public static final int RPC_VERSION_FIELD_NUMBER = 3; private int rpcVersion_; /** * <code>optional int32 rpc_version = 3;</code> */ public boolean hasRpcVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 rpc_version = 3;</code> */ public int getRpcVersion() { return rpcVersion_; } // optional .exec.shared.UserCredentials credentials = 4; public static final int CREDENTIALS_FIELD_NUMBER = 4; private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_; /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public boolean hasCredentials() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() { return credentials_; } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder() { return credentials_; } // optional .exec.user.UserProperties properties = 5; public static final int PROPERTIES_FIELD_NUMBER = 5; private org.apache.drill.exec.proto.UserProtos.UserProperties properties_; /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public boolean hasProperties() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public org.apache.drill.exec.proto.UserProtos.UserProperties getProperties() { return properties_; } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder getPropertiesOrBuilder() { return properties_; } // optional bool support_complex_types = 6 [default = false]; public static final int SUPPORT_COMPLEX_TYPES_FIELD_NUMBER = 6; private boolean supportComplexTypes_; /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public boolean hasSupportComplexTypes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public boolean getSupportComplexTypes() { return supportComplexTypes_; } // optional bool support_timeout = 7 [default = false]; public static final int SUPPORT_TIMEOUT_FIELD_NUMBER = 7; private boolean supportTimeout_; /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public boolean hasSupportTimeout() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public boolean getSupportTimeout() { return supportTimeout_; } // optional .exec.user.RpcEndpointInfos client_infos = 8; public static final int CLIENT_INFOS_FIELD_NUMBER = 8; private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos clientInfos_; /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public boolean hasClientInfos() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getClientInfos() { return clientInfos_; } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getClientInfosOrBuilder() { return clientInfos_; } // optional .exec.user.SaslSupport sasl_support = 9; public static final int SASL_SUPPORT_FIELD_NUMBER = 9; private org.apache.drill.exec.proto.UserProtos.SaslSupport saslSupport_; /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public boolean hasSaslSupport() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public org.apache.drill.exec.proto.UserProtos.SaslSupport getSaslSupport() { return saslSupport_; } private void initFields() { channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER; supportListening_ = false; rpcVersion_ = 0; credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance(); supportComplexTypes_ = false; supportTimeout_ = false; clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasProperties()) { if (!getProperties().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, channel_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, supportListening_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt32(3, rpcVersion_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, credentials_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(5, properties_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(6, supportComplexTypes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, supportTimeout_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeMessage(8, clientInfos_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeEnum(9, saslSupport_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, channel_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, supportListening_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, rpcVersion_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, credentials_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, properties_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, supportComplexTypes_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, supportTimeout_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, clientInfos_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, saslSupport_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.UserToBitHandshake} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.UserToBitHandshakeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.class, org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCredentialsFieldBuilder(); getPropertiesFieldBuilder(); getClientInfosFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER; bitField0_ = (bitField0_ & ~0x00000001); supportListening_ = false; bitField0_ = (bitField0_ & ~0x00000002); rpcVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (credentialsBuilder_ == null) { credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); } else { credentialsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (propertiesBuilder_ == null) { properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); supportComplexTypes_ = false; bitField0_ = (bitField0_ & ~0x00000020); supportTimeout_ = false; bitField0_ = (bitField0_ & ~0x00000040); if (clientInfosBuilder_ == null) { clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); } else { clientInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT; bitField0_ = (bitField0_ & ~0x00000100); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserToBitHandshake_descriptor; } public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake build() { org.apache.drill.exec.proto.UserProtos.UserToBitHandshake result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.UserToBitHandshake buildPartial() { org.apache.drill.exec.proto.UserProtos.UserToBitHandshake result = new org.apache.drill.exec.proto.UserProtos.UserToBitHandshake(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.channel_ = channel_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.supportListening_ = supportListening_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.rpcVersion_ = rpcVersion_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (credentialsBuilder_ == null) { result.credentials_ = credentials_; } else { result.credentials_ = credentialsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (propertiesBuilder_ == null) { result.properties_ = properties_; } else { result.properties_ = propertiesBuilder_.build(); } if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.supportComplexTypes_ = supportComplexTypes_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.supportTimeout_ = supportTimeout_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } if (clientInfosBuilder_ == null) { result.clientInfos_ = clientInfos_; } else { result.clientInfos_ = clientInfosBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.saslSupport_ = saslSupport_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.UserToBitHandshake) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.UserToBitHandshake)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.UserToBitHandshake other) { if (other == org.apache.drill.exec.proto.UserProtos.UserToBitHandshake.getDefaultInstance()) return this; if (other.hasChannel()) { setChannel(other.getChannel()); } if (other.hasSupportListening()) { setSupportListening(other.getSupportListening()); } if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasCredentials()) { mergeCredentials(other.getCredentials()); } if (other.hasProperties()) { mergeProperties(other.getProperties()); } if (other.hasSupportComplexTypes()) { setSupportComplexTypes(other.getSupportComplexTypes()); } if (other.hasSupportTimeout()) { setSupportTimeout(other.getSupportTimeout()); } if (other.hasClientInfos()) { mergeClientInfos(other.getClientInfos()); } if (other.hasSaslSupport()) { setSaslSupport(other.getSaslSupport()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasProperties()) { if (!getProperties().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.UserToBitHandshake parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.UserToBitHandshake) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.shared.RpcChannel channel = 1 [default = USER]; private org.apache.drill.exec.proto.UserBitShared.RpcChannel channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER; /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public boolean hasChannel() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() { return channel_; } /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public Builder setChannel(org.apache.drill.exec.proto.UserBitShared.RpcChannel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channel_ = value; onChanged(); return this; } /** * <code>optional .exec.shared.RpcChannel channel = 1 [default = USER];</code> */ public Builder clearChannel() { bitField0_ = (bitField0_ & ~0x00000001); channel_ = org.apache.drill.exec.proto.UserBitShared.RpcChannel.USER; onChanged(); return this; } // optional bool support_listening = 2; private boolean supportListening_ ; /** * <code>optional bool support_listening = 2;</code> */ public boolean hasSupportListening() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool support_listening = 2;</code> */ public boolean getSupportListening() { return supportListening_; } /** * <code>optional bool support_listening = 2;</code> */ public Builder setSupportListening(boolean value) { bitField0_ |= 0x00000002; supportListening_ = value; onChanged(); return this; } /** * <code>optional bool support_listening = 2;</code> */ public Builder clearSupportListening() { bitField0_ = (bitField0_ & ~0x00000002); supportListening_ = false; onChanged(); return this; } // optional int32 rpc_version = 3; private int rpcVersion_ ; /** * <code>optional int32 rpc_version = 3;</code> */ public boolean hasRpcVersion() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int32 rpc_version = 3;</code> */ public int getRpcVersion() { return rpcVersion_; } /** * <code>optional int32 rpc_version = 3;</code> */ public Builder setRpcVersion(int value) { bitField0_ |= 0x00000004; rpcVersion_ = value; onChanged(); return this; } /** * <code>optional int32 rpc_version = 3;</code> */ public Builder clearRpcVersion() { bitField0_ = (bitField0_ & ~0x00000004); rpcVersion_ = 0; onChanged(); return this; } // optional .exec.shared.UserCredentials credentials = 4; private org.apache.drill.exec.proto.UserBitShared.UserCredentials credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder> credentialsBuilder_; /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public boolean hasCredentials() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.UserCredentials getCredentials() { if (credentialsBuilder_ == null) { return credentials_; } else { return credentialsBuilder_.getMessage(); } } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder setCredentials(org.apache.drill.exec.proto.UserBitShared.UserCredentials value) { if (credentialsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } credentials_ = value; onChanged(); } else { credentialsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder setCredentials( org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder builderForValue) { if (credentialsBuilder_ == null) { credentials_ = builderForValue.build(); onChanged(); } else { credentialsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder mergeCredentials(org.apache.drill.exec.proto.UserBitShared.UserCredentials value) { if (credentialsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && credentials_ != org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance()) { credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.newBuilder(credentials_).mergeFrom(value).buildPartial(); } else { credentials_ = value; } onChanged(); } else { credentialsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public Builder clearCredentials() { if (credentialsBuilder_ == null) { credentials_ = org.apache.drill.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); onChanged(); } else { credentialsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder getCredentialsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCredentialsFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder getCredentialsOrBuilder() { if (credentialsBuilder_ != null) { return credentialsBuilder_.getMessageOrBuilder(); } else { return credentials_; } } /** * <code>optional .exec.shared.UserCredentials credentials = 4;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder> getCredentialsFieldBuilder() { if (credentialsBuilder_ == null) { credentialsBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.UserCredentials, org.apache.drill.exec.proto.UserBitShared.UserCredentials.Builder, org.apache.drill.exec.proto.UserBitShared.UserCredentialsOrBuilder>( credentials_, getParentForChildren(), isClean()); credentials_ = null; } return credentialsBuilder_; } // optional .exec.user.UserProperties properties = 5; private org.apache.drill.exec.proto.UserProtos.UserProperties properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder> propertiesBuilder_; /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public boolean hasProperties() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public org.apache.drill.exec.proto.UserProtos.UserProperties getProperties() { if (propertiesBuilder_ == null) { return properties_; } else { return propertiesBuilder_.getMessage(); } } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder setProperties(org.apache.drill.exec.proto.UserProtos.UserProperties value) { if (propertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } properties_ = value; onChanged(); } else { propertiesBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder setProperties( org.apache.drill.exec.proto.UserProtos.UserProperties.Builder builderForValue) { if (propertiesBuilder_ == null) { properties_ = builderForValue.build(); onChanged(); } else { propertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder mergeProperties(org.apache.drill.exec.proto.UserProtos.UserProperties value) { if (propertiesBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && properties_ != org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance()) { properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.newBuilder(properties_).mergeFrom(value).buildPartial(); } else { properties_ = value; } onChanged(); } else { propertiesBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public Builder clearProperties() { if (propertiesBuilder_ == null) { properties_ = org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance(); onChanged(); } else { propertiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public org.apache.drill.exec.proto.UserProtos.UserProperties.Builder getPropertiesBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPropertiesFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ public org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder getPropertiesOrBuilder() { if (propertiesBuilder_ != null) { return propertiesBuilder_.getMessageOrBuilder(); } else { return properties_; } } /** * <code>optional .exec.user.UserProperties properties = 5;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder> getPropertiesFieldBuilder() { if (propertiesBuilder_ == null) { propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.UserProperties, org.apache.drill.exec.proto.UserProtos.UserProperties.Builder, org.apache.drill.exec.proto.UserProtos.UserPropertiesOrBuilder>( properties_, getParentForChildren(), isClean()); properties_ = null; } return propertiesBuilder_; } // optional bool support_complex_types = 6 [default = false]; private boolean supportComplexTypes_ ; /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public boolean hasSupportComplexTypes() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public boolean getSupportComplexTypes() { return supportComplexTypes_; } /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public Builder setSupportComplexTypes(boolean value) { bitField0_ |= 0x00000020; supportComplexTypes_ = value; onChanged(); return this; } /** * <code>optional bool support_complex_types = 6 [default = false];</code> */ public Builder clearSupportComplexTypes() { bitField0_ = (bitField0_ & ~0x00000020); supportComplexTypes_ = false; onChanged(); return this; } // optional bool support_timeout = 7 [default = false]; private boolean supportTimeout_ ; /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public boolean hasSupportTimeout() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public boolean getSupportTimeout() { return supportTimeout_; } /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public Builder setSupportTimeout(boolean value) { bitField0_ |= 0x00000040; supportTimeout_ = value; onChanged(); return this; } /** * <code>optional bool support_timeout = 7 [default = false];</code> */ public Builder clearSupportTimeout() { bitField0_ = (bitField0_ & ~0x00000040); supportTimeout_ = false; onChanged(); return this; } // optional .exec.user.RpcEndpointInfos client_infos = 8; private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> clientInfosBuilder_; /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public boolean hasClientInfos() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getClientInfos() { if (clientInfosBuilder_ == null) { return clientInfos_; } else { return clientInfosBuilder_.getMessage(); } } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public Builder setClientInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) { if (clientInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clientInfos_ = value; onChanged(); } else { clientInfosBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public Builder setClientInfos( org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder builderForValue) { if (clientInfosBuilder_ == null) { clientInfos_ = builderForValue.build(); onChanged(); } else { clientInfosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public Builder mergeClientInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) { if (clientInfosBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080) && clientInfos_ != org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance()) { clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.newBuilder(clientInfos_).mergeFrom(value).buildPartial(); } else { clientInfos_ = value; } onChanged(); } else { clientInfosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public Builder clearClientInfos() { if (clientInfosBuilder_ == null) { clientInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); onChanged(); } else { clientInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder getClientInfosBuilder() { bitField0_ |= 0x00000080; onChanged(); return getClientInfosFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getClientInfosOrBuilder() { if (clientInfosBuilder_ != null) { return clientInfosBuilder_.getMessageOrBuilder(); } else { return clientInfos_; } } /** * <code>optional .exec.user.RpcEndpointInfos client_infos = 8;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> getClientInfosFieldBuilder() { if (clientInfosBuilder_ == null) { clientInfosBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>( clientInfos_, getParentForChildren(), isClean()); clientInfos_ = null; } return clientInfosBuilder_; } // optional .exec.user.SaslSupport sasl_support = 9; private org.apache.drill.exec.proto.UserProtos.SaslSupport saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT; /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public boolean hasSaslSupport() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public org.apache.drill.exec.proto.UserProtos.SaslSupport getSaslSupport() { return saslSupport_; } /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public Builder setSaslSupport(org.apache.drill.exec.proto.UserProtos.SaslSupport value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; saslSupport_ = value; onChanged(); return this; } /** * <code>optional .exec.user.SaslSupport sasl_support = 9;</code> */ public Builder clearSaslSupport() { bitField0_ = (bitField0_ & ~0x00000100); saslSupport_ = org.apache.drill.exec.proto.UserProtos.SaslSupport.UNKNOWN_SASL_SUPPORT; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.UserToBitHandshake) } static { defaultInstance = new UserToBitHandshake(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.UserToBitHandshake) } public interface RequestResultsOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.shared.QueryId query_id = 1; /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ boolean hasQueryId(); /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId(); /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder(); // optional int32 maximum_responses = 2; /** * <code>optional int32 maximum_responses = 2;</code> */ boolean hasMaximumResponses(); /** * <code>optional int32 maximum_responses = 2;</code> */ int getMaximumResponses(); } /** * Protobuf type {@code exec.user.RequestResults} */ public static final class RequestResults extends com.google.protobuf.GeneratedMessage implements RequestResultsOrBuilder { // Use RequestResults.newBuilder() to construct. private RequestResults(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RequestResults(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RequestResults defaultInstance; public static RequestResults getDefaultInstance() { return defaultInstance; } public RequestResults getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestResults( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = queryId_.toBuilder(); } queryId_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.QueryId.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(queryId_); queryId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 16: { bitField0_ |= 0x00000002; maximumResponses_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RequestResults.class, org.apache.drill.exec.proto.UserProtos.RequestResults.Builder.class); } public static com.google.protobuf.Parser<RequestResults> PARSER = new com.google.protobuf.AbstractParser<RequestResults>() { public RequestResults parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RequestResults(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RequestResults> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.shared.QueryId query_id = 1; public static final int QUERY_ID_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_; /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public boolean hasQueryId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() { return queryId_; } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() { return queryId_; } // optional int32 maximum_responses = 2; public static final int MAXIMUM_RESPONSES_FIELD_NUMBER = 2; private int maximumResponses_; /** * <code>optional int32 maximum_responses = 2;</code> */ public boolean hasMaximumResponses() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 maximum_responses = 2;</code> */ public int getMaximumResponses() { return maximumResponses_; } private void initFields() { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); maximumResponses_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, queryId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt32(2, maximumResponses_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, queryId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, maximumResponses_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RequestResults parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RequestResults prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.RequestResults} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.RequestResultsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RequestResults.class, org.apache.drill.exec.proto.UserProtos.RequestResults.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.RequestResults.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getQueryIdFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (queryIdBuilder_ == null) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); } else { queryIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); maximumResponses_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RequestResults_descriptor; } public org.apache.drill.exec.proto.UserProtos.RequestResults getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.RequestResults.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.RequestResults build() { org.apache.drill.exec.proto.UserProtos.RequestResults result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.RequestResults buildPartial() { org.apache.drill.exec.proto.UserProtos.RequestResults result = new org.apache.drill.exec.proto.UserProtos.RequestResults(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (queryIdBuilder_ == null) { result.queryId_ = queryId_; } else { result.queryId_ = queryIdBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.maximumResponses_ = maximumResponses_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.RequestResults) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.RequestResults)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.RequestResults other) { if (other == org.apache.drill.exec.proto.UserProtos.RequestResults.getDefaultInstance()) return this; if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } if (other.hasMaximumResponses()) { setMaximumResponses(other.getMaximumResponses()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.RequestResults parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.RequestResults) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.shared.QueryId query_id = 1; private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_; /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public boolean hasQueryId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() { if (queryIdBuilder_ == null) { return queryId_; } else { return queryIdBuilder_.getMessage(); } } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryId_ = value; onChanged(); } else { queryIdBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial(); } else { queryId_ = value; } onChanged(); } else { queryIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder clearQueryId() { if (queryIdBuilder_ == null) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); onChanged(); } else { queryIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() { bitField0_ |= 0x00000001; onChanged(); return getQueryIdFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() { if (queryIdBuilder_ != null) { return queryIdBuilder_.getMessageOrBuilder(); } else { return queryId_; } } /** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> getQueryIdFieldBuilder() { if (queryIdBuilder_ == null) { queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>( queryId_, getParentForChildren(), isClean()); queryId_ = null; } return queryIdBuilder_; } // optional int32 maximum_responses = 2; private int maximumResponses_ ; /** * <code>optional int32 maximum_responses = 2;</code> */ public boolean hasMaximumResponses() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional int32 maximum_responses = 2;</code> */ public int getMaximumResponses() { return maximumResponses_; } /** * <code>optional int32 maximum_responses = 2;</code> */ public Builder setMaximumResponses(int value) { bitField0_ |= 0x00000002; maximumResponses_ = value; onChanged(); return this; } /** * <code>optional int32 maximum_responses = 2;</code> */ public Builder clearMaximumResponses() { bitField0_ = (bitField0_ & ~0x00000002); maximumResponses_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.RequestResults) } static { defaultInstance = new RequestResults(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.RequestResults) } public interface GetQueryPlanFragmentsOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string query = 1; /** * <code>required string query = 1;</code> */ boolean hasQuery(); /** * <code>required string query = 1;</code> */ java.lang.String getQuery(); /** * <code>required string query = 1;</code> */ com.google.protobuf.ByteString getQueryBytes(); // optional .exec.shared.QueryType type = 2; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ boolean hasType(); /** * <code>optional .exec.shared.QueryType type = 2;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryType getType(); // optional bool split_plan = 3 [default = false]; /** * <code>optional bool split_plan = 3 [default = false];</code> */ boolean hasSplitPlan(); /** * <code>optional bool split_plan = 3 [default = false];</code> */ boolean getSplitPlan(); } /** * Protobuf type {@code exec.user.GetQueryPlanFragments} */ public static final class GetQueryPlanFragments extends com.google.protobuf.GeneratedMessage implements GetQueryPlanFragmentsOrBuilder { // Use GetQueryPlanFragments.newBuilder() to construct. private GetQueryPlanFragments(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetQueryPlanFragments(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetQueryPlanFragments defaultInstance; public static GetQueryPlanFragments getDefaultInstance() { return defaultInstance; } public GetQueryPlanFragments getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetQueryPlanFragments( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; query_ = input.readBytes(); break; } case 16: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserBitShared.QueryType value = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 24: { bitField0_ |= 0x00000004; splitPlan_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.Builder.class); } public static com.google.protobuf.Parser<GetQueryPlanFragments> PARSER = new com.google.protobuf.AbstractParser<GetQueryPlanFragments>() { public GetQueryPlanFragments parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetQueryPlanFragments(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetQueryPlanFragments> getParserForType() { return PARSER; } private int bitField0_; // required string query = 1; public static final int QUERY_FIELD_NUMBER = 1; private java.lang.Object query_; /** * <code>required string query = 1;</code> */ public boolean hasQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string query = 1;</code> */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { query_ = s; } return s; } } /** * <code>required string query = 1;</code> */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .exec.shared.QueryType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserBitShared.QueryType type_; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryType getType() { return type_; } // optional bool split_plan = 3 [default = false]; public static final int SPLIT_PLAN_FIELD_NUMBER = 3; private boolean splitPlan_; /** * <code>optional bool split_plan = 3 [default = false];</code> */ public boolean hasSplitPlan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool split_plan = 3 [default = false];</code> */ public boolean getSplitPlan() { return splitPlan_; } private void initFields() { query_ = ""; type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; splitPlan_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasQuery()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, splitPlan_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getQueryBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, splitPlan_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetQueryPlanFragments} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragmentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); query_ = ""; bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; bitField0_ = (bitField0_ & ~0x00000002); splitPlan_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetQueryPlanFragments_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments build() { org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments buildPartial() { org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments result = new org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.query_ = query_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.splitPlan_ = splitPlan_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments other) { if (other == org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments.getDefaultInstance()) return this; if (other.hasQuery()) { bitField0_ |= 0x00000001; query_ = other.query_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasSplitPlan()) { setSplitPlan(other.getSplitPlan()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasQuery()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetQueryPlanFragments) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string query = 1; private java.lang.Object query_ = ""; /** * <code>required string query = 1;</code> */ public boolean hasQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string query = 1;</code> */ public java.lang.String getQuery() { java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); query_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string query = 1;</code> */ public com.google.protobuf.ByteString getQueryBytes() { java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string query = 1;</code> */ public Builder setQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; query_ = value; onChanged(); return this; } /** * <code>required string query = 1;</code> */ public Builder clearQuery() { bitField0_ = (bitField0_ & ~0x00000001); query_ = getDefaultInstance().getQuery(); onChanged(); return this; } /** * <code>required string query = 1;</code> */ public Builder setQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; query_ = value; onChanged(); return this; } // optional .exec.shared.QueryType type = 2; private org.apache.drill.exec.proto.UserBitShared.QueryType type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryType getType() { return type_; } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder setType(org.apache.drill.exec.proto.UserBitShared.QueryType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; onChanged(); return this; } // optional bool split_plan = 3 [default = false]; private boolean splitPlan_ ; /** * <code>optional bool split_plan = 3 [default = false];</code> */ public boolean hasSplitPlan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool split_plan = 3 [default = false];</code> */ public boolean getSplitPlan() { return splitPlan_; } /** * <code>optional bool split_plan = 3 [default = false];</code> */ public Builder setSplitPlan(boolean value) { bitField0_ |= 0x00000004; splitPlan_ = value; onChanged(); return this; } /** * <code>optional bool split_plan = 3 [default = false];</code> */ public Builder clearSplitPlan() { bitField0_ = (bitField0_ & ~0x00000004); splitPlan_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.GetQueryPlanFragments) } static { defaultInstance = new GetQueryPlanFragments(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetQueryPlanFragments) } public interface QueryPlanFragmentsOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .exec.shared.QueryResult.QueryState status = 1; /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ boolean hasStatus(); /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus(); // optional .exec.shared.QueryId query_id = 2; /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ boolean hasQueryId(); /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId(); /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder(); // repeated .exec.bit.control.PlanFragment fragments = 3; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ int getFragmentsCount(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index); // optional .exec.shared.DrillPBError error = 4; /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.QueryPlanFragments} */ public static final class QueryPlanFragments extends com.google.protobuf.GeneratedMessage implements QueryPlanFragmentsOrBuilder { // Use QueryPlanFragments.newBuilder() to construct. private QueryPlanFragments(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private QueryPlanFragments(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final QueryPlanFragments defaultInstance; public static QueryPlanFragments getDefaultInstance() { return defaultInstance; } public QueryPlanFragments getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private QueryPlanFragments( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { org.apache.drill.exec.proto.UserBitShared.QueryId.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = queryId_.toBuilder(); } queryId_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.QueryId.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(queryId_); queryId_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>(); mutable_bitField0_ |= 0x00000004; } fragments_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry)); break; } case 34: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { fragments_ = java.util.Collections.unmodifiableList(fragments_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.Builder.class); } public static com.google.protobuf.Parser<QueryPlanFragments> PARSER = new com.google.protobuf.AbstractParser<QueryPlanFragments>() { public QueryPlanFragments parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new QueryPlanFragments(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<QueryPlanFragments> getParserForType() { return PARSER; } private int bitField0_; // required .exec.shared.QueryResult.QueryState status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState status_; /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus() { return status_; } // optional .exec.shared.QueryId query_id = 2; public static final int QUERY_ID_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_; /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public boolean hasQueryId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() { return queryId_; } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() { return queryId_; } // repeated .exec.bit.control.PlanFragment fragments = 3; public static final int FRAGMENTS_FIELD_NUMBER = 3; private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() { return fragments_; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList() { return fragments_; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public int getFragmentsCount() { return fragments_.size(); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) { return fragments_.get(index); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index) { return fragments_.get(index); } // optional .exec.shared.DrillPBError error = 4; public static final int ERROR_FIELD_NUMBER = 4; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); fragments_ = java.util.Collections.emptyList(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasStatus()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } 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, queryId_); } for (int i = 0; i < fragments_.size(); i++) { output.writeMessage(3, fragments_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(4, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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, queryId_); } for (int i = 0; i < fragments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, fragments_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.QueryPlanFragments prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.QueryPlanFragments} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.QueryPlanFragmentsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.class, org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getQueryIdFieldBuilder(); getFragmentsFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; bitField0_ = (bitField0_ & ~0x00000001); if (queryIdBuilder_ == null) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); } else { queryIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { fragmentsBuilder_.clear(); } if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_QueryPlanFragments_descriptor; } public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments build() { org.apache.drill.exec.proto.UserProtos.QueryPlanFragments result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.QueryPlanFragments buildPartial() { org.apache.drill.exec.proto.UserProtos.QueryPlanFragments result = new org.apache.drill.exec.proto.UserProtos.QueryPlanFragments(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (queryIdBuilder_ == null) { result.queryId_ = queryId_; } else { result.queryId_ = queryIdBuilder_.build(); } if (fragmentsBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { fragments_ = java.util.Collections.unmodifiableList(fragments_); bitField0_ = (bitField0_ & ~0x00000004); } result.fragments_ = fragments_; } else { result.fragments_ = fragmentsBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.QueryPlanFragments) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.QueryPlanFragments)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.QueryPlanFragments other) { if (other == org.apache.drill.exec.proto.UserProtos.QueryPlanFragments.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } if (fragmentsBuilder_ == null) { if (!other.fragments_.isEmpty()) { if (fragments_.isEmpty()) { fragments_ = other.fragments_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureFragmentsIsMutable(); fragments_.addAll(other.fragments_); } onChanged(); } } else { if (!other.fragments_.isEmpty()) { if (fragmentsBuilder_.isEmpty()) { fragmentsBuilder_.dispose(); fragmentsBuilder_ = null; fragments_ = other.fragments_; bitField0_ = (bitField0_ & ~0x00000004); fragmentsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFragmentsFieldBuilder() : null; } else { fragmentsBuilder_.addAllMessages(other.fragments_); } } } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasStatus()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.QueryPlanFragments parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.QueryPlanFragments) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .exec.shared.QueryResult.QueryState status = 1; private org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState getStatus() { return status_; } /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>required .exec.shared.QueryResult.QueryState status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserBitShared.QueryResult.QueryState.STARTING; onChanged(); return this; } // optional .exec.shared.QueryId query_id = 2; private org.apache.drill.exec.proto.UserBitShared.QueryId queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> queryIdBuilder_; /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public boolean hasQueryId() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId getQueryId() { if (queryIdBuilder_ == null) { return queryId_; } else { return queryIdBuilder_.getMessage(); } } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } queryId_ = value; onChanged(); } else { queryIdBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder mergeQueryId(org.apache.drill.exec.proto.UserBitShared.QueryId value) { if (queryIdBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && queryId_ != org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance()) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial(); } else { queryId_ = value; } onChanged(); } else { queryIdBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder clearQueryId() { if (queryIdBuilder_ == null) { queryId_ = org.apache.drill.exec.proto.UserBitShared.QueryId.getDefaultInstance(); onChanged(); } else { queryIdBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryId.Builder getQueryIdBuilder() { bitField0_ |= 0x00000002; onChanged(); return getQueryIdFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder getQueryIdOrBuilder() { if (queryIdBuilder_ != null) { return queryIdBuilder_.getMessageOrBuilder(); } else { return queryId_; } } /** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> getQueryIdFieldBuilder() { if (queryIdBuilder_ == null) { queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>( queryId_, getParentForChildren(), isClean()); queryId_ = null; } return queryIdBuilder_; } // repeated .exec.bit.control.PlanFragment fragments = 3; private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_ = java.util.Collections.emptyList(); private void ensureFragmentsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>(fragments_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> fragmentsBuilder_; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() { if (fragmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(fragments_); } else { return fragmentsBuilder_.getMessageList(); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public int getFragmentsCount() { if (fragmentsBuilder_ == null) { return fragments_.size(); } else { return fragmentsBuilder_.getCount(); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessage(index); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder setFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.set(index, value); onChanged(); } else { fragmentsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder setFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.set(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder addFragments(org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(value); onChanged(); } else { fragmentsBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder addFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(index, value); onChanged(); } else { fragmentsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder addFragments( org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder addFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder addAllFragments( java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.PlanFragment> values) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); super.addAll(values, fragments_); onChanged(); } else { fragmentsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder clearFragments() { if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { fragmentsBuilder_.clear(); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public Builder removeFragments(int index) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.remove(index); onChanged(); } else { fragmentsBuilder_.remove(index); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder getFragmentsBuilder( int index) { return getFragmentsFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList() { if (fragmentsBuilder_ != null) { return fragmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fragments_); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder() { return getFragmentsFieldBuilder().addBuilder( org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance()); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder( int index) { return getFragmentsFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance()); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 3;</code> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment.Builder> getFragmentsBuilderList() { return getFragmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsFieldBuilder() { if (fragmentsBuilder_ == null) { fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>( fragments_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); fragments_ = null; } return fragmentsBuilder_; } // optional .exec.shared.DrillPBError error = 4; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000008; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 4;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.QueryPlanFragments) } static { defaultInstance = new QueryPlanFragments(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.QueryPlanFragments) } public interface BitToUserHandshakeOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional int32 rpc_version = 2; /** * <code>optional int32 rpc_version = 2;</code> */ boolean hasRpcVersion(); /** * <code>optional int32 rpc_version = 2;</code> */ int getRpcVersion(); // optional .exec.user.HandshakeStatus status = 3; /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus(); // optional string errorId = 4; /** * <code>optional string errorId = 4;</code> */ boolean hasErrorId(); /** * <code>optional string errorId = 4;</code> */ java.lang.String getErrorId(); /** * <code>optional string errorId = 4;</code> */ com.google.protobuf.ByteString getErrorIdBytes(); // optional string errorMessage = 5; /** * <code>optional string errorMessage = 5;</code> */ boolean hasErrorMessage(); /** * <code>optional string errorMessage = 5;</code> */ java.lang.String getErrorMessage(); /** * <code>optional string errorMessage = 5;</code> */ com.google.protobuf.ByteString getErrorMessageBytes(); // optional .exec.user.RpcEndpointInfos server_infos = 6; /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ boolean hasServerInfos(); /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getServerInfos(); /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getServerInfosOrBuilder(); // repeated string authenticationMechanisms = 7; /** * <code>repeated string authenticationMechanisms = 7;</code> */ java.util.List<java.lang.String> getAuthenticationMechanismsList(); /** * <code>repeated string authenticationMechanisms = 7;</code> */ int getAuthenticationMechanismsCount(); /** * <code>repeated string authenticationMechanisms = 7;</code> */ java.lang.String getAuthenticationMechanisms(int index); /** * <code>repeated string authenticationMechanisms = 7;</code> */ com.google.protobuf.ByteString getAuthenticationMechanismsBytes(int index); // repeated .exec.user.RpcType supported_methods = 8; /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> getSupportedMethodsList(); /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ int getSupportedMethodsCount(); /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index); } /** * Protobuf type {@code exec.user.BitToUserHandshake} */ public static final class BitToUserHandshake extends com.google.protobuf.GeneratedMessage implements BitToUserHandshakeOrBuilder { // Use BitToUserHandshake.newBuilder() to construct. private BitToUserHandshake(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private BitToUserHandshake(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final BitToUserHandshake defaultInstance; public static BitToUserHandshake getDefaultInstance() { return defaultInstance; } public BitToUserHandshake getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BitToUserHandshake( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 16: { bitField0_ |= 0x00000001; rpcVersion_ = input.readInt32(); break; } case 24: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.HandshakeStatus value = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000002; status_ = value; } break; } case 34: { bitField0_ |= 0x00000004; errorId_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000008; errorMessage_ = input.readBytes(); break; } case 50: { org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder subBuilder = null; if (((bitField0_ & 0x00000010) == 0x00000010)) { subBuilder = serverInfos_.toBuilder(); } serverInfos_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverInfos_); serverInfos_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000010; break; } case 58: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { authenticationMechanisms_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000020; } authenticationMechanisms_.add(input.readBytes()); break; } case 64: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RpcType value = org.apache.drill.exec.proto.UserProtos.RpcType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(8, rawValue); } else { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>(); mutable_bitField0_ |= 0x00000040; } supportedMethods_.add(value); } break; } case 66: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RpcType value = org.apache.drill.exec.proto.UserProtos.RpcType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(8, rawValue); } else { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>(); mutable_bitField0_ |= 0x00000040; } supportedMethods_.add(value); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList(authenticationMechanisms_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { supportedMethods_ = java.util.Collections.unmodifiableList(supportedMethods_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.class, org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.Builder.class); } public static com.google.protobuf.Parser<BitToUserHandshake> PARSER = new com.google.protobuf.AbstractParser<BitToUserHandshake>() { public BitToUserHandshake parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new BitToUserHandshake(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<BitToUserHandshake> getParserForType() { return PARSER; } private int bitField0_; // optional int32 rpc_version = 2; public static final int RPC_VERSION_FIELD_NUMBER = 2; private int rpcVersion_; /** * <code>optional int32 rpc_version = 2;</code> */ public boolean hasRpcVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 rpc_version = 2;</code> */ public int getRpcVersion() { return rpcVersion_; } // optional .exec.user.HandshakeStatus status = 3; public static final int STATUS_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserProtos.HandshakeStatus status_; /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus() { return status_; } // optional string errorId = 4; public static final int ERRORID_FIELD_NUMBER = 4; private java.lang.Object errorId_; /** * <code>optional string errorId = 4;</code> */ public boolean hasErrorId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string errorId = 4;</code> */ public java.lang.String getErrorId() { java.lang.Object ref = errorId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { errorId_ = s; } return s; } } /** * <code>optional string errorId = 4;</code> */ public com.google.protobuf.ByteString getErrorIdBytes() { java.lang.Object ref = errorId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string errorMessage = 5; public static final int ERRORMESSAGE_FIELD_NUMBER = 5; private java.lang.Object errorMessage_; /** * <code>optional string errorMessage = 5;</code> */ public boolean hasErrorMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string errorMessage = 5;</code> */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { errorMessage_ = s; } return s; } } /** * <code>optional string errorMessage = 5;</code> */ public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .exec.user.RpcEndpointInfos server_infos = 6; public static final int SERVER_INFOS_FIELD_NUMBER = 6; private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos serverInfos_; /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public boolean hasServerInfos() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getServerInfos() { return serverInfos_; } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getServerInfosOrBuilder() { return serverInfos_; } // repeated string authenticationMechanisms = 7; public static final int AUTHENTICATIONMECHANISMS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList authenticationMechanisms_; /** * <code>repeated string authenticationMechanisms = 7;</code> */ public java.util.List<java.lang.String> getAuthenticationMechanismsList() { return authenticationMechanisms_; } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public int getAuthenticationMechanismsCount() { return authenticationMechanisms_.size(); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public java.lang.String getAuthenticationMechanisms(int index) { return authenticationMechanisms_.get(index); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public com.google.protobuf.ByteString getAuthenticationMechanismsBytes(int index) { return authenticationMechanisms_.getByteString(index); } // repeated .exec.user.RpcType supported_methods = 8; public static final int SUPPORTED_METHODS_FIELD_NUMBER = 8; private java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> supportedMethods_; /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> getSupportedMethodsList() { return supportedMethods_; } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public int getSupportedMethodsCount() { return supportedMethods_.size(); } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index) { return supportedMethods_.get(index); } private void initFields() { rpcVersion_ = 0; status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS; errorId_ = ""; errorMessage_ = ""; serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY; supportedMethods_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(2, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(3, status_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(4, getErrorIdBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getErrorMessageBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeMessage(6, serverInfos_); } for (int i = 0; i < authenticationMechanisms_.size(); i++) { output.writeBytes(7, authenticationMechanisms_.getByteString(i)); } for (int i = 0; i < supportedMethods_.size(); i++) { output.writeEnum(8, supportedMethods_.get(i).getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, rpcVersion_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, status_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getErrorIdBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getErrorMessageBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, serverInfos_); } { int dataSize = 0; for (int i = 0; i < authenticationMechanisms_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(authenticationMechanisms_.getByteString(i)); } size += dataSize; size += 1 * getAuthenticationMechanismsList().size(); } { int dataSize = 0; for (int i = 0; i < supportedMethods_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(supportedMethods_.get(i).getNumber()); } size += dataSize; size += 1 * supportedMethods_.size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.BitToUserHandshake prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.BitToUserHandshake} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.BitToUserHandshakeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.class, org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getServerInfosFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); rpcVersion_ = 0; bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS; bitField0_ = (bitField0_ & ~0x00000002); errorId_ = ""; bitField0_ = (bitField0_ & ~0x00000004); errorMessage_ = ""; bitField0_ = (bitField0_ & ~0x00000008); if (serverInfosBuilder_ == null) { serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); } else { serverInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); supportedMethods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_BitToUserHandshake_descriptor; } public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake build() { org.apache.drill.exec.proto.UserProtos.BitToUserHandshake result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.BitToUserHandshake buildPartial() { org.apache.drill.exec.proto.UserProtos.BitToUserHandshake result = new org.apache.drill.exec.proto.UserProtos.BitToUserHandshake(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rpcVersion_ = rpcVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.status_ = status_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.errorId_ = errorId_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.errorMessage_ = errorMessage_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } if (serverInfosBuilder_ == null) { result.serverInfos_ = serverInfos_; } else { result.serverInfos_ = serverInfosBuilder_.build(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { authenticationMechanisms_ = new com.google.protobuf.UnmodifiableLazyStringList( authenticationMechanisms_); bitField0_ = (bitField0_ & ~0x00000020); } result.authenticationMechanisms_ = authenticationMechanisms_; if (((bitField0_ & 0x00000040) == 0x00000040)) { supportedMethods_ = java.util.Collections.unmodifiableList(supportedMethods_); bitField0_ = (bitField0_ & ~0x00000040); } result.supportedMethods_ = supportedMethods_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.BitToUserHandshake) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.BitToUserHandshake)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.BitToUserHandshake other) { if (other == org.apache.drill.exec.proto.UserProtos.BitToUserHandshake.getDefaultInstance()) return this; if (other.hasRpcVersion()) { setRpcVersion(other.getRpcVersion()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasErrorId()) { bitField0_ |= 0x00000004; errorId_ = other.errorId_; onChanged(); } if (other.hasErrorMessage()) { bitField0_ |= 0x00000008; errorMessage_ = other.errorMessage_; onChanged(); } if (other.hasServerInfos()) { mergeServerInfos(other.getServerInfos()); } if (!other.authenticationMechanisms_.isEmpty()) { if (authenticationMechanisms_.isEmpty()) { authenticationMechanisms_ = other.authenticationMechanisms_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.addAll(other.authenticationMechanisms_); } onChanged(); } if (!other.supportedMethods_.isEmpty()) { if (supportedMethods_.isEmpty()) { supportedMethods_ = other.supportedMethods_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureSupportedMethodsIsMutable(); supportedMethods_.addAll(other.supportedMethods_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.BitToUserHandshake parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.BitToUserHandshake) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional int32 rpc_version = 2; private int rpcVersion_ ; /** * <code>optional int32 rpc_version = 2;</code> */ public boolean hasRpcVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional int32 rpc_version = 2;</code> */ public int getRpcVersion() { return rpcVersion_; } /** * <code>optional int32 rpc_version = 2;</code> */ public Builder setRpcVersion(int value) { bitField0_ |= 0x00000001; rpcVersion_ = value; onChanged(); return this; } /** * <code>optional int32 rpc_version = 2;</code> */ public Builder clearRpcVersion() { bitField0_ = (bitField0_ & ~0x00000001); rpcVersion_ = 0; onChanged(); return this; } // optional .exec.user.HandshakeStatus status = 3; private org.apache.drill.exec.proto.UserProtos.HandshakeStatus status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS; /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.HandshakeStatus getStatus() { return status_; } /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.HandshakeStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.HandshakeStatus status = 3;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000002); status_ = org.apache.drill.exec.proto.UserProtos.HandshakeStatus.SUCCESS; onChanged(); return this; } // optional string errorId = 4; private java.lang.Object errorId_ = ""; /** * <code>optional string errorId = 4;</code> */ public boolean hasErrorId() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string errorId = 4;</code> */ public java.lang.String getErrorId() { java.lang.Object ref = errorId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); errorId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string errorId = 4;</code> */ public com.google.protobuf.ByteString getErrorIdBytes() { java.lang.Object ref = errorId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string errorId = 4;</code> */ public Builder setErrorId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorId_ = value; onChanged(); return this; } /** * <code>optional string errorId = 4;</code> */ public Builder clearErrorId() { bitField0_ = (bitField0_ & ~0x00000004); errorId_ = getDefaultInstance().getErrorId(); onChanged(); return this; } /** * <code>optional string errorId = 4;</code> */ public Builder setErrorIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorId_ = value; onChanged(); return this; } // optional string errorMessage = 5; private java.lang.Object errorMessage_ = ""; /** * <code>optional string errorMessage = 5;</code> */ public boolean hasErrorMessage() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string errorMessage = 5;</code> */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); errorMessage_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string errorMessage = 5;</code> */ public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string errorMessage = 5;</code> */ public Builder setErrorMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorMessage_ = value; onChanged(); return this; } /** * <code>optional string errorMessage = 5;</code> */ public Builder clearErrorMessage() { bitField0_ = (bitField0_ & ~0x00000008); errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** * <code>optional string errorMessage = 5;</code> */ public Builder setErrorMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorMessage_ = value; onChanged(); return this; } // optional .exec.user.RpcEndpointInfos server_infos = 6; private org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> serverInfosBuilder_; /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public boolean hasServerInfos() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getServerInfos() { if (serverInfosBuilder_ == null) { return serverInfos_; } else { return serverInfosBuilder_.getMessage(); } } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public Builder setServerInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) { if (serverInfosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverInfos_ = value; onChanged(); } else { serverInfosBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public Builder setServerInfos( org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder builderForValue) { if (serverInfosBuilder_ == null) { serverInfos_ = builderForValue.build(); onChanged(); } else { serverInfosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public Builder mergeServerInfos(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos value) { if (serverInfosBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && serverInfos_ != org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance()) { serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.newBuilder(serverInfos_).mergeFrom(value).buildPartial(); } else { serverInfos_ = value; } onChanged(); } else { serverInfosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public Builder clearServerInfos() { if (serverInfosBuilder_ == null) { serverInfos_ = org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance(); onChanged(); } else { serverInfosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder getServerInfosBuilder() { bitField0_ |= 0x00000010; onChanged(); return getServerInfosFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder getServerInfosOrBuilder() { if (serverInfosBuilder_ != null) { return serverInfosBuilder_.getMessageOrBuilder(); } else { return serverInfos_; } } /** * <code>optional .exec.user.RpcEndpointInfos server_infos = 6;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder> getServerInfosFieldBuilder() { if (serverInfosBuilder_ == null) { serverInfosBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.Builder, org.apache.drill.exec.proto.UserProtos.RpcEndpointInfosOrBuilder>( serverInfos_, getParentForChildren(), isClean()); serverInfos_ = null; } return serverInfosBuilder_; } // repeated string authenticationMechanisms = 7; private com.google.protobuf.LazyStringList authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAuthenticationMechanismsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { authenticationMechanisms_ = new com.google.protobuf.LazyStringArrayList(authenticationMechanisms_); bitField0_ |= 0x00000020; } } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public java.util.List<java.lang.String> getAuthenticationMechanismsList() { return java.util.Collections.unmodifiableList(authenticationMechanisms_); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public int getAuthenticationMechanismsCount() { return authenticationMechanisms_.size(); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public java.lang.String getAuthenticationMechanisms(int index) { return authenticationMechanisms_.get(index); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public com.google.protobuf.ByteString getAuthenticationMechanismsBytes(int index) { return authenticationMechanisms_.getByteString(index); } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder setAuthenticationMechanisms( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.set(index, value); onChanged(); return this; } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder addAuthenticationMechanisms( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.add(value); onChanged(); return this; } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder addAllAuthenticationMechanisms( java.lang.Iterable<java.lang.String> values) { ensureAuthenticationMechanismsIsMutable(); super.addAll(values, authenticationMechanisms_); onChanged(); return this; } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder clearAuthenticationMechanisms() { authenticationMechanisms_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * <code>repeated string authenticationMechanisms = 7;</code> */ public Builder addAuthenticationMechanismsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAuthenticationMechanismsIsMutable(); authenticationMechanisms_.add(value); onChanged(); return this; } // repeated .exec.user.RpcType supported_methods = 8; private java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> supportedMethods_ = java.util.Collections.emptyList(); private void ensureSupportedMethodsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { supportedMethods_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.RpcType>(supportedMethods_); bitField0_ |= 0x00000040; } } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.RpcType> getSupportedMethodsList() { return java.util.Collections.unmodifiableList(supportedMethods_); } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public int getSupportedMethodsCount() { return supportedMethods_.size(); } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public org.apache.drill.exec.proto.UserProtos.RpcType getSupportedMethods(int index) { return supportedMethods_.get(index); } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder setSupportedMethods( int index, org.apache.drill.exec.proto.UserProtos.RpcType value) { if (value == null) { throw new NullPointerException(); } ensureSupportedMethodsIsMutable(); supportedMethods_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder addSupportedMethods(org.apache.drill.exec.proto.UserProtos.RpcType value) { if (value == null) { throw new NullPointerException(); } ensureSupportedMethodsIsMutable(); supportedMethods_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder addAllSupportedMethods( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.RpcType> values) { ensureSupportedMethodsIsMutable(); super.addAll(values, supportedMethods_); onChanged(); return this; } /** * <code>repeated .exec.user.RpcType supported_methods = 8;</code> */ public Builder clearSupportedMethods() { supportedMethods_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.BitToUserHandshake) } static { defaultInstance = new BitToUserHandshake(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.BitToUserHandshake) } public interface LikeFilterOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string pattern = 1; /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ boolean hasPattern(); /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ java.lang.String getPattern(); /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ com.google.protobuf.ByteString getPatternBytes(); // optional string escape = 2; /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ boolean hasEscape(); /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ java.lang.String getEscape(); /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ com.google.protobuf.ByteString getEscapeBytes(); } /** * Protobuf type {@code exec.user.LikeFilter} * * <pre> * * Simple filter which encapsulates the SQL LIKE ... ESCAPE function * </pre> */ public static final class LikeFilter extends com.google.protobuf.GeneratedMessage implements LikeFilterOrBuilder { // Use LikeFilter.newBuilder() to construct. private LikeFilter(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private LikeFilter(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final LikeFilter defaultInstance; public static LikeFilter getDefaultInstance() { return defaultInstance; } public LikeFilter getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private LikeFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; pattern_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; escape_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.LikeFilter.class, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder.class); } public static com.google.protobuf.Parser<LikeFilter> PARSER = new com.google.protobuf.AbstractParser<LikeFilter>() { public LikeFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new LikeFilter(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<LikeFilter> getParserForType() { return PARSER; } private int bitField0_; // optional string pattern = 1; public static final int PATTERN_FIELD_NUMBER = 1; private java.lang.Object pattern_; /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public boolean hasPattern() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { pattern_ = s; } return s; } } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string escape = 2; public static final int ESCAPE_FIELD_NUMBER = 2; private java.lang.Object escape_; /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public boolean hasEscape() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public java.lang.String getEscape() { java.lang.Object ref = escape_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { escape_ = s; } return s; } } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public com.google.protobuf.ByteString getEscapeBytes() { java.lang.Object ref = escape_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); escape_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { pattern_ = ""; escape_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getPatternBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getEscapeBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getPatternBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getEscapeBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.LikeFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.LikeFilter prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.LikeFilter} * * <pre> * * Simple filter which encapsulates the SQL LIKE ... ESCAPE function * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.LikeFilter.class, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); pattern_ = ""; bitField0_ = (bitField0_ & ~0x00000001); escape_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_LikeFilter_descriptor; } public org.apache.drill.exec.proto.UserProtos.LikeFilter getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.LikeFilter build() { org.apache.drill.exec.proto.UserProtos.LikeFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.LikeFilter buildPartial() { org.apache.drill.exec.proto.UserProtos.LikeFilter result = new org.apache.drill.exec.proto.UserProtos.LikeFilter(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.pattern_ = pattern_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.escape_ = escape_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.LikeFilter) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.LikeFilter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.LikeFilter other) { if (other == org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) return this; if (other.hasPattern()) { bitField0_ |= 0x00000001; pattern_ = other.pattern_; onChanged(); } if (other.hasEscape()) { bitField0_ |= 0x00000002; escape_ = other.escape_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.LikeFilter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.LikeFilter) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string pattern = 1; private java.lang.Object pattern_ = ""; /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public boolean hasPattern() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); pattern_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public com.google.protobuf.ByteString getPatternBytes() { java.lang.Object ref = pattern_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); pattern_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public Builder setPattern( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pattern_ = value; onChanged(); return this; } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public Builder clearPattern() { bitField0_ = (bitField0_ & ~0x00000001); pattern_ = getDefaultInstance().getPattern(); onChanged(); return this; } /** * <code>optional string pattern = 1;</code> * * <pre> * pattern to match * </pre> */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; pattern_ = value; onChanged(); return this; } // optional string escape = 2; private java.lang.Object escape_ = ""; /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public boolean hasEscape() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public java.lang.String getEscape() { java.lang.Object ref = escape_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); escape_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public com.google.protobuf.ByteString getEscapeBytes() { java.lang.Object ref = escape_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); escape_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public Builder setEscape( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; escape_ = value; onChanged(); return this; } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public Builder clearEscape() { bitField0_ = (bitField0_ & ~0x00000002); escape_ = getDefaultInstance().getEscape(); onChanged(); return this; } /** * <code>optional string escape = 2;</code> * * <pre> * escape character (if any) present in the pattern * </pre> */ public Builder setEscapeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; escape_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.LikeFilter) } static { defaultInstance = new LikeFilter(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.LikeFilter) } public interface GetCatalogsReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.LikeFilter catalog_name_filter = 1; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ boolean hasCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder(); } /** * Protobuf type {@code exec.user.GetCatalogsReq} * * <pre> * * Request message for getting the metadata for catalogs satisfying the given optional filter. * </pre> */ public static final class GetCatalogsReq extends com.google.protobuf.GeneratedMessage implements GetCatalogsReqOrBuilder { // Use GetCatalogsReq.newBuilder() to construct. private GetCatalogsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetCatalogsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetCatalogsReq defaultInstance; public static GetCatalogsReq getDefaultInstance() { return defaultInstance; } public GetCatalogsReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetCatalogsReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = catalogNameFilter_.toBuilder(); } catalogNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(catalogNameFilter_); catalogNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.Builder.class); } public static com.google.protobuf.Parser<GetCatalogsReq> PARSER = new com.google.protobuf.AbstractParser<GetCatalogsReq>() { public GetCatalogsReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetCatalogsReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetCatalogsReq> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { return catalogNameFilter_; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { return catalogNameFilter_; } private void initFields() { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, catalogNameFilter_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, catalogNameFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetCatalogsReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetCatalogsReq} * * <pre> * * Request message for getting the metadata for catalogs satisfying the given optional filter. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetCatalogsReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCatalogNameFilterFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq build() { org.apache.drill.exec.proto.UserProtos.GetCatalogsReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetCatalogsReq buildPartial() { org.apache.drill.exec.proto.UserProtos.GetCatalogsReq result = new org.apache.drill.exec.proto.UserProtos.GetCatalogsReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (catalogNameFilterBuilder_ == null) { result.catalogNameFilter_ = catalogNameFilter_; } else { result.catalogNameFilter_ = catalogNameFilterBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetCatalogsReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetCatalogsReq other) { if (other == org.apache.drill.exec.proto.UserProtos.GetCatalogsReq.getDefaultInstance()) return this; if (other.hasCatalogNameFilter()) { mergeCatalogNameFilter(other.getCatalogNameFilter()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetCatalogsReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetCatalogsReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { return catalogNameFilter_; } else { return catalogNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catalogNameFilter_ = value; onChanged(); } else { catalogNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = builderForValue.build(); onChanged(); } else { catalogNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial(); } else { catalogNameFilter_ = value; } onChanged(); } else { catalogNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder clearCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCatalogNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { if (catalogNameFilterBuilder_ != null) { return catalogNameFilterBuilder_.getMessageOrBuilder(); } else { return catalogNameFilter_; } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getCatalogNameFilterFieldBuilder() { if (catalogNameFilterBuilder_ == null) { catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( catalogNameFilter_, getParentForChildren(), isClean()); catalogNameFilter_ = null; } return catalogNameFilterBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetCatalogsReq) } static { defaultInstance = new GetCatalogsReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsReq) } public interface CatalogMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string catalog_name = 1; /** * <code>optional string catalog_name = 1;</code> */ boolean hasCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ java.lang.String getCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ com.google.protobuf.ByteString getCatalogNameBytes(); // optional string description = 2; /** * <code>optional string description = 2;</code> */ boolean hasDescription(); /** * <code>optional string description = 2;</code> */ java.lang.String getDescription(); /** * <code>optional string description = 2;</code> */ com.google.protobuf.ByteString getDescriptionBytes(); // optional string connect = 3; /** * <code>optional string connect = 3;</code> */ boolean hasConnect(); /** * <code>optional string connect = 3;</code> */ java.lang.String getConnect(); /** * <code>optional string connect = 3;</code> */ com.google.protobuf.ByteString getConnectBytes(); } /** * Protobuf type {@code exec.user.CatalogMetadata} * * <pre> * * Message encapsulating metadata for a Catalog. * </pre> */ public static final class CatalogMetadata extends com.google.protobuf.GeneratedMessage implements CatalogMetadataOrBuilder { // Use CatalogMetadata.newBuilder() to construct. private CatalogMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CatalogMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CatalogMetadata defaultInstance; public static CatalogMetadata getDefaultInstance() { return defaultInstance; } public CatalogMetadata getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CatalogMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; catalogName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; description_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; connect_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CatalogMetadata.class, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder.class); } public static com.google.protobuf.Parser<CatalogMetadata> PARSER = new com.google.protobuf.AbstractParser<CatalogMetadata>() { public CatalogMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CatalogMetadata(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<CatalogMetadata> getParserForType() { return PARSER; } private int bitField0_; // optional string catalog_name = 1; public static final int CATALOG_NAME_FIELD_NUMBER = 1; private java.lang.Object catalogName_; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogName_ = s; } return s; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string description = 2; public static final int DESCRIPTION_FIELD_NUMBER = 2; private java.lang.Object description_; /** * <code>optional string description = 2;</code> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { description_ = s; } return s; } } /** * <code>optional string description = 2;</code> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string connect = 3; public static final int CONNECT_FIELD_NUMBER = 3; private java.lang.Object connect_; /** * <code>optional string connect = 3;</code> */ public boolean hasConnect() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string connect = 3;</code> */ public java.lang.String getConnect() { java.lang.Object ref = connect_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { connect_ = s; } return s; } } /** * <code>optional string connect = 3;</code> */ public com.google.protobuf.ByteString getConnectBytes() { java.lang.Object ref = connect_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { catalogName_ = ""; description_ = ""; connect_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getDescriptionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getConnectBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getDescriptionBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getConnectBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CatalogMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CatalogMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.CatalogMetadata} * * <pre> * * Message encapsulating metadata for a Catalog. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CatalogMetadata.class, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.CatalogMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); catalogName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); description_ = ""; bitField0_ = (bitField0_ & ~0x00000002); connect_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CatalogMetadata_descriptor; } public org.apache.drill.exec.proto.UserProtos.CatalogMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.CatalogMetadata.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.CatalogMetadata build() { org.apache.drill.exec.proto.UserProtos.CatalogMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.CatalogMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.CatalogMetadata result = new org.apache.drill.exec.proto.UserProtos.CatalogMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.description_ = description_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.connect_ = connect_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.CatalogMetadata) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.CatalogMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.CatalogMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.CatalogMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasDescription()) { bitField0_ |= 0x00000002; description_ = other.description_; onChanged(); } if (other.hasConnect()) { bitField0_ |= 0x00000004; connect_ = other.connect_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.CatalogMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.CatalogMetadata) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string catalog_name = 1; private java.lang.Object catalogName_ = ""; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } // optional string description = 2; private java.lang.Object description_ = ""; /** * <code>optional string description = 2;</code> */ public boolean hasDescription() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string description = 2;</code> */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string description = 2;</code> */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string description = 2;</code> */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; onChanged(); return this; } /** * <code>optional string description = 2;</code> */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000002); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * <code>optional string description = 2;</code> */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; description_ = value; onChanged(); return this; } // optional string connect = 3; private java.lang.Object connect_ = ""; /** * <code>optional string connect = 3;</code> */ public boolean hasConnect() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string connect = 3;</code> */ public java.lang.String getConnect() { java.lang.Object ref = connect_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); connect_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string connect = 3;</code> */ public com.google.protobuf.ByteString getConnectBytes() { java.lang.Object ref = connect_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connect_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string connect = 3;</code> */ public Builder setConnect( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; connect_ = value; onChanged(); return this; } /** * <code>optional string connect = 3;</code> */ public Builder clearConnect() { bitField0_ = (bitField0_ & ~0x00000004); connect_ = getDefaultInstance().getConnect(); onChanged(); return this; } /** * <code>optional string connect = 3;</code> */ public Builder setConnectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; connect_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.CatalogMetadata) } static { defaultInstance = new CatalogMetadata(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.CatalogMetadata) } public interface GetCatalogsRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // repeated .exec.user.CatalogMetadata catalogs = 2; /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> getCatalogsList(); /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ org.apache.drill.exec.proto.UserProtos.CatalogMetadata getCatalogs(int index); /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ int getCatalogsCount(); /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> getCatalogsOrBuilderList(); /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder getCatalogsOrBuilder( int index); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.GetCatalogsResp} * * <pre> * * Response message for GetCatalogReq. * </pre> */ public static final class GetCatalogsResp extends com.google.protobuf.GeneratedMessage implements GetCatalogsRespOrBuilder { // Use GetCatalogsResp.newBuilder() to construct. private GetCatalogsResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetCatalogsResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetCatalogsResp defaultInstance; public static GetCatalogsResp getDefaultInstance() { return defaultInstance; } public GetCatalogsResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetCatalogsResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { catalogs_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CatalogMetadata>(); mutable_bitField0_ |= 0x00000002; } catalogs_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.CatalogMetadata.PARSER, extensionRegistry)); break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { catalogs_ = java.util.Collections.unmodifiableList(catalogs_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.Builder.class); } public static com.google.protobuf.Parser<GetCatalogsResp> PARSER = new com.google.protobuf.AbstractParser<GetCatalogsResp>() { public GetCatalogsResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetCatalogsResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetCatalogsResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // repeated .exec.user.CatalogMetadata catalogs = 2; public static final int CATALOGS_FIELD_NUMBER = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> catalogs_; /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> getCatalogsList() { return catalogs_; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> getCatalogsOrBuilderList() { return catalogs_; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public int getCatalogsCount() { return catalogs_.size(); } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata getCatalogs(int index) { return catalogs_.get(index); } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder getCatalogsOrBuilder( int index) { return catalogs_.get(index); } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; catalogs_ = java.util.Collections.emptyList(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, status_.getNumber()); } for (int i = 0; i < catalogs_.size(); i++) { output.writeMessage(2, catalogs_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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()); } for (int i = 0; i < catalogs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, catalogs_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetCatalogsResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetCatalogsResp} * * <pre> * * Response message for GetCatalogReq. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetCatalogsRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.class, org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCatalogsFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (catalogsBuilder_ == null) { catalogs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { catalogsBuilder_.clear(); } if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetCatalogsResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp build() { org.apache.drill.exec.proto.UserProtos.GetCatalogsResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetCatalogsResp buildPartial() { org.apache.drill.exec.proto.UserProtos.GetCatalogsResp result = new org.apache.drill.exec.proto.UserProtos.GetCatalogsResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (catalogsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { catalogs_ = java.util.Collections.unmodifiableList(catalogs_); bitField0_ = (bitField0_ & ~0x00000002); } result.catalogs_ = catalogs_; } else { result.catalogs_ = catalogsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetCatalogsResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetCatalogsResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetCatalogsResp other) { if (other == org.apache.drill.exec.proto.UserProtos.GetCatalogsResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (catalogsBuilder_ == null) { if (!other.catalogs_.isEmpty()) { if (catalogs_.isEmpty()) { catalogs_ = other.catalogs_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCatalogsIsMutable(); catalogs_.addAll(other.catalogs_); } onChanged(); } } else { if (!other.catalogs_.isEmpty()) { if (catalogsBuilder_.isEmpty()) { catalogsBuilder_.dispose(); catalogsBuilder_ = null; catalogs_ = other.catalogs_; bitField0_ = (bitField0_ & ~0x00000002); catalogsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getCatalogsFieldBuilder() : null; } else { catalogsBuilder_.addAllMessages(other.catalogs_); } } } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetCatalogsResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetCatalogsResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // repeated .exec.user.CatalogMetadata catalogs = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> catalogs_ = java.util.Collections.emptyList(); private void ensureCatalogsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { catalogs_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CatalogMetadata>(catalogs_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> catalogsBuilder_; /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata> getCatalogsList() { if (catalogsBuilder_ == null) { return java.util.Collections.unmodifiableList(catalogs_); } else { return catalogsBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public int getCatalogsCount() { if (catalogsBuilder_ == null) { return catalogs_.size(); } else { return catalogsBuilder_.getCount(); } } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata getCatalogs(int index) { if (catalogsBuilder_ == null) { return catalogs_.get(index); } else { return catalogsBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder setCatalogs( int index, org.apache.drill.exec.proto.UserProtos.CatalogMetadata value) { if (catalogsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCatalogsIsMutable(); catalogs_.set(index, value); onChanged(); } else { catalogsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder setCatalogs( int index, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder builderForValue) { if (catalogsBuilder_ == null) { ensureCatalogsIsMutable(); catalogs_.set(index, builderForValue.build()); onChanged(); } else { catalogsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder addCatalogs(org.apache.drill.exec.proto.UserProtos.CatalogMetadata value) { if (catalogsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCatalogsIsMutable(); catalogs_.add(value); onChanged(); } else { catalogsBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder addCatalogs( int index, org.apache.drill.exec.proto.UserProtos.CatalogMetadata value) { if (catalogsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCatalogsIsMutable(); catalogs_.add(index, value); onChanged(); } else { catalogsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder addCatalogs( org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder builderForValue) { if (catalogsBuilder_ == null) { ensureCatalogsIsMutable(); catalogs_.add(builderForValue.build()); onChanged(); } else { catalogsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder addCatalogs( int index, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder builderForValue) { if (catalogsBuilder_ == null) { ensureCatalogsIsMutable(); catalogs_.add(index, builderForValue.build()); onChanged(); } else { catalogsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder addAllCatalogs( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.CatalogMetadata> values) { if (catalogsBuilder_ == null) { ensureCatalogsIsMutable(); super.addAll(values, catalogs_); onChanged(); } else { catalogsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder clearCatalogs() { if (catalogsBuilder_ == null) { catalogs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { catalogsBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public Builder removeCatalogs(int index) { if (catalogsBuilder_ == null) { ensureCatalogsIsMutable(); catalogs_.remove(index); onChanged(); } else { catalogsBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder getCatalogsBuilder( int index) { return getCatalogsFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder getCatalogsOrBuilder( int index) { if (catalogsBuilder_ == null) { return catalogs_.get(index); } else { return catalogsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> getCatalogsOrBuilderList() { if (catalogsBuilder_ != null) { return catalogsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(catalogs_); } } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder addCatalogsBuilder() { return getCatalogsFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.CatalogMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder addCatalogsBuilder( int index) { return getCatalogsFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.CatalogMetadata catalogs = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder> getCatalogsBuilderList() { return getCatalogsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder> getCatalogsFieldBuilder() { if (catalogsBuilder_ == null) { catalogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.CatalogMetadata, org.apache.drill.exec.proto.UserProtos.CatalogMetadata.Builder, org.apache.drill.exec.proto.UserProtos.CatalogMetadataOrBuilder>( catalogs_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); catalogs_ = null; } return catalogsBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetCatalogsResp) } static { defaultInstance = new GetCatalogsResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetCatalogsResp) } public interface GetSchemasReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.LikeFilter catalog_name_filter = 1; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ boolean hasCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder(); // optional .exec.user.LikeFilter schema_name_filter = 2; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ boolean hasSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder(); } /** * Protobuf type {@code exec.user.GetSchemasReq} * * <pre> * * Request message for getting the metadata for schemas satisfying the given optional filters. * </pre> */ public static final class GetSchemasReq extends com.google.protobuf.GeneratedMessage implements GetSchemasReqOrBuilder { // Use GetSchemasReq.newBuilder() to construct. private GetSchemasReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetSchemasReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetSchemasReq defaultInstance; public static GetSchemasReq getDefaultInstance() { return defaultInstance; } public GetSchemasReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetSchemasReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = catalogNameFilter_.toBuilder(); } catalogNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(catalogNameFilter_); catalogNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = schemaNameFilter_.toBuilder(); } schemaNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaNameFilter_); schemaNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetSchemasReq.class, org.apache.drill.exec.proto.UserProtos.GetSchemasReq.Builder.class); } public static com.google.protobuf.Parser<GetSchemasReq> PARSER = new com.google.protobuf.AbstractParser<GetSchemasReq>() { public GetSchemasReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSchemasReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetSchemasReq> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { return catalogNameFilter_; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { return catalogNameFilter_; } // optional .exec.user.LikeFilter schema_name_filter = 2; public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { return schemaNameFilter_; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { return schemaNameFilter_; } private void initFields() { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, schemaNameFilter_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, schemaNameFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetSchemasReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetSchemasReq} * * <pre> * * Request message for getting the metadata for schemas satisfying the given optional filters. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetSchemasReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetSchemasReq.class, org.apache.drill.exec.proto.UserProtos.GetSchemasReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetSchemasReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCatalogNameFilterFieldBuilder(); getSchemaNameFilterFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetSchemasReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetSchemasReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetSchemasReq build() { org.apache.drill.exec.proto.UserProtos.GetSchemasReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetSchemasReq buildPartial() { org.apache.drill.exec.proto.UserProtos.GetSchemasReq result = new org.apache.drill.exec.proto.UserProtos.GetSchemasReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (catalogNameFilterBuilder_ == null) { result.catalogNameFilter_ = catalogNameFilter_; } else { result.catalogNameFilter_ = catalogNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (schemaNameFilterBuilder_ == null) { result.schemaNameFilter_ = schemaNameFilter_; } else { result.schemaNameFilter_ = schemaNameFilterBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetSchemasReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetSchemasReq other) { if (other == org.apache.drill.exec.proto.UserProtos.GetSchemasReq.getDefaultInstance()) return this; if (other.hasCatalogNameFilter()) { mergeCatalogNameFilter(other.getCatalogNameFilter()); } if (other.hasSchemaNameFilter()) { mergeSchemaNameFilter(other.getSchemaNameFilter()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetSchemasReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetSchemasReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { return catalogNameFilter_; } else { return catalogNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catalogNameFilter_ = value; onChanged(); } else { catalogNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = builderForValue.build(); onChanged(); } else { catalogNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial(); } else { catalogNameFilter_ = value; } onChanged(); } else { catalogNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder clearCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCatalogNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { if (catalogNameFilterBuilder_ != null) { return catalogNameFilterBuilder_.getMessageOrBuilder(); } else { return catalogNameFilter_; } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getCatalogNameFilterFieldBuilder() { if (catalogNameFilterBuilder_ == null) { catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( catalogNameFilter_, getParentForChildren(), isClean()); catalogNameFilter_ = null; } return catalogNameFilterBuilder_; } // optional .exec.user.LikeFilter schema_name_filter = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { return schemaNameFilter_; } else { return schemaNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaNameFilter_ = value; onChanged(); } else { schemaNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = builderForValue.build(); onChanged(); } else { schemaNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial(); } else { schemaNameFilter_ = value; } onChanged(); } else { schemaNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder clearSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getSchemaNameFilterBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { if (schemaNameFilterBuilder_ != null) { return schemaNameFilterBuilder_.getMessageOrBuilder(); } else { return schemaNameFilter_; } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getSchemaNameFilterFieldBuilder() { if (schemaNameFilterBuilder_ == null) { schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( schemaNameFilter_, getParentForChildren(), isClean()); schemaNameFilter_ = null; } return schemaNameFilterBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetSchemasReq) } static { defaultInstance = new GetSchemasReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetSchemasReq) } public interface SchemaMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string catalog_name = 1; /** * <code>optional string catalog_name = 1;</code> */ boolean hasCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ java.lang.String getCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ com.google.protobuf.ByteString getCatalogNameBytes(); // optional string schema_name = 2; /** * <code>optional string schema_name = 2;</code> */ boolean hasSchemaName(); /** * <code>optional string schema_name = 2;</code> */ java.lang.String getSchemaName(); /** * <code>optional string schema_name = 2;</code> */ com.google.protobuf.ByteString getSchemaNameBytes(); // optional string owner = 3; /** * <code>optional string owner = 3;</code> */ boolean hasOwner(); /** * <code>optional string owner = 3;</code> */ java.lang.String getOwner(); /** * <code>optional string owner = 3;</code> */ com.google.protobuf.ByteString getOwnerBytes(); // optional string type = 4; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ boolean hasType(); /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ java.lang.String getType(); /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ com.google.protobuf.ByteString getTypeBytes(); // optional string mutable = 5; /** * <code>optional string mutable = 5;</code> */ boolean hasMutable(); /** * <code>optional string mutable = 5;</code> */ java.lang.String getMutable(); /** * <code>optional string mutable = 5;</code> */ com.google.protobuf.ByteString getMutableBytes(); } /** * Protobuf type {@code exec.user.SchemaMetadata} * * <pre> * * Message encapsulating metadata for a Schema. * </pre> */ public static final class SchemaMetadata extends com.google.protobuf.GeneratedMessage implements SchemaMetadataOrBuilder { // Use SchemaMetadata.newBuilder() to construct. private SchemaMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SchemaMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SchemaMetadata defaultInstance; public static SchemaMetadata getDefaultInstance() { return defaultInstance; } public SchemaMetadata getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SchemaMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; catalogName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; schemaName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; owner_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; type_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; mutable_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.SchemaMetadata.class, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder.class); } public static com.google.protobuf.Parser<SchemaMetadata> PARSER = new com.google.protobuf.AbstractParser<SchemaMetadata>() { public SchemaMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SchemaMetadata(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<SchemaMetadata> getParserForType() { return PARSER; } private int bitField0_; // optional string catalog_name = 1; public static final int CATALOG_NAME_FIELD_NUMBER = 1; private java.lang.Object catalogName_; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogName_ = s; } return s; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string schema_name = 2; public static final int SCHEMA_NAME_FIELD_NUMBER = 2; private java.lang.Object schemaName_; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schemaName_ = s; } return s; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string owner = 3; public static final int OWNER_FIELD_NUMBER = 3; private java.lang.Object owner_; /** * <code>optional string owner = 3;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string owner = 3;</code> */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { owner_ = s; } return s; } } /** * <code>optional string owner = 3;</code> */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string type = 4; public static final int TYPE_FIELD_NUMBER = 4; private java.lang.Object type_; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string mutable = 5; public static final int MUTABLE_FIELD_NUMBER = 5; private java.lang.Object mutable_; /** * <code>optional string mutable = 5;</code> */ public boolean hasMutable() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string mutable = 5;</code> */ public java.lang.String getMutable() { java.lang.Object ref = mutable_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { mutable_ = s; } return s; } } /** * <code>optional string mutable = 5;</code> */ public com.google.protobuf.ByteString getMutableBytes() { java.lang.Object ref = mutable_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mutable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { catalogName_ = ""; schemaName_ = ""; owner_ = ""; type_ = ""; mutable_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getOwnerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getTypeBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getMutableBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getOwnerBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getMutableBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.SchemaMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.SchemaMetadata} * * <pre> * * Message encapsulating metadata for a Schema. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.SchemaMetadata.class, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.SchemaMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); catalogName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schemaName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); owner_ = ""; bitField0_ = (bitField0_ & ~0x00000004); type_ = ""; bitField0_ = (bitField0_ & ~0x00000008); mutable_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor; } public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.SchemaMetadata build() { org.apache.drill.exec.proto.UserProtos.SchemaMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.SchemaMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.SchemaMetadata result = new org.apache.drill.exec.proto.UserProtos.SchemaMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schemaName_ = schemaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.owner_ = owner_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.mutable_ = mutable_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.SchemaMetadata) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.SchemaMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.SchemaMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasSchemaName()) { bitField0_ |= 0x00000002; schemaName_ = other.schemaName_; onChanged(); } if (other.hasOwner()) { bitField0_ |= 0x00000004; owner_ = other.owner_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000008; type_ = other.type_; onChanged(); } if (other.hasMutable()) { bitField0_ |= 0x00000010; mutable_ = other.mutable_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.SchemaMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.SchemaMetadata) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string catalog_name = 1; private java.lang.Object catalogName_ = ""; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } // optional string schema_name = 2; private java.lang.Object schemaName_ = ""; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder clearSchemaName() { bitField0_ = (bitField0_ & ~0x00000002); schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } // optional string owner = 3; private java.lang.Object owner_ = ""; /** * <code>optional string owner = 3;</code> */ public boolean hasOwner() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string owner = 3;</code> */ public java.lang.String getOwner() { java.lang.Object ref = owner_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); owner_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string owner = 3;</code> */ public com.google.protobuf.ByteString getOwnerBytes() { java.lang.Object ref = owner_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); owner_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string owner = 3;</code> */ public Builder setOwner( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; owner_ = value; onChanged(); return this; } /** * <code>optional string owner = 3;</code> */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000004); owner_ = getDefaultInstance().getOwner(); onChanged(); return this; } /** * <code>optional string owner = 3;</code> */ public Builder setOwnerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; owner_ = value; onChanged(); return this; } // optional string type = 4; private java.lang.Object type_ = ""; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "file", "mongodb", "hive" etc. * </pre> */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } // optional string mutable = 5; private java.lang.Object mutable_ = ""; /** * <code>optional string mutable = 5;</code> */ public boolean hasMutable() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string mutable = 5;</code> */ public java.lang.String getMutable() { java.lang.Object ref = mutable_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); mutable_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string mutable = 5;</code> */ public com.google.protobuf.ByteString getMutableBytes() { java.lang.Object ref = mutable_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mutable_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string mutable = 5;</code> */ public Builder setMutable( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mutable_ = value; onChanged(); return this; } /** * <code>optional string mutable = 5;</code> */ public Builder clearMutable() { bitField0_ = (bitField0_ & ~0x00000010); mutable_ = getDefaultInstance().getMutable(); onChanged(); return this; } /** * <code>optional string mutable = 5;</code> */ public Builder setMutableBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; mutable_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.SchemaMetadata) } static { defaultInstance = new SchemaMetadata(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.SchemaMetadata) } public interface GetSchemasRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // repeated .exec.user.SchemaMetadata schemas = 2; /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> getSchemasList(); /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index); /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ int getSchemasCount(); /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> getSchemasOrBuilderList(); /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder( int index); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.GetSchemasResp} * * <pre> * * Response message for GetSchemasReq. * </pre> */ public static final class GetSchemasResp extends com.google.protobuf.GeneratedMessage implements GetSchemasRespOrBuilder { // Use GetSchemasResp.newBuilder() to construct. private GetSchemasResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetSchemasResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetSchemasResp defaultInstance; public static GetSchemasResp getDefaultInstance() { return defaultInstance; } public GetSchemasResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetSchemasResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { schemas_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SchemaMetadata>(); mutable_bitField0_ |= 0x00000002; } schemas_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.SchemaMetadata.PARSER, extensionRegistry)); break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetSchemasResp.class, org.apache.drill.exec.proto.UserProtos.GetSchemasResp.Builder.class); } public static com.google.protobuf.Parser<GetSchemasResp> PARSER = new com.google.protobuf.AbstractParser<GetSchemasResp>() { public GetSchemasResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetSchemasResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetSchemasResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // repeated .exec.user.SchemaMetadata schemas = 2; public static final int SCHEMAS_FIELD_NUMBER = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> schemas_; /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> getSchemasList() { return schemas_; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> getSchemasOrBuilderList() { return schemas_; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public int getSchemasCount() { return schemas_.size(); } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index) { return schemas_.get(index); } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder( int index) { return schemas_.get(index); } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; schemas_ = java.util.Collections.emptyList(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, status_.getNumber()); } for (int i = 0; i < schemas_.size(); i++) { output.writeMessage(2, schemas_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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()); } for (int i = 0; i < schemas_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, schemas_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetSchemasResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetSchemasResp} * * <pre> * * Response message for GetSchemasReq. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetSchemasRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetSchemasResp.class, org.apache.drill.exec.proto.UserProtos.GetSchemasResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetSchemasResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getSchemasFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { schemasBuilder_.clear(); } if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetSchemasResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetSchemasResp build() { org.apache.drill.exec.proto.UserProtos.GetSchemasResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetSchemasResp buildPartial() { org.apache.drill.exec.proto.UserProtos.GetSchemasResp result = new org.apache.drill.exec.proto.UserProtos.GetSchemasResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (schemasBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { schemas_ = java.util.Collections.unmodifiableList(schemas_); bitField0_ = (bitField0_ & ~0x00000002); } result.schemas_ = schemas_; } else { result.schemas_ = schemasBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetSchemasResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetSchemasResp other) { if (other == org.apache.drill.exec.proto.UserProtos.GetSchemasResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (schemasBuilder_ == null) { if (!other.schemas_.isEmpty()) { if (schemas_.isEmpty()) { schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSchemasIsMutable(); schemas_.addAll(other.schemas_); } onChanged(); } } else { if (!other.schemas_.isEmpty()) { if (schemasBuilder_.isEmpty()) { schemasBuilder_.dispose(); schemasBuilder_ = null; schemas_ = other.schemas_; bitField0_ = (bitField0_ & ~0x00000002); schemasBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getSchemasFieldBuilder() : null; } else { schemasBuilder_.addAllMessages(other.schemas_); } } } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetSchemasResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetSchemasResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // repeated .exec.user.SchemaMetadata schemas = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> schemas_ = java.util.Collections.emptyList(); private void ensureSchemasIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { schemas_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SchemaMetadata>(schemas_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> schemasBuilder_; /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata> getSchemasList() { if (schemasBuilder_ == null) { return java.util.Collections.unmodifiableList(schemas_); } else { return schemasBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public int getSchemasCount() { if (schemasBuilder_ == null) { return schemas_.size(); } else { return schemasBuilder_.getCount(); } } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index) { if (schemasBuilder_ == null) { return schemas_.get(index); } else { return schemasBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder setSchemas( int index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.set(index, value); onChanged(); } else { schemasBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder setSchemas( int index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.set(index, builderForValue.build()); onChanged(); } else { schemasBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder addSchemas(org.apache.drill.exec.proto.UserProtos.SchemaMetadata value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.add(value); onChanged(); } else { schemasBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder addSchemas( int index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata value) { if (schemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSchemasIsMutable(); schemas_.add(index, value); onChanged(); } else { schemasBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder addSchemas( org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(builderForValue.build()); onChanged(); } else { schemasBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder addSchemas( int index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder builderForValue) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.add(index, builderForValue.build()); onChanged(); } else { schemasBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder addAllSchemas( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.SchemaMetadata> values) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); super.addAll(values, schemas_); onChanged(); } else { schemasBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder clearSchemas() { if (schemasBuilder_ == null) { schemas_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { schemasBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public Builder removeSchemas(int index) { if (schemasBuilder_ == null) { ensureSchemasIsMutable(); schemas_.remove(index); onChanged(); } else { schemasBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder getSchemasBuilder( int index) { return getSchemasFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder( int index) { if (schemasBuilder_ == null) { return schemas_.get(index); } else { return schemasBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> getSchemasOrBuilderList() { if (schemasBuilder_ != null) { return schemasBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(schemas_); } } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder addSchemasBuilder() { return getSchemasFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder addSchemasBuilder( int index) { return getSchemasFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.SchemaMetadata schemas = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder> getSchemasBuilderList() { return getSchemasFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> getSchemasFieldBuilder() { if (schemasBuilder_ == null) { schemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder>( schemas_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); schemas_ = null; } return schemasBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetSchemasResp) } static { defaultInstance = new GetSchemasResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetSchemasResp) } public interface GetTablesReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.LikeFilter catalog_name_filter = 1; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ boolean hasCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder(); // optional .exec.user.LikeFilter schema_name_filter = 2; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ boolean hasSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder(); // optional .exec.user.LikeFilter table_name_filter = 3; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ boolean hasTableNameFilter(); /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter(); /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder(); // repeated string table_type_filter = 4; /** * <code>repeated string table_type_filter = 4;</code> */ java.util.List<java.lang.String> getTableTypeFilterList(); /** * <code>repeated string table_type_filter = 4;</code> */ int getTableTypeFilterCount(); /** * <code>repeated string table_type_filter = 4;</code> */ java.lang.String getTableTypeFilter(int index); /** * <code>repeated string table_type_filter = 4;</code> */ com.google.protobuf.ByteString getTableTypeFilterBytes(int index); } /** * Protobuf type {@code exec.user.GetTablesReq} * * <pre> * * Request message for getting the metadata for tables satisfying the given optional filters. * </pre> */ public static final class GetTablesReq extends com.google.protobuf.GeneratedMessage implements GetTablesReqOrBuilder { // Use GetTablesReq.newBuilder() to construct. private GetTablesReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTablesReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTablesReq defaultInstance; public static GetTablesReq getDefaultInstance() { return defaultInstance; } public GetTablesReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTablesReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = catalogNameFilter_.toBuilder(); } catalogNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(catalogNameFilter_); catalogNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = schemaNameFilter_.toBuilder(); } schemaNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaNameFilter_); schemaNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = tableNameFilter_.toBuilder(); } tableNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tableNameFilter_); tableNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { tableTypeFilter_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } tableTypeFilter_.add(input.readBytes()); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { tableTypeFilter_ = new com.google.protobuf.UnmodifiableLazyStringList(tableTypeFilter_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetTablesReq.class, org.apache.drill.exec.proto.UserProtos.GetTablesReq.Builder.class); } public static com.google.protobuf.Parser<GetTablesReq> PARSER = new com.google.protobuf.AbstractParser<GetTablesReq>() { public GetTablesReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTablesReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetTablesReq> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { return catalogNameFilter_; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { return catalogNameFilter_; } // optional .exec.user.LikeFilter schema_name_filter = 2; public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { return schemaNameFilter_; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { return schemaNameFilter_; } // optional .exec.user.LikeFilter table_name_filter = 3; public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public boolean hasTableNameFilter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() { return tableNameFilter_; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() { return tableNameFilter_; } // repeated string table_type_filter = 4; public static final int TABLE_TYPE_FILTER_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList tableTypeFilter_; /** * <code>repeated string table_type_filter = 4;</code> */ public java.util.List<java.lang.String> getTableTypeFilterList() { return tableTypeFilter_; } /** * <code>repeated string table_type_filter = 4;</code> */ public int getTableTypeFilterCount() { return tableTypeFilter_.size(); } /** * <code>repeated string table_type_filter = 4;</code> */ public java.lang.String getTableTypeFilter(int index) { return tableTypeFilter_.get(index); } /** * <code>repeated string table_type_filter = 4;</code> */ public com.google.protobuf.ByteString getTableTypeFilterBytes(int index) { return tableTypeFilter_.getByteString(index); } private void initFields() { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, schemaNameFilter_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, tableNameFilter_); } for (int i = 0; i < tableTypeFilter_.size(); i++) { output.writeBytes(4, tableTypeFilter_.getByteString(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, schemaNameFilter_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tableNameFilter_); } { int dataSize = 0; for (int i = 0; i < tableTypeFilter_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(tableTypeFilter_.getByteString(i)); } size += dataSize; size += 1 * getTableTypeFilterList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetTablesReq} * * <pre> * * Request message for getting the metadata for tables satisfying the given optional filters. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetTablesReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetTablesReq.class, org.apache.drill.exec.proto.UserProtos.GetTablesReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetTablesReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCatalogNameFilterFieldBuilder(); getSchemaNameFilterFieldBuilder(); getTableNameFilterFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (tableNameFilterBuilder_ == null) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { tableNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetTablesReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetTablesReq build() { org.apache.drill.exec.proto.UserProtos.GetTablesReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetTablesReq buildPartial() { org.apache.drill.exec.proto.UserProtos.GetTablesReq result = new org.apache.drill.exec.proto.UserProtos.GetTablesReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (catalogNameFilterBuilder_ == null) { result.catalogNameFilter_ = catalogNameFilter_; } else { result.catalogNameFilter_ = catalogNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (schemaNameFilterBuilder_ == null) { result.schemaNameFilter_ = schemaNameFilter_; } else { result.schemaNameFilter_ = schemaNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (tableNameFilterBuilder_ == null) { result.tableNameFilter_ = tableNameFilter_; } else { result.tableNameFilter_ = tableNameFilterBuilder_.build(); } if (((bitField0_ & 0x00000008) == 0x00000008)) { tableTypeFilter_ = new com.google.protobuf.UnmodifiableLazyStringList( tableTypeFilter_); bitField0_ = (bitField0_ & ~0x00000008); } result.tableTypeFilter_ = tableTypeFilter_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetTablesReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetTablesReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetTablesReq other) { if (other == org.apache.drill.exec.proto.UserProtos.GetTablesReq.getDefaultInstance()) return this; if (other.hasCatalogNameFilter()) { mergeCatalogNameFilter(other.getCatalogNameFilter()); } if (other.hasSchemaNameFilter()) { mergeSchemaNameFilter(other.getSchemaNameFilter()); } if (other.hasTableNameFilter()) { mergeTableNameFilter(other.getTableNameFilter()); } if (!other.tableTypeFilter_.isEmpty()) { if (tableTypeFilter_.isEmpty()) { tableTypeFilter_ = other.tableTypeFilter_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTableTypeFilterIsMutable(); tableTypeFilter_.addAll(other.tableTypeFilter_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetTablesReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetTablesReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { return catalogNameFilter_; } else { return catalogNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catalogNameFilter_ = value; onChanged(); } else { catalogNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = builderForValue.build(); onChanged(); } else { catalogNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial(); } else { catalogNameFilter_ = value; } onChanged(); } else { catalogNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder clearCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCatalogNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { if (catalogNameFilterBuilder_ != null) { return catalogNameFilterBuilder_.getMessageOrBuilder(); } else { return catalogNameFilter_; } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getCatalogNameFilterFieldBuilder() { if (catalogNameFilterBuilder_ == null) { catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( catalogNameFilter_, getParentForChildren(), isClean()); catalogNameFilter_ = null; } return catalogNameFilterBuilder_; } // optional .exec.user.LikeFilter schema_name_filter = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { return schemaNameFilter_; } else { return schemaNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaNameFilter_ = value; onChanged(); } else { schemaNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = builderForValue.build(); onChanged(); } else { schemaNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial(); } else { schemaNameFilter_ = value; } onChanged(); } else { schemaNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder clearSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getSchemaNameFilterBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { if (schemaNameFilterBuilder_ != null) { return schemaNameFilterBuilder_.getMessageOrBuilder(); } else { return schemaNameFilter_; } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getSchemaNameFilterFieldBuilder() { if (schemaNameFilterBuilder_ == null) { schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( schemaNameFilter_, getParentForChildren(), isClean()); schemaNameFilter_ = null; } return schemaNameFilterBuilder_; } // optional .exec.user.LikeFilter table_name_filter = 3; private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public boolean hasTableNameFilter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() { if (tableNameFilterBuilder_ == null) { return tableNameFilter_; } else { return tableNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder setTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (tableNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tableNameFilter_ = value; onChanged(); } else { tableNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder setTableNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (tableNameFilterBuilder_ == null) { tableNameFilter_ = builderForValue.build(); onChanged(); } else { tableNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (tableNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tableNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(tableNameFilter_).mergeFrom(value).buildPartial(); } else { tableNameFilter_ = value; } onChanged(); } else { tableNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder clearTableNameFilter() { if (tableNameFilterBuilder_ == null) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { tableNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getTableNameFilterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTableNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() { if (tableNameFilterBuilder_ != null) { return tableNameFilterBuilder_.getMessageOrBuilder(); } else { return tableNameFilter_; } } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getTableNameFilterFieldBuilder() { if (tableNameFilterBuilder_ == null) { tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( tableNameFilter_, getParentForChildren(), isClean()); tableNameFilter_ = null; } return tableNameFilterBuilder_; } // repeated string table_type_filter = 4; private com.google.protobuf.LazyStringList tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTableTypeFilterIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { tableTypeFilter_ = new com.google.protobuf.LazyStringArrayList(tableTypeFilter_); bitField0_ |= 0x00000008; } } /** * <code>repeated string table_type_filter = 4;</code> */ public java.util.List<java.lang.String> getTableTypeFilterList() { return java.util.Collections.unmodifiableList(tableTypeFilter_); } /** * <code>repeated string table_type_filter = 4;</code> */ public int getTableTypeFilterCount() { return tableTypeFilter_.size(); } /** * <code>repeated string table_type_filter = 4;</code> */ public java.lang.String getTableTypeFilter(int index) { return tableTypeFilter_.get(index); } /** * <code>repeated string table_type_filter = 4;</code> */ public com.google.protobuf.ByteString getTableTypeFilterBytes(int index) { return tableTypeFilter_.getByteString(index); } /** * <code>repeated string table_type_filter = 4;</code> */ public Builder setTableTypeFilter( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTableTypeFilterIsMutable(); tableTypeFilter_.set(index, value); onChanged(); return this; } /** * <code>repeated string table_type_filter = 4;</code> */ public Builder addTableTypeFilter( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTableTypeFilterIsMutable(); tableTypeFilter_.add(value); onChanged(); return this; } /** * <code>repeated string table_type_filter = 4;</code> */ public Builder addAllTableTypeFilter( java.lang.Iterable<java.lang.String> values) { ensureTableTypeFilterIsMutable(); super.addAll(values, tableTypeFilter_); onChanged(); return this; } /** * <code>repeated string table_type_filter = 4;</code> */ public Builder clearTableTypeFilter() { tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * <code>repeated string table_type_filter = 4;</code> */ public Builder addTableTypeFilterBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTableTypeFilterIsMutable(); tableTypeFilter_.add(value); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.GetTablesReq) } static { defaultInstance = new GetTablesReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetTablesReq) } public interface TableMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string catalog_name = 1; /** * <code>optional string catalog_name = 1;</code> */ boolean hasCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ java.lang.String getCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ com.google.protobuf.ByteString getCatalogNameBytes(); // optional string schema_name = 2; /** * <code>optional string schema_name = 2;</code> */ boolean hasSchemaName(); /** * <code>optional string schema_name = 2;</code> */ java.lang.String getSchemaName(); /** * <code>optional string schema_name = 2;</code> */ com.google.protobuf.ByteString getSchemaNameBytes(); // optional string table_name = 3; /** * <code>optional string table_name = 3;</code> */ boolean hasTableName(); /** * <code>optional string table_name = 3;</code> */ java.lang.String getTableName(); /** * <code>optional string table_name = 3;</code> */ com.google.protobuf.ByteString getTableNameBytes(); // optional string type = 4; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ boolean hasType(); /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ java.lang.String getType(); /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ com.google.protobuf.ByteString getTypeBytes(); } /** * Protobuf type {@code exec.user.TableMetadata} * * <pre> * * Message encapsulating metadata for a Table. * </pre> */ public static final class TableMetadata extends com.google.protobuf.GeneratedMessage implements TableMetadataOrBuilder { // Use TableMetadata.newBuilder() to construct. private TableMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private TableMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final TableMetadata defaultInstance; public static TableMetadata getDefaultInstance() { return defaultInstance; } public TableMetadata getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TableMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; catalogName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; schemaName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; tableName_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; type_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.TableMetadata.class, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder.class); } public static com.google.protobuf.Parser<TableMetadata> PARSER = new com.google.protobuf.AbstractParser<TableMetadata>() { public TableMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TableMetadata(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<TableMetadata> getParserForType() { return PARSER; } private int bitField0_; // optional string catalog_name = 1; public static final int CATALOG_NAME_FIELD_NUMBER = 1; private java.lang.Object catalogName_; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogName_ = s; } return s; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string schema_name = 2; public static final int SCHEMA_NAME_FIELD_NUMBER = 2; private java.lang.Object schemaName_; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schemaName_ = s; } return s; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string table_name = 3; public static final int TABLE_NAME_FIELD_NUMBER = 3; private java.lang.Object tableName_; /** * <code>optional string table_name = 3;</code> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tableName_ = s; } return s; } } /** * <code>optional string table_name = 3;</code> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string type = 4; public static final int TYPE_FIELD_NUMBER = 4; private java.lang.Object type_; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public java.lang.String getType() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { catalogName_ = ""; schemaName_ = ""; tableName_ = ""; type_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getTypeBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTypeBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.TableMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.TableMetadata} * * <pre> * * Message encapsulating metadata for a Table. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.TableMetadata.class, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.TableMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); catalogName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schemaName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); tableName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); type_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor; } public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.TableMetadata build() { org.apache.drill.exec.proto.UserProtos.TableMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.TableMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.TableMetadata result = new org.apache.drill.exec.proto.UserProtos.TableMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schemaName_ = schemaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tableName_ = tableName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.TableMetadata) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.TableMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.TableMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasSchemaName()) { bitField0_ |= 0x00000002; schemaName_ = other.schemaName_; onChanged(); } if (other.hasTableName()) { bitField0_ |= 0x00000004; tableName_ = other.tableName_; onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000008; type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.TableMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.TableMetadata) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string catalog_name = 1; private java.lang.Object catalogName_ = ""; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } // optional string schema_name = 2; private java.lang.Object schemaName_ = ""; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder clearSchemaName() { bitField0_ = (bitField0_ & ~0x00000002); schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } // optional string table_name = 3; private java.lang.Object tableName_ = ""; /** * <code>optional string table_name = 3;</code> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string table_name = 3;</code> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string table_name = 3;</code> */ public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } /** * <code>optional string table_name = 3;</code> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000004); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** * <code>optional string table_name = 3;</code> */ public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } // optional string type = 4; private java.lang.Object type_ = ""; /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); type_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * <code>optional string type = 4;</code> * * <pre> * Type. Ex. "TABLE", "VIEW" etc. * </pre> */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.TableMetadata) } static { defaultInstance = new TableMetadata(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.TableMetadata) } public interface GetTablesRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // repeated .exec.user.TableMetadata tables = 2; /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> getTablesList(); /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index); /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ int getTablesCount(); /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> getTablesOrBuilderList(); /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder( int index); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.GetTablesResp} * * <pre> * * Response message for GetTablesReq. * </pre> */ public static final class GetTablesResp extends com.google.protobuf.GeneratedMessage implements GetTablesRespOrBuilder { // Use GetTablesResp.newBuilder() to construct. private GetTablesResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetTablesResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetTablesResp defaultInstance; public static GetTablesResp getDefaultInstance() { return defaultInstance; } public GetTablesResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetTablesResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { tables_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.TableMetadata>(); mutable_bitField0_ |= 0x00000002; } tables_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.TableMetadata.PARSER, extensionRegistry)); break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { tables_ = java.util.Collections.unmodifiableList(tables_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetTablesResp.class, org.apache.drill.exec.proto.UserProtos.GetTablesResp.Builder.class); } public static com.google.protobuf.Parser<GetTablesResp> PARSER = new com.google.protobuf.AbstractParser<GetTablesResp>() { public GetTablesResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetTablesResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetTablesResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // repeated .exec.user.TableMetadata tables = 2; public static final int TABLES_FIELD_NUMBER = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> tables_; /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> getTablesList() { return tables_; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> getTablesOrBuilderList() { return tables_; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public int getTablesCount() { return tables_.size(); } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index) { return tables_.get(index); } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder( int index) { return tables_.get(index); } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; tables_ = java.util.Collections.emptyList(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, status_.getNumber()); } for (int i = 0; i < tables_.size(); i++) { output.writeMessage(2, tables_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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()); } for (int i = 0; i < tables_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, tables_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetTablesResp} * * <pre> * * Response message for GetTablesReq. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetTablesRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetTablesResp.class, org.apache.drill.exec.proto.UserProtos.GetTablesResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetTablesResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getTablesFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (tablesBuilder_ == null) { tables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { tablesBuilder_.clear(); } if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetTablesResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetTablesResp build() { org.apache.drill.exec.proto.UserProtos.GetTablesResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetTablesResp buildPartial() { org.apache.drill.exec.proto.UserProtos.GetTablesResp result = new org.apache.drill.exec.proto.UserProtos.GetTablesResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (tablesBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { tables_ = java.util.Collections.unmodifiableList(tables_); bitField0_ = (bitField0_ & ~0x00000002); } result.tables_ = tables_; } else { result.tables_ = tablesBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetTablesResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetTablesResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetTablesResp other) { if (other == org.apache.drill.exec.proto.UserProtos.GetTablesResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (tablesBuilder_ == null) { if (!other.tables_.isEmpty()) { if (tables_.isEmpty()) { tables_ = other.tables_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTablesIsMutable(); tables_.addAll(other.tables_); } onChanged(); } } else { if (!other.tables_.isEmpty()) { if (tablesBuilder_.isEmpty()) { tablesBuilder_.dispose(); tablesBuilder_ = null; tables_ = other.tables_; bitField0_ = (bitField0_ & ~0x00000002); tablesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getTablesFieldBuilder() : null; } else { tablesBuilder_.addAllMessages(other.tables_); } } } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetTablesResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetTablesResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // repeated .exec.user.TableMetadata tables = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> tables_ = java.util.Collections.emptyList(); private void ensureTablesIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { tables_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.TableMetadata>(tables_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> tablesBuilder_; /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata> getTablesList() { if (tablesBuilder_ == null) { return java.util.Collections.unmodifiableList(tables_); } else { return tablesBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public int getTablesCount() { if (tablesBuilder_ == null) { return tables_.size(); } else { return tablesBuilder_.getCount(); } } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index) { if (tablesBuilder_ == null) { return tables_.get(index); } else { return tablesBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder setTables( int index, org.apache.drill.exec.proto.UserProtos.TableMetadata value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.set(index, value); onChanged(); } else { tablesBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder setTables( int index, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.set(index, builderForValue.build()); onChanged(); } else { tablesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder addTables(org.apache.drill.exec.proto.UserProtos.TableMetadata value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.add(value); onChanged(); } else { tablesBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder addTables( int index, org.apache.drill.exec.proto.UserProtos.TableMetadata value) { if (tablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTablesIsMutable(); tables_.add(index, value); onChanged(); } else { tablesBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder addTables( org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.add(builderForValue.build()); onChanged(); } else { tablesBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder addTables( int index, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder builderForValue) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.add(index, builderForValue.build()); onChanged(); } else { tablesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder addAllTables( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.TableMetadata> values) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); super.addAll(values, tables_); onChanged(); } else { tablesBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder clearTables() { if (tablesBuilder_ == null) { tables_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { tablesBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public Builder removeTables(int index) { if (tablesBuilder_ == null) { ensureTablesIsMutable(); tables_.remove(index); onChanged(); } else { tablesBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder getTablesBuilder( int index) { return getTablesFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder( int index) { if (tablesBuilder_ == null) { return tables_.get(index); } else { return tablesBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> getTablesOrBuilderList() { if (tablesBuilder_ != null) { return tablesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(tables_); } } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder() { return getTablesFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder( int index) { return getTablesFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.TableMetadata tables = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder> getTablesBuilderList() { return getTablesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> getTablesFieldBuilder() { if (tablesBuilder_ == null) { tablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder>( tables_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); tables_ = null; } return tablesBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetTablesResp) } static { defaultInstance = new GetTablesResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetTablesResp) } public interface GetColumnsReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.LikeFilter catalog_name_filter = 1; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ boolean hasCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter(); /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder(); // optional .exec.user.LikeFilter schema_name_filter = 2; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ boolean hasSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter(); /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder(); // optional .exec.user.LikeFilter table_name_filter = 3; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ boolean hasTableNameFilter(); /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter(); /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder(); // optional .exec.user.LikeFilter column_name_filter = 4; /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ boolean hasColumnNameFilter(); /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter(); /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder(); } /** * Protobuf type {@code exec.user.GetColumnsReq} * * <pre> * * Request message for getting the metadata for columns satisfying the given optional filters. * </pre> */ public static final class GetColumnsReq extends com.google.protobuf.GeneratedMessage implements GetColumnsReqOrBuilder { // Use GetColumnsReq.newBuilder() to construct. private GetColumnsReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetColumnsReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetColumnsReq defaultInstance; public static GetColumnsReq getDefaultInstance() { return defaultInstance; } public GetColumnsReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetColumnsReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = catalogNameFilter_.toBuilder(); } catalogNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(catalogNameFilter_); catalogNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = schemaNameFilter_.toBuilder(); } schemaNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(schemaNameFilter_); schemaNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = tableNameFilter_.toBuilder(); } tableNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tableNameFilter_); tableNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 34: { org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = columnNameFilter_.toBuilder(); } columnNameFilter_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.LikeFilter.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(columnNameFilter_); columnNameFilter_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetColumnsReq.class, org.apache.drill.exec.proto.UserProtos.GetColumnsReq.Builder.class); } public static com.google.protobuf.Parser<GetColumnsReq> PARSER = new com.google.protobuf.AbstractParser<GetColumnsReq>() { public GetColumnsReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetColumnsReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetColumnsReq> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { return catalogNameFilter_; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { return catalogNameFilter_; } // optional .exec.user.LikeFilter schema_name_filter = 2; public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { return schemaNameFilter_; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { return schemaNameFilter_; } // optional .exec.user.LikeFilter table_name_filter = 3; public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public boolean hasTableNameFilter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() { return tableNameFilter_; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() { return tableNameFilter_; } // optional .exec.user.LikeFilter column_name_filter = 4; public static final int COLUMN_NAME_FILTER_FIELD_NUMBER = 4; private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_; /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public boolean hasColumnNameFilter() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() { return columnNameFilter_; } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder() { return columnNameFilter_; } private void initFields() { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, schemaNameFilter_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, tableNameFilter_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(4, columnNameFilter_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, catalogNameFilter_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, schemaNameFilter_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, tableNameFilter_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, columnNameFilter_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetColumnsReq} * * <pre> * * Request message for getting the metadata for columns satisfying the given optional filters. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetColumnsReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetColumnsReq.class, org.apache.drill.exec.proto.UserProtos.GetColumnsReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetColumnsReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getCatalogNameFilterFieldBuilder(); getSchemaNameFilterFieldBuilder(); getTableNameFilterFieldBuilder(); getColumnNameFilterFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (tableNameFilterBuilder_ == null) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { tableNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (columnNameFilterBuilder_ == null) { columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); } else { columnNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetColumnsReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetColumnsReq build() { org.apache.drill.exec.proto.UserProtos.GetColumnsReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetColumnsReq buildPartial() { org.apache.drill.exec.proto.UserProtos.GetColumnsReq result = new org.apache.drill.exec.proto.UserProtos.GetColumnsReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (catalogNameFilterBuilder_ == null) { result.catalogNameFilter_ = catalogNameFilter_; } else { result.catalogNameFilter_ = catalogNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (schemaNameFilterBuilder_ == null) { result.schemaNameFilter_ = schemaNameFilter_; } else { result.schemaNameFilter_ = schemaNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (tableNameFilterBuilder_ == null) { result.tableNameFilter_ = tableNameFilter_; } else { result.tableNameFilter_ = tableNameFilterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } if (columnNameFilterBuilder_ == null) { result.columnNameFilter_ = columnNameFilter_; } else { result.columnNameFilter_ = columnNameFilterBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetColumnsReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetColumnsReq other) { if (other == org.apache.drill.exec.proto.UserProtos.GetColumnsReq.getDefaultInstance()) return this; if (other.hasCatalogNameFilter()) { mergeCatalogNameFilter(other.getCatalogNameFilter()); } if (other.hasSchemaNameFilter()) { mergeSchemaNameFilter(other.getSchemaNameFilter()); } if (other.hasTableNameFilter()) { mergeTableNameFilter(other.getTableNameFilter()); } if (other.hasColumnNameFilter()) { mergeColumnNameFilter(other.getColumnNameFilter()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetColumnsReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetColumnsReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.LikeFilter catalog_name_filter = 1; private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public boolean hasCatalogNameFilter() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { return catalogNameFilter_; } else { return catalogNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } catalogNameFilter_ = value; onChanged(); } else { catalogNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder setCatalogNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = builderForValue.build(); onChanged(); } else { catalogNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (catalogNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && catalogNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(catalogNameFilter_).mergeFrom(value).buildPartial(); } else { catalogNameFilter_ = value; } onChanged(); } else { catalogNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public Builder clearCatalogNameFilter() { if (catalogNameFilterBuilder_ == null) { catalogNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { catalogNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCatalogNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() { if (catalogNameFilterBuilder_ != null) { return catalogNameFilterBuilder_.getMessageOrBuilder(); } else { return catalogNameFilter_; } } /** * <code>optional .exec.user.LikeFilter catalog_name_filter = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getCatalogNameFilterFieldBuilder() { if (catalogNameFilterBuilder_ == null) { catalogNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( catalogNameFilter_, getParentForChildren(), isClean()); catalogNameFilter_ = null; } return catalogNameFilterBuilder_; } // optional .exec.user.LikeFilter schema_name_filter = 2; private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public boolean hasSchemaNameFilter() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { return schemaNameFilter_; } else { return schemaNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } schemaNameFilter_ = value; onChanged(); } else { schemaNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder setSchemaNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = builderForValue.build(); onChanged(); } else { schemaNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (schemaNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && schemaNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(schemaNameFilter_).mergeFrom(value).buildPartial(); } else { schemaNameFilter_ = value; } onChanged(); } else { schemaNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public Builder clearSchemaNameFilter() { if (schemaNameFilterBuilder_ == null) { schemaNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { schemaNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getSchemaNameFilterBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSchemaNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() { if (schemaNameFilterBuilder_ != null) { return schemaNameFilterBuilder_.getMessageOrBuilder(); } else { return schemaNameFilter_; } } /** * <code>optional .exec.user.LikeFilter schema_name_filter = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getSchemaNameFilterFieldBuilder() { if (schemaNameFilterBuilder_ == null) { schemaNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( schemaNameFilter_, getParentForChildren(), isClean()); schemaNameFilter_ = null; } return schemaNameFilterBuilder_; } // optional .exec.user.LikeFilter table_name_filter = 3; private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public boolean hasTableNameFilter() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() { if (tableNameFilterBuilder_ == null) { return tableNameFilter_; } else { return tableNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder setTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (tableNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } tableNameFilter_ = value; onChanged(); } else { tableNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder setTableNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (tableNameFilterBuilder_ == null) { tableNameFilter_ = builderForValue.build(); onChanged(); } else { tableNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (tableNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tableNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(tableNameFilter_).mergeFrom(value).buildPartial(); } else { tableNameFilter_ = value; } onChanged(); } else { tableNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public Builder clearTableNameFilter() { if (tableNameFilterBuilder_ == null) { tableNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { tableNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getTableNameFilterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTableNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() { if (tableNameFilterBuilder_ != null) { return tableNameFilterBuilder_.getMessageOrBuilder(); } else { return tableNameFilter_; } } /** * <code>optional .exec.user.LikeFilter table_name_filter = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getTableNameFilterFieldBuilder() { if (tableNameFilterBuilder_ == null) { tableNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( tableNameFilter_, getParentForChildren(), isClean()); tableNameFilter_ = null; } return tableNameFilterBuilder_; } // optional .exec.user.LikeFilter column_name_filter = 4; private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> columnNameFilterBuilder_; /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public boolean hasColumnNameFilter() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() { if (columnNameFilterBuilder_ == null) { return columnNameFilter_; } else { return columnNameFilterBuilder_.getMessage(); } } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public Builder setColumnNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (columnNameFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } columnNameFilter_ = value; onChanged(); } else { columnNameFilterBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public Builder setColumnNameFilter( org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder builderForValue) { if (columnNameFilterBuilder_ == null) { columnNameFilter_ = builderForValue.build(); onChanged(); } else { columnNameFilterBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public Builder mergeColumnNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) { if (columnNameFilterBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && columnNameFilter_ != org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance()) { columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.newBuilder(columnNameFilter_).mergeFrom(value).buildPartial(); } else { columnNameFilter_ = value; } onChanged(); } else { columnNameFilterBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public Builder clearColumnNameFilter() { if (columnNameFilterBuilder_ == null) { columnNameFilter_ = org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance(); onChanged(); } else { columnNameFilterBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getColumnNameFilterBuilder() { bitField0_ |= 0x00000008; onChanged(); return getColumnNameFilterFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder() { if (columnNameFilterBuilder_ != null) { return columnNameFilterBuilder_.getMessageOrBuilder(); } else { return columnNameFilter_; } } /** * <code>optional .exec.user.LikeFilter column_name_filter = 4;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> getColumnNameFilterFieldBuilder() { if (columnNameFilterBuilder_ == null) { columnNameFilterBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>( columnNameFilter_, getParentForChildren(), isClean()); columnNameFilter_ = null; } return columnNameFilterBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetColumnsReq) } static { defaultInstance = new GetColumnsReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetColumnsReq) } public interface ColumnMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string catalog_name = 1; /** * <code>optional string catalog_name = 1;</code> */ boolean hasCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ java.lang.String getCatalogName(); /** * <code>optional string catalog_name = 1;</code> */ com.google.protobuf.ByteString getCatalogNameBytes(); // optional string schema_name = 2; /** * <code>optional string schema_name = 2;</code> */ boolean hasSchemaName(); /** * <code>optional string schema_name = 2;</code> */ java.lang.String getSchemaName(); /** * <code>optional string schema_name = 2;</code> */ com.google.protobuf.ByteString getSchemaNameBytes(); // optional string table_name = 3; /** * <code>optional string table_name = 3;</code> */ boolean hasTableName(); /** * <code>optional string table_name = 3;</code> */ java.lang.String getTableName(); /** * <code>optional string table_name = 3;</code> */ com.google.protobuf.ByteString getTableNameBytes(); // optional string column_name = 4; /** * <code>optional string column_name = 4;</code> */ boolean hasColumnName(); /** * <code>optional string column_name = 4;</code> */ java.lang.String getColumnName(); /** * <code>optional string column_name = 4;</code> */ com.google.protobuf.ByteString getColumnNameBytes(); // optional int32 ordinal_position = 5; /** * <code>optional int32 ordinal_position = 5;</code> */ boolean hasOrdinalPosition(); /** * <code>optional int32 ordinal_position = 5;</code> */ int getOrdinalPosition(); // optional string default_value = 6; /** * <code>optional string default_value = 6;</code> */ boolean hasDefaultValue(); /** * <code>optional string default_value = 6;</code> */ java.lang.String getDefaultValue(); /** * <code>optional string default_value = 6;</code> */ com.google.protobuf.ByteString getDefaultValueBytes(); // optional bool is_nullable = 7; /** * <code>optional bool is_nullable = 7;</code> */ boolean hasIsNullable(); /** * <code>optional bool is_nullable = 7;</code> */ boolean getIsNullable(); // optional string data_type = 8; /** * <code>optional string data_type = 8;</code> */ boolean hasDataType(); /** * <code>optional string data_type = 8;</code> */ java.lang.String getDataType(); /** * <code>optional string data_type = 8;</code> */ com.google.protobuf.ByteString getDataTypeBytes(); // optional int32 char_max_length = 9; /** * <code>optional int32 char_max_length = 9;</code> */ boolean hasCharMaxLength(); /** * <code>optional int32 char_max_length = 9;</code> */ int getCharMaxLength(); // optional int32 char_octet_length = 10; /** * <code>optional int32 char_octet_length = 10;</code> */ boolean hasCharOctetLength(); /** * <code>optional int32 char_octet_length = 10;</code> */ int getCharOctetLength(); // optional int32 numeric_precision = 11; /** * <code>optional int32 numeric_precision = 11;</code> */ boolean hasNumericPrecision(); /** * <code>optional int32 numeric_precision = 11;</code> */ int getNumericPrecision(); // optional int32 numeric_precision_radix = 12; /** * <code>optional int32 numeric_precision_radix = 12;</code> */ boolean hasNumericPrecisionRadix(); /** * <code>optional int32 numeric_precision_radix = 12;</code> */ int getNumericPrecisionRadix(); // optional int32 numeric_scale = 13; /** * <code>optional int32 numeric_scale = 13;</code> */ boolean hasNumericScale(); /** * <code>optional int32 numeric_scale = 13;</code> */ int getNumericScale(); // optional int32 date_time_precision = 14; /** * <code>optional int32 date_time_precision = 14;</code> */ boolean hasDateTimePrecision(); /** * <code>optional int32 date_time_precision = 14;</code> */ int getDateTimePrecision(); // optional string interval_type = 15; /** * <code>optional string interval_type = 15;</code> */ boolean hasIntervalType(); /** * <code>optional string interval_type = 15;</code> */ java.lang.String getIntervalType(); /** * <code>optional string interval_type = 15;</code> */ com.google.protobuf.ByteString getIntervalTypeBytes(); // optional int32 interval_precision = 16; /** * <code>optional int32 interval_precision = 16;</code> */ boolean hasIntervalPrecision(); /** * <code>optional int32 interval_precision = 16;</code> */ int getIntervalPrecision(); // optional int32 column_size = 17; /** * <code>optional int32 column_size = 17;</code> */ boolean hasColumnSize(); /** * <code>optional int32 column_size = 17;</code> */ int getColumnSize(); } /** * Protobuf type {@code exec.user.ColumnMetadata} * * <pre> * * Message encapsulating metadata for a Column. * </pre> */ public static final class ColumnMetadata extends com.google.protobuf.GeneratedMessage implements ColumnMetadataOrBuilder { // Use ColumnMetadata.newBuilder() to construct. private ColumnMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ColumnMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ColumnMetadata defaultInstance; public static ColumnMetadata getDefaultInstance() { return defaultInstance; } public ColumnMetadata getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ColumnMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; catalogName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; schemaName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; tableName_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; columnName_ = input.readBytes(); break; } case 40: { bitField0_ |= 0x00000010; ordinalPosition_ = input.readInt32(); break; } case 50: { bitField0_ |= 0x00000020; defaultValue_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; isNullable_ = input.readBool(); break; } case 66: { bitField0_ |= 0x00000080; dataType_ = input.readBytes(); break; } case 72: { bitField0_ |= 0x00000100; charMaxLength_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; charOctetLength_ = input.readInt32(); break; } case 88: { bitField0_ |= 0x00000400; numericPrecision_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000800; numericPrecisionRadix_ = input.readInt32(); break; } case 104: { bitField0_ |= 0x00001000; numericScale_ = input.readInt32(); break; } case 112: { bitField0_ |= 0x00002000; dateTimePrecision_ = input.readInt32(); break; } case 122: { bitField0_ |= 0x00004000; intervalType_ = input.readBytes(); break; } case 128: { bitField0_ |= 0x00008000; intervalPrecision_ = input.readInt32(); break; } case 136: { bitField0_ |= 0x00010000; columnSize_ = input.readInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder.class); } public static com.google.protobuf.Parser<ColumnMetadata> PARSER = new com.google.protobuf.AbstractParser<ColumnMetadata>() { public ColumnMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ColumnMetadata(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ColumnMetadata> getParserForType() { return PARSER; } private int bitField0_; // optional string catalog_name = 1; public static final int CATALOG_NAME_FIELD_NUMBER = 1; private java.lang.Object catalogName_; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogName_ = s; } return s; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string schema_name = 2; public static final int SCHEMA_NAME_FIELD_NUMBER = 2; private java.lang.Object schemaName_; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schemaName_ = s; } return s; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string table_name = 3; public static final int TABLE_NAME_FIELD_NUMBER = 3; private java.lang.Object tableName_; /** * <code>optional string table_name = 3;</code> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tableName_ = s; } return s; } } /** * <code>optional string table_name = 3;</code> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string column_name = 4; public static final int COLUMN_NAME_FIELD_NUMBER = 4; private java.lang.Object columnName_; /** * <code>optional string column_name = 4;</code> */ public boolean hasColumnName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string column_name = 4;</code> */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { columnName_ = s; } return s; } } /** * <code>optional string column_name = 4;</code> */ public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 ordinal_position = 5; public static final int ORDINAL_POSITION_FIELD_NUMBER = 5; private int ordinalPosition_; /** * <code>optional int32 ordinal_position = 5;</code> */ public boolean hasOrdinalPosition() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int32 ordinal_position = 5;</code> */ public int getOrdinalPosition() { return ordinalPosition_; } // optional string default_value = 6; public static final int DEFAULT_VALUE_FIELD_NUMBER = 6; private java.lang.Object defaultValue_; /** * <code>optional string default_value = 6;</code> */ public boolean hasDefaultValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string default_value = 6;</code> */ public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { defaultValue_ = s; } return s; } } /** * <code>optional string default_value = 6;</code> */ public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool is_nullable = 7; public static final int IS_NULLABLE_FIELD_NUMBER = 7; private boolean isNullable_; /** * <code>optional bool is_nullable = 7;</code> */ public boolean hasIsNullable() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool is_nullable = 7;</code> */ public boolean getIsNullable() { return isNullable_; } // optional string data_type = 8; public static final int DATA_TYPE_FIELD_NUMBER = 8; private java.lang.Object dataType_; /** * <code>optional string data_type = 8;</code> */ public boolean hasDataType() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string data_type = 8;</code> */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dataType_ = s; } return s; } } /** * <code>optional string data_type = 8;</code> */ public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 char_max_length = 9; public static final int CHAR_MAX_LENGTH_FIELD_NUMBER = 9; private int charMaxLength_; /** * <code>optional int32 char_max_length = 9;</code> */ public boolean hasCharMaxLength() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 char_max_length = 9;</code> */ public int getCharMaxLength() { return charMaxLength_; } // optional int32 char_octet_length = 10; public static final int CHAR_OCTET_LENGTH_FIELD_NUMBER = 10; private int charOctetLength_; /** * <code>optional int32 char_octet_length = 10;</code> */ public boolean hasCharOctetLength() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional int32 char_octet_length = 10;</code> */ public int getCharOctetLength() { return charOctetLength_; } // optional int32 numeric_precision = 11; public static final int NUMERIC_PRECISION_FIELD_NUMBER = 11; private int numericPrecision_; /** * <code>optional int32 numeric_precision = 11;</code> */ public boolean hasNumericPrecision() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional int32 numeric_precision = 11;</code> */ public int getNumericPrecision() { return numericPrecision_; } // optional int32 numeric_precision_radix = 12; public static final int NUMERIC_PRECISION_RADIX_FIELD_NUMBER = 12; private int numericPrecisionRadix_; /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public boolean hasNumericPrecisionRadix() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public int getNumericPrecisionRadix() { return numericPrecisionRadix_; } // optional int32 numeric_scale = 13; public static final int NUMERIC_SCALE_FIELD_NUMBER = 13; private int numericScale_; /** * <code>optional int32 numeric_scale = 13;</code> */ public boolean hasNumericScale() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional int32 numeric_scale = 13;</code> */ public int getNumericScale() { return numericScale_; } // optional int32 date_time_precision = 14; public static final int DATE_TIME_PRECISION_FIELD_NUMBER = 14; private int dateTimePrecision_; /** * <code>optional int32 date_time_precision = 14;</code> */ public boolean hasDateTimePrecision() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional int32 date_time_precision = 14;</code> */ public int getDateTimePrecision() { return dateTimePrecision_; } // optional string interval_type = 15; public static final int INTERVAL_TYPE_FIELD_NUMBER = 15; private java.lang.Object intervalType_; /** * <code>optional string interval_type = 15;</code> */ public boolean hasIntervalType() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional string interval_type = 15;</code> */ public java.lang.String getIntervalType() { java.lang.Object ref = intervalType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { intervalType_ = s; } return s; } } /** * <code>optional string interval_type = 15;</code> */ public com.google.protobuf.ByteString getIntervalTypeBytes() { java.lang.Object ref = intervalType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); intervalType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional int32 interval_precision = 16; public static final int INTERVAL_PRECISION_FIELD_NUMBER = 16; private int intervalPrecision_; /** * <code>optional int32 interval_precision = 16;</code> */ public boolean hasIntervalPrecision() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional int32 interval_precision = 16;</code> */ public int getIntervalPrecision() { return intervalPrecision_; } // optional int32 column_size = 17; public static final int COLUMN_SIZE_FIELD_NUMBER = 17; private int columnSize_; /** * <code>optional int32 column_size = 17;</code> */ public boolean hasColumnSize() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional int32 column_size = 17;</code> */ public int getColumnSize() { return columnSize_; } private void initFields() { catalogName_ = ""; schemaName_ = ""; tableName_ = ""; columnName_ = ""; ordinalPosition_ = 0; defaultValue_ = ""; isNullable_ = false; dataType_ = ""; charMaxLength_ = 0; charOctetLength_ = 0; numericPrecision_ = 0; numericPrecisionRadix_ = 0; numericScale_ = 0; dateTimePrecision_ = 0; intervalType_ = ""; intervalPrecision_ = 0; columnSize_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getColumnNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(5, ordinalPosition_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getDefaultValueBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, isNullable_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBytes(8, getDataTypeBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, charMaxLength_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeInt32(10, charOctetLength_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, numericPrecision_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeInt32(12, numericPrecisionRadix_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeInt32(13, numericScale_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeInt32(14, dateTimePrecision_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBytes(15, getIntervalTypeBytes()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeInt32(16, intervalPrecision_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeInt32(17, columnSize_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getColumnNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, ordinalPosition_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getDefaultValueBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isNullable_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getDataTypeBytes()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, charMaxLength_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(10, charOctetLength_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, numericPrecision_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(12, numericPrecisionRadix_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(13, numericScale_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(14, dateTimePrecision_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(15, getIntervalTypeBytes()); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(16, intervalPrecision_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(17, columnSize_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ColumnMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.ColumnMetadata} * * <pre> * * Message encapsulating metadata for a Column. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.ColumnMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); catalogName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schemaName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); tableName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); columnName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); ordinalPosition_ = 0; bitField0_ = (bitField0_ & ~0x00000010); defaultValue_ = ""; bitField0_ = (bitField0_ & ~0x00000020); isNullable_ = false; bitField0_ = (bitField0_ & ~0x00000040); dataType_ = ""; bitField0_ = (bitField0_ & ~0x00000080); charMaxLength_ = 0; bitField0_ = (bitField0_ & ~0x00000100); charOctetLength_ = 0; bitField0_ = (bitField0_ & ~0x00000200); numericPrecision_ = 0; bitField0_ = (bitField0_ & ~0x00000400); numericPrecisionRadix_ = 0; bitField0_ = (bitField0_ & ~0x00000800); numericScale_ = 0; bitField0_ = (bitField0_ & ~0x00001000); dateTimePrecision_ = 0; bitField0_ = (bitField0_ & ~0x00002000); intervalType_ = ""; bitField0_ = (bitField0_ & ~0x00004000); intervalPrecision_ = 0; bitField0_ = (bitField0_ & ~0x00008000); columnSize_ = 0; bitField0_ = (bitField0_ & ~0x00010000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor; } public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.ColumnMetadata build() { org.apache.drill.exec.proto.UserProtos.ColumnMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.ColumnMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.ColumnMetadata result = new org.apache.drill.exec.proto.UserProtos.ColumnMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schemaName_ = schemaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tableName_ = tableName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.columnName_ = columnName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.ordinalPosition_ = ordinalPosition_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.defaultValue_ = defaultValue_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.isNullable_ = isNullable_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.dataType_ = dataType_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.charMaxLength_ = charMaxLength_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.charOctetLength_ = charOctetLength_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.numericPrecision_ = numericPrecision_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.numericPrecisionRadix_ = numericPrecisionRadix_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.numericScale_ = numericScale_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.dateTimePrecision_ = dateTimePrecision_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.intervalType_ = intervalType_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.intervalPrecision_ = intervalPrecision_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.columnSize_ = columnSize_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.ColumnMetadata) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.ColumnMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ColumnMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasSchemaName()) { bitField0_ |= 0x00000002; schemaName_ = other.schemaName_; onChanged(); } if (other.hasTableName()) { bitField0_ |= 0x00000004; tableName_ = other.tableName_; onChanged(); } if (other.hasColumnName()) { bitField0_ |= 0x00000008; columnName_ = other.columnName_; onChanged(); } if (other.hasOrdinalPosition()) { setOrdinalPosition(other.getOrdinalPosition()); } if (other.hasDefaultValue()) { bitField0_ |= 0x00000020; defaultValue_ = other.defaultValue_; onChanged(); } if (other.hasIsNullable()) { setIsNullable(other.getIsNullable()); } if (other.hasDataType()) { bitField0_ |= 0x00000080; dataType_ = other.dataType_; onChanged(); } if (other.hasCharMaxLength()) { setCharMaxLength(other.getCharMaxLength()); } if (other.hasCharOctetLength()) { setCharOctetLength(other.getCharOctetLength()); } if (other.hasNumericPrecision()) { setNumericPrecision(other.getNumericPrecision()); } if (other.hasNumericPrecisionRadix()) { setNumericPrecisionRadix(other.getNumericPrecisionRadix()); } if (other.hasNumericScale()) { setNumericScale(other.getNumericScale()); } if (other.hasDateTimePrecision()) { setDateTimePrecision(other.getDateTimePrecision()); } if (other.hasIntervalType()) { bitField0_ |= 0x00004000; intervalType_ = other.intervalType_; onChanged(); } if (other.hasIntervalPrecision()) { setIntervalPrecision(other.getIntervalPrecision()); } if (other.hasColumnSize()) { setColumnSize(other.getColumnSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.ColumnMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.ColumnMetadata) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string catalog_name = 1; private java.lang.Object catalogName_ = ""; /** * <code>optional string catalog_name = 1;</code> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } // optional string schema_name = 2; private java.lang.Object schemaName_ = ""; /** * <code>optional string schema_name = 2;</code> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string schema_name = 2;</code> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder clearSchemaName() { bitField0_ = (bitField0_ & ~0x00000002); schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } // optional string table_name = 3; private java.lang.Object tableName_ = ""; /** * <code>optional string table_name = 3;</code> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string table_name = 3;</code> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string table_name = 3;</code> */ public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } /** * <code>optional string table_name = 3;</code> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000004); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** * <code>optional string table_name = 3;</code> */ public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } // optional string column_name = 4; private java.lang.Object columnName_ = ""; /** * <code>optional string column_name = 4;</code> */ public boolean hasColumnName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string column_name = 4;</code> */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); columnName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string column_name = 4;</code> */ public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string column_name = 4;</code> */ public Builder setColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; columnName_ = value; onChanged(); return this; } /** * <code>optional string column_name = 4;</code> */ public Builder clearColumnName() { bitField0_ = (bitField0_ & ~0x00000008); columnName_ = getDefaultInstance().getColumnName(); onChanged(); return this; } /** * <code>optional string column_name = 4;</code> */ public Builder setColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; columnName_ = value; onChanged(); return this; } // optional int32 ordinal_position = 5; private int ordinalPosition_ ; /** * <code>optional int32 ordinal_position = 5;</code> */ public boolean hasOrdinalPosition() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional int32 ordinal_position = 5;</code> */ public int getOrdinalPosition() { return ordinalPosition_; } /** * <code>optional int32 ordinal_position = 5;</code> */ public Builder setOrdinalPosition(int value) { bitField0_ |= 0x00000010; ordinalPosition_ = value; onChanged(); return this; } /** * <code>optional int32 ordinal_position = 5;</code> */ public Builder clearOrdinalPosition() { bitField0_ = (bitField0_ & ~0x00000010); ordinalPosition_ = 0; onChanged(); return this; } // optional string default_value = 6; private java.lang.Object defaultValue_ = ""; /** * <code>optional string default_value = 6;</code> */ public boolean hasDefaultValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string default_value = 6;</code> */ public java.lang.String getDefaultValue() { java.lang.Object ref = defaultValue_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); defaultValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string default_value = 6;</code> */ public com.google.protobuf.ByteString getDefaultValueBytes() { java.lang.Object ref = defaultValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string default_value = 6;</code> */ public Builder setDefaultValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; defaultValue_ = value; onChanged(); return this; } /** * <code>optional string default_value = 6;</code> */ public Builder clearDefaultValue() { bitField0_ = (bitField0_ & ~0x00000020); defaultValue_ = getDefaultInstance().getDefaultValue(); onChanged(); return this; } /** * <code>optional string default_value = 6;</code> */ public Builder setDefaultValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; defaultValue_ = value; onChanged(); return this; } // optional bool is_nullable = 7; private boolean isNullable_ ; /** * <code>optional bool is_nullable = 7;</code> */ public boolean hasIsNullable() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool is_nullable = 7;</code> */ public boolean getIsNullable() { return isNullable_; } /** * <code>optional bool is_nullable = 7;</code> */ public Builder setIsNullable(boolean value) { bitField0_ |= 0x00000040; isNullable_ = value; onChanged(); return this; } /** * <code>optional bool is_nullable = 7;</code> */ public Builder clearIsNullable() { bitField0_ = (bitField0_ & ~0x00000040); isNullable_ = false; onChanged(); return this; } // optional string data_type = 8; private java.lang.Object dataType_ = ""; /** * <code>optional string data_type = 8;</code> */ public boolean hasDataType() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional string data_type = 8;</code> */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); dataType_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string data_type = 8;</code> */ public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string data_type = 8;</code> */ public Builder setDataType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; dataType_ = value; onChanged(); return this; } /** * <code>optional string data_type = 8;</code> */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000080); dataType_ = getDefaultInstance().getDataType(); onChanged(); return this; } /** * <code>optional string data_type = 8;</code> */ public Builder setDataTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; dataType_ = value; onChanged(); return this; } // optional int32 char_max_length = 9; private int charMaxLength_ ; /** * <code>optional int32 char_max_length = 9;</code> */ public boolean hasCharMaxLength() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 char_max_length = 9;</code> */ public int getCharMaxLength() { return charMaxLength_; } /** * <code>optional int32 char_max_length = 9;</code> */ public Builder setCharMaxLength(int value) { bitField0_ |= 0x00000100; charMaxLength_ = value; onChanged(); return this; } /** * <code>optional int32 char_max_length = 9;</code> */ public Builder clearCharMaxLength() { bitField0_ = (bitField0_ & ~0x00000100); charMaxLength_ = 0; onChanged(); return this; } // optional int32 char_octet_length = 10; private int charOctetLength_ ; /** * <code>optional int32 char_octet_length = 10;</code> */ public boolean hasCharOctetLength() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional int32 char_octet_length = 10;</code> */ public int getCharOctetLength() { return charOctetLength_; } /** * <code>optional int32 char_octet_length = 10;</code> */ public Builder setCharOctetLength(int value) { bitField0_ |= 0x00000200; charOctetLength_ = value; onChanged(); return this; } /** * <code>optional int32 char_octet_length = 10;</code> */ public Builder clearCharOctetLength() { bitField0_ = (bitField0_ & ~0x00000200); charOctetLength_ = 0; onChanged(); return this; } // optional int32 numeric_precision = 11; private int numericPrecision_ ; /** * <code>optional int32 numeric_precision = 11;</code> */ public boolean hasNumericPrecision() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional int32 numeric_precision = 11;</code> */ public int getNumericPrecision() { return numericPrecision_; } /** * <code>optional int32 numeric_precision = 11;</code> */ public Builder setNumericPrecision(int value) { bitField0_ |= 0x00000400; numericPrecision_ = value; onChanged(); return this; } /** * <code>optional int32 numeric_precision = 11;</code> */ public Builder clearNumericPrecision() { bitField0_ = (bitField0_ & ~0x00000400); numericPrecision_ = 0; onChanged(); return this; } // optional int32 numeric_precision_radix = 12; private int numericPrecisionRadix_ ; /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public boolean hasNumericPrecisionRadix() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public int getNumericPrecisionRadix() { return numericPrecisionRadix_; } /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public Builder setNumericPrecisionRadix(int value) { bitField0_ |= 0x00000800; numericPrecisionRadix_ = value; onChanged(); return this; } /** * <code>optional int32 numeric_precision_radix = 12;</code> */ public Builder clearNumericPrecisionRadix() { bitField0_ = (bitField0_ & ~0x00000800); numericPrecisionRadix_ = 0; onChanged(); return this; } // optional int32 numeric_scale = 13; private int numericScale_ ; /** * <code>optional int32 numeric_scale = 13;</code> */ public boolean hasNumericScale() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional int32 numeric_scale = 13;</code> */ public int getNumericScale() { return numericScale_; } /** * <code>optional int32 numeric_scale = 13;</code> */ public Builder setNumericScale(int value) { bitField0_ |= 0x00001000; numericScale_ = value; onChanged(); return this; } /** * <code>optional int32 numeric_scale = 13;</code> */ public Builder clearNumericScale() { bitField0_ = (bitField0_ & ~0x00001000); numericScale_ = 0; onChanged(); return this; } // optional int32 date_time_precision = 14; private int dateTimePrecision_ ; /** * <code>optional int32 date_time_precision = 14;</code> */ public boolean hasDateTimePrecision() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional int32 date_time_precision = 14;</code> */ public int getDateTimePrecision() { return dateTimePrecision_; } /** * <code>optional int32 date_time_precision = 14;</code> */ public Builder setDateTimePrecision(int value) { bitField0_ |= 0x00002000; dateTimePrecision_ = value; onChanged(); return this; } /** * <code>optional int32 date_time_precision = 14;</code> */ public Builder clearDateTimePrecision() { bitField0_ = (bitField0_ & ~0x00002000); dateTimePrecision_ = 0; onChanged(); return this; } // optional string interval_type = 15; private java.lang.Object intervalType_ = ""; /** * <code>optional string interval_type = 15;</code> */ public boolean hasIntervalType() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional string interval_type = 15;</code> */ public java.lang.String getIntervalType() { java.lang.Object ref = intervalType_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); intervalType_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string interval_type = 15;</code> */ public com.google.protobuf.ByteString getIntervalTypeBytes() { java.lang.Object ref = intervalType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); intervalType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string interval_type = 15;</code> */ public Builder setIntervalType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; intervalType_ = value; onChanged(); return this; } /** * <code>optional string interval_type = 15;</code> */ public Builder clearIntervalType() { bitField0_ = (bitField0_ & ~0x00004000); intervalType_ = getDefaultInstance().getIntervalType(); onChanged(); return this; } /** * <code>optional string interval_type = 15;</code> */ public Builder setIntervalTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00004000; intervalType_ = value; onChanged(); return this; } // optional int32 interval_precision = 16; private int intervalPrecision_ ; /** * <code>optional int32 interval_precision = 16;</code> */ public boolean hasIntervalPrecision() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional int32 interval_precision = 16;</code> */ public int getIntervalPrecision() { return intervalPrecision_; } /** * <code>optional int32 interval_precision = 16;</code> */ public Builder setIntervalPrecision(int value) { bitField0_ |= 0x00008000; intervalPrecision_ = value; onChanged(); return this; } /** * <code>optional int32 interval_precision = 16;</code> */ public Builder clearIntervalPrecision() { bitField0_ = (bitField0_ & ~0x00008000); intervalPrecision_ = 0; onChanged(); return this; } // optional int32 column_size = 17; private int columnSize_ ; /** * <code>optional int32 column_size = 17;</code> */ public boolean hasColumnSize() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional int32 column_size = 17;</code> */ public int getColumnSize() { return columnSize_; } /** * <code>optional int32 column_size = 17;</code> */ public Builder setColumnSize(int value) { bitField0_ |= 0x00010000; columnSize_ = value; onChanged(); return this; } /** * <code>optional int32 column_size = 17;</code> */ public Builder clearColumnSize() { bitField0_ = (bitField0_ & ~0x00010000); columnSize_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.ColumnMetadata) } static { defaultInstance = new ColumnMetadata(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.ColumnMetadata) } public interface GetColumnsRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // repeated .exec.user.ColumnMetadata columns = 2; /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> getColumnsList(); /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index); /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ int getColumnsCount(); /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> getColumnsOrBuilderList(); /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder( int index); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.GetColumnsResp} * * <pre> * * Response message for GetColumnsReq. * </pre> */ public static final class GetColumnsResp extends com.google.protobuf.GeneratedMessage implements GetColumnsRespOrBuilder { // Use GetColumnsResp.newBuilder() to construct. private GetColumnsResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetColumnsResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetColumnsResp defaultInstance; public static GetColumnsResp getDefaultInstance() { return defaultInstance; } public GetColumnsResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetColumnsResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ColumnMetadata>(); mutable_bitField0_ |= 0x00000002; } columns_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ColumnMetadata.PARSER, extensionRegistry)); break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { columns_ = java.util.Collections.unmodifiableList(columns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetColumnsResp.class, org.apache.drill.exec.proto.UserProtos.GetColumnsResp.Builder.class); } public static com.google.protobuf.Parser<GetColumnsResp> PARSER = new com.google.protobuf.AbstractParser<GetColumnsResp>() { public GetColumnsResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetColumnsResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetColumnsResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // repeated .exec.user.ColumnMetadata columns = 2; public static final int COLUMNS_FIELD_NUMBER = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> columns_; /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> getColumnsList() { return columns_; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> getColumnsOrBuilderList() { return columns_; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public int getColumnsCount() { return columns_.size(); } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index) { return columns_.get(index); } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; columns_ = java.util.Collections.emptyList(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, status_.getNumber()); } for (int i = 0; i < columns_.size(); i++) { output.writeMessage(2, columns_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(3, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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()); } for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, columns_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetColumnsResp} * * <pre> * * Response message for GetColumnsReq. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetColumnsRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetColumnsResp.class, org.apache.drill.exec.proto.UserProtos.GetColumnsResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetColumnsResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getColumnsFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { columnsBuilder_.clear(); } if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetColumnsResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetColumnsResp build() { org.apache.drill.exec.proto.UserProtos.GetColumnsResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetColumnsResp buildPartial() { org.apache.drill.exec.proto.UserProtos.GetColumnsResp result = new org.apache.drill.exec.proto.UserProtos.GetColumnsResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000002); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetColumnsResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetColumnsResp other) { if (other == org.apache.drill.exec.proto.UserProtos.GetColumnsResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000002); columnsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetColumnsResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetColumnsResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // repeated .exec.user.ColumnMetadata columns = 2; private java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ColumnMetadata>(columns_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> columnsBuilder_; /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata> getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder setColumns( int index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); } else { columnsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder setColumns( int index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder addColumns(org.apache.drill.exec.proto.UserProtos.ColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder addColumns( int index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(index, value); onChanged(); } else { columnsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder addColumns( org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder addColumns( int index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder addAllColumns( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ColumnMetadata> values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); super.addAll(values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.ColumnMetadata columns = 2;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder> getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder>( columns_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetColumnsResp) } static { defaultInstance = new GetColumnsResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetColumnsResp) } public interface CreatePreparedStatementReqOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string sql_query = 1; /** * <code>optional string sql_query = 1;</code> */ boolean hasSqlQuery(); /** * <code>optional string sql_query = 1;</code> */ java.lang.String getSqlQuery(); /** * <code>optional string sql_query = 1;</code> */ com.google.protobuf.ByteString getSqlQueryBytes(); } /** * Protobuf type {@code exec.user.CreatePreparedStatementReq} * * <pre> * * Request message to create a prepared statement. Currently prepared * statement only accepts a SQL query. Query parameter support is not * included in current implementation. * </pre> */ public static final class CreatePreparedStatementReq extends com.google.protobuf.GeneratedMessage implements CreatePreparedStatementReqOrBuilder { // Use CreatePreparedStatementReq.newBuilder() to construct. private CreatePreparedStatementReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CreatePreparedStatementReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CreatePreparedStatementReq defaultInstance; public static CreatePreparedStatementReq getDefaultInstance() { return defaultInstance; } public CreatePreparedStatementReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreatePreparedStatementReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; sqlQuery_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.Builder.class); } public static com.google.protobuf.Parser<CreatePreparedStatementReq> PARSER = new com.google.protobuf.AbstractParser<CreatePreparedStatementReq>() { public CreatePreparedStatementReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreatePreparedStatementReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<CreatePreparedStatementReq> getParserForType() { return PARSER; } private int bitField0_; // optional string sql_query = 1; public static final int SQL_QUERY_FIELD_NUMBER = 1; private java.lang.Object sqlQuery_; /** * <code>optional string sql_query = 1;</code> */ public boolean hasSqlQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string sql_query = 1;</code> */ public java.lang.String getSqlQuery() { java.lang.Object ref = sqlQuery_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { sqlQuery_ = s; } return s; } } /** * <code>optional string sql_query = 1;</code> */ public com.google.protobuf.ByteString getSqlQueryBytes() { java.lang.Object ref = sqlQuery_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sqlQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { sqlQuery_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getSqlQueryBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.CreatePreparedStatementReq} * * <pre> * * Request message to create a prepared statement. Currently prepared * statement only accepts a SQL query. Query parameter support is not * included in current implementation. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); sqlQuery_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq build() { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq buildPartial() { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq result = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.sqlQuery_ = sqlQuery_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq other) { if (other == org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.getDefaultInstance()) return this; if (other.hasSqlQuery()) { bitField0_ |= 0x00000001; sqlQuery_ = other.sqlQuery_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string sql_query = 1; private java.lang.Object sqlQuery_ = ""; /** * <code>optional string sql_query = 1;</code> */ public boolean hasSqlQuery() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string sql_query = 1;</code> */ public java.lang.String getSqlQuery() { java.lang.Object ref = sqlQuery_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); sqlQuery_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string sql_query = 1;</code> */ public com.google.protobuf.ByteString getSqlQueryBytes() { java.lang.Object ref = sqlQuery_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sqlQuery_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string sql_query = 1;</code> */ public Builder setSqlQuery( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; sqlQuery_ = value; onChanged(); return this; } /** * <code>optional string sql_query = 1;</code> */ public Builder clearSqlQuery() { bitField0_ = (bitField0_ & ~0x00000001); sqlQuery_ = getDefaultInstance().getSqlQuery(); onChanged(); return this; } /** * <code>optional string sql_query = 1;</code> */ public Builder setSqlQueryBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; sqlQuery_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.CreatePreparedStatementReq) } static { defaultInstance = new CreatePreparedStatementReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementReq) } public interface ResultColumnMetadataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string catalog_name = 1; /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ boolean hasCatalogName(); /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ java.lang.String getCatalogName(); /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ com.google.protobuf.ByteString getCatalogNameBytes(); // optional string schema_name = 2; /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ boolean hasSchemaName(); /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ java.lang.String getSchemaName(); /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ com.google.protobuf.ByteString getSchemaNameBytes(); // optional string table_name = 3; /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ boolean hasTableName(); /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ java.lang.String getTableName(); /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ com.google.protobuf.ByteString getTableNameBytes(); // optional string column_name = 4; /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ boolean hasColumnName(); /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ java.lang.String getColumnName(); /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ com.google.protobuf.ByteString getColumnNameBytes(); // optional string label = 5; /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ boolean hasLabel(); /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ java.lang.String getLabel(); /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ com.google.protobuf.ByteString getLabelBytes(); // optional string data_type = 6; /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ boolean hasDataType(); /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ java.lang.String getDataType(); /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ com.google.protobuf.ByteString getDataTypeBytes(); // optional bool is_nullable = 7; /** * <code>optional bool is_nullable = 7;</code> */ boolean hasIsNullable(); /** * <code>optional bool is_nullable = 7;</code> */ boolean getIsNullable(); // optional int32 precision = 8; /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ boolean hasPrecision(); /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ int getPrecision(); // optional int32 scale = 9; /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ boolean hasScale(); /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ int getScale(); // optional bool signed = 10; /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ boolean hasSigned(); /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ boolean getSigned(); // optional int32 display_size = 11; /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ boolean hasDisplaySize(); /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ int getDisplaySize(); // optional bool is_aliased = 12; /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ boolean hasIsAliased(); /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ boolean getIsAliased(); // optional .exec.user.ColumnSearchability searchability = 13; /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ boolean hasSearchability(); /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability(); // optional .exec.user.ColumnUpdatability updatability = 14; /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ boolean hasUpdatability(); /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability(); // optional bool auto_increment = 15; /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ boolean hasAutoIncrement(); /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ boolean getAutoIncrement(); // optional bool case_sensitivity = 16; /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ boolean hasCaseSensitivity(); /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ boolean getCaseSensitivity(); // optional bool sortable = 17; /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ boolean hasSortable(); /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ boolean getSortable(); // optional string class_name = 18; /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ boolean hasClassName(); /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ java.lang.String getClassName(); /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ com.google.protobuf.ByteString getClassNameBytes(); // optional bool is_currency = 20; /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ boolean hasIsCurrency(); /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ boolean getIsCurrency(); } /** * Protobuf type {@code exec.user.ResultColumnMetadata} * * <pre> * * Metadata of a column in query result set * </pre> */ public static final class ResultColumnMetadata extends com.google.protobuf.GeneratedMessage implements ResultColumnMetadataOrBuilder { // Use ResultColumnMetadata.newBuilder() to construct. private ResultColumnMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ResultColumnMetadata(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ResultColumnMetadata defaultInstance; public static ResultColumnMetadata getDefaultInstance() { return defaultInstance; } public ResultColumnMetadata getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ResultColumnMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; catalogName_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; schemaName_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; tableName_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000008; columnName_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; label_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; dataType_ = input.readBytes(); break; } case 56: { bitField0_ |= 0x00000040; isNullable_ = input.readBool(); break; } case 64: { bitField0_ |= 0x00000080; precision_ = input.readInt32(); break; } case 72: { bitField0_ |= 0x00000100; scale_ = input.readInt32(); break; } case 80: { bitField0_ |= 0x00000200; signed_ = input.readBool(); break; } case 88: { bitField0_ |= 0x00000400; displaySize_ = input.readInt32(); break; } case 96: { bitField0_ |= 0x00000800; isAliased_ = input.readBool(); break; } case 104: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.ColumnSearchability value = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(13, rawValue); } else { bitField0_ |= 0x00001000; searchability_ = value; } break; } case 112: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.ColumnUpdatability value = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(14, rawValue); } else { bitField0_ |= 0x00002000; updatability_ = value; } break; } case 120: { bitField0_ |= 0x00004000; autoIncrement_ = input.readBool(); break; } case 128: { bitField0_ |= 0x00008000; caseSensitivity_ = input.readBool(); break; } case 136: { bitField0_ |= 0x00010000; sortable_ = input.readBool(); break; } case 146: { bitField0_ |= 0x00020000; className_ = input.readBytes(); break; } case 160: { bitField0_ |= 0x00040000; isCurrency_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder.class); } public static com.google.protobuf.Parser<ResultColumnMetadata> PARSER = new com.google.protobuf.AbstractParser<ResultColumnMetadata>() { public ResultColumnMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ResultColumnMetadata(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ResultColumnMetadata> getParserForType() { return PARSER; } private int bitField0_; // optional string catalog_name = 1; public static final int CATALOG_NAME_FIELD_NUMBER = 1; private java.lang.Object catalogName_; /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogName_ = s; } return s; } } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string schema_name = 2; public static final int SCHEMA_NAME_FIELD_NUMBER = 2; private java.lang.Object schemaName_; /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schemaName_ = s; } return s; } } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string table_name = 3; public static final int TABLE_NAME_FIELD_NUMBER = 3; private java.lang.Object tableName_; /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tableName_ = s; } return s; } } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string column_name = 4; public static final int COLUMN_NAME_FIELD_NUMBER = 4; private java.lang.Object columnName_; /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public boolean hasColumnName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { columnName_ = s; } return s; } } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string label = 5; public static final int LABEL_FIELD_NUMBER = 5; private java.lang.Object label_; /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public boolean hasLabel() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { label_ = s; } return s; } } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string data_type = 6; public static final int DATA_TYPE_FIELD_NUMBER = 6; private java.lang.Object dataType_; /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public boolean hasDataType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { dataType_ = s; } return s; } } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool is_nullable = 7; public static final int IS_NULLABLE_FIELD_NUMBER = 7; private boolean isNullable_; /** * <code>optional bool is_nullable = 7;</code> */ public boolean hasIsNullable() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool is_nullable = 7;</code> */ public boolean getIsNullable() { return isNullable_; } // optional int32 precision = 8; public static final int PRECISION_FIELD_NUMBER = 8; private int precision_; /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public boolean hasPrecision() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public int getPrecision() { return precision_; } // optional int32 scale = 9; public static final int SCALE_FIELD_NUMBER = 9; private int scale_; /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public boolean hasScale() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public int getScale() { return scale_; } // optional bool signed = 10; public static final int SIGNED_FIELD_NUMBER = 10; private boolean signed_; /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public boolean hasSigned() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public boolean getSigned() { return signed_; } // optional int32 display_size = 11; public static final int DISPLAY_SIZE_FIELD_NUMBER = 11; private int displaySize_; /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public boolean hasDisplaySize() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public int getDisplaySize() { return displaySize_; } // optional bool is_aliased = 12; public static final int IS_ALIASED_FIELD_NUMBER = 12; private boolean isAliased_; /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public boolean hasIsAliased() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public boolean getIsAliased() { return isAliased_; } // optional .exec.user.ColumnSearchability searchability = 13; public static final int SEARCHABILITY_FIELD_NUMBER = 13; private org.apache.drill.exec.proto.UserProtos.ColumnSearchability searchability_; /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public boolean hasSearchability() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability() { return searchability_; } // optional .exec.user.ColumnUpdatability updatability = 14; public static final int UPDATABILITY_FIELD_NUMBER = 14; private org.apache.drill.exec.proto.UserProtos.ColumnUpdatability updatability_; /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public boolean hasUpdatability() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability() { return updatability_; } // optional bool auto_increment = 15; public static final int AUTO_INCREMENT_FIELD_NUMBER = 15; private boolean autoIncrement_; /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public boolean hasAutoIncrement() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public boolean getAutoIncrement() { return autoIncrement_; } // optional bool case_sensitivity = 16; public static final int CASE_SENSITIVITY_FIELD_NUMBER = 16; private boolean caseSensitivity_; /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public boolean hasCaseSensitivity() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public boolean getCaseSensitivity() { return caseSensitivity_; } // optional bool sortable = 17; public static final int SORTABLE_FIELD_NUMBER = 17; private boolean sortable_; /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public boolean hasSortable() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public boolean getSortable() { return sortable_; } // optional string class_name = 18; public static final int CLASS_NAME_FIELD_NUMBER = 18; private java.lang.Object className_; /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public boolean hasClassName() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { className_ = s; } return s; } } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool is_currency = 20; public static final int IS_CURRENCY_FIELD_NUMBER = 20; private boolean isCurrency_; /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public boolean hasIsCurrency() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public boolean getIsCurrency() { return isCurrency_; } private void initFields() { catalogName_ = ""; schemaName_ = ""; tableName_ = ""; columnName_ = ""; label_ = ""; dataType_ = ""; isNullable_ = false; precision_ = 0; scale_ = 0; signed_ = false; displaySize_ = 0; isAliased_ = false; searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY; updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY; autoIncrement_ = false; caseSensitivity_ = false; sortable_ = false; className_ = ""; isCurrency_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getColumnNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getLabelBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, getDataTypeBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(7, isNullable_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeInt32(8, precision_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeInt32(9, scale_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(10, signed_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeInt32(11, displaySize_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeBool(12, isAliased_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeEnum(13, searchability_.getNumber()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeEnum(14, updatability_.getNumber()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeBool(15, autoIncrement_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeBool(16, caseSensitivity_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeBool(17, sortable_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeBytes(18, getClassNameBytes()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeBool(20, isCurrency_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getCatalogNameBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSchemaNameBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getTableNameBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getColumnNameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getLabelBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getDataTypeBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isNullable_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(8, precision_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, scale_); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, signed_); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(11, displaySize_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, isAliased_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, searchability_.getNumber()); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(14, updatability_.getNumber()); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, autoIncrement_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, caseSensitivity_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, sortable_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(18, getClassNameBytes()); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, isCurrency_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.ResultColumnMetadata} * * <pre> * * Metadata of a column in query result set * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.class, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); catalogName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); schemaName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); tableName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); columnName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); label_ = ""; bitField0_ = (bitField0_ & ~0x00000010); dataType_ = ""; bitField0_ = (bitField0_ & ~0x00000020); isNullable_ = false; bitField0_ = (bitField0_ & ~0x00000040); precision_ = 0; bitField0_ = (bitField0_ & ~0x00000080); scale_ = 0; bitField0_ = (bitField0_ & ~0x00000100); signed_ = false; bitField0_ = (bitField0_ & ~0x00000200); displaySize_ = 0; bitField0_ = (bitField0_ & ~0x00000400); isAliased_ = false; bitField0_ = (bitField0_ & ~0x00000800); searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY; bitField0_ = (bitField0_ & ~0x00001000); updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY; bitField0_ = (bitField0_ & ~0x00002000); autoIncrement_ = false; bitField0_ = (bitField0_ & ~0x00004000); caseSensitivity_ = false; bitField0_ = (bitField0_ & ~0x00008000); sortable_ = false; bitField0_ = (bitField0_ & ~0x00010000); className_ = ""; bitField0_ = (bitField0_ & ~0x00020000); isCurrency_ = false; bitField0_ = (bitField0_ & ~0x00040000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor; } public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata build() { org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata buildPartial() { org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata result = new org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.catalogName_ = catalogName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.schemaName_ = schemaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.tableName_ = tableName_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.columnName_ = columnName_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.label_ = label_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.dataType_ = dataType_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.isNullable_ = isNullable_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.precision_ = precision_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.scale_ = scale_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000200; } result.signed_ = signed_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000400; } result.displaySize_ = displaySize_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000800; } result.isAliased_ = isAliased_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00001000; } result.searchability_ = searchability_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00002000; } result.updatability_ = updatability_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00004000; } result.autoIncrement_ = autoIncrement_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00008000; } result.caseSensitivity_ = caseSensitivity_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00010000; } result.sortable_ = sortable_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00020000; } result.className_ = className_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00040000; } result.isCurrency_ = isCurrency_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata other) { if (other == org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance()) return this; if (other.hasCatalogName()) { bitField0_ |= 0x00000001; catalogName_ = other.catalogName_; onChanged(); } if (other.hasSchemaName()) { bitField0_ |= 0x00000002; schemaName_ = other.schemaName_; onChanged(); } if (other.hasTableName()) { bitField0_ |= 0x00000004; tableName_ = other.tableName_; onChanged(); } if (other.hasColumnName()) { bitField0_ |= 0x00000008; columnName_ = other.columnName_; onChanged(); } if (other.hasLabel()) { bitField0_ |= 0x00000010; label_ = other.label_; onChanged(); } if (other.hasDataType()) { bitField0_ |= 0x00000020; dataType_ = other.dataType_; onChanged(); } if (other.hasIsNullable()) { setIsNullable(other.getIsNullable()); } if (other.hasPrecision()) { setPrecision(other.getPrecision()); } if (other.hasScale()) { setScale(other.getScale()); } if (other.hasSigned()) { setSigned(other.getSigned()); } if (other.hasDisplaySize()) { setDisplaySize(other.getDisplaySize()); } if (other.hasIsAliased()) { setIsAliased(other.getIsAliased()); } if (other.hasSearchability()) { setSearchability(other.getSearchability()); } if (other.hasUpdatability()) { setUpdatability(other.getUpdatability()); } if (other.hasAutoIncrement()) { setAutoIncrement(other.getAutoIncrement()); } if (other.hasCaseSensitivity()) { setCaseSensitivity(other.getCaseSensitivity()); } if (other.hasSortable()) { setSortable(other.getSortable()); } if (other.hasClassName()) { bitField0_ |= 0x00020000; className_ = other.className_; onChanged(); } if (other.hasIsCurrency()) { setIsCurrency(other.getIsCurrency()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string catalog_name = 1; private java.lang.Object catalogName_ = ""; /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public boolean hasCatalogName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public java.lang.String getCatalogName() { java.lang.Object ref = catalogName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public com.google.protobuf.ByteString getCatalogNameBytes() { java.lang.Object ref = catalogName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public Builder clearCatalogName() { bitField0_ = (bitField0_ & ~0x00000001); catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * <code>optional string catalog_name = 1;</code> * * <pre> * * Designated column's catalog name. Empty string if not applicable. * Defaults to "DRILL" as drill has only one catalog. * </pre> */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; catalogName_ = value; onChanged(); return this; } // optional string schema_name = 2; private java.lang.Object schemaName_ = ""; /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public boolean hasSchemaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public Builder clearSchemaName() { bitField0_ = (bitField0_ & ~0x00000002); schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** * <code>optional string schema_name = 2;</code> * * <pre> * * Designated column's schema name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and schema info * is lost. If we derive the schema from plan, we may get the right value. * </pre> */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; schemaName_ = value; onChanged(); return this; } // optional string table_name = 3; private java.lang.Object tableName_ = ""; /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public boolean hasTableName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public Builder clearTableName() { bitField0_ = (bitField0_ & ~0x00000004); tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** * <code>optional string table_name = 3;</code> * * <pre> * * Designated column's table name. Not set if not applicable. Initial implementation * defaults to no value as we use LIMIT 0 queries to get the schema and table info * is lost. If we derive the schema from query plan, we may get the right value. * </pre> */ public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tableName_ = value; onChanged(); return this; } // optional string column_name = 4; private java.lang.Object columnName_ = ""; /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public boolean hasColumnName() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); columnName_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public Builder setColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; columnName_ = value; onChanged(); return this; } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public Builder clearColumnName() { bitField0_ = (bitField0_ & ~0x00000008); columnName_ = getDefaultInstance().getColumnName(); onChanged(); return this; } /** * <code>optional string column_name = 4;</code> * * <pre> * column name * </pre> */ public Builder setColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; columnName_ = value; onChanged(); return this; } // optional string label = 5; private java.lang.Object label_ = ""; /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public boolean hasLabel() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; label_ = value; onChanged(); return this; } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000010); label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * <code>optional string label = 5;</code> * * <pre> * * Column label name for display or print purposes. * Ex. a column named "empName" might be labeled as "Employee Name". * </pre> */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; label_ = value; onChanged(); return this; } // optional string data_type = 6; private java.lang.Object dataType_ = ""; /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public boolean hasDataType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); dataType_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public Builder setDataType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; dataType_ = value; onChanged(); return this; } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public Builder clearDataType() { bitField0_ = (bitField0_ & ~0x00000020); dataType_ = getDefaultInstance().getDataType(); onChanged(); return this; } /** * <code>optional string data_type = 6;</code> * * <pre> * * Data type in string format. Value is SQL standard type. * </pre> */ public Builder setDataTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; dataType_ = value; onChanged(); return this; } // optional bool is_nullable = 7; private boolean isNullable_ ; /** * <code>optional bool is_nullable = 7;</code> */ public boolean hasIsNullable() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool is_nullable = 7;</code> */ public boolean getIsNullable() { return isNullable_; } /** * <code>optional bool is_nullable = 7;</code> */ public Builder setIsNullable(boolean value) { bitField0_ |= 0x00000040; isNullable_ = value; onChanged(); return this; } /** * <code>optional bool is_nullable = 7;</code> */ public Builder clearIsNullable() { bitField0_ = (bitField0_ & ~0x00000040); isNullable_ = false; onChanged(); return this; } // optional int32 precision = 8; private int precision_ ; /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public boolean hasPrecision() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public int getPrecision() { return precision_; } /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public Builder setPrecision(int value) { bitField0_ |= 0x00000080; precision_ = value; onChanged(); return this; } /** * <code>optional int32 precision = 8;</code> * * <pre> * * For numeric data, this is the maximum precision. * For character data, this is the length in characters. * For datetime datatypes, this is the length in characters of the String representation * (assuming the maximum allowed precision of the fractional seconds component). * For binary data, this is the length in bytes. * For all other types 0 is returned where the column size is not applicable. * </pre> */ public Builder clearPrecision() { bitField0_ = (bitField0_ & ~0x00000080); precision_ = 0; onChanged(); return this; } // optional int32 scale = 9; private int scale_ ; /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public boolean hasScale() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public int getScale() { return scale_; } /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public Builder setScale(int value) { bitField0_ |= 0x00000100; scale_ = value; onChanged(); return this; } /** * <code>optional int32 scale = 9;</code> * * <pre> * * Column's number of digits to right of the decimal point. * 0 is returned for types where the scale is not applicable * </pre> */ public Builder clearScale() { bitField0_ = (bitField0_ & ~0x00000100); scale_ = 0; onChanged(); return this; } // optional bool signed = 10; private boolean signed_ ; /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public boolean hasSigned() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public boolean getSigned() { return signed_; } /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public Builder setSigned(boolean value) { bitField0_ |= 0x00000200; signed_ = value; onChanged(); return this; } /** * <code>optional bool signed = 10;</code> * * <pre> * * Indicates whether values in the designated column are signed numbers. * </pre> */ public Builder clearSigned() { bitField0_ = (bitField0_ & ~0x00000200); signed_ = false; onChanged(); return this; } // optional int32 display_size = 11; private int displaySize_ ; /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public boolean hasDisplaySize() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public int getDisplaySize() { return displaySize_; } /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public Builder setDisplaySize(int value) { bitField0_ |= 0x00000400; displaySize_ = value; onChanged(); return this; } /** * <code>optional int32 display_size = 11;</code> * * <pre> * * Maximum number of characters required to display data from the column. * </pre> */ public Builder clearDisplaySize() { bitField0_ = (bitField0_ & ~0x00000400); displaySize_ = 0; onChanged(); return this; } // optional bool is_aliased = 12; private boolean isAliased_ ; /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public boolean hasIsAliased() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public boolean getIsAliased() { return isAliased_; } /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public Builder setIsAliased(boolean value) { bitField0_ |= 0x00000800; isAliased_ = value; onChanged(); return this; } /** * <code>optional bool is_aliased = 12;</code> * * <pre> * * Is the column an aliased column. Initial implementation defaults to * true as we derive schema from LIMIT 0 query and not the query plan. * </pre> */ public Builder clearIsAliased() { bitField0_ = (bitField0_ & ~0x00000800); isAliased_ = false; onChanged(); return this; } // optional .exec.user.ColumnSearchability searchability = 13; private org.apache.drill.exec.proto.UserProtos.ColumnSearchability searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY; /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public boolean hasSearchability() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability() { return searchability_; } /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public Builder setSearchability(org.apache.drill.exec.proto.UserProtos.ColumnSearchability value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; searchability_ = value; onChanged(); return this; } /** * <code>optional .exec.user.ColumnSearchability searchability = 13;</code> */ public Builder clearSearchability() { bitField0_ = (bitField0_ & ~0x00001000); searchability_ = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY; onChanged(); return this; } // optional .exec.user.ColumnUpdatability updatability = 14; private org.apache.drill.exec.proto.UserProtos.ColumnUpdatability updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY; /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public boolean hasUpdatability() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability() { return updatability_; } /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public Builder setUpdatability(org.apache.drill.exec.proto.UserProtos.ColumnUpdatability value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; updatability_ = value; onChanged(); return this; } /** * <code>optional .exec.user.ColumnUpdatability updatability = 14;</code> * * <pre> * * Defaults to READ_ONLY * </pre> */ public Builder clearUpdatability() { bitField0_ = (bitField0_ & ~0x00002000); updatability_ = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY; onChanged(); return this; } // optional bool auto_increment = 15; private boolean autoIncrement_ ; /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public boolean hasAutoIncrement() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public boolean getAutoIncrement() { return autoIncrement_; } /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public Builder setAutoIncrement(boolean value) { bitField0_ |= 0x00004000; autoIncrement_ = value; onChanged(); return this; } /** * <code>optional bool auto_increment = 15;</code> * * <pre> * * whether the designated column is automatically incremented. * </pre> */ public Builder clearAutoIncrement() { bitField0_ = (bitField0_ & ~0x00004000); autoIncrement_ = false; onChanged(); return this; } // optional bool case_sensitivity = 16; private boolean caseSensitivity_ ; /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public boolean hasCaseSensitivity() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public boolean getCaseSensitivity() { return caseSensitivity_; } /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public Builder setCaseSensitivity(boolean value) { bitField0_ |= 0x00008000; caseSensitivity_ = value; onChanged(); return this; } /** * <code>optional bool case_sensitivity = 16;</code> * * <pre> * * Whether column's case matters for collations and comparisons. Defaults to true. * </pre> */ public Builder clearCaseSensitivity() { bitField0_ = (bitField0_ & ~0x00008000); caseSensitivity_ = false; onChanged(); return this; } // optional bool sortable = 17; private boolean sortable_ ; /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public boolean hasSortable() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public boolean getSortable() { return sortable_; } /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public Builder setSortable(boolean value) { bitField0_ |= 0x00010000; sortable_ = value; onChanged(); return this; } /** * <code>optional bool sortable = 17;</code> * * <pre> * * whether the column can be used in ORDER BY clause * </pre> */ public Builder clearSortable() { bitField0_ = (bitField0_ & ~0x00010000); sortable_ = false; onChanged(); return this; } // optional string class_name = 18; private java.lang.Object className_ = ""; /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public boolean hasClassName() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); className_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public com.google.protobuf.ByteString getClassNameBytes() { java.lang.Object ref = className_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); className_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; className_ = value; onChanged(); return this; } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public Builder clearClassName() { bitField0_ = (bitField0_ & ~0x00020000); className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /** * <code>optional string class_name = 18;</code> * * <pre> * * A fully-qualified name of the Java class whose instances are created * if the method ResultSet.getObject is called to retrieve * a value from the column. Applicable only to JDBC clients. * </pre> */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00020000; className_ = value; onChanged(); return this; } // optional bool is_currency = 20; private boolean isCurrency_ ; /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public boolean hasIsCurrency() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public boolean getIsCurrency() { return isCurrency_; } /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public Builder setIsCurrency(boolean value) { bitField0_ |= 0x00040000; isCurrency_ = value; onChanged(); return this; } /** * <code>optional bool is_currency = 20;</code> * * <pre> * * Is the data type a currency type? For JDBC only. * </pre> */ public Builder clearIsCurrency() { bitField0_ = (bitField0_ & ~0x00040000); isCurrency_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.ResultColumnMetadata) } static { defaultInstance = new ResultColumnMetadata(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.ResultColumnMetadata) } public interface PreparedStatementHandleOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bytes server_info = 1; /** * <code>optional bytes server_info = 1;</code> */ boolean hasServerInfo(); /** * <code>optional bytes server_info = 1;</code> */ com.google.protobuf.ByteString getServerInfo(); } /** * Protobuf type {@code exec.user.PreparedStatementHandle} * * <pre> * * Server state of prepared statement. Contents are opaque to * client. Client just need to submit this object in RunQuery to * the prepared statement. * </pre> */ public static final class PreparedStatementHandle extends com.google.protobuf.GeneratedMessage implements PreparedStatementHandleOrBuilder { // Use PreparedStatementHandle.newBuilder() to construct. private PreparedStatementHandle(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PreparedStatementHandle(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PreparedStatementHandle defaultInstance; public static PreparedStatementHandle getDefaultInstance() { return defaultInstance; } public PreparedStatementHandle getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreparedStatementHandle( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; serverInfo_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.class, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder.class); } public static com.google.protobuf.Parser<PreparedStatementHandle> PARSER = new com.google.protobuf.AbstractParser<PreparedStatementHandle>() { public PreparedStatementHandle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PreparedStatementHandle(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PreparedStatementHandle> getParserForType() { return PARSER; } private int bitField0_; // optional bytes server_info = 1; public static final int SERVER_INFO_FIELD_NUMBER = 1; private com.google.protobuf.ByteString serverInfo_; /** * <code>optional bytes server_info = 1;</code> */ public boolean hasServerInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes server_info = 1;</code> */ public com.google.protobuf.ByteString getServerInfo() { return serverInfo_; } private void initFields() { serverInfo_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, serverInfo_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, serverInfo_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.PreparedStatementHandle} * * <pre> * * Server state of prepared statement. Contents are opaque to * client. Client just need to submit this object in RunQuery to * the prepared statement. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.class, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); serverInfo_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor; } public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle build() { org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle buildPartial() { org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle result = new org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.serverInfo_ = serverInfo_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle other) { if (other == org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance()) return this; if (other.hasServerInfo()) { setServerInfo(other.getServerInfo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bytes server_info = 1; private com.google.protobuf.ByteString serverInfo_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes server_info = 1;</code> */ public boolean hasServerInfo() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bytes server_info = 1;</code> */ public com.google.protobuf.ByteString getServerInfo() { return serverInfo_; } /** * <code>optional bytes server_info = 1;</code> */ public Builder setServerInfo(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; serverInfo_ = value; onChanged(); return this; } /** * <code>optional bytes server_info = 1;</code> */ public Builder clearServerInfo() { bitField0_ = (bitField0_ & ~0x00000001); serverInfo_ = getDefaultInstance().getServerInfo(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.PreparedStatementHandle) } static { defaultInstance = new PreparedStatementHandle(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.PreparedStatementHandle) } public interface PreparedStatementOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .exec.user.ResultColumnMetadata columns = 1; /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> getColumnsList(); /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getColumns(int index); /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ int getColumnsCount(); /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> getColumnsOrBuilderList(); /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder getColumnsOrBuilder( int index); // optional .exec.user.PreparedStatementHandle server_handle = 2; /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ boolean hasServerHandle(); /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle(); /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder(); } /** * Protobuf type {@code exec.user.PreparedStatement} * * <pre> * * Prepared statement. It contains the query metadata and handle to prepared * statement state on server. * </pre> */ public static final class PreparedStatement extends com.google.protobuf.GeneratedMessage implements PreparedStatementOrBuilder { // Use PreparedStatement.newBuilder() to construct. private PreparedStatement(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private PreparedStatement(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final PreparedStatement defaultInstance; public static PreparedStatement getDefaultInstance() { return defaultInstance; } public PreparedStatement getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PreparedStatement( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata>(); mutable_bitField0_ |= 0x00000001; } columns_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.PARSER, extensionRegistry)); break; } case 18: { org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = serverHandle_.toBuilder(); } serverHandle_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverHandle_); serverHandle_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { columns_ = java.util.Collections.unmodifiableList(columns_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.PreparedStatement.class, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder.class); } public static com.google.protobuf.Parser<PreparedStatement> PARSER = new com.google.protobuf.AbstractParser<PreparedStatement>() { public PreparedStatement parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PreparedStatement(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<PreparedStatement> getParserForType() { return PARSER; } private int bitField0_; // repeated .exec.user.ResultColumnMetadata columns = 1; public static final int COLUMNS_FIELD_NUMBER = 1; private java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> columns_; /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> getColumnsList() { return columns_; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> getColumnsOrBuilderList() { return columns_; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public int getColumnsCount() { return columns_.size(); } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getColumns(int index) { return columns_.get(index); } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } // optional .exec.user.PreparedStatementHandle server_handle = 2; public static final int SERVER_HANDLE_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle serverHandle_; /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public boolean hasServerHandle() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle() { return serverHandle_; } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder() { return serverHandle_; } private void initFields() { columns_ = java.util.Collections.emptyList(); serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < columns_.size(); i++) { output.writeMessage(1, columns_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(2, serverHandle_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, columns_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, serverHandle_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.PreparedStatement parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.PreparedStatement prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.PreparedStatement} * * <pre> * * Prepared statement. It contains the query metadata and handle to prepared * statement state on server. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.PreparedStatement.class, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.PreparedStatement.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getColumnsFieldBuilder(); getServerHandleFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { columnsBuilder_.clear(); } if (serverHandleBuilder_ == null) { serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); } else { serverHandleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatement_descriptor; } public org.apache.drill.exec.proto.UserProtos.PreparedStatement getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.PreparedStatement build() { org.apache.drill.exec.proto.UserProtos.PreparedStatement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.PreparedStatement buildPartial() { org.apache.drill.exec.proto.UserProtos.PreparedStatement result = new org.apache.drill.exec.proto.UserProtos.PreparedStatement(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000001); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } if (serverHandleBuilder_ == null) { result.serverHandle_ = serverHandle_; } else { result.serverHandle_ = serverHandleBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatement) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.PreparedStatement)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.PreparedStatement other) { if (other == org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance()) return this; if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); columnsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (other.hasServerHandle()) { mergeServerHandle(other.getServerHandle()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.PreparedStatement parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.PreparedStatement) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .exec.user.ResultColumnMetadata columns = 1; private java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { columns_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata>(columns_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> columnsBuilder_; /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder setColumns( int index, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); } else { columnsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder setColumns( int index, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder addColumns(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder addColumns( int index, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(index, value); onChanged(); } else { columnsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder addColumns( org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder addColumns( int index, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder addAllColumns( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata> values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); super.addAll(values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance()); } /** * <code>repeated .exec.user.ResultColumnMetadata columns = 1;</code> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder> getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder>( columns_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } // optional .exec.user.PreparedStatementHandle server_handle = 2; private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> serverHandleBuilder_; /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public boolean hasServerHandle() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getServerHandle() { if (serverHandleBuilder_ == null) { return serverHandle_; } else { return serverHandleBuilder_.getMessage(); } } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public Builder setServerHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) { if (serverHandleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverHandle_ = value; onChanged(); } else { serverHandleBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public Builder setServerHandle( org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder builderForValue) { if (serverHandleBuilder_ == null) { serverHandle_ = builderForValue.build(); onChanged(); } else { serverHandleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public Builder mergeServerHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) { if (serverHandleBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && serverHandle_ != org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance()) { serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.newBuilder(serverHandle_).mergeFrom(value).buildPartial(); } else { serverHandle_ = value; } onChanged(); } else { serverHandleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public Builder clearServerHandle() { if (serverHandleBuilder_ == null) { serverHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); onChanged(); } else { serverHandleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder getServerHandleBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServerHandleFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getServerHandleOrBuilder() { if (serverHandleBuilder_ != null) { return serverHandleBuilder_.getMessageOrBuilder(); } else { return serverHandle_; } } /** * <code>optional .exec.user.PreparedStatementHandle server_handle = 2;</code> * * <pre> * * In order to execute the prepared statement, * clients need to submit this object in RunQuery message. * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> getServerHandleFieldBuilder() { if (serverHandleBuilder_ == null) { serverHandleBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>( serverHandle_, getParentForChildren(), isClean()); serverHandle_ = null; } return serverHandleBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.PreparedStatement) } static { defaultInstance = new PreparedStatement(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.PreparedStatement) } public interface CreatePreparedStatementRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // optional .exec.user.PreparedStatement prepared_statement = 2; /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ boolean hasPreparedStatement(); /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ org.apache.drill.exec.proto.UserProtos.PreparedStatement getPreparedStatement(); /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder getPreparedStatementOrBuilder(); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.CreatePreparedStatementResp} * * <pre> * * Response message for CreatePreparedStatementReq. * </pre> */ public static final class CreatePreparedStatementResp extends com.google.protobuf.GeneratedMessage implements CreatePreparedStatementRespOrBuilder { // Use CreatePreparedStatementResp.newBuilder() to construct. private CreatePreparedStatementResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private CreatePreparedStatementResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final CreatePreparedStatementResp defaultInstance; public static CreatePreparedStatementResp getDefaultInstance() { return defaultInstance; } public CreatePreparedStatementResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CreatePreparedStatementResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = preparedStatement_.toBuilder(); } preparedStatement_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.PreparedStatement.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preparedStatement_); preparedStatement_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.Builder.class); } public static com.google.protobuf.Parser<CreatePreparedStatementResp> PARSER = new com.google.protobuf.AbstractParser<CreatePreparedStatementResp>() { public CreatePreparedStatementResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreatePreparedStatementResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<CreatePreparedStatementResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // optional .exec.user.PreparedStatement prepared_statement = 2; public static final int PREPARED_STATEMENT_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.PreparedStatement preparedStatement_; /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public boolean hasPreparedStatement() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatement getPreparedStatement() { return preparedStatement_; } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder getPreparedStatementOrBuilder() { return preparedStatement_; } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } 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_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.CreatePreparedStatementResp} * * <pre> * * Response message for CreatePreparedStatementReq. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.class, org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getPreparedStatementFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (preparedStatementBuilder_ == null) { preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); } else { preparedStatementBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp build() { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp buildPartial() { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp result = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (preparedStatementBuilder_ == null) { result.preparedStatement_ = preparedStatement_; } else { result.preparedStatement_ = preparedStatementBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp other) { if (other == org.apache.drill.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()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // optional .exec.user.PreparedStatement prepared_statement = 2; private org.apache.drill.exec.proto.UserProtos.PreparedStatement preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder> preparedStatementBuilder_; /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public boolean hasPreparedStatement() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatement getPreparedStatement() { if (preparedStatementBuilder_ == null) { return preparedStatement_; } else { return preparedStatementBuilder_.getMessage(); } } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public Builder setPreparedStatement(org.apache.drill.exec.proto.UserProtos.PreparedStatement value) { if (preparedStatementBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preparedStatement_ = value; onChanged(); } else { preparedStatementBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public Builder setPreparedStatement( org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder builderForValue) { if (preparedStatementBuilder_ == null) { preparedStatement_ = builderForValue.build(); onChanged(); } else { preparedStatementBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public Builder mergePreparedStatement(org.apache.drill.exec.proto.UserProtos.PreparedStatement value) { if (preparedStatementBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && preparedStatement_ != org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance()) { preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.newBuilder(preparedStatement_).mergeFrom(value).buildPartial(); } else { preparedStatement_ = value; } onChanged(); } else { preparedStatementBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public Builder clearPreparedStatement() { if (preparedStatementBuilder_ == null) { preparedStatement_ = org.apache.drill.exec.proto.UserProtos.PreparedStatement.getDefaultInstance(); onChanged(); } else { preparedStatementBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder getPreparedStatementBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPreparedStatementFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder getPreparedStatementOrBuilder() { if (preparedStatementBuilder_ != null) { return preparedStatementBuilder_.getMessageOrBuilder(); } else { return preparedStatement_; } } /** * <code>optional .exec.user.PreparedStatement prepared_statement = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder> getPreparedStatementFieldBuilder() { if (preparedStatementBuilder_ == null) { preparedStatementBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatement, org.apache.drill.exec.proto.UserProtos.PreparedStatement.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementOrBuilder>( preparedStatement_, getParentForChildren(), isClean()); preparedStatement_ = null; } return preparedStatementBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.CreatePreparedStatementResp) } static { defaultInstance = new CreatePreparedStatementResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementResp) } public interface GetServerMetaReqOrBuilder extends com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code exec.user.GetServerMetaReq} * * <pre> * * Request message for getting server metadata * </pre> */ public static final class GetServerMetaReq extends com.google.protobuf.GeneratedMessage implements GetServerMetaReqOrBuilder { // Use GetServerMetaReq.newBuilder() to construct. private GetServerMetaReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetServerMetaReq(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetServerMetaReq defaultInstance; public static GetServerMetaReq getDefaultInstance() { return defaultInstance; } public GetServerMetaReq getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetServerMetaReq( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.Builder.class); } public static com.google.protobuf.Parser<GetServerMetaReq> PARSER = new com.google.protobuf.AbstractParser<GetServerMetaReq>() { public GetServerMetaReq parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetServerMetaReq(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetServerMetaReq> getParserForType() { return PARSER; } private void initFields() { } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetServerMetaReq prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetServerMetaReq} * * <pre> * * Request message for getting server metadata * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetServerMetaReqOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaReq_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq build() { org.apache.drill.exec.proto.UserProtos.GetServerMetaReq result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetServerMetaReq buildPartial() { org.apache.drill.exec.proto.UserProtos.GetServerMetaReq result = new org.apache.drill.exec.proto.UserProtos.GetServerMetaReq(this); onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaReq) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetServerMetaReq)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetServerMetaReq other) { if (other == org.apache.drill.exec.proto.UserProtos.GetServerMetaReq.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetServerMetaReq parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetServerMetaReq) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } // @@protoc_insertion_point(builder_scope:exec.user.GetServerMetaReq) } static { defaultInstance = new GetServerMetaReq(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaReq) } public interface ConvertSupportOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .common.MinorType from = 1; /** * <code>required .common.MinorType from = 1;</code> */ boolean hasFrom(); /** * <code>required .common.MinorType from = 1;</code> */ org.apache.drill.common.types.TypeProtos.MinorType getFrom(); // required .common.MinorType to = 2; /** * <code>required .common.MinorType to = 2;</code> */ boolean hasTo(); /** * <code>required .common.MinorType to = 2;</code> */ org.apache.drill.common.types.TypeProtos.MinorType getTo(); } /** * Protobuf type {@code exec.user.ConvertSupport} */ public static final class ConvertSupport extends com.google.protobuf.GeneratedMessage implements ConvertSupportOrBuilder { // Use ConvertSupport.newBuilder() to construct. private ConvertSupport(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ConvertSupport(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ConvertSupport defaultInstance; public static ConvertSupport getDefaultInstance() { return defaultInstance; } public ConvertSupport getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConvertSupport( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; from_ = value; } break; } case 16: { int rawValue = input.readEnum(); org.apache.drill.common.types.TypeProtos.MinorType value = org.apache.drill.common.types.TypeProtos.MinorType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; to_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ConvertSupport.class, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder.class); } public static com.google.protobuf.Parser<ConvertSupport> PARSER = new com.google.protobuf.AbstractParser<ConvertSupport>() { public ConvertSupport parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConvertSupport(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ConvertSupport> getParserForType() { return PARSER; } private int bitField0_; // required .common.MinorType from = 1; public static final int FROM_FIELD_NUMBER = 1; private org.apache.drill.common.types.TypeProtos.MinorType from_; /** * <code>required .common.MinorType from = 1;</code> */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .common.MinorType from = 1;</code> */ public org.apache.drill.common.types.TypeProtos.MinorType getFrom() { return from_; } // required .common.MinorType to = 2; public static final int TO_FIELD_NUMBER = 2; private org.apache.drill.common.types.TypeProtos.MinorType to_; /** * <code>required .common.MinorType to = 2;</code> */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .common.MinorType to = 2;</code> */ public org.apache.drill.common.types.TypeProtos.MinorType getTo() { return to_; } private void initFields() { from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasFrom()) { memoizedIsInitialized = 0; return false; } if (!hasTo()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, from_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, to_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, from_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, to_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ConvertSupport parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ConvertSupport prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.ConvertSupport} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ConvertSupport.class, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.ConvertSupport.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; bitField0_ = (bitField0_ & ~0x00000001); to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ConvertSupport_descriptor; } public org.apache.drill.exec.proto.UserProtos.ConvertSupport getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.ConvertSupport build() { org.apache.drill.exec.proto.UserProtos.ConvertSupport result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.ConvertSupport buildPartial() { org.apache.drill.exec.proto.UserProtos.ConvertSupport result = new org.apache.drill.exec.proto.UserProtos.ConvertSupport(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.from_ = from_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.to_ = to_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.ConvertSupport) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.ConvertSupport)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ConvertSupport other) { if (other == org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance()) return this; if (other.hasFrom()) { setFrom(other.getFrom()); } if (other.hasTo()) { setTo(other.getTo()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasFrom()) { return false; } if (!hasTo()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.ConvertSupport parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.ConvertSupport) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required .common.MinorType from = 1; private org.apache.drill.common.types.TypeProtos.MinorType from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; /** * <code>required .common.MinorType from = 1;</code> */ public boolean hasFrom() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required .common.MinorType from = 1;</code> */ public org.apache.drill.common.types.TypeProtos.MinorType getFrom() { return from_; } /** * <code>required .common.MinorType from = 1;</code> */ public Builder setFrom(org.apache.drill.common.types.TypeProtos.MinorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; from_ = value; onChanged(); return this; } /** * <code>required .common.MinorType from = 1;</code> */ public Builder clearFrom() { bitField0_ = (bitField0_ & ~0x00000001); from_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; onChanged(); return this; } // required .common.MinorType to = 2; private org.apache.drill.common.types.TypeProtos.MinorType to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; /** * <code>required .common.MinorType to = 2;</code> */ public boolean hasTo() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required .common.MinorType to = 2;</code> */ public org.apache.drill.common.types.TypeProtos.MinorType getTo() { return to_; } /** * <code>required .common.MinorType to = 2;</code> */ public Builder setTo(org.apache.drill.common.types.TypeProtos.MinorType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; to_ = value; onChanged(); return this; } /** * <code>required .common.MinorType to = 2;</code> */ public Builder clearTo() { bitField0_ = (bitField0_ & ~0x00000002); to_ = org.apache.drill.common.types.TypeProtos.MinorType.LATE; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.ConvertSupport) } static { defaultInstance = new ConvertSupport(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.ConvertSupport) } public interface GetServerMetaRespOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.RequestStatus status = 1; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ boolean hasStatus(); /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus(); // optional .exec.user.ServerMeta server_meta = 2; /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ boolean hasServerMeta(); /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ org.apache.drill.exec.proto.UserProtos.ServerMeta getServerMeta(); /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder getServerMetaOrBuilder(); // optional .exec.shared.DrillPBError error = 3; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ boolean hasError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBError getError(); /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder(); } /** * Protobuf type {@code exec.user.GetServerMetaResp} * * <pre> * * Response message for GetServerMetaReq * </pre> */ public static final class GetServerMetaResp extends com.google.protobuf.GeneratedMessage implements GetServerMetaRespOrBuilder { // Use GetServerMetaResp.newBuilder() to construct. private GetServerMetaResp(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private GetServerMetaResp(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final GetServerMetaResp defaultInstance; public static GetServerMetaResp getDefaultInstance() { return defaultInstance; } public GetServerMetaResp getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GetServerMetaResp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.RequestStatus value = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 18: { org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = serverMeta_.toBuilder(); } serverMeta_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.ServerMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(serverMeta_); serverMeta_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder subBuilder = null; if (((bitField0_ & 0x00000004) == 0x00000004)) { subBuilder = error_.toBuilder(); } error_ = input.readMessage(org.apache.drill.exec.proto.UserBitShared.DrillPBError.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(error_); error_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.Builder.class); } public static com.google.protobuf.Parser<GetServerMetaResp> PARSER = new com.google.protobuf.AbstractParser<GetServerMetaResp>() { public GetServerMetaResp parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GetServerMetaResp(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<GetServerMetaResp> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; public static final int STATUS_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } // optional .exec.user.ServerMeta server_meta = 2; public static final int SERVER_META_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserProtos.ServerMeta serverMeta_; /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public boolean hasServerMeta() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ServerMeta getServerMeta() { return serverMeta_; } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder getServerMetaOrBuilder() { return serverMeta_; } // optional .exec.shared.DrillPBError error = 3; public static final int ERROR_FIELD_NUMBER = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { return error_; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { return error_; } private void initFields() { status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasServerMeta()) { if (!getServerMeta().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } 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, serverMeta_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeMessage(3, error_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; 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, serverMeta_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, error_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetServerMetaResp prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.GetServerMetaResp} * * <pre> * * Response message for GetServerMetaReq * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.GetServerMetaRespOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.class, org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getServerMetaFieldBuilder(); getErrorFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; bitField0_ = (bitField0_ & ~0x00000001); if (serverMetaBuilder_ == null) { serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); } else { serverMetaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetServerMetaResp_descriptor; } public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp build() { org.apache.drill.exec.proto.UserProtos.GetServerMetaResp result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.GetServerMetaResp buildPartial() { org.apache.drill.exec.proto.UserProtos.GetServerMetaResp result = new org.apache.drill.exec.proto.UserProtos.GetServerMetaResp(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (serverMetaBuilder_ == null) { result.serverMeta_ = serverMeta_; } else { result.serverMeta_ = serverMetaBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } if (errorBuilder_ == null) { result.error_ = error_; } else { result.error_ = errorBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.GetServerMetaResp) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.GetServerMetaResp)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.GetServerMetaResp other) { if (other == org.apache.drill.exec.proto.UserProtos.GetServerMetaResp.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasServerMeta()) { mergeServerMeta(other.getServerMeta()); } if (other.hasError()) { mergeError(other.getError()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasServerMeta()) { if (!getServerMeta().isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.GetServerMetaResp parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.GetServerMetaResp) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.RequestStatus status = 1; private org.apache.drill.exec.proto.UserProtos.RequestStatus status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() { return status_; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } /** * <code>optional .exec.user.RequestStatus status = 1;</code> */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS; onChanged(); return this; } // optional .exec.user.ServerMeta server_meta = 2; private org.apache.drill.exec.proto.UserProtos.ServerMeta serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder> serverMetaBuilder_; /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public boolean hasServerMeta() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ServerMeta getServerMeta() { if (serverMetaBuilder_ == null) { return serverMeta_; } else { return serverMetaBuilder_.getMessage(); } } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public Builder setServerMeta(org.apache.drill.exec.proto.UserProtos.ServerMeta value) { if (serverMetaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverMeta_ = value; onChanged(); } else { serverMetaBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public Builder setServerMeta( org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder builderForValue) { if (serverMetaBuilder_ == null) { serverMeta_ = builderForValue.build(); onChanged(); } else { serverMetaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public Builder mergeServerMeta(org.apache.drill.exec.proto.UserProtos.ServerMeta value) { if (serverMetaBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && serverMeta_ != org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance()) { serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.newBuilder(serverMeta_).mergeFrom(value).buildPartial(); } else { serverMeta_ = value; } onChanged(); } else { serverMetaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public Builder clearServerMeta() { if (serverMetaBuilder_ == null) { serverMeta_ = org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); onChanged(); } else { serverMetaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder getServerMetaBuilder() { bitField0_ |= 0x00000002; onChanged(); return getServerMetaFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ public org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder getServerMetaOrBuilder() { if (serverMetaBuilder_ != null) { return serverMetaBuilder_.getMessageOrBuilder(); } else { return serverMeta_; } } /** * <code>optional .exec.user.ServerMeta server_meta = 2;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder> getServerMetaFieldBuilder() { if (serverMetaBuilder_ == null) { serverMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.ServerMeta, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder, org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder>( serverMeta_, getParentForChildren(), isClean()); serverMeta_ = null; } return serverMetaBuilder_; } // optional .exec.shared.DrillPBError error = 3; private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_; /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public boolean hasError() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() { if (errorBuilder_ == null) { return error_; } else { return errorBuilder_.getMessage(); } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } error_ = value; onChanged(); } else { errorBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder setError( org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); } else { errorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) { if (errorBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && error_ != org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance()) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.newBuilder(error_).mergeFrom(value).buildPartial(); } else { error_ = value; } onChanged(); } else { errorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public Builder clearError() { if (errorBuilder_ == null) { error_ = org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance(); onChanged(); } else { errorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() { bitField0_ |= 0x00000004; onChanged(); return getErrorFieldBuilder().getBuilder(); } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { return error_; } } /** * <code>optional .exec.shared.DrillPBError error = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { errorBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>( error_, getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.GetServerMetaResp) } static { defaultInstance = new GetServerMetaResp(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.GetServerMetaResp) } public interface ServerMetaOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional bool all_tables_selectable = 1; /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ boolean hasAllTablesSelectable(); /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ boolean getAllTablesSelectable(); // optional bool blob_included_in_max_row_size = 2; /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ boolean hasBlobIncludedInMaxRowSize(); /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ boolean getBlobIncludedInMaxRowSize(); // optional bool catalog_at_start = 3; /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ boolean hasCatalogAtStart(); /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ boolean getCatalogAtStart(); // optional string catalog_separator = 4; /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ boolean hasCatalogSeparator(); /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ java.lang.String getCatalogSeparator(); /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ com.google.protobuf.ByteString getCatalogSeparatorBytes(); // optional string catalog_term = 5; /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ boolean hasCatalogTerm(); /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ java.lang.String getCatalogTerm(); /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ com.google.protobuf.ByteString getCatalogTermBytes(); // repeated .exec.user.CollateSupport collate_support = 6; /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList(); /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ int getCollateSupportCount(); /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index); // optional bool column_aliasing_supported = 7; /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ boolean hasColumnAliasingSupported(); /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ boolean getColumnAliasingSupported(); // repeated .exec.user.ConvertSupport convert_support = 8; /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> getConvertSupportList(); /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index); /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ int getConvertSupportCount(); /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> getConvertSupportOrBuilderList(); /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder( int index); // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9; /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ boolean hasCorrelationNamesSupport(); /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport(); // repeated string date_time_functions = 10; /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ java.util.List<java.lang.String> getDateTimeFunctionsList(); /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ int getDateTimeFunctionsCount(); /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ java.lang.String getDateTimeFunctions(int index); /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ com.google.protobuf.ByteString getDateTimeFunctionsBytes(int index); // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11; /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList(); /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ int getDateTimeLiteralsSupportCount(); /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index); // optional .exec.user.GroupBySupport group_by_support = 12; /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ boolean hasGroupBySupport(); /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport(); // optional .exec.user.IdentifierCasing identifier_casing = 13; /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ boolean hasIdentifierCasing(); /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing(); // optional string identifier_quote_string = 14; /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ boolean hasIdentifierQuoteString(); /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ java.lang.String getIdentifierQuoteString(); /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ com.google.protobuf.ByteString getIdentifierQuoteStringBytes(); // optional bool like_escape_clause_supported = 15; /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ boolean hasLikeEscapeClauseSupported(); /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ boolean getLikeEscapeClauseSupported(); // optional uint32 max_binary_literal_length = 16; /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ boolean hasMaxBinaryLiteralLength(); /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ int getMaxBinaryLiteralLength(); // optional uint32 max_catalog_name_length = 17; /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ boolean hasMaxCatalogNameLength(); /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ int getMaxCatalogNameLength(); // optional uint32 max_char_literal_length = 18; /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ boolean hasMaxCharLiteralLength(); /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ int getMaxCharLiteralLength(); // optional uint32 max_column_name_length = 19; /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ boolean hasMaxColumnNameLength(); /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ int getMaxColumnNameLength(); // optional uint32 max_columns_in_group_by = 20; /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ boolean hasMaxColumnsInGroupBy(); /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ int getMaxColumnsInGroupBy(); // optional uint32 max_columns_in_order_by = 21; /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ boolean hasMaxColumnsInOrderBy(); /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ int getMaxColumnsInOrderBy(); // optional uint32 max_columns_in_select = 22; /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ boolean hasMaxColumnsInSelect(); /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ int getMaxColumnsInSelect(); // optional uint32 max_cursor_name_length = 23; /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ boolean hasMaxCursorNameLength(); /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ int getMaxCursorNameLength(); // optional uint32 max_logical_lob_size = 24; /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ boolean hasMaxLogicalLobSize(); /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ int getMaxLogicalLobSize(); // optional uint32 max_row_size = 25; /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ boolean hasMaxRowSize(); /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ int getMaxRowSize(); // optional uint32 max_schema_name_length = 26; /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ boolean hasMaxSchemaNameLength(); /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ int getMaxSchemaNameLength(); // optional uint32 max_statement_length = 27; /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ boolean hasMaxStatementLength(); /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ int getMaxStatementLength(); // optional uint32 max_statements = 28; /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ boolean hasMaxStatements(); /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ int getMaxStatements(); // optional uint32 max_table_name_length = 29; /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ boolean hasMaxTableNameLength(); /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ int getMaxTableNameLength(); // optional uint32 max_tables_in_select = 30; /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ boolean hasMaxTablesInSelect(); /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ int getMaxTablesInSelect(); // optional uint32 max_user_name_length = 31; /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ boolean hasMaxUserNameLength(); /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ int getMaxUserNameLength(); // optional .exec.user.NullCollation null_collation = 32; /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ boolean hasNullCollation(); /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation(); // optional bool null_plus_non_null_equals_null = 33; /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ boolean hasNullPlusNonNullEqualsNull(); /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ boolean getNullPlusNonNullEqualsNull(); // repeated string numeric_functions = 34; /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ java.util.List<java.lang.String> getNumericFunctionsList(); /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ int getNumericFunctionsCount(); /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ java.lang.String getNumericFunctions(int index); /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ com.google.protobuf.ByteString getNumericFunctionsBytes(int index); // repeated .exec.user.OrderBySupport order_by_support = 35; /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList(); /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ int getOrderBySupportCount(); /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index); // repeated .exec.user.OuterJoinSupport outer_join_support = 36; /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList(); /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ int getOuterJoinSupportCount(); /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index); // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37; /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ boolean hasQuotedIdentifierCasing(); /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing(); // optional bool read_only = 38; /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ boolean hasReadOnly(); /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ boolean getReadOnly(); // optional string schema_term = 39; /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ boolean hasSchemaTerm(); /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ java.lang.String getSchemaTerm(); /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ com.google.protobuf.ByteString getSchemaTermBytes(); // optional string search_escape_string = 40; /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ boolean hasSearchEscapeString(); /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ java.lang.String getSearchEscapeString(); /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ com.google.protobuf.ByteString getSearchEscapeStringBytes(); // optional bool select_for_update_supported = 41; /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ boolean hasSelectForUpdateSupported(); /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ boolean getSelectForUpdateSupported(); // optional string special_characters = 42; /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ boolean hasSpecialCharacters(); /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ java.lang.String getSpecialCharacters(); /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ com.google.protobuf.ByteString getSpecialCharactersBytes(); // repeated string sql_keywords = 43; /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ java.util.List<java.lang.String> getSqlKeywordsList(); /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ int getSqlKeywordsCount(); /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ java.lang.String getSqlKeywords(int index); /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ com.google.protobuf.ByteString getSqlKeywordsBytes(int index); // repeated string string_functions = 44; /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ java.util.List<java.lang.String> getStringFunctionsList(); /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ int getStringFunctionsCount(); /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ java.lang.String getStringFunctions(int index); /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ com.google.protobuf.ByteString getStringFunctionsBytes(int index); // repeated .exec.user.SubQuerySupport subquery_support = 45; /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList(); /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ int getSubquerySupportCount(); /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index); // repeated string system_functions = 46; /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ java.util.List<java.lang.String> getSystemFunctionsList(); /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ int getSystemFunctionsCount(); /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ java.lang.String getSystemFunctions(int index); /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ com.google.protobuf.ByteString getSystemFunctionsBytes(int index); // optional string table_term = 47; /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ boolean hasTableTerm(); /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ java.lang.String getTableTerm(); /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ com.google.protobuf.ByteString getTableTermBytes(); // optional bool transaction_supported = 48; /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ boolean hasTransactionSupported(); /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ boolean getTransactionSupported(); // repeated .exec.user.UnionSupport union_support = 49; /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList(); /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ int getUnionSupportCount(); /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index); } /** * Protobuf type {@code exec.user.ServerMeta} */ public static final class ServerMeta extends com.google.protobuf.GeneratedMessage implements ServerMetaOrBuilder { // Use ServerMeta.newBuilder() to construct. private ServerMeta(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ServerMeta(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ServerMeta defaultInstance; public static ServerMeta getDefaultInstance() { return defaultInstance; } public ServerMeta getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServerMeta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; allTablesSelectable_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; blobIncludedInMaxRowSize_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000004; catalogAtStart_ = input.readBool(); break; } case 34: { bitField0_ |= 0x00000008; catalogSeparator_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; catalogTerm_ = input.readBytes(); break; } case 48: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.CollateSupport value = org.apache.drill.exec.proto.UserProtos.CollateSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>(); mutable_bitField0_ |= 0x00000020; } collateSupport_.add(value); } break; } case 50: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.CollateSupport value = org.apache.drill.exec.proto.UserProtos.CollateSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(6, rawValue); } else { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>(); mutable_bitField0_ |= 0x00000020; } collateSupport_.add(value); } } input.popLimit(oldLimit); break; } case 56: { bitField0_ |= 0x00000020; columnAliasingSupported_ = input.readBool(); break; } case 66: { if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { convertSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ConvertSupport>(); mutable_bitField0_ |= 0x00000080; } convertSupport_.add(input.readMessage(org.apache.drill.exec.proto.UserProtos.ConvertSupport.PARSER, extensionRegistry)); break; } case 72: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport value = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000040; correlationNamesSupport_ = value; } break; } case 82: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { dateTimeFunctions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000200; } dateTimeFunctions_.add(input.readBytes()); break; } case 88: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value = org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(11, rawValue); } else { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(); mutable_bitField0_ |= 0x00000400; } dateTimeLiteralsSupport_.add(value); } break; } case 90: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value = org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(11, rawValue); } else { if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(); mutable_bitField0_ |= 0x00000400; } dateTimeLiteralsSupport_.add(value); } } input.popLimit(oldLimit); break; } case 96: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.GroupBySupport value = org.apache.drill.exec.proto.UserProtos.GroupBySupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(12, rawValue); } else { bitField0_ |= 0x00000080; groupBySupport_ = value; } break; } case 104: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.IdentifierCasing value = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(13, rawValue); } else { bitField0_ |= 0x00000100; identifierCasing_ = value; } break; } case 114: { bitField0_ |= 0x00000200; identifierQuoteString_ = input.readBytes(); break; } case 120: { bitField0_ |= 0x00000400; likeEscapeClauseSupported_ = input.readBool(); break; } case 128: { bitField0_ |= 0x00000800; maxBinaryLiteralLength_ = input.readUInt32(); break; } case 136: { bitField0_ |= 0x00001000; maxCatalogNameLength_ = input.readUInt32(); break; } case 144: { bitField0_ |= 0x00002000; maxCharLiteralLength_ = input.readUInt32(); break; } case 152: { bitField0_ |= 0x00004000; maxColumnNameLength_ = input.readUInt32(); break; } case 160: { bitField0_ |= 0x00008000; maxColumnsInGroupBy_ = input.readUInt32(); break; } case 168: { bitField0_ |= 0x00010000; maxColumnsInOrderBy_ = input.readUInt32(); break; } case 176: { bitField0_ |= 0x00020000; maxColumnsInSelect_ = input.readUInt32(); break; } case 184: { bitField0_ |= 0x00040000; maxCursorNameLength_ = input.readUInt32(); break; } case 192: { bitField0_ |= 0x00080000; maxLogicalLobSize_ = input.readUInt32(); break; } case 200: { bitField0_ |= 0x00100000; maxRowSize_ = input.readUInt32(); break; } case 208: { bitField0_ |= 0x00200000; maxSchemaNameLength_ = input.readUInt32(); break; } case 216: { bitField0_ |= 0x00400000; maxStatementLength_ = input.readUInt32(); break; } case 224: { bitField0_ |= 0x00800000; maxStatements_ = input.readUInt32(); break; } case 232: { bitField0_ |= 0x01000000; maxTableNameLength_ = input.readUInt32(); break; } case 240: { bitField0_ |= 0x02000000; maxTablesInSelect_ = input.readUInt32(); break; } case 248: { bitField0_ |= 0x04000000; maxUserNameLength_ = input.readUInt32(); break; } case 256: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.NullCollation value = org.apache.drill.exec.proto.UserProtos.NullCollation.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(32, rawValue); } else { bitField0_ |= 0x08000000; nullCollation_ = value; } break; } case 264: { bitField0_ |= 0x10000000; nullPlusNonNullEqualsNull_ = input.readBool(); break; } case 274: { if (!((mutable_bitField1_ & 0x00000002) == 0x00000002)) { numericFunctions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00000002; } numericFunctions_.add(input.readBytes()); break; } case 280: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.OrderBySupport value = org.apache.drill.exec.proto.UserProtos.OrderBySupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(35, rawValue); } else { if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) { orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>(); mutable_bitField1_ |= 0x00000004; } orderBySupport_.add(value); } break; } case 282: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.OrderBySupport value = org.apache.drill.exec.proto.UserProtos.OrderBySupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(35, rawValue); } else { if (!((mutable_bitField1_ & 0x00000004) == 0x00000004)) { orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>(); mutable_bitField1_ |= 0x00000004; } orderBySupport_.add(value); } } input.popLimit(oldLimit); break; } case 288: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value = org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(36, rawValue); } else { if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) { outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(); mutable_bitField1_ |= 0x00000008; } outerJoinSupport_.add(value); } break; } case 290: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value = org.apache.drill.exec.proto.UserProtos.OuterJoinSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(36, rawValue); } else { if (!((mutable_bitField1_ & 0x00000008) == 0x00000008)) { outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(); mutable_bitField1_ |= 0x00000008; } outerJoinSupport_.add(value); } } input.popLimit(oldLimit); break; } case 296: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.IdentifierCasing value = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(37, rawValue); } else { bitField0_ |= 0x20000000; quotedIdentifierCasing_ = value; } break; } case 304: { bitField0_ |= 0x40000000; readOnly_ = input.readBool(); break; } case 314: { bitField0_ |= 0x80000000; schemaTerm_ = input.readBytes(); break; } case 322: { bitField1_ |= 0x00000001; searchEscapeString_ = input.readBytes(); break; } case 328: { bitField1_ |= 0x00000002; selectForUpdateSupported_ = input.readBool(); break; } case 338: { bitField1_ |= 0x00000004; specialCharacters_ = input.readBytes(); break; } case 346: { if (!((mutable_bitField1_ & 0x00000400) == 0x00000400)) { sqlKeywords_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00000400; } sqlKeywords_.add(input.readBytes()); break; } case 354: { if (!((mutable_bitField1_ & 0x00000800) == 0x00000800)) { stringFunctions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00000800; } stringFunctions_.add(input.readBytes()); break; } case 360: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.SubQuerySupport value = org.apache.drill.exec.proto.UserProtos.SubQuerySupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(45, rawValue); } else { if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) { subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(); mutable_bitField1_ |= 0x00001000; } subquerySupport_.add(value); } break; } case 362: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.SubQuerySupport value = org.apache.drill.exec.proto.UserProtos.SubQuerySupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(45, rawValue); } else { if (!((mutable_bitField1_ & 0x00001000) == 0x00001000)) { subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(); mutable_bitField1_ |= 0x00001000; } subquerySupport_.add(value); } } input.popLimit(oldLimit); break; } case 370: { if (!((mutable_bitField1_ & 0x00002000) == 0x00002000)) { systemFunctions_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField1_ |= 0x00002000; } systemFunctions_.add(input.readBytes()); break; } case 378: { bitField1_ |= 0x00000008; tableTerm_ = input.readBytes(); break; } case 384: { bitField1_ |= 0x00000010; transactionSupported_ = input.readBool(); break; } case 392: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.UnionSupport value = org.apache.drill.exec.proto.UserProtos.UnionSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(49, rawValue); } else { if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) { unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>(); mutable_bitField1_ |= 0x00010000; } unionSupport_.add(value); } break; } case 394: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.UnionSupport value = org.apache.drill.exec.proto.UserProtos.UnionSupport.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(49, rawValue); } else { if (!((mutable_bitField1_ & 0x00010000) == 0x00010000)) { unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>(); mutable_bitField1_ |= 0x00010000; } unionSupport_.add(value); } } input.popLimit(oldLimit); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { collateSupport_ = java.util.Collections.unmodifiableList(collateSupport_); } if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { convertSupport_ = java.util.Collections.unmodifiableList(convertSupport_); } if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { dateTimeFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(dateTimeFunctions_); } if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { dateTimeLiteralsSupport_ = java.util.Collections.unmodifiableList(dateTimeLiteralsSupport_); } if (((mutable_bitField1_ & 0x00000002) == 0x00000002)) { numericFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(numericFunctions_); } if (((mutable_bitField1_ & 0x00000004) == 0x00000004)) { orderBySupport_ = java.util.Collections.unmodifiableList(orderBySupport_); } if (((mutable_bitField1_ & 0x00000008) == 0x00000008)) { outerJoinSupport_ = java.util.Collections.unmodifiableList(outerJoinSupport_); } if (((mutable_bitField1_ & 0x00000400) == 0x00000400)) { sqlKeywords_ = new com.google.protobuf.UnmodifiableLazyStringList(sqlKeywords_); } if (((mutable_bitField1_ & 0x00000800) == 0x00000800)) { stringFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(stringFunctions_); } if (((mutable_bitField1_ & 0x00001000) == 0x00001000)) { subquerySupport_ = java.util.Collections.unmodifiableList(subquerySupport_); } if (((mutable_bitField1_ & 0x00002000) == 0x00002000)) { systemFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList(systemFunctions_); } if (((mutable_bitField1_ & 0x00010000) == 0x00010000)) { unionSupport_ = java.util.Collections.unmodifiableList(unionSupport_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ServerMeta.class, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder.class); } public static com.google.protobuf.Parser<ServerMeta> PARSER = new com.google.protobuf.AbstractParser<ServerMeta>() { public ServerMeta parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServerMeta(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ServerMeta> getParserForType() { return PARSER; } private int bitField0_; private int bitField1_; // optional bool all_tables_selectable = 1; public static final int ALL_TABLES_SELECTABLE_FIELD_NUMBER = 1; private boolean allTablesSelectable_; /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public boolean hasAllTablesSelectable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public boolean getAllTablesSelectable() { return allTablesSelectable_; } // optional bool blob_included_in_max_row_size = 2; public static final int BLOB_INCLUDED_IN_MAX_ROW_SIZE_FIELD_NUMBER = 2; private boolean blobIncludedInMaxRowSize_; /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public boolean hasBlobIncludedInMaxRowSize() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public boolean getBlobIncludedInMaxRowSize() { return blobIncludedInMaxRowSize_; } // optional bool catalog_at_start = 3; public static final int CATALOG_AT_START_FIELD_NUMBER = 3; private boolean catalogAtStart_; /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public boolean hasCatalogAtStart() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public boolean getCatalogAtStart() { return catalogAtStart_; } // optional string catalog_separator = 4; public static final int CATALOG_SEPARATOR_FIELD_NUMBER = 4; private java.lang.Object catalogSeparator_; /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public boolean hasCatalogSeparator() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public java.lang.String getCatalogSeparator() { java.lang.Object ref = catalogSeparator_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogSeparator_ = s; } return s; } } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public com.google.protobuf.ByteString getCatalogSeparatorBytes() { java.lang.Object ref = catalogSeparator_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogSeparator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string catalog_term = 5; public static final int CATALOG_TERM_FIELD_NUMBER = 5; private java.lang.Object catalogTerm_; /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public boolean hasCatalogTerm() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public java.lang.String getCatalogTerm() { java.lang.Object ref = catalogTerm_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { catalogTerm_ = s; } return s; } } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public com.google.protobuf.ByteString getCatalogTermBytes() { java.lang.Object ref = catalogTerm_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .exec.user.CollateSupport collate_support = 6; public static final int COLLATE_SUPPORT_FIELD_NUMBER = 6; private java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> collateSupport_; /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList() { return collateSupport_; } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public int getCollateSupportCount() { return collateSupport_.size(); } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index) { return collateSupport_.get(index); } // optional bool column_aliasing_supported = 7; public static final int COLUMN_ALIASING_SUPPORTED_FIELD_NUMBER = 7; private boolean columnAliasingSupported_; /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public boolean hasColumnAliasingSupported() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public boolean getColumnAliasingSupported() { return columnAliasingSupported_; } // repeated .exec.user.ConvertSupport convert_support = 8; public static final int CONVERT_SUPPORT_FIELD_NUMBER = 8; private java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> convertSupport_; /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> getConvertSupportList() { return convertSupport_; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> getConvertSupportOrBuilderList() { return convertSupport_; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public int getConvertSupportCount() { return convertSupport_.size(); } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index) { return convertSupport_.get(index); } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder( int index) { return convertSupport_.get(index); } // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9; public static final int CORRELATION_NAMES_SUPPORT_FIELD_NUMBER = 9; private org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport correlationNamesSupport_; /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public boolean hasCorrelationNamesSupport() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport() { return correlationNamesSupport_; } // repeated string date_time_functions = 10; public static final int DATE_TIME_FUNCTIONS_FIELD_NUMBER = 10; private com.google.protobuf.LazyStringList dateTimeFunctions_; /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public java.util.List<java.lang.String> getDateTimeFunctionsList() { return dateTimeFunctions_; } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public int getDateTimeFunctionsCount() { return dateTimeFunctions_.size(); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public java.lang.String getDateTimeFunctions(int index) { return dateTimeFunctions_.get(index); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public com.google.protobuf.ByteString getDateTimeFunctionsBytes(int index) { return dateTimeFunctions_.getByteString(index); } // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11; public static final int DATE_TIME_LITERALS_SUPPORT_FIELD_NUMBER = 11; private java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> dateTimeLiteralsSupport_; /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList() { return dateTimeLiteralsSupport_; } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public int getDateTimeLiteralsSupportCount() { return dateTimeLiteralsSupport_.size(); } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index) { return dateTimeLiteralsSupport_.get(index); } // optional .exec.user.GroupBySupport group_by_support = 12; public static final int GROUP_BY_SUPPORT_FIELD_NUMBER = 12; private org.apache.drill.exec.proto.UserProtos.GroupBySupport groupBySupport_; /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public boolean hasGroupBySupport() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport() { return groupBySupport_; } // optional .exec.user.IdentifierCasing identifier_casing = 13; public static final int IDENTIFIER_CASING_FIELD_NUMBER = 13; private org.apache.drill.exec.proto.UserProtos.IdentifierCasing identifierCasing_; /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public boolean hasIdentifierCasing() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing() { return identifierCasing_; } // optional string identifier_quote_string = 14; public static final int IDENTIFIER_QUOTE_STRING_FIELD_NUMBER = 14; private java.lang.Object identifierQuoteString_; /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public boolean hasIdentifierQuoteString() { return ((bitField0_ & 0x00000200) == 0x00000200); } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public java.lang.String getIdentifierQuoteString() { java.lang.Object ref = identifierQuoteString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { identifierQuoteString_ = s; } return s; } } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public com.google.protobuf.ByteString getIdentifierQuoteStringBytes() { java.lang.Object ref = identifierQuoteString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierQuoteString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool like_escape_clause_supported = 15; public static final int LIKE_ESCAPE_CLAUSE_SUPPORTED_FIELD_NUMBER = 15; private boolean likeEscapeClauseSupported_; /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public boolean hasLikeEscapeClauseSupported() { return ((bitField0_ & 0x00000400) == 0x00000400); } /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public boolean getLikeEscapeClauseSupported() { return likeEscapeClauseSupported_; } // optional uint32 max_binary_literal_length = 16; public static final int MAX_BINARY_LITERAL_LENGTH_FIELD_NUMBER = 16; private int maxBinaryLiteralLength_; /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public boolean hasMaxBinaryLiteralLength() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public int getMaxBinaryLiteralLength() { return maxBinaryLiteralLength_; } // optional uint32 max_catalog_name_length = 17; public static final int MAX_CATALOG_NAME_LENGTH_FIELD_NUMBER = 17; private int maxCatalogNameLength_; /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCatalogNameLength() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public int getMaxCatalogNameLength() { return maxCatalogNameLength_; } // optional uint32 max_char_literal_length = 18; public static final int MAX_CHAR_LITERAL_LENGTH_FIELD_NUMBER = 18; private int maxCharLiteralLength_; /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCharLiteralLength() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public int getMaxCharLiteralLength() { return maxCharLiteralLength_; } // optional uint32 max_column_name_length = 19; public static final int MAX_COLUMN_NAME_LENGTH_FIELD_NUMBER = 19; private int maxColumnNameLength_; /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnNameLength() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public int getMaxColumnNameLength() { return maxColumnNameLength_; } // optional uint32 max_columns_in_group_by = 20; public static final int MAX_COLUMNS_IN_GROUP_BY_FIELD_NUMBER = 20; private int maxColumnsInGroupBy_; /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInGroupBy() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInGroupBy() { return maxColumnsInGroupBy_; } // optional uint32 max_columns_in_order_by = 21; public static final int MAX_COLUMNS_IN_ORDER_BY_FIELD_NUMBER = 21; private int maxColumnsInOrderBy_; /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInOrderBy() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInOrderBy() { return maxColumnsInOrderBy_; } // optional uint32 max_columns_in_select = 22; public static final int MAX_COLUMNS_IN_SELECT_FIELD_NUMBER = 22; private int maxColumnsInSelect_; /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInSelect() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInSelect() { return maxColumnsInSelect_; } // optional uint32 max_cursor_name_length = 23; public static final int MAX_CURSOR_NAME_LENGTH_FIELD_NUMBER = 23; private int maxCursorNameLength_; /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCursorNameLength() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public int getMaxCursorNameLength() { return maxCursorNameLength_; } // optional uint32 max_logical_lob_size = 24; public static final int MAX_LOGICAL_LOB_SIZE_FIELD_NUMBER = 24; private int maxLogicalLobSize_; /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public boolean hasMaxLogicalLobSize() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public int getMaxLogicalLobSize() { return maxLogicalLobSize_; } // optional uint32 max_row_size = 25; public static final int MAX_ROW_SIZE_FIELD_NUMBER = 25; private int maxRowSize_; /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public boolean hasMaxRowSize() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public int getMaxRowSize() { return maxRowSize_; } // optional uint32 max_schema_name_length = 26; public static final int MAX_SCHEMA_NAME_LENGTH_FIELD_NUMBER = 26; private int maxSchemaNameLength_; /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxSchemaNameLength() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public int getMaxSchemaNameLength() { return maxSchemaNameLength_; } // optional uint32 max_statement_length = 27; public static final int MAX_STATEMENT_LENGTH_FIELD_NUMBER = 27; private int maxStatementLength_; /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public boolean hasMaxStatementLength() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public int getMaxStatementLength() { return maxStatementLength_; } // optional uint32 max_statements = 28; public static final int MAX_STATEMENTS_FIELD_NUMBER = 28; private int maxStatements_; /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public boolean hasMaxStatements() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public int getMaxStatements() { return maxStatements_; } // optional uint32 max_table_name_length = 29; public static final int MAX_TABLE_NAME_LENGTH_FIELD_NUMBER = 29; private int maxTableNameLength_; /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxTableNameLength() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public int getMaxTableNameLength() { return maxTableNameLength_; } // optional uint32 max_tables_in_select = 30; public static final int MAX_TABLES_IN_SELECT_FIELD_NUMBER = 30; private int maxTablesInSelect_; /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public boolean hasMaxTablesInSelect() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public int getMaxTablesInSelect() { return maxTablesInSelect_; } // optional uint32 max_user_name_length = 31; public static final int MAX_USER_NAME_LENGTH_FIELD_NUMBER = 31; private int maxUserNameLength_; /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxUserNameLength() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public int getMaxUserNameLength() { return maxUserNameLength_; } // optional .exec.user.NullCollation null_collation = 32; public static final int NULL_COLLATION_FIELD_NUMBER = 32; private org.apache.drill.exec.proto.UserProtos.NullCollation nullCollation_; /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public boolean hasNullCollation() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation() { return nullCollation_; } // optional bool null_plus_non_null_equals_null = 33; public static final int NULL_PLUS_NON_NULL_EQUALS_NULL_FIELD_NUMBER = 33; private boolean nullPlusNonNullEqualsNull_; /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public boolean hasNullPlusNonNullEqualsNull() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public boolean getNullPlusNonNullEqualsNull() { return nullPlusNonNullEqualsNull_; } // repeated string numeric_functions = 34; public static final int NUMERIC_FUNCTIONS_FIELD_NUMBER = 34; private com.google.protobuf.LazyStringList numericFunctions_; /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public java.util.List<java.lang.String> getNumericFunctionsList() { return numericFunctions_; } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public int getNumericFunctionsCount() { return numericFunctions_.size(); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public java.lang.String getNumericFunctions(int index) { return numericFunctions_.get(index); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public com.google.protobuf.ByteString getNumericFunctionsBytes(int index) { return numericFunctions_.getByteString(index); } // repeated .exec.user.OrderBySupport order_by_support = 35; public static final int ORDER_BY_SUPPORT_FIELD_NUMBER = 35; private java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> orderBySupport_; /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList() { return orderBySupport_; } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public int getOrderBySupportCount() { return orderBySupport_.size(); } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index) { return orderBySupport_.get(index); } // repeated .exec.user.OuterJoinSupport outer_join_support = 36; public static final int OUTER_JOIN_SUPPORT_FIELD_NUMBER = 36; private java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> outerJoinSupport_; /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList() { return outerJoinSupport_; } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public int getOuterJoinSupportCount() { return outerJoinSupport_.size(); } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index) { return outerJoinSupport_.get(index); } // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37; public static final int QUOTED_IDENTIFIER_CASING_FIELD_NUMBER = 37; private org.apache.drill.exec.proto.UserProtos.IdentifierCasing quotedIdentifierCasing_; /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public boolean hasQuotedIdentifierCasing() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing() { return quotedIdentifierCasing_; } // optional bool read_only = 38; public static final int READ_ONLY_FIELD_NUMBER = 38; private boolean readOnly_; /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public boolean hasReadOnly() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public boolean getReadOnly() { return readOnly_; } // optional string schema_term = 39; public static final int SCHEMA_TERM_FIELD_NUMBER = 39; private java.lang.Object schemaTerm_; /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public boolean hasSchemaTerm() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public java.lang.String getSchemaTerm() { java.lang.Object ref = schemaTerm_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { schemaTerm_ = s; } return s; } } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public com.google.protobuf.ByteString getSchemaTermBytes() { java.lang.Object ref = schemaTerm_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string search_escape_string = 40; public static final int SEARCH_ESCAPE_STRING_FIELD_NUMBER = 40; private java.lang.Object searchEscapeString_; /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public boolean hasSearchEscapeString() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public java.lang.String getSearchEscapeString() { java.lang.Object ref = searchEscapeString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { searchEscapeString_ = s; } return s; } } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public com.google.protobuf.ByteString getSearchEscapeStringBytes() { java.lang.Object ref = searchEscapeString_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchEscapeString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool select_for_update_supported = 41; public static final int SELECT_FOR_UPDATE_SUPPORTED_FIELD_NUMBER = 41; private boolean selectForUpdateSupported_; /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public boolean hasSelectForUpdateSupported() { return ((bitField1_ & 0x00000002) == 0x00000002); } /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public boolean getSelectForUpdateSupported() { return selectForUpdateSupported_; } // optional string special_characters = 42; public static final int SPECIAL_CHARACTERS_FIELD_NUMBER = 42; private java.lang.Object specialCharacters_; /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public boolean hasSpecialCharacters() { return ((bitField1_ & 0x00000004) == 0x00000004); } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public java.lang.String getSpecialCharacters() { java.lang.Object ref = specialCharacters_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { specialCharacters_ = s; } return s; } } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public com.google.protobuf.ByteString getSpecialCharactersBytes() { java.lang.Object ref = specialCharacters_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specialCharacters_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string sql_keywords = 43; public static final int SQL_KEYWORDS_FIELD_NUMBER = 43; private com.google.protobuf.LazyStringList sqlKeywords_; /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public java.util.List<java.lang.String> getSqlKeywordsList() { return sqlKeywords_; } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public int getSqlKeywordsCount() { return sqlKeywords_.size(); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public java.lang.String getSqlKeywords(int index) { return sqlKeywords_.get(index); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public com.google.protobuf.ByteString getSqlKeywordsBytes(int index) { return sqlKeywords_.getByteString(index); } // repeated string string_functions = 44; public static final int STRING_FUNCTIONS_FIELD_NUMBER = 44; private com.google.protobuf.LazyStringList stringFunctions_; /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public java.util.List<java.lang.String> getStringFunctionsList() { return stringFunctions_; } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public int getStringFunctionsCount() { return stringFunctions_.size(); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public java.lang.String getStringFunctions(int index) { return stringFunctions_.get(index); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public com.google.protobuf.ByteString getStringFunctionsBytes(int index) { return stringFunctions_.getByteString(index); } // repeated .exec.user.SubQuerySupport subquery_support = 45; public static final int SUBQUERY_SUPPORT_FIELD_NUMBER = 45; private java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> subquerySupport_; /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList() { return subquerySupport_; } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public int getSubquerySupportCount() { return subquerySupport_.size(); } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index) { return subquerySupport_.get(index); } // repeated string system_functions = 46; public static final int SYSTEM_FUNCTIONS_FIELD_NUMBER = 46; private com.google.protobuf.LazyStringList systemFunctions_; /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public java.util.List<java.lang.String> getSystemFunctionsList() { return systemFunctions_; } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public int getSystemFunctionsCount() { return systemFunctions_.size(); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public java.lang.String getSystemFunctions(int index) { return systemFunctions_.get(index); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public com.google.protobuf.ByteString getSystemFunctionsBytes(int index) { return systemFunctions_.getByteString(index); } // optional string table_term = 47; public static final int TABLE_TERM_FIELD_NUMBER = 47; private java.lang.Object tableTerm_; /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public boolean hasTableTerm() { return ((bitField1_ & 0x00000008) == 0x00000008); } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public java.lang.String getTableTerm() { java.lang.Object ref = tableTerm_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tableTerm_ = s; } return s; } } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public com.google.protobuf.ByteString getTableTermBytes() { java.lang.Object ref = tableTerm_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool transaction_supported = 48; public static final int TRANSACTION_SUPPORTED_FIELD_NUMBER = 48; private boolean transactionSupported_; /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public boolean hasTransactionSupported() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public boolean getTransactionSupported() { return transactionSupported_; } // repeated .exec.user.UnionSupport union_support = 49; public static final int UNION_SUPPORT_FIELD_NUMBER = 49; private java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> unionSupport_; /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList() { return unionSupport_; } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public int getUnionSupportCount() { return unionSupport_.size(); } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index) { return unionSupport_.get(index); } private void initFields() { allTablesSelectable_ = false; blobIncludedInMaxRowSize_ = false; catalogAtStart_ = false; catalogSeparator_ = ""; catalogTerm_ = ""; collateSupport_ = java.util.Collections.emptyList(); columnAliasingSupported_ = false; convertSupport_ = java.util.Collections.emptyList(); correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE; dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; dateTimeLiteralsSupport_ = java.util.Collections.emptyList(); groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE; identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; identifierQuoteString_ = ""; likeEscapeClauseSupported_ = false; maxBinaryLiteralLength_ = 0; maxCatalogNameLength_ = 0; maxCharLiteralLength_ = 0; maxColumnNameLength_ = 0; maxColumnsInGroupBy_ = 0; maxColumnsInOrderBy_ = 0; maxColumnsInSelect_ = 0; maxCursorNameLength_ = 0; maxLogicalLobSize_ = 0; maxRowSize_ = 0; maxSchemaNameLength_ = 0; maxStatementLength_ = 0; maxStatements_ = 0; maxTableNameLength_ = 0; maxTablesInSelect_ = 0; maxUserNameLength_ = 0; nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN; nullPlusNonNullEqualsNull_ = false; numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; orderBySupport_ = java.util.Collections.emptyList(); outerJoinSupport_ = java.util.Collections.emptyList(); quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; readOnly_ = false; schemaTerm_ = ""; searchEscapeString_ = ""; selectForUpdateSupported_ = false; specialCharacters_ = ""; sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; subquerySupport_ = java.util.Collections.emptyList(); systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; tableTerm_ = ""; transactionSupported_ = false; unionSupport_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getConvertSupportCount(); i++) { if (!getConvertSupport(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, allTablesSelectable_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, blobIncludedInMaxRowSize_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(3, catalogAtStart_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getCatalogSeparatorBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getCatalogTermBytes()); } for (int i = 0; i < collateSupport_.size(); i++) { output.writeEnum(6, collateSupport_.get(i).getNumber()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(7, columnAliasingSupported_); } for (int i = 0; i < convertSupport_.size(); i++) { output.writeMessage(8, convertSupport_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeEnum(9, correlationNamesSupport_.getNumber()); } for (int i = 0; i < dateTimeFunctions_.size(); i++) { output.writeBytes(10, dateTimeFunctions_.getByteString(i)); } for (int i = 0; i < dateTimeLiteralsSupport_.size(); i++) { output.writeEnum(11, dateTimeLiteralsSupport_.get(i).getNumber()); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeEnum(12, groupBySupport_.getNumber()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeEnum(13, identifierCasing_.getNumber()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBytes(14, getIdentifierQuoteStringBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { output.writeBool(15, likeEscapeClauseSupported_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeUInt32(16, maxBinaryLiteralLength_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { output.writeUInt32(17, maxCatalogNameLength_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { output.writeUInt32(18, maxCharLiteralLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { output.writeUInt32(19, maxColumnNameLength_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { output.writeUInt32(20, maxColumnsInGroupBy_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { output.writeUInt32(21, maxColumnsInOrderBy_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { output.writeUInt32(22, maxColumnsInSelect_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { output.writeUInt32(23, maxCursorNameLength_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { output.writeUInt32(24, maxLogicalLobSize_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { output.writeUInt32(25, maxRowSize_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { output.writeUInt32(26, maxSchemaNameLength_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { output.writeUInt32(27, maxStatementLength_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { output.writeUInt32(28, maxStatements_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { output.writeUInt32(29, maxTableNameLength_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { output.writeUInt32(30, maxTablesInSelect_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { output.writeUInt32(31, maxUserNameLength_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { output.writeEnum(32, nullCollation_.getNumber()); } if (((bitField0_ & 0x10000000) == 0x10000000)) { output.writeBool(33, nullPlusNonNullEqualsNull_); } for (int i = 0; i < numericFunctions_.size(); i++) { output.writeBytes(34, numericFunctions_.getByteString(i)); } for (int i = 0; i < orderBySupport_.size(); i++) { output.writeEnum(35, orderBySupport_.get(i).getNumber()); } for (int i = 0; i < outerJoinSupport_.size(); i++) { output.writeEnum(36, outerJoinSupport_.get(i).getNumber()); } if (((bitField0_ & 0x20000000) == 0x20000000)) { output.writeEnum(37, quotedIdentifierCasing_.getNumber()); } if (((bitField0_ & 0x40000000) == 0x40000000)) { output.writeBool(38, readOnly_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { output.writeBytes(39, getSchemaTermBytes()); } if (((bitField1_ & 0x00000001) == 0x00000001)) { output.writeBytes(40, getSearchEscapeStringBytes()); } if (((bitField1_ & 0x00000002) == 0x00000002)) { output.writeBool(41, selectForUpdateSupported_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { output.writeBytes(42, getSpecialCharactersBytes()); } for (int i = 0; i < sqlKeywords_.size(); i++) { output.writeBytes(43, sqlKeywords_.getByteString(i)); } for (int i = 0; i < stringFunctions_.size(); i++) { output.writeBytes(44, stringFunctions_.getByteString(i)); } for (int i = 0; i < subquerySupport_.size(); i++) { output.writeEnum(45, subquerySupport_.get(i).getNumber()); } for (int i = 0; i < systemFunctions_.size(); i++) { output.writeBytes(46, systemFunctions_.getByteString(i)); } if (((bitField1_ & 0x00000008) == 0x00000008)) { output.writeBytes(47, getTableTermBytes()); } if (((bitField1_ & 0x00000010) == 0x00000010)) { output.writeBool(48, transactionSupported_); } for (int i = 0; i < unionSupport_.size(); i++) { output.writeEnum(49, unionSupport_.get(i).getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, allTablesSelectable_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, blobIncludedInMaxRowSize_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, catalogAtStart_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getCatalogSeparatorBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getCatalogTermBytes()); } { int dataSize = 0; for (int i = 0; i < collateSupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(collateSupport_.get(i).getNumber()); } size += dataSize; size += 1 * collateSupport_.size(); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, columnAliasingSupported_); } for (int i = 0; i < convertSupport_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, convertSupport_.get(i)); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, correlationNamesSupport_.getNumber()); } { int dataSize = 0; for (int i = 0; i < dateTimeFunctions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(dateTimeFunctions_.getByteString(i)); } size += dataSize; size += 1 * getDateTimeFunctionsList().size(); } { int dataSize = 0; for (int i = 0; i < dateTimeLiteralsSupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(dateTimeLiteralsSupport_.get(i).getNumber()); } size += dataSize; size += 1 * dateTimeLiteralsSupport_.size(); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, groupBySupport_.getNumber()); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(13, identifierCasing_.getNumber()); } if (((bitField0_ & 0x00000200) == 0x00000200)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(14, getIdentifierQuoteStringBytes()); } if (((bitField0_ & 0x00000400) == 0x00000400)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, likeEscapeClauseSupported_); } if (((bitField0_ & 0x00000800) == 0x00000800)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(16, maxBinaryLiteralLength_); } if (((bitField0_ & 0x00001000) == 0x00001000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(17, maxCatalogNameLength_); } if (((bitField0_ & 0x00002000) == 0x00002000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(18, maxCharLiteralLength_); } if (((bitField0_ & 0x00004000) == 0x00004000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(19, maxColumnNameLength_); } if (((bitField0_ & 0x00008000) == 0x00008000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(20, maxColumnsInGroupBy_); } if (((bitField0_ & 0x00010000) == 0x00010000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(21, maxColumnsInOrderBy_); } if (((bitField0_ & 0x00020000) == 0x00020000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(22, maxColumnsInSelect_); } if (((bitField0_ & 0x00040000) == 0x00040000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(23, maxCursorNameLength_); } if (((bitField0_ & 0x00080000) == 0x00080000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(24, maxLogicalLobSize_); } if (((bitField0_ & 0x00100000) == 0x00100000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(25, maxRowSize_); } if (((bitField0_ & 0x00200000) == 0x00200000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(26, maxSchemaNameLength_); } if (((bitField0_ & 0x00400000) == 0x00400000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(27, maxStatementLength_); } if (((bitField0_ & 0x00800000) == 0x00800000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(28, maxStatements_); } if (((bitField0_ & 0x01000000) == 0x01000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(29, maxTableNameLength_); } if (((bitField0_ & 0x02000000) == 0x02000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(30, maxTablesInSelect_); } if (((bitField0_ & 0x04000000) == 0x04000000)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(31, maxUserNameLength_); } if (((bitField0_ & 0x08000000) == 0x08000000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(32, nullCollation_.getNumber()); } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(33, nullPlusNonNullEqualsNull_); } { int dataSize = 0; for (int i = 0; i < numericFunctions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(numericFunctions_.getByteString(i)); } size += dataSize; size += 2 * getNumericFunctionsList().size(); } { int dataSize = 0; for (int i = 0; i < orderBySupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(orderBySupport_.get(i).getNumber()); } size += dataSize; size += 2 * orderBySupport_.size(); } { int dataSize = 0; for (int i = 0; i < outerJoinSupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(outerJoinSupport_.get(i).getNumber()); } size += dataSize; size += 2 * outerJoinSupport_.size(); } if (((bitField0_ & 0x20000000) == 0x20000000)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(37, quotedIdentifierCasing_.getNumber()); } if (((bitField0_ & 0x40000000) == 0x40000000)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(38, readOnly_); } if (((bitField0_ & 0x80000000) == 0x80000000)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(39, getSchemaTermBytes()); } if (((bitField1_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(40, getSearchEscapeStringBytes()); } if (((bitField1_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(41, selectForUpdateSupported_); } if (((bitField1_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(42, getSpecialCharactersBytes()); } { int dataSize = 0; for (int i = 0; i < sqlKeywords_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(sqlKeywords_.getByteString(i)); } size += dataSize; size += 2 * getSqlKeywordsList().size(); } { int dataSize = 0; for (int i = 0; i < stringFunctions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stringFunctions_.getByteString(i)); } size += dataSize; size += 2 * getStringFunctionsList().size(); } { int dataSize = 0; for (int i = 0; i < subquerySupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(subquerySupport_.get(i).getNumber()); } size += dataSize; size += 2 * subquerySupport_.size(); } { int dataSize = 0; for (int i = 0; i < systemFunctions_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(systemFunctions_.getByteString(i)); } size += dataSize; size += 2 * getSystemFunctionsList().size(); } if (((bitField1_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(47, getTableTermBytes()); } if (((bitField1_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(48, transactionSupported_); } { int dataSize = 0; for (int i = 0; i < unionSupport_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(unionSupport_.get(i).getNumber()); } size += dataSize; size += 2 * unionSupport_.size(); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.ServerMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ServerMeta prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.ServerMeta} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.ServerMetaOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.ServerMeta.class, org.apache.drill.exec.proto.UserProtos.ServerMeta.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.ServerMeta.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getConvertSupportFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); allTablesSelectable_ = false; bitField0_ = (bitField0_ & ~0x00000001); blobIncludedInMaxRowSize_ = false; bitField0_ = (bitField0_ & ~0x00000002); catalogAtStart_ = false; bitField0_ = (bitField0_ & ~0x00000004); catalogSeparator_ = ""; bitField0_ = (bitField0_ & ~0x00000008); catalogTerm_ = ""; bitField0_ = (bitField0_ & ~0x00000010); collateSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); columnAliasingSupported_ = false; bitField0_ = (bitField0_ & ~0x00000040); if (convertSupportBuilder_ == null) { convertSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { convertSupportBuilder_.clear(); } correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE; bitField0_ = (bitField0_ & ~0x00000100); dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); dateTimeLiteralsSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE; bitField0_ = (bitField0_ & ~0x00000800); identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; bitField0_ = (bitField0_ & ~0x00001000); identifierQuoteString_ = ""; bitField0_ = (bitField0_ & ~0x00002000); likeEscapeClauseSupported_ = false; bitField0_ = (bitField0_ & ~0x00004000); maxBinaryLiteralLength_ = 0; bitField0_ = (bitField0_ & ~0x00008000); maxCatalogNameLength_ = 0; bitField0_ = (bitField0_ & ~0x00010000); maxCharLiteralLength_ = 0; bitField0_ = (bitField0_ & ~0x00020000); maxColumnNameLength_ = 0; bitField0_ = (bitField0_ & ~0x00040000); maxColumnsInGroupBy_ = 0; bitField0_ = (bitField0_ & ~0x00080000); maxColumnsInOrderBy_ = 0; bitField0_ = (bitField0_ & ~0x00100000); maxColumnsInSelect_ = 0; bitField0_ = (bitField0_ & ~0x00200000); maxCursorNameLength_ = 0; bitField0_ = (bitField0_ & ~0x00400000); maxLogicalLobSize_ = 0; bitField0_ = (bitField0_ & ~0x00800000); maxRowSize_ = 0; bitField0_ = (bitField0_ & ~0x01000000); maxSchemaNameLength_ = 0; bitField0_ = (bitField0_ & ~0x02000000); maxStatementLength_ = 0; bitField0_ = (bitField0_ & ~0x04000000); maxStatements_ = 0; bitField0_ = (bitField0_ & ~0x08000000); maxTableNameLength_ = 0; bitField0_ = (bitField0_ & ~0x10000000); maxTablesInSelect_ = 0; bitField0_ = (bitField0_ & ~0x20000000); maxUserNameLength_ = 0; bitField0_ = (bitField0_ & ~0x40000000); nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN; bitField0_ = (bitField0_ & ~0x80000000); nullPlusNonNullEqualsNull_ = false; bitField1_ = (bitField1_ & ~0x00000001); numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000002); orderBySupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000004); outerJoinSupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000008); quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; bitField1_ = (bitField1_ & ~0x00000010); readOnly_ = false; bitField1_ = (bitField1_ & ~0x00000020); schemaTerm_ = ""; bitField1_ = (bitField1_ & ~0x00000040); searchEscapeString_ = ""; bitField1_ = (bitField1_ & ~0x00000080); selectForUpdateSupported_ = false; bitField1_ = (bitField1_ & ~0x00000100); specialCharacters_ = ""; bitField1_ = (bitField1_ & ~0x00000200); sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000400); stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000800); subquerySupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00002000); tableTerm_ = ""; bitField1_ = (bitField1_ & ~0x00004000); transactionSupported_ = false; bitField1_ = (bitField1_ & ~0x00008000); unionSupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00010000); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ServerMeta_descriptor; } public org.apache.drill.exec.proto.UserProtos.ServerMeta getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.ServerMeta build() { org.apache.drill.exec.proto.UserProtos.ServerMeta result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.ServerMeta buildPartial() { org.apache.drill.exec.proto.UserProtos.ServerMeta result = new org.apache.drill.exec.proto.UserProtos.ServerMeta(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.allTablesSelectable_ = allTablesSelectable_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.blobIncludedInMaxRowSize_ = blobIncludedInMaxRowSize_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.catalogAtStart_ = catalogAtStart_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.catalogSeparator_ = catalogSeparator_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.catalogTerm_ = catalogTerm_; if (((bitField0_ & 0x00000020) == 0x00000020)) { collateSupport_ = java.util.Collections.unmodifiableList(collateSupport_); bitField0_ = (bitField0_ & ~0x00000020); } result.collateSupport_ = collateSupport_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.columnAliasingSupported_ = columnAliasingSupported_; if (convertSupportBuilder_ == null) { if (((bitField0_ & 0x00000080) == 0x00000080)) { convertSupport_ = java.util.Collections.unmodifiableList(convertSupport_); bitField0_ = (bitField0_ & ~0x00000080); } result.convertSupport_ = convertSupport_; } else { result.convertSupport_ = convertSupportBuilder_.build(); } if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.correlationNamesSupport_ = correlationNamesSupport_; if (((bitField0_ & 0x00000200) == 0x00000200)) { dateTimeFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList( dateTimeFunctions_); bitField0_ = (bitField0_ & ~0x00000200); } result.dateTimeFunctions_ = dateTimeFunctions_; if (((bitField0_ & 0x00000400) == 0x00000400)) { dateTimeLiteralsSupport_ = java.util.Collections.unmodifiableList(dateTimeLiteralsSupport_); bitField0_ = (bitField0_ & ~0x00000400); } result.dateTimeLiteralsSupport_ = dateTimeLiteralsSupport_; if (((from_bitField0_ & 0x00000800) == 0x00000800)) { to_bitField0_ |= 0x00000080; } result.groupBySupport_ = groupBySupport_; if (((from_bitField0_ & 0x00001000) == 0x00001000)) { to_bitField0_ |= 0x00000100; } result.identifierCasing_ = identifierCasing_; if (((from_bitField0_ & 0x00002000) == 0x00002000)) { to_bitField0_ |= 0x00000200; } result.identifierQuoteString_ = identifierQuoteString_; if (((from_bitField0_ & 0x00004000) == 0x00004000)) { to_bitField0_ |= 0x00000400; } result.likeEscapeClauseSupported_ = likeEscapeClauseSupported_; if (((from_bitField0_ & 0x00008000) == 0x00008000)) { to_bitField0_ |= 0x00000800; } result.maxBinaryLiteralLength_ = maxBinaryLiteralLength_; if (((from_bitField0_ & 0x00010000) == 0x00010000)) { to_bitField0_ |= 0x00001000; } result.maxCatalogNameLength_ = maxCatalogNameLength_; if (((from_bitField0_ & 0x00020000) == 0x00020000)) { to_bitField0_ |= 0x00002000; } result.maxCharLiteralLength_ = maxCharLiteralLength_; if (((from_bitField0_ & 0x00040000) == 0x00040000)) { to_bitField0_ |= 0x00004000; } result.maxColumnNameLength_ = maxColumnNameLength_; if (((from_bitField0_ & 0x00080000) == 0x00080000)) { to_bitField0_ |= 0x00008000; } result.maxColumnsInGroupBy_ = maxColumnsInGroupBy_; if (((from_bitField0_ & 0x00100000) == 0x00100000)) { to_bitField0_ |= 0x00010000; } result.maxColumnsInOrderBy_ = maxColumnsInOrderBy_; if (((from_bitField0_ & 0x00200000) == 0x00200000)) { to_bitField0_ |= 0x00020000; } result.maxColumnsInSelect_ = maxColumnsInSelect_; if (((from_bitField0_ & 0x00400000) == 0x00400000)) { to_bitField0_ |= 0x00040000; } result.maxCursorNameLength_ = maxCursorNameLength_; if (((from_bitField0_ & 0x00800000) == 0x00800000)) { to_bitField0_ |= 0x00080000; } result.maxLogicalLobSize_ = maxLogicalLobSize_; if (((from_bitField0_ & 0x01000000) == 0x01000000)) { to_bitField0_ |= 0x00100000; } result.maxRowSize_ = maxRowSize_; if (((from_bitField0_ & 0x02000000) == 0x02000000)) { to_bitField0_ |= 0x00200000; } result.maxSchemaNameLength_ = maxSchemaNameLength_; if (((from_bitField0_ & 0x04000000) == 0x04000000)) { to_bitField0_ |= 0x00400000; } result.maxStatementLength_ = maxStatementLength_; if (((from_bitField0_ & 0x08000000) == 0x08000000)) { to_bitField0_ |= 0x00800000; } result.maxStatements_ = maxStatements_; if (((from_bitField0_ & 0x10000000) == 0x10000000)) { to_bitField0_ |= 0x01000000; } result.maxTableNameLength_ = maxTableNameLength_; if (((from_bitField0_ & 0x20000000) == 0x20000000)) { to_bitField0_ |= 0x02000000; } result.maxTablesInSelect_ = maxTablesInSelect_; if (((from_bitField0_ & 0x40000000) == 0x40000000)) { to_bitField0_ |= 0x04000000; } result.maxUserNameLength_ = maxUserNameLength_; if (((from_bitField0_ & 0x80000000) == 0x80000000)) { to_bitField0_ |= 0x08000000; } result.nullCollation_ = nullCollation_; if (((from_bitField1_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x10000000; } result.nullPlusNonNullEqualsNull_ = nullPlusNonNullEqualsNull_; if (((bitField1_ & 0x00000002) == 0x00000002)) { numericFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList( numericFunctions_); bitField1_ = (bitField1_ & ~0x00000002); } result.numericFunctions_ = numericFunctions_; if (((bitField1_ & 0x00000004) == 0x00000004)) { orderBySupport_ = java.util.Collections.unmodifiableList(orderBySupport_); bitField1_ = (bitField1_ & ~0x00000004); } result.orderBySupport_ = orderBySupport_; if (((bitField1_ & 0x00000008) == 0x00000008)) { outerJoinSupport_ = java.util.Collections.unmodifiableList(outerJoinSupport_); bitField1_ = (bitField1_ & ~0x00000008); } result.outerJoinSupport_ = outerJoinSupport_; if (((from_bitField1_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x20000000; } result.quotedIdentifierCasing_ = quotedIdentifierCasing_; if (((from_bitField1_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x40000000; } result.readOnly_ = readOnly_; if (((from_bitField1_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x80000000; } result.schemaTerm_ = schemaTerm_; if (((from_bitField1_ & 0x00000080) == 0x00000080)) { to_bitField1_ |= 0x00000001; } result.searchEscapeString_ = searchEscapeString_; if (((from_bitField1_ & 0x00000100) == 0x00000100)) { to_bitField1_ |= 0x00000002; } result.selectForUpdateSupported_ = selectForUpdateSupported_; if (((from_bitField1_ & 0x00000200) == 0x00000200)) { to_bitField1_ |= 0x00000004; } result.specialCharacters_ = specialCharacters_; if (((bitField1_ & 0x00000400) == 0x00000400)) { sqlKeywords_ = new com.google.protobuf.UnmodifiableLazyStringList( sqlKeywords_); bitField1_ = (bitField1_ & ~0x00000400); } result.sqlKeywords_ = sqlKeywords_; if (((bitField1_ & 0x00000800) == 0x00000800)) { stringFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList( stringFunctions_); bitField1_ = (bitField1_ & ~0x00000800); } result.stringFunctions_ = stringFunctions_; if (((bitField1_ & 0x00001000) == 0x00001000)) { subquerySupport_ = java.util.Collections.unmodifiableList(subquerySupport_); bitField1_ = (bitField1_ & ~0x00001000); } result.subquerySupport_ = subquerySupport_; if (((bitField1_ & 0x00002000) == 0x00002000)) { systemFunctions_ = new com.google.protobuf.UnmodifiableLazyStringList( systemFunctions_); bitField1_ = (bitField1_ & ~0x00002000); } result.systemFunctions_ = systemFunctions_; if (((from_bitField1_ & 0x00004000) == 0x00004000)) { to_bitField1_ |= 0x00000008; } result.tableTerm_ = tableTerm_; if (((from_bitField1_ & 0x00008000) == 0x00008000)) { to_bitField1_ |= 0x00000010; } result.transactionSupported_ = transactionSupported_; if (((bitField1_ & 0x00010000) == 0x00010000)) { unionSupport_ = java.util.Collections.unmodifiableList(unionSupport_); bitField1_ = (bitField1_ & ~0x00010000); } result.unionSupport_ = unionSupport_; result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.ServerMeta) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.ServerMeta)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.ServerMeta other) { if (other == org.apache.drill.exec.proto.UserProtos.ServerMeta.getDefaultInstance()) return this; if (other.hasAllTablesSelectable()) { setAllTablesSelectable(other.getAllTablesSelectable()); } if (other.hasBlobIncludedInMaxRowSize()) { setBlobIncludedInMaxRowSize(other.getBlobIncludedInMaxRowSize()); } if (other.hasCatalogAtStart()) { setCatalogAtStart(other.getCatalogAtStart()); } if (other.hasCatalogSeparator()) { bitField0_ |= 0x00000008; catalogSeparator_ = other.catalogSeparator_; onChanged(); } if (other.hasCatalogTerm()) { bitField0_ |= 0x00000010; catalogTerm_ = other.catalogTerm_; onChanged(); } if (!other.collateSupport_.isEmpty()) { if (collateSupport_.isEmpty()) { collateSupport_ = other.collateSupport_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureCollateSupportIsMutable(); collateSupport_.addAll(other.collateSupport_); } onChanged(); } if (other.hasColumnAliasingSupported()) { setColumnAliasingSupported(other.getColumnAliasingSupported()); } if (convertSupportBuilder_ == null) { if (!other.convertSupport_.isEmpty()) { if (convertSupport_.isEmpty()) { convertSupport_ = other.convertSupport_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureConvertSupportIsMutable(); convertSupport_.addAll(other.convertSupport_); } onChanged(); } } else { if (!other.convertSupport_.isEmpty()) { if (convertSupportBuilder_.isEmpty()) { convertSupportBuilder_.dispose(); convertSupportBuilder_ = null; convertSupport_ = other.convertSupport_; bitField0_ = (bitField0_ & ~0x00000080); convertSupportBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getConvertSupportFieldBuilder() : null; } else { convertSupportBuilder_.addAllMessages(other.convertSupport_); } } } if (other.hasCorrelationNamesSupport()) { setCorrelationNamesSupport(other.getCorrelationNamesSupport()); } if (!other.dateTimeFunctions_.isEmpty()) { if (dateTimeFunctions_.isEmpty()) { dateTimeFunctions_ = other.dateTimeFunctions_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureDateTimeFunctionsIsMutable(); dateTimeFunctions_.addAll(other.dateTimeFunctions_); } onChanged(); } if (!other.dateTimeLiteralsSupport_.isEmpty()) { if (dateTimeLiteralsSupport_.isEmpty()) { dateTimeLiteralsSupport_ = other.dateTimeLiteralsSupport_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureDateTimeLiteralsSupportIsMutable(); dateTimeLiteralsSupport_.addAll(other.dateTimeLiteralsSupport_); } onChanged(); } if (other.hasGroupBySupport()) { setGroupBySupport(other.getGroupBySupport()); } if (other.hasIdentifierCasing()) { setIdentifierCasing(other.getIdentifierCasing()); } if (other.hasIdentifierQuoteString()) { bitField0_ |= 0x00002000; identifierQuoteString_ = other.identifierQuoteString_; onChanged(); } if (other.hasLikeEscapeClauseSupported()) { setLikeEscapeClauseSupported(other.getLikeEscapeClauseSupported()); } if (other.hasMaxBinaryLiteralLength()) { setMaxBinaryLiteralLength(other.getMaxBinaryLiteralLength()); } if (other.hasMaxCatalogNameLength()) { setMaxCatalogNameLength(other.getMaxCatalogNameLength()); } if (other.hasMaxCharLiteralLength()) { setMaxCharLiteralLength(other.getMaxCharLiteralLength()); } if (other.hasMaxColumnNameLength()) { setMaxColumnNameLength(other.getMaxColumnNameLength()); } if (other.hasMaxColumnsInGroupBy()) { setMaxColumnsInGroupBy(other.getMaxColumnsInGroupBy()); } if (other.hasMaxColumnsInOrderBy()) { setMaxColumnsInOrderBy(other.getMaxColumnsInOrderBy()); } if (other.hasMaxColumnsInSelect()) { setMaxColumnsInSelect(other.getMaxColumnsInSelect()); } if (other.hasMaxCursorNameLength()) { setMaxCursorNameLength(other.getMaxCursorNameLength()); } if (other.hasMaxLogicalLobSize()) { setMaxLogicalLobSize(other.getMaxLogicalLobSize()); } if (other.hasMaxRowSize()) { setMaxRowSize(other.getMaxRowSize()); } if (other.hasMaxSchemaNameLength()) { setMaxSchemaNameLength(other.getMaxSchemaNameLength()); } if (other.hasMaxStatementLength()) { setMaxStatementLength(other.getMaxStatementLength()); } if (other.hasMaxStatements()) { setMaxStatements(other.getMaxStatements()); } if (other.hasMaxTableNameLength()) { setMaxTableNameLength(other.getMaxTableNameLength()); } if (other.hasMaxTablesInSelect()) { setMaxTablesInSelect(other.getMaxTablesInSelect()); } if (other.hasMaxUserNameLength()) { setMaxUserNameLength(other.getMaxUserNameLength()); } if (other.hasNullCollation()) { setNullCollation(other.getNullCollation()); } if (other.hasNullPlusNonNullEqualsNull()) { setNullPlusNonNullEqualsNull(other.getNullPlusNonNullEqualsNull()); } if (!other.numericFunctions_.isEmpty()) { if (numericFunctions_.isEmpty()) { numericFunctions_ = other.numericFunctions_; bitField1_ = (bitField1_ & ~0x00000002); } else { ensureNumericFunctionsIsMutable(); numericFunctions_.addAll(other.numericFunctions_); } onChanged(); } if (!other.orderBySupport_.isEmpty()) { if (orderBySupport_.isEmpty()) { orderBySupport_ = other.orderBySupport_; bitField1_ = (bitField1_ & ~0x00000004); } else { ensureOrderBySupportIsMutable(); orderBySupport_.addAll(other.orderBySupport_); } onChanged(); } if (!other.outerJoinSupport_.isEmpty()) { if (outerJoinSupport_.isEmpty()) { outerJoinSupport_ = other.outerJoinSupport_; bitField1_ = (bitField1_ & ~0x00000008); } else { ensureOuterJoinSupportIsMutable(); outerJoinSupport_.addAll(other.outerJoinSupport_); } onChanged(); } if (other.hasQuotedIdentifierCasing()) { setQuotedIdentifierCasing(other.getQuotedIdentifierCasing()); } if (other.hasReadOnly()) { setReadOnly(other.getReadOnly()); } if (other.hasSchemaTerm()) { bitField1_ |= 0x00000040; schemaTerm_ = other.schemaTerm_; onChanged(); } if (other.hasSearchEscapeString()) { bitField1_ |= 0x00000080; searchEscapeString_ = other.searchEscapeString_; onChanged(); } if (other.hasSelectForUpdateSupported()) { setSelectForUpdateSupported(other.getSelectForUpdateSupported()); } if (other.hasSpecialCharacters()) { bitField1_ |= 0x00000200; specialCharacters_ = other.specialCharacters_; onChanged(); } if (!other.sqlKeywords_.isEmpty()) { if (sqlKeywords_.isEmpty()) { sqlKeywords_ = other.sqlKeywords_; bitField1_ = (bitField1_ & ~0x00000400); } else { ensureSqlKeywordsIsMutable(); sqlKeywords_.addAll(other.sqlKeywords_); } onChanged(); } if (!other.stringFunctions_.isEmpty()) { if (stringFunctions_.isEmpty()) { stringFunctions_ = other.stringFunctions_; bitField1_ = (bitField1_ & ~0x00000800); } else { ensureStringFunctionsIsMutable(); stringFunctions_.addAll(other.stringFunctions_); } onChanged(); } if (!other.subquerySupport_.isEmpty()) { if (subquerySupport_.isEmpty()) { subquerySupport_ = other.subquerySupport_; bitField1_ = (bitField1_ & ~0x00001000); } else { ensureSubquerySupportIsMutable(); subquerySupport_.addAll(other.subquerySupport_); } onChanged(); } if (!other.systemFunctions_.isEmpty()) { if (systemFunctions_.isEmpty()) { systemFunctions_ = other.systemFunctions_; bitField1_ = (bitField1_ & ~0x00002000); } else { ensureSystemFunctionsIsMutable(); systemFunctions_.addAll(other.systemFunctions_); } onChanged(); } if (other.hasTableTerm()) { bitField1_ |= 0x00004000; tableTerm_ = other.tableTerm_; onChanged(); } if (other.hasTransactionSupported()) { setTransactionSupported(other.getTransactionSupported()); } if (!other.unionSupport_.isEmpty()) { if (unionSupport_.isEmpty()) { unionSupport_ = other.unionSupport_; bitField1_ = (bitField1_ & ~0x00010000); } else { ensureUnionSupportIsMutable(); unionSupport_.addAll(other.unionSupport_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getConvertSupportCount(); i++) { if (!getConvertSupport(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.ServerMeta parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.ServerMeta) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int bitField1_; // optional bool all_tables_selectable = 1; private boolean allTablesSelectable_ ; /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public boolean hasAllTablesSelectable() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public boolean getAllTablesSelectable() { return allTablesSelectable_; } /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public Builder setAllTablesSelectable(boolean value) { bitField0_ |= 0x00000001; allTablesSelectable_ = value; onChanged(); return this; } /** * <code>optional bool all_tables_selectable = 1;</code> * * <pre> * True if current user can use all tables returned by GetTables * </pre> */ public Builder clearAllTablesSelectable() { bitField0_ = (bitField0_ & ~0x00000001); allTablesSelectable_ = false; onChanged(); return this; } // optional bool blob_included_in_max_row_size = 2; private boolean blobIncludedInMaxRowSize_ ; /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public boolean hasBlobIncludedInMaxRowSize() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public boolean getBlobIncludedInMaxRowSize() { return blobIncludedInMaxRowSize_; } /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public Builder setBlobIncludedInMaxRowSize(boolean value) { bitField0_ |= 0x00000002; blobIncludedInMaxRowSize_ = value; onChanged(); return this; } /** * <code>optional bool blob_included_in_max_row_size = 2;</code> * * <pre> * True if BLOB are included into the max row size * </pre> */ public Builder clearBlobIncludedInMaxRowSize() { bitField0_ = (bitField0_ & ~0x00000002); blobIncludedInMaxRowSize_ = false; onChanged(); return this; } // optional bool catalog_at_start = 3; private boolean catalogAtStart_ ; /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public boolean hasCatalogAtStart() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public boolean getCatalogAtStart() { return catalogAtStart_; } /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public Builder setCatalogAtStart(boolean value) { bitField0_ |= 0x00000004; catalogAtStart_ = value; onChanged(); return this; } /** * <code>optional bool catalog_at_start = 3;</code> * * <pre> * True if catalog name is at the start of a fully qualified table * </pre> */ public Builder clearCatalogAtStart() { bitField0_ = (bitField0_ & ~0x00000004); catalogAtStart_ = false; onChanged(); return this; } // optional string catalog_separator = 4; private java.lang.Object catalogSeparator_ = ""; /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public boolean hasCatalogSeparator() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public java.lang.String getCatalogSeparator() { java.lang.Object ref = catalogSeparator_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogSeparator_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public com.google.protobuf.ByteString getCatalogSeparatorBytes() { java.lang.Object ref = catalogSeparator_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogSeparator_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public Builder setCatalogSeparator( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; catalogSeparator_ = value; onChanged(); return this; } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public Builder clearCatalogSeparator() { bitField0_ = (bitField0_ & ~0x00000008); catalogSeparator_ = getDefaultInstance().getCatalogSeparator(); onChanged(); return this; } /** * <code>optional string catalog_separator = 4;</code> * * <pre> * The catalog separator * </pre> */ public Builder setCatalogSeparatorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; catalogSeparator_ = value; onChanged(); return this; } // optional string catalog_term = 5; private java.lang.Object catalogTerm_ = ""; /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public boolean hasCatalogTerm() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public java.lang.String getCatalogTerm() { java.lang.Object ref = catalogTerm_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); catalogTerm_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public com.google.protobuf.ByteString getCatalogTermBytes() { java.lang.Object ref = catalogTerm_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalogTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public Builder setCatalogTerm( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; catalogTerm_ = value; onChanged(); return this; } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public Builder clearCatalogTerm() { bitField0_ = (bitField0_ & ~0x00000010); catalogTerm_ = getDefaultInstance().getCatalogTerm(); onChanged(); return this; } /** * <code>optional string catalog_term = 5;</code> * * <pre> * The term used to designate catalogs * </pre> */ public Builder setCatalogTermBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; catalogTerm_ = value; onChanged(); return this; } // repeated .exec.user.CollateSupport collate_support = 6; private java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> collateSupport_ = java.util.Collections.emptyList(); private void ensureCollateSupportIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { collateSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.CollateSupport>(collateSupport_); bitField0_ |= 0x00000020; } } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.CollateSupport> getCollateSupportList() { return java.util.Collections.unmodifiableList(collateSupport_); } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public int getCollateSupportCount() { return collateSupport_.size(); } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index) { return collateSupport_.get(index); } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public Builder setCollateSupport( int index, org.apache.drill.exec.proto.UserProtos.CollateSupport value) { if (value == null) { throw new NullPointerException(); } ensureCollateSupportIsMutable(); collateSupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public Builder addCollateSupport(org.apache.drill.exec.proto.UserProtos.CollateSupport value) { if (value == null) { throw new NullPointerException(); } ensureCollateSupportIsMutable(); collateSupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public Builder addAllCollateSupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.CollateSupport> values) { ensureCollateSupportIsMutable(); super.addAll(values, collateSupport_); onChanged(); return this; } /** * <code>repeated .exec.user.CollateSupport collate_support = 6;</code> * * <pre> * COLLATE support * </pre> */ public Builder clearCollateSupport() { collateSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // optional bool column_aliasing_supported = 7; private boolean columnAliasingSupported_ ; /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public boolean hasColumnAliasingSupported() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public boolean getColumnAliasingSupported() { return columnAliasingSupported_; } /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public Builder setColumnAliasingSupported(boolean value) { bitField0_ |= 0x00000040; columnAliasingSupported_ = value; onChanged(); return this; } /** * <code>optional bool column_aliasing_supported = 7;</code> * * <pre> * True if column aliasing is supported * </pre> */ public Builder clearColumnAliasingSupported() { bitField0_ = (bitField0_ & ~0x00000040); columnAliasingSupported_ = false; onChanged(); return this; } // repeated .exec.user.ConvertSupport convert_support = 8; private java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> convertSupport_ = java.util.Collections.emptyList(); private void ensureConvertSupportIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { convertSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.ConvertSupport>(convertSupport_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> convertSupportBuilder_; /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport> getConvertSupportList() { if (convertSupportBuilder_ == null) { return java.util.Collections.unmodifiableList(convertSupport_); } else { return convertSupportBuilder_.getMessageList(); } } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public int getConvertSupportCount() { if (convertSupportBuilder_ == null) { return convertSupport_.size(); } else { return convertSupportBuilder_.getCount(); } } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupport getConvertSupport(int index) { if (convertSupportBuilder_ == null) { return convertSupport_.get(index); } else { return convertSupportBuilder_.getMessage(index); } } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder setConvertSupport( int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport value) { if (convertSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertSupportIsMutable(); convertSupport_.set(index, value); onChanged(); } else { convertSupportBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder setConvertSupport( int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) { if (convertSupportBuilder_ == null) { ensureConvertSupportIsMutable(); convertSupport_.set(index, builderForValue.build()); onChanged(); } else { convertSupportBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder addConvertSupport(org.apache.drill.exec.proto.UserProtos.ConvertSupport value) { if (convertSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertSupportIsMutable(); convertSupport_.add(value); onChanged(); } else { convertSupportBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder addConvertSupport( int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport value) { if (convertSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConvertSupportIsMutable(); convertSupport_.add(index, value); onChanged(); } else { convertSupportBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder addConvertSupport( org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) { if (convertSupportBuilder_ == null) { ensureConvertSupportIsMutable(); convertSupport_.add(builderForValue.build()); onChanged(); } else { convertSupportBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder addConvertSupport( int index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder builderForValue) { if (convertSupportBuilder_ == null) { ensureConvertSupportIsMutable(); convertSupport_.add(index, builderForValue.build()); onChanged(); } else { convertSupportBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder addAllConvertSupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupport> values) { if (convertSupportBuilder_ == null) { ensureConvertSupportIsMutable(); super.addAll(values, convertSupport_); onChanged(); } else { convertSupportBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder clearConvertSupport() { if (convertSupportBuilder_ == null) { convertSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { convertSupportBuilder_.clear(); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public Builder removeConvertSupport(int index) { if (convertSupportBuilder_ == null) { ensureConvertSupportIsMutable(); convertSupport_.remove(index); onChanged(); } else { convertSupportBuilder_.remove(index); } return this; } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder getConvertSupportBuilder( int index) { return getConvertSupportFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder getConvertSupportOrBuilder( int index) { if (convertSupportBuilder_ == null) { return convertSupport_.get(index); } else { return convertSupportBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public java.util.List<? extends org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> getConvertSupportOrBuilderList() { if (convertSupportBuilder_ != null) { return convertSupportBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(convertSupport_); } } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder addConvertSupportBuilder() { return getConvertSupportFieldBuilder().addBuilder( org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance()); } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder addConvertSupportBuilder( int index) { return getConvertSupportFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.UserProtos.ConvertSupport.getDefaultInstance()); } /** * <code>repeated .exec.user.ConvertSupport convert_support = 8;</code> * * <pre> * CONVERT support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder> getConvertSupportBuilderList() { return getConvertSupportFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder> getConvertSupportFieldBuilder() { if (convertSupportBuilder_ == null) { convertSupportBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.UserProtos.ConvertSupport, org.apache.drill.exec.proto.UserProtos.ConvertSupport.Builder, org.apache.drill.exec.proto.UserProtos.ConvertSupportOrBuilder>( convertSupport_, ((bitField0_ & 0x00000080) == 0x00000080), getParentForChildren(), isClean()); convertSupport_ = null; } return convertSupportBuilder_; } // optional .exec.user.CorrelationNamesSupport correlation_names_support = 9; private org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE; /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public boolean hasCorrelationNamesSupport() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport getCorrelationNamesSupport() { return correlationNamesSupport_; } /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public Builder setCorrelationNamesSupport(org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; correlationNamesSupport_ = value; onChanged(); return this; } /** * <code>optional .exec.user.CorrelationNamesSupport correlation_names_support = 9;</code> * * <pre> * Correlation names support * </pre> */ public Builder clearCorrelationNamesSupport() { bitField0_ = (bitField0_ & ~0x00000100); correlationNamesSupport_ = org.apache.drill.exec.proto.UserProtos.CorrelationNamesSupport.CN_NONE; onChanged(); return this; } // repeated string date_time_functions = 10; private com.google.protobuf.LazyStringList dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDateTimeFunctionsIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { dateTimeFunctions_ = new com.google.protobuf.LazyStringArrayList(dateTimeFunctions_); bitField0_ |= 0x00000200; } } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public java.util.List<java.lang.String> getDateTimeFunctionsList() { return java.util.Collections.unmodifiableList(dateTimeFunctions_); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public int getDateTimeFunctionsCount() { return dateTimeFunctions_.size(); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public java.lang.String getDateTimeFunctions(int index) { return dateTimeFunctions_.get(index); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public com.google.protobuf.ByteString getDateTimeFunctionsBytes(int index) { return dateTimeFunctions_.getByteString(index); } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public Builder setDateTimeFunctions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDateTimeFunctionsIsMutable(); dateTimeFunctions_.set(index, value); onChanged(); return this; } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public Builder addDateTimeFunctions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureDateTimeFunctionsIsMutable(); dateTimeFunctions_.add(value); onChanged(); return this; } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public Builder addAllDateTimeFunctions( java.lang.Iterable<java.lang.String> values) { ensureDateTimeFunctionsIsMutable(); super.addAll(values, dateTimeFunctions_); onChanged(); return this; } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public Builder clearDateTimeFunctions() { dateTimeFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** * <code>repeated string date_time_functions = 10;</code> * * <pre> * Supported ODBC/JDBC Date Time scalar functions * </pre> */ public Builder addDateTimeFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureDateTimeFunctionsIsMutable(); dateTimeFunctions_.add(value); onChanged(); return this; } // repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11; private java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> dateTimeLiteralsSupport_ = java.util.Collections.emptyList(); private void ensureDateTimeLiteralsSupportIsMutable() { if (!((bitField0_ & 0x00000400) == 0x00000400)) { dateTimeLiteralsSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport>(dateTimeLiteralsSupport_); bitField0_ |= 0x00000400; } } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> getDateTimeLiteralsSupportList() { return java.util.Collections.unmodifiableList(dateTimeLiteralsSupport_); } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public int getDateTimeLiteralsSupportCount() { return dateTimeLiteralsSupport_.size(); } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index) { return dateTimeLiteralsSupport_.get(index); } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public Builder setDateTimeLiteralsSupport( int index, org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value) { if (value == null) { throw new NullPointerException(); } ensureDateTimeLiteralsSupportIsMutable(); dateTimeLiteralsSupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public Builder addDateTimeLiteralsSupport(org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport value) { if (value == null) { throw new NullPointerException(); } ensureDateTimeLiteralsSupportIsMutable(); dateTimeLiteralsSupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public Builder addAllDateTimeLiteralsSupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport> values) { ensureDateTimeLiteralsSupportIsMutable(); super.addAll(values, dateTimeLiteralsSupport_); onChanged(); return this; } /** * <code>repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;</code> * * <pre> * Supported Date Time literals * </pre> */ public Builder clearDateTimeLiteralsSupport() { dateTimeLiteralsSupport_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } // optional .exec.user.GroupBySupport group_by_support = 12; private org.apache.drill.exec.proto.UserProtos.GroupBySupport groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE; /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public boolean hasGroupBySupport() { return ((bitField0_ & 0x00000800) == 0x00000800); } /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public org.apache.drill.exec.proto.UserProtos.GroupBySupport getGroupBySupport() { return groupBySupport_; } /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public Builder setGroupBySupport(org.apache.drill.exec.proto.UserProtos.GroupBySupport value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; groupBySupport_ = value; onChanged(); return this; } /** * <code>optional .exec.user.GroupBySupport group_by_support = 12;</code> * * <pre> * Group By support * </pre> */ public Builder clearGroupBySupport() { bitField0_ = (bitField0_ & ~0x00000800); groupBySupport_ = org.apache.drill.exec.proto.UserProtos.GroupBySupport.GB_NONE; onChanged(); return this; } // optional .exec.user.IdentifierCasing identifier_casing = 13; private org.apache.drill.exec.proto.UserProtos.IdentifierCasing identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public boolean hasIdentifierCasing() { return ((bitField0_ & 0x00001000) == 0x00001000); } /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getIdentifierCasing() { return identifierCasing_; } /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public Builder setIdentifierCasing(org.apache.drill.exec.proto.UserProtos.IdentifierCasing value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00001000; identifierCasing_ = value; onChanged(); return this; } /** * <code>optional .exec.user.IdentifierCasing identifier_casing = 13;</code> * * <pre> * Unquoted Identifier casing * </pre> */ public Builder clearIdentifierCasing() { bitField0_ = (bitField0_ & ~0x00001000); identifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; onChanged(); return this; } // optional string identifier_quote_string = 14; private java.lang.Object identifierQuoteString_ = ""; /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public boolean hasIdentifierQuoteString() { return ((bitField0_ & 0x00002000) == 0x00002000); } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public java.lang.String getIdentifierQuoteString() { java.lang.Object ref = identifierQuoteString_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); identifierQuoteString_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public com.google.protobuf.ByteString getIdentifierQuoteStringBytes() { java.lang.Object ref = identifierQuoteString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierQuoteString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public Builder setIdentifierQuoteString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; identifierQuoteString_ = value; onChanged(); return this; } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public Builder clearIdentifierQuoteString() { bitField0_ = (bitField0_ & ~0x00002000); identifierQuoteString_ = getDefaultInstance().getIdentifierQuoteString(); onChanged(); return this; } /** * <code>optional string identifier_quote_string = 14;</code> * * <pre> * Quote string for identifiers * </pre> */ public Builder setIdentifierQuoteStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00002000; identifierQuoteString_ = value; onChanged(); return this; } // optional bool like_escape_clause_supported = 15; private boolean likeEscapeClauseSupported_ ; /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public boolean hasLikeEscapeClauseSupported() { return ((bitField0_ & 0x00004000) == 0x00004000); } /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public boolean getLikeEscapeClauseSupported() { return likeEscapeClauseSupported_; } /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public Builder setLikeEscapeClauseSupported(boolean value) { bitField0_ |= 0x00004000; likeEscapeClauseSupported_ = value; onChanged(); return this; } /** * <code>optional bool like_escape_clause_supported = 15;</code> * * <pre> * True if LIKE supports an ESCAPE clause * </pre> */ public Builder clearLikeEscapeClauseSupported() { bitField0_ = (bitField0_ & ~0x00004000); likeEscapeClauseSupported_ = false; onChanged(); return this; } // optional uint32 max_binary_literal_length = 16; private int maxBinaryLiteralLength_ ; /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public boolean hasMaxBinaryLiteralLength() { return ((bitField0_ & 0x00008000) == 0x00008000); } /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public int getMaxBinaryLiteralLength() { return maxBinaryLiteralLength_; } /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public Builder setMaxBinaryLiteralLength(int value) { bitField0_ |= 0x00008000; maxBinaryLiteralLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_binary_literal_length = 16;</code> * * <pre> * Maximum number of hexa characters for binary literals (0 if unlimited or unknown) * </pre> */ public Builder clearMaxBinaryLiteralLength() { bitField0_ = (bitField0_ & ~0x00008000); maxBinaryLiteralLength_ = 0; onChanged(); return this; } // optional uint32 max_catalog_name_length = 17; private int maxCatalogNameLength_ ; /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCatalogNameLength() { return ((bitField0_ & 0x00010000) == 0x00010000); } /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public int getMaxCatalogNameLength() { return maxCatalogNameLength_; } /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public Builder setMaxCatalogNameLength(int value) { bitField0_ |= 0x00010000; maxCatalogNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_catalog_name_length = 17;</code> * * <pre> * Maximum length of catalog names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxCatalogNameLength() { bitField0_ = (bitField0_ & ~0x00010000); maxCatalogNameLength_ = 0; onChanged(); return this; } // optional uint32 max_char_literal_length = 18; private int maxCharLiteralLength_ ; /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCharLiteralLength() { return ((bitField0_ & 0x00020000) == 0x00020000); } /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public int getMaxCharLiteralLength() { return maxCharLiteralLength_; } /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public Builder setMaxCharLiteralLength(int value) { bitField0_ |= 0x00020000; maxCharLiteralLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_char_literal_length = 18;</code> * * <pre> * Maximum number of characters for string literals (0 if unlimited or unknown) * </pre> */ public Builder clearMaxCharLiteralLength() { bitField0_ = (bitField0_ & ~0x00020000); maxCharLiteralLength_ = 0; onChanged(); return this; } // optional uint32 max_column_name_length = 19; private int maxColumnNameLength_ ; /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnNameLength() { return ((bitField0_ & 0x00040000) == 0x00040000); } /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public int getMaxColumnNameLength() { return maxColumnNameLength_; } /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public Builder setMaxColumnNameLength(int value) { bitField0_ |= 0x00040000; maxColumnNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_column_name_length = 19;</code> * * <pre> * Maximum length of column names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxColumnNameLength() { bitField0_ = (bitField0_ & ~0x00040000); maxColumnNameLength_ = 0; onChanged(); return this; } // optional uint32 max_columns_in_group_by = 20; private int maxColumnsInGroupBy_ ; /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInGroupBy() { return ((bitField0_ & 0x00080000) == 0x00080000); } /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInGroupBy() { return maxColumnsInGroupBy_; } /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public Builder setMaxColumnsInGroupBy(int value) { bitField0_ |= 0x00080000; maxColumnsInGroupBy_ = value; onChanged(); return this; } /** * <code>optional uint32 max_columns_in_group_by = 20;</code> * * <pre> * Maximum number of columns in GROUP BY expressions (0 if unlimited or unknown) * </pre> */ public Builder clearMaxColumnsInGroupBy() { bitField0_ = (bitField0_ & ~0x00080000); maxColumnsInGroupBy_ = 0; onChanged(); return this; } // optional uint32 max_columns_in_order_by = 21; private int maxColumnsInOrderBy_ ; /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInOrderBy() { return ((bitField0_ & 0x00100000) == 0x00100000); } /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInOrderBy() { return maxColumnsInOrderBy_; } /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public Builder setMaxColumnsInOrderBy(int value) { bitField0_ |= 0x00100000; maxColumnsInOrderBy_ = value; onChanged(); return this; } /** * <code>optional uint32 max_columns_in_order_by = 21;</code> * * <pre> * Maximum number of columns in ORDER BY expressions (0 if unlimited or unknown) * </pre> */ public Builder clearMaxColumnsInOrderBy() { bitField0_ = (bitField0_ & ~0x00100000); maxColumnsInOrderBy_ = 0; onChanged(); return this; } // optional uint32 max_columns_in_select = 22; private int maxColumnsInSelect_ ; /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public boolean hasMaxColumnsInSelect() { return ((bitField0_ & 0x00200000) == 0x00200000); } /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public int getMaxColumnsInSelect() { return maxColumnsInSelect_; } /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public Builder setMaxColumnsInSelect(int value) { bitField0_ |= 0x00200000; maxColumnsInSelect_ = value; onChanged(); return this; } /** * <code>optional uint32 max_columns_in_select = 22;</code> * * <pre> * Maximum number of columns in SELECT expressions (0 if unlimited or unknown) * </pre> */ public Builder clearMaxColumnsInSelect() { bitField0_ = (bitField0_ & ~0x00200000); maxColumnsInSelect_ = 0; onChanged(); return this; } // optional uint32 max_cursor_name_length = 23; private int maxCursorNameLength_ ; /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxCursorNameLength() { return ((bitField0_ & 0x00400000) == 0x00400000); } /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public int getMaxCursorNameLength() { return maxCursorNameLength_; } /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public Builder setMaxCursorNameLength(int value) { bitField0_ |= 0x00400000; maxCursorNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_cursor_name_length = 23;</code> * * <pre> * Maximum length of cursor names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxCursorNameLength() { bitField0_ = (bitField0_ & ~0x00400000); maxCursorNameLength_ = 0; onChanged(); return this; } // optional uint32 max_logical_lob_size = 24; private int maxLogicalLobSize_ ; /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public boolean hasMaxLogicalLobSize() { return ((bitField0_ & 0x00800000) == 0x00800000); } /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public int getMaxLogicalLobSize() { return maxLogicalLobSize_; } /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public Builder setMaxLogicalLobSize(int value) { bitField0_ |= 0x00800000; maxLogicalLobSize_ = value; onChanged(); return this; } /** * <code>optional uint32 max_logical_lob_size = 24;</code> * * <pre> * Maximum logical size for LOB types (0 if unlimited or unknown) * </pre> */ public Builder clearMaxLogicalLobSize() { bitField0_ = (bitField0_ & ~0x00800000); maxLogicalLobSize_ = 0; onChanged(); return this; } // optional uint32 max_row_size = 25; private int maxRowSize_ ; /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public boolean hasMaxRowSize() { return ((bitField0_ & 0x01000000) == 0x01000000); } /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public int getMaxRowSize() { return maxRowSize_; } /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public Builder setMaxRowSize(int value) { bitField0_ |= 0x01000000; maxRowSize_ = value; onChanged(); return this; } /** * <code>optional uint32 max_row_size = 25;</code> * * <pre> * Maximum number of bytes for a single row (0 if unlimited or unknown) * </pre> */ public Builder clearMaxRowSize() { bitField0_ = (bitField0_ & ~0x01000000); maxRowSize_ = 0; onChanged(); return this; } // optional uint32 max_schema_name_length = 26; private int maxSchemaNameLength_ ; /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxSchemaNameLength() { return ((bitField0_ & 0x02000000) == 0x02000000); } /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public int getMaxSchemaNameLength() { return maxSchemaNameLength_; } /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public Builder setMaxSchemaNameLength(int value) { bitField0_ |= 0x02000000; maxSchemaNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_schema_name_length = 26;</code> * * <pre> * Maximum length of schema names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxSchemaNameLength() { bitField0_ = (bitField0_ & ~0x02000000); maxSchemaNameLength_ = 0; onChanged(); return this; } // optional uint32 max_statement_length = 27; private int maxStatementLength_ ; /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public boolean hasMaxStatementLength() { return ((bitField0_ & 0x04000000) == 0x04000000); } /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public int getMaxStatementLength() { return maxStatementLength_; } /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public Builder setMaxStatementLength(int value) { bitField0_ |= 0x04000000; maxStatementLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_statement_length = 27;</code> * * <pre> * Maximum length for statements (0 if unlimited or unknown) * </pre> */ public Builder clearMaxStatementLength() { bitField0_ = (bitField0_ & ~0x04000000); maxStatementLength_ = 0; onChanged(); return this; } // optional uint32 max_statements = 28; private int maxStatements_ ; /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public boolean hasMaxStatements() { return ((bitField0_ & 0x08000000) == 0x08000000); } /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public int getMaxStatements() { return maxStatements_; } /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public Builder setMaxStatements(int value) { bitField0_ |= 0x08000000; maxStatements_ = value; onChanged(); return this; } /** * <code>optional uint32 max_statements = 28;</code> * * <pre> * Maximum number of statements (0 if unlimited or unknown) * </pre> */ public Builder clearMaxStatements() { bitField0_ = (bitField0_ & ~0x08000000); maxStatements_ = 0; onChanged(); return this; } // optional uint32 max_table_name_length = 29; private int maxTableNameLength_ ; /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxTableNameLength() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public int getMaxTableNameLength() { return maxTableNameLength_; } /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public Builder setMaxTableNameLength(int value) { bitField0_ |= 0x10000000; maxTableNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_table_name_length = 29;</code> * * <pre> * Maximum length of table names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxTableNameLength() { bitField0_ = (bitField0_ & ~0x10000000); maxTableNameLength_ = 0; onChanged(); return this; } // optional uint32 max_tables_in_select = 30; private int maxTablesInSelect_ ; /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public boolean hasMaxTablesInSelect() { return ((bitField0_ & 0x20000000) == 0x20000000); } /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public int getMaxTablesInSelect() { return maxTablesInSelect_; } /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public Builder setMaxTablesInSelect(int value) { bitField0_ |= 0x20000000; maxTablesInSelect_ = value; onChanged(); return this; } /** * <code>optional uint32 max_tables_in_select = 30;</code> * * <pre> * Maximum number of tables in a SELECT expression (0 if unlimited or unknown) * </pre> */ public Builder clearMaxTablesInSelect() { bitField0_ = (bitField0_ & ~0x20000000); maxTablesInSelect_ = 0; onChanged(); return this; } // optional uint32 max_user_name_length = 31; private int maxUserNameLength_ ; /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public boolean hasMaxUserNameLength() { return ((bitField0_ & 0x40000000) == 0x40000000); } /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public int getMaxUserNameLength() { return maxUserNameLength_; } /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public Builder setMaxUserNameLength(int value) { bitField0_ |= 0x40000000; maxUserNameLength_ = value; onChanged(); return this; } /** * <code>optional uint32 max_user_name_length = 31;</code> * * <pre> * Maximum length of user names (0 if unlimited or unknown) * </pre> */ public Builder clearMaxUserNameLength() { bitField0_ = (bitField0_ & ~0x40000000); maxUserNameLength_ = 0; onChanged(); return this; } // optional .exec.user.NullCollation null_collation = 32; private org.apache.drill.exec.proto.UserProtos.NullCollation nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN; /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public boolean hasNullCollation() { return ((bitField0_ & 0x80000000) == 0x80000000); } /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public org.apache.drill.exec.proto.UserProtos.NullCollation getNullCollation() { return nullCollation_; } /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public Builder setNullCollation(org.apache.drill.exec.proto.UserProtos.NullCollation value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x80000000; nullCollation_ = value; onChanged(); return this; } /** * <code>optional .exec.user.NullCollation null_collation = 32;</code> * * <pre> * How NULL are sorted * </pre> */ public Builder clearNullCollation() { bitField0_ = (bitField0_ & ~0x80000000); nullCollation_ = org.apache.drill.exec.proto.UserProtos.NullCollation.NC_UNKNOWN; onChanged(); return this; } // optional bool null_plus_non_null_equals_null = 33; private boolean nullPlusNonNullEqualsNull_ ; /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public boolean hasNullPlusNonNullEqualsNull() { return ((bitField1_ & 0x00000001) == 0x00000001); } /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public boolean getNullPlusNonNullEqualsNull() { return nullPlusNonNullEqualsNull_; } /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public Builder setNullPlusNonNullEqualsNull(boolean value) { bitField1_ |= 0x00000001; nullPlusNonNullEqualsNull_ = value; onChanged(); return this; } /** * <code>optional bool null_plus_non_null_equals_null = 33;</code> * * <pre> * True if NULL + non NULL is NULL * </pre> */ public Builder clearNullPlusNonNullEqualsNull() { bitField1_ = (bitField1_ & ~0x00000001); nullPlusNonNullEqualsNull_ = false; onChanged(); return this; } // repeated string numeric_functions = 34; private com.google.protobuf.LazyStringList numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNumericFunctionsIsMutable() { if (!((bitField1_ & 0x00000002) == 0x00000002)) { numericFunctions_ = new com.google.protobuf.LazyStringArrayList(numericFunctions_); bitField1_ |= 0x00000002; } } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public java.util.List<java.lang.String> getNumericFunctionsList() { return java.util.Collections.unmodifiableList(numericFunctions_); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public int getNumericFunctionsCount() { return numericFunctions_.size(); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public java.lang.String getNumericFunctions(int index) { return numericFunctions_.get(index); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public com.google.protobuf.ByteString getNumericFunctionsBytes(int index) { return numericFunctions_.getByteString(index); } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public Builder setNumericFunctions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNumericFunctionsIsMutable(); numericFunctions_.set(index, value); onChanged(); return this; } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public Builder addNumericFunctions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNumericFunctionsIsMutable(); numericFunctions_.add(value); onChanged(); return this; } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public Builder addAllNumericFunctions( java.lang.Iterable<java.lang.String> values) { ensureNumericFunctionsIsMutable(); super.addAll(values, numericFunctions_); onChanged(); return this; } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public Builder clearNumericFunctions() { numericFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } /** * <code>repeated string numeric_functions = 34;</code> * * <pre> * Supported ODBC/JDBC numeric scalar functions * </pre> */ public Builder addNumericFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureNumericFunctionsIsMutable(); numericFunctions_.add(value); onChanged(); return this; } // repeated .exec.user.OrderBySupport order_by_support = 35; private java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> orderBySupport_ = java.util.Collections.emptyList(); private void ensureOrderBySupportIsMutable() { if (!((bitField1_ & 0x00000004) == 0x00000004)) { orderBySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OrderBySupport>(orderBySupport_); bitField1_ |= 0x00000004; } } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.OrderBySupport> getOrderBySupportList() { return java.util.Collections.unmodifiableList(orderBySupport_); } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public int getOrderBySupportCount() { return orderBySupport_.size(); } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index) { return orderBySupport_.get(index); } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public Builder setOrderBySupport( int index, org.apache.drill.exec.proto.UserProtos.OrderBySupport value) { if (value == null) { throw new NullPointerException(); } ensureOrderBySupportIsMutable(); orderBySupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public Builder addOrderBySupport(org.apache.drill.exec.proto.UserProtos.OrderBySupport value) { if (value == null) { throw new NullPointerException(); } ensureOrderBySupportIsMutable(); orderBySupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public Builder addAllOrderBySupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.OrderBySupport> values) { ensureOrderBySupportIsMutable(); super.addAll(values, orderBySupport_); onChanged(); return this; } /** * <code>repeated .exec.user.OrderBySupport order_by_support = 35;</code> * * <pre> * Outer join suport * </pre> */ public Builder clearOrderBySupport() { orderBySupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); return this; } // repeated .exec.user.OuterJoinSupport outer_join_support = 36; private java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> outerJoinSupport_ = java.util.Collections.emptyList(); private void ensureOuterJoinSupportIsMutable() { if (!((bitField1_ & 0x00000008) == 0x00000008)) { outerJoinSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport>(outerJoinSupport_); bitField1_ |= 0x00000008; } } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> getOuterJoinSupportList() { return java.util.Collections.unmodifiableList(outerJoinSupport_); } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public int getOuterJoinSupportCount() { return outerJoinSupport_.size(); } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index) { return outerJoinSupport_.get(index); } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public Builder setOuterJoinSupport( int index, org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value) { if (value == null) { throw new NullPointerException(); } ensureOuterJoinSupportIsMutable(); outerJoinSupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public Builder addOuterJoinSupport(org.apache.drill.exec.proto.UserProtos.OuterJoinSupport value) { if (value == null) { throw new NullPointerException(); } ensureOuterJoinSupportIsMutable(); outerJoinSupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public Builder addAllOuterJoinSupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.OuterJoinSupport> values) { ensureOuterJoinSupportIsMutable(); super.addAll(values, outerJoinSupport_); onChanged(); return this; } /** * <code>repeated .exec.user.OuterJoinSupport outer_join_support = 36;</code> * * <pre> * Outer join suport * </pre> */ public Builder clearOuterJoinSupport() { outerJoinSupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000008); onChanged(); return this; } // optional .exec.user.IdentifierCasing quoted_identifier_casing = 37; private org.apache.drill.exec.proto.UserProtos.IdentifierCasing quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public boolean hasQuotedIdentifierCasing() { return ((bitField1_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public org.apache.drill.exec.proto.UserProtos.IdentifierCasing getQuotedIdentifierCasing() { return quotedIdentifierCasing_; } /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public Builder setQuotedIdentifierCasing(org.apache.drill.exec.proto.UserProtos.IdentifierCasing value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000010; quotedIdentifierCasing_ = value; onChanged(); return this; } /** * <code>optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;</code> * * <pre> * Quoted identifier casing * </pre> */ public Builder clearQuotedIdentifierCasing() { bitField1_ = (bitField1_ & ~0x00000010); quotedIdentifierCasing_ = org.apache.drill.exec.proto.UserProtos.IdentifierCasing.IC_UNKNOWN; onChanged(); return this; } // optional bool read_only = 38; private boolean readOnly_ ; /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public boolean hasReadOnly() { return ((bitField1_ & 0x00000020) == 0x00000020); } /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public boolean getReadOnly() { return readOnly_; } /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public Builder setReadOnly(boolean value) { bitField1_ |= 0x00000020; readOnly_ = value; onChanged(); return this; } /** * <code>optional bool read_only = 38;</code> * * <pre> * True if connection access is read only * </pre> */ public Builder clearReadOnly() { bitField1_ = (bitField1_ & ~0x00000020); readOnly_ = false; onChanged(); return this; } // optional string schema_term = 39; private java.lang.Object schemaTerm_ = ""; /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public boolean hasSchemaTerm() { return ((bitField1_ & 0x00000040) == 0x00000040); } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public java.lang.String getSchemaTerm() { java.lang.Object ref = schemaTerm_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); schemaTerm_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public com.google.protobuf.ByteString getSchemaTermBytes() { java.lang.Object ref = schemaTerm_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public Builder setSchemaTerm( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000040; schemaTerm_ = value; onChanged(); return this; } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public Builder clearSchemaTerm() { bitField1_ = (bitField1_ & ~0x00000040); schemaTerm_ = getDefaultInstance().getSchemaTerm(); onChanged(); return this; } /** * <code>optional string schema_term = 39;</code> * * <pre> * The term used to designate a schema * </pre> */ public Builder setSchemaTermBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000040; schemaTerm_ = value; onChanged(); return this; } // optional string search_escape_string = 40; private java.lang.Object searchEscapeString_ = ""; /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public boolean hasSearchEscapeString() { return ((bitField1_ & 0x00000080) == 0x00000080); } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public java.lang.String getSearchEscapeString() { java.lang.Object ref = searchEscapeString_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); searchEscapeString_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public com.google.protobuf.ByteString getSearchEscapeStringBytes() { java.lang.Object ref = searchEscapeString_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); searchEscapeString_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public Builder setSearchEscapeString( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000080; searchEscapeString_ = value; onChanged(); return this; } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public Builder clearSearchEscapeString() { bitField1_ = (bitField1_ & ~0x00000080); searchEscapeString_ = getDefaultInstance().getSearchEscapeString(); onChanged(); return this; } /** * <code>optional string search_escape_string = 40;</code> * * <pre> * Characters used for escaping (empty if not suported) * </pre> */ public Builder setSearchEscapeStringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000080; searchEscapeString_ = value; onChanged(); return this; } // optional bool select_for_update_supported = 41; private boolean selectForUpdateSupported_ ; /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public boolean hasSelectForUpdateSupported() { return ((bitField1_ & 0x00000100) == 0x00000100); } /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public boolean getSelectForUpdateSupported() { return selectForUpdateSupported_; } /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public Builder setSelectForUpdateSupported(boolean value) { bitField1_ |= 0x00000100; selectForUpdateSupported_ = value; onChanged(); return this; } /** * <code>optional bool select_for_update_supported = 41;</code> * * <pre> * True if SELECT FOR UPDATE is supported * </pre> */ public Builder clearSelectForUpdateSupported() { bitField1_ = (bitField1_ & ~0x00000100); selectForUpdateSupported_ = false; onChanged(); return this; } // optional string special_characters = 42; private java.lang.Object specialCharacters_ = ""; /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public boolean hasSpecialCharacters() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public java.lang.String getSpecialCharacters() { java.lang.Object ref = specialCharacters_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); specialCharacters_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public com.google.protobuf.ByteString getSpecialCharactersBytes() { java.lang.Object ref = specialCharacters_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); specialCharacters_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public Builder setSpecialCharacters( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000200; specialCharacters_ = value; onChanged(); return this; } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public Builder clearSpecialCharacters() { bitField1_ = (bitField1_ & ~0x00000200); specialCharacters_ = getDefaultInstance().getSpecialCharacters(); onChanged(); return this; } /** * <code>optional string special_characters = 42;</code> * * <pre> * List of extra characters that can be used in identifier names * </pre> */ public Builder setSpecialCharactersBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00000200; specialCharacters_ = value; onChanged(); return this; } // repeated string sql_keywords = 43; private com.google.protobuf.LazyStringList sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSqlKeywordsIsMutable() { if (!((bitField1_ & 0x00000400) == 0x00000400)) { sqlKeywords_ = new com.google.protobuf.LazyStringArrayList(sqlKeywords_); bitField1_ |= 0x00000400; } } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public java.util.List<java.lang.String> getSqlKeywordsList() { return java.util.Collections.unmodifiableList(sqlKeywords_); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public int getSqlKeywordsCount() { return sqlKeywords_.size(); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public java.lang.String getSqlKeywords(int index) { return sqlKeywords_.get(index); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public com.google.protobuf.ByteString getSqlKeywordsBytes(int index) { return sqlKeywords_.getByteString(index); } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public Builder setSqlKeywords( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSqlKeywordsIsMutable(); sqlKeywords_.set(index, value); onChanged(); return this; } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public Builder addSqlKeywords( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSqlKeywordsIsMutable(); sqlKeywords_.add(value); onChanged(); return this; } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public Builder addAllSqlKeywords( java.lang.Iterable<java.lang.String> values) { ensureSqlKeywordsIsMutable(); super.addAll(values, sqlKeywords_); onChanged(); return this; } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public Builder clearSqlKeywords() { sqlKeywords_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000400); onChanged(); return this; } /** * <code>repeated string sql_keywords = 43;</code> * * <pre> * list of SQL keywords * </pre> */ public Builder addSqlKeywordsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSqlKeywordsIsMutable(); sqlKeywords_.add(value); onChanged(); return this; } // repeated string string_functions = 44; private com.google.protobuf.LazyStringList stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStringFunctionsIsMutable() { if (!((bitField1_ & 0x00000800) == 0x00000800)) { stringFunctions_ = new com.google.protobuf.LazyStringArrayList(stringFunctions_); bitField1_ |= 0x00000800; } } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public java.util.List<java.lang.String> getStringFunctionsList() { return java.util.Collections.unmodifiableList(stringFunctions_); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public int getStringFunctionsCount() { return stringFunctions_.size(); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public java.lang.String getStringFunctions(int index) { return stringFunctions_.get(index); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public com.google.protobuf.ByteString getStringFunctionsBytes(int index) { return stringFunctions_.getByteString(index); } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public Builder setStringFunctions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringFunctionsIsMutable(); stringFunctions_.set(index, value); onChanged(); return this; } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public Builder addStringFunctions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStringFunctionsIsMutable(); stringFunctions_.add(value); onChanged(); return this; } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public Builder addAllStringFunctions( java.lang.Iterable<java.lang.String> values) { ensureStringFunctionsIsMutable(); super.addAll(values, stringFunctions_); onChanged(); return this; } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public Builder clearStringFunctions() { stringFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00000800); onChanged(); return this; } /** * <code>repeated string string_functions = 44;</code> * * <pre> * Supported ODBC/JDBC string scalar functions * </pre> */ public Builder addStringFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureStringFunctionsIsMutable(); stringFunctions_.add(value); onChanged(); return this; } // repeated .exec.user.SubQuerySupport subquery_support = 45; private java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> subquerySupport_ = java.util.Collections.emptyList(); private void ensureSubquerySupportIsMutable() { if (!((bitField1_ & 0x00001000) == 0x00001000)) { subquerySupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.SubQuerySupport>(subquerySupport_); bitField1_ |= 0x00001000; } } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.SubQuerySupport> getSubquerySupportList() { return java.util.Collections.unmodifiableList(subquerySupport_); } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public int getSubquerySupportCount() { return subquerySupport_.size(); } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index) { return subquerySupport_.get(index); } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public Builder setSubquerySupport( int index, org.apache.drill.exec.proto.UserProtos.SubQuerySupport value) { if (value == null) { throw new NullPointerException(); } ensureSubquerySupportIsMutable(); subquerySupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public Builder addSubquerySupport(org.apache.drill.exec.proto.UserProtos.SubQuerySupport value) { if (value == null) { throw new NullPointerException(); } ensureSubquerySupportIsMutable(); subquerySupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public Builder addAllSubquerySupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.SubQuerySupport> values) { ensureSubquerySupportIsMutable(); super.addAll(values, subquerySupport_); onChanged(); return this; } /** * <code>repeated .exec.user.SubQuerySupport subquery_support = 45;</code> * * <pre> * Subquery support * </pre> */ public Builder clearSubquerySupport() { subquerySupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00001000); onChanged(); return this; } // repeated string system_functions = 46; private com.google.protobuf.LazyStringList systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSystemFunctionsIsMutable() { if (!((bitField1_ & 0x00002000) == 0x00002000)) { systemFunctions_ = new com.google.protobuf.LazyStringArrayList(systemFunctions_); bitField1_ |= 0x00002000; } } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public java.util.List<java.lang.String> getSystemFunctionsList() { return java.util.Collections.unmodifiableList(systemFunctions_); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public int getSystemFunctionsCount() { return systemFunctions_.size(); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public java.lang.String getSystemFunctions(int index) { return systemFunctions_.get(index); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public com.google.protobuf.ByteString getSystemFunctionsBytes(int index) { return systemFunctions_.getByteString(index); } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public Builder setSystemFunctions( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSystemFunctionsIsMutable(); systemFunctions_.set(index, value); onChanged(); return this; } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public Builder addSystemFunctions( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSystemFunctionsIsMutable(); systemFunctions_.add(value); onChanged(); return this; } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public Builder addAllSystemFunctions( java.lang.Iterable<java.lang.String> values) { ensureSystemFunctionsIsMutable(); super.addAll(values, systemFunctions_); onChanged(); return this; } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public Builder clearSystemFunctions() { systemFunctions_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField1_ = (bitField1_ & ~0x00002000); onChanged(); return this; } /** * <code>repeated string system_functions = 46;</code> * * <pre> * Supported ODBC/JDBC systen scalar functions * </pre> */ public Builder addSystemFunctionsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureSystemFunctionsIsMutable(); systemFunctions_.add(value); onChanged(); return this; } // optional string table_term = 47; private java.lang.Object tableTerm_ = ""; /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public boolean hasTableTerm() { return ((bitField1_ & 0x00004000) == 0x00004000); } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public java.lang.String getTableTerm() { java.lang.Object ref = tableTerm_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); tableTerm_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public com.google.protobuf.ByteString getTableTermBytes() { java.lang.Object ref = tableTerm_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tableTerm_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public Builder setTableTerm( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00004000; tableTerm_ = value; onChanged(); return this; } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public Builder clearTableTerm() { bitField1_ = (bitField1_ & ~0x00004000); tableTerm_ = getDefaultInstance().getTableTerm(); onChanged(); return this; } /** * <code>optional string table_term = 47;</code> * * <pre> * The term used to designate a table * </pre> */ public Builder setTableTermBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField1_ |= 0x00004000; tableTerm_ = value; onChanged(); return this; } // optional bool transaction_supported = 48; private boolean transactionSupported_ ; /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public boolean hasTransactionSupported() { return ((bitField1_ & 0x00008000) == 0x00008000); } /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public boolean getTransactionSupported() { return transactionSupported_; } /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public Builder setTransactionSupported(boolean value) { bitField1_ |= 0x00008000; transactionSupported_ = value; onChanged(); return this; } /** * <code>optional bool transaction_supported = 48;</code> * * <pre> * True if transaction is supported * </pre> */ public Builder clearTransactionSupported() { bitField1_ = (bitField1_ & ~0x00008000); transactionSupported_ = false; onChanged(); return this; } // repeated .exec.user.UnionSupport union_support = 49; private java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> unionSupport_ = java.util.Collections.emptyList(); private void ensureUnionSupportIsMutable() { if (!((bitField1_ & 0x00010000) == 0x00010000)) { unionSupport_ = new java.util.ArrayList<org.apache.drill.exec.proto.UserProtos.UnionSupport>(unionSupport_); bitField1_ |= 0x00010000; } } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public java.util.List<org.apache.drill.exec.proto.UserProtos.UnionSupport> getUnionSupportList() { return java.util.Collections.unmodifiableList(unionSupport_); } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public int getUnionSupportCount() { return unionSupport_.size(); } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public org.apache.drill.exec.proto.UserProtos.UnionSupport getUnionSupport(int index) { return unionSupport_.get(index); } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public Builder setUnionSupport( int index, org.apache.drill.exec.proto.UserProtos.UnionSupport value) { if (value == null) { throw new NullPointerException(); } ensureUnionSupportIsMutable(); unionSupport_.set(index, value); onChanged(); return this; } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public Builder addUnionSupport(org.apache.drill.exec.proto.UserProtos.UnionSupport value) { if (value == null) { throw new NullPointerException(); } ensureUnionSupportIsMutable(); unionSupport_.add(value); onChanged(); return this; } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public Builder addAllUnionSupport( java.lang.Iterable<? extends org.apache.drill.exec.proto.UserProtos.UnionSupport> values) { ensureUnionSupportIsMutable(); super.addAll(values, unionSupport_); onChanged(); return this; } /** * <code>repeated .exec.user.UnionSupport union_support = 49;</code> * * <pre> * UNION support * </pre> */ public Builder clearUnionSupport() { unionSupport_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00010000); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:exec.user.ServerMeta) } static { defaultInstance = new ServerMeta(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.ServerMeta) } public interface RunQueryOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .exec.user.QueryResultsMode results_mode = 1; /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ boolean hasResultsMode(); /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode(); // optional .exec.shared.QueryType type = 2; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ boolean hasType(); /** * <code>optional .exec.shared.QueryType type = 2;</code> */ org.apache.drill.exec.proto.UserBitShared.QueryType getType(); // optional string plan = 3; /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ boolean hasPlan(); /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ java.lang.String getPlan(); /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ com.google.protobuf.ByteString getPlanBytes(); // repeated .exec.bit.control.PlanFragment fragments = 4; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ int getFragmentsCount(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList(); /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index); // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5; /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ boolean hasPreparedStatementHandle(); /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle(); /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder(); } /** * Protobuf type {@code exec.user.RunQuery} * * <pre> * * Request message for running a query. * </pre> */ public static final class RunQuery extends com.google.protobuf.GeneratedMessage implements RunQueryOrBuilder { // Use RunQuery.newBuilder() to construct. private RunQuery(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RunQuery(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RunQuery defaultInstance; public static RunQuery getDefaultInstance() { return defaultInstance; } public RunQuery getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RunQuery( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserProtos.QueryResultsMode value = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; resultsMode_ = value; } break; } case 16: { int rawValue = input.readEnum(); org.apache.drill.exec.proto.UserBitShared.QueryType value = org.apache.drill.exec.proto.UserBitShared.QueryType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; type_ = value; } break; } case 26: { bitField0_ |= 0x00000004; plan_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>(); mutable_bitField0_ |= 0x00000008; } fragments_.add(input.readMessage(org.apache.drill.exec.proto.BitControl.PlanFragment.PARSER, extensionRegistry)); break; } case 42: { org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder subBuilder = null; if (((bitField0_ & 0x00000008) == 0x00000008)) { subBuilder = preparedStatementHandle_.toBuilder(); } preparedStatementHandle_ = input.readMessage(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(preparedStatementHandle_); preparedStatementHandle_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000008; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { fragments_ = java.util.Collections.unmodifiableList(fragments_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RunQuery.class, org.apache.drill.exec.proto.UserProtos.RunQuery.Builder.class); } public static com.google.protobuf.Parser<RunQuery> PARSER = new com.google.protobuf.AbstractParser<RunQuery>() { public RunQuery parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RunQuery(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RunQuery> getParserForType() { return PARSER; } private int bitField0_; // optional .exec.user.QueryResultsMode results_mode = 1; public static final int RESULTS_MODE_FIELD_NUMBER = 1; private org.apache.drill.exec.proto.UserProtos.QueryResultsMode resultsMode_; /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public boolean hasResultsMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode() { return resultsMode_; } // optional .exec.shared.QueryType type = 2; public static final int TYPE_FIELD_NUMBER = 2; private org.apache.drill.exec.proto.UserBitShared.QueryType type_; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryType getType() { return type_; } // optional string plan = 3; public static final int PLAN_FIELD_NUMBER = 3; private java.lang.Object plan_; /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public boolean hasPlan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public java.lang.String getPlan() { java.lang.Object ref = plan_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { plan_ = s; } return s; } } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public com.google.protobuf.ByteString getPlanBytes() { java.lang.Object ref = plan_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .exec.bit.control.PlanFragment fragments = 4; public static final int FRAGMENTS_FIELD_NUMBER = 4; private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() { return fragments_; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList() { return fragments_; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public int getFragmentsCount() { return fragments_.size(); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) { return fragments_.get(index); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index) { return fragments_.get(index); } // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5; public static final int PREPARED_STATEMENT_HANDLE_FIELD_NUMBER = 5; private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle preparedStatementHandle_; /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public boolean hasPreparedStatementHandle() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle() { return preparedStatementHandle_; } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder() { return preparedStatementHandle_; } private void initFields() { resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL; type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; plan_ = ""; fragments_ = java.util.Collections.emptyList(); preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, resultsMode_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getPlanBytes()); } for (int i = 0; i < fragments_.size(); i++) { output.writeMessage(4, fragments_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeMessage(5, preparedStatementHandle_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, resultsMode_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getPlanBytes()); } for (int i = 0; i < fragments_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, fragments_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, preparedStatementHandle_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.drill.exec.proto.UserProtos.RunQuery parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RunQuery prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code exec.user.RunQuery} * * <pre> * * Request message for running a query. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements org.apache.drill.exec.proto.UserProtos.RunQueryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.drill.exec.proto.UserProtos.RunQuery.class, org.apache.drill.exec.proto.UserProtos.RunQuery.Builder.class); } // Construct using org.apache.drill.exec.proto.UserProtos.RunQuery.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getFragmentsFieldBuilder(); getPreparedStatementHandleFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL; bitField0_ = (bitField0_ & ~0x00000001); type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; bitField0_ = (bitField0_ & ~0x00000002); plan_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { fragmentsBuilder_.clear(); } if (preparedStatementHandleBuilder_ == null) { preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); } else { preparedStatementHandleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RunQuery_descriptor; } public org.apache.drill.exec.proto.UserProtos.RunQuery getDefaultInstanceForType() { return org.apache.drill.exec.proto.UserProtos.RunQuery.getDefaultInstance(); } public org.apache.drill.exec.proto.UserProtos.RunQuery build() { org.apache.drill.exec.proto.UserProtos.RunQuery result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.drill.exec.proto.UserProtos.RunQuery buildPartial() { org.apache.drill.exec.proto.UserProtos.RunQuery result = new org.apache.drill.exec.proto.UserProtos.RunQuery(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.resultsMode_ = resultsMode_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.plan_ = plan_; if (fragmentsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { fragments_ = java.util.Collections.unmodifiableList(fragments_); bitField0_ = (bitField0_ & ~0x00000008); } result.fragments_ = fragments_; } else { result.fragments_ = fragmentsBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } if (preparedStatementHandleBuilder_ == null) { result.preparedStatementHandle_ = preparedStatementHandle_; } else { result.preparedStatementHandle_ = preparedStatementHandleBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.drill.exec.proto.UserProtos.RunQuery) { return mergeFrom((org.apache.drill.exec.proto.UserProtos.RunQuery)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.drill.exec.proto.UserProtos.RunQuery other) { if (other == org.apache.drill.exec.proto.UserProtos.RunQuery.getDefaultInstance()) return this; if (other.hasResultsMode()) { setResultsMode(other.getResultsMode()); } if (other.hasType()) { setType(other.getType()); } if (other.hasPlan()) { bitField0_ |= 0x00000004; plan_ = other.plan_; onChanged(); } if (fragmentsBuilder_ == null) { if (!other.fragments_.isEmpty()) { if (fragments_.isEmpty()) { fragments_ = other.fragments_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureFragmentsIsMutable(); fragments_.addAll(other.fragments_); } onChanged(); } } else { if (!other.fragments_.isEmpty()) { if (fragmentsBuilder_.isEmpty()) { fragmentsBuilder_.dispose(); fragmentsBuilder_ = null; fragments_ = other.fragments_; bitField0_ = (bitField0_ & ~0x00000008); fragmentsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getFragmentsFieldBuilder() : null; } else { fragmentsBuilder_.addAllMessages(other.fragments_); } } } if (other.hasPreparedStatementHandle()) { mergePreparedStatementHandle(other.getPreparedStatementHandle()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.drill.exec.proto.UserProtos.RunQuery parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.drill.exec.proto.UserProtos.RunQuery) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .exec.user.QueryResultsMode results_mode = 1; private org.apache.drill.exec.proto.UserProtos.QueryResultsMode resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL; /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public boolean hasResultsMode() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public org.apache.drill.exec.proto.UserProtos.QueryResultsMode getResultsMode() { return resultsMode_; } /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public Builder setResultsMode(org.apache.drill.exec.proto.UserProtos.QueryResultsMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; resultsMode_ = value; onChanged(); return this; } /** * <code>optional .exec.user.QueryResultsMode results_mode = 1;</code> */ public Builder clearResultsMode() { bitField0_ = (bitField0_ & ~0x00000001); resultsMode_ = org.apache.drill.exec.proto.UserProtos.QueryResultsMode.STREAM_FULL; onChanged(); return this; } // optional .exec.shared.QueryType type = 2; private org.apache.drill.exec.proto.UserBitShared.QueryType type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public boolean hasType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public org.apache.drill.exec.proto.UserBitShared.QueryType getType() { return type_; } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder setType(org.apache.drill.exec.proto.UserBitShared.QueryType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value; onChanged(); return this; } /** * <code>optional .exec.shared.QueryType type = 2;</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = org.apache.drill.exec.proto.UserBitShared.QueryType.SQL; onChanged(); return this; } // optional string plan = 3; private java.lang.Object plan_ = ""; /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public boolean hasPlan() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public java.lang.String getPlan() { java.lang.Object ref = plan_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); plan_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public com.google.protobuf.ByteString getPlanBytes() { java.lang.Object ref = plan_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); plan_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public Builder setPlan( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; plan_ = value; onChanged(); return this; } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public Builder clearPlan() { bitField0_ = (bitField0_ & ~0x00000004); plan_ = getDefaultInstance().getPlan(); onChanged(); return this; } /** * <code>optional string plan = 3;</code> * * <pre> * * Input for query type LOGICAL, PHYSICAL or SQL. * </pre> */ public Builder setPlanBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; plan_ = value; onChanged(); return this; } // repeated .exec.bit.control.PlanFragment fragments = 4; private java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> fragments_ = java.util.Collections.emptyList(); private void ensureFragmentsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { fragments_ = new java.util.ArrayList<org.apache.drill.exec.proto.BitControl.PlanFragment>(fragments_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> fragmentsBuilder_; /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment> getFragmentsList() { if (fragmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(fragments_); } else { return fragmentsBuilder_.getMessageList(); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public int getFragmentsCount() { if (fragmentsBuilder_ == null) { return fragments_.size(); } else { return fragmentsBuilder_.getCount(); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragment getFragments(int index) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessage(index); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder setFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.set(index, value); onChanged(); } else { fragmentsBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder setFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.set(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder addFragments(org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(value); onChanged(); } else { fragmentsBuilder_.addMessage(value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder addFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment value) { if (fragmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFragmentsIsMutable(); fragments_.add(index, value); onChanged(); } else { fragmentsBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder addFragments( org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder addFragments( int index, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder builderForValue) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.add(index, builderForValue.build()); onChanged(); } else { fragmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder addAllFragments( java.lang.Iterable<? extends org.apache.drill.exec.proto.BitControl.PlanFragment> values) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); super.addAll(values, fragments_); onChanged(); } else { fragmentsBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder clearFragments() { if (fragmentsBuilder_ == null) { fragments_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { fragmentsBuilder_.clear(); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public Builder removeFragments(int index) { if (fragmentsBuilder_ == null) { ensureFragmentsIsMutable(); fragments_.remove(index); onChanged(); } else { fragmentsBuilder_.remove(index); } return this; } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder getFragmentsBuilder( int index) { return getFragmentsFieldBuilder().getBuilder(index); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder getFragmentsOrBuilder( int index) { if (fragmentsBuilder_ == null) { return fragments_.get(index); } else { return fragmentsBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public java.util.List<? extends org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsOrBuilderList() { if (fragmentsBuilder_ != null) { return fragmentsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(fragments_); } } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder() { return getFragmentsFieldBuilder().addBuilder( org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance()); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public org.apache.drill.exec.proto.BitControl.PlanFragment.Builder addFragmentsBuilder( int index) { return getFragmentsFieldBuilder().addBuilder( index, org.apache.drill.exec.proto.BitControl.PlanFragment.getDefaultInstance()); } /** * <code>repeated .exec.bit.control.PlanFragment fragments = 4;</code> * * <pre> * * Input for query type EXECUTION. Input is a set of executable fragments. * </pre> */ public java.util.List<org.apache.drill.exec.proto.BitControl.PlanFragment.Builder> getFragmentsBuilderList() { return getFragmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder> getFragmentsFieldBuilder() { if (fragmentsBuilder_ == null) { fragmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.drill.exec.proto.BitControl.PlanFragment, org.apache.drill.exec.proto.BitControl.PlanFragment.Builder, org.apache.drill.exec.proto.BitControl.PlanFragmentOrBuilder>( fragments_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); fragments_ = null; } return fragmentsBuilder_; } // optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5; private org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> preparedStatementHandleBuilder_; /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public boolean hasPreparedStatementHandle() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getPreparedStatementHandle() { if (preparedStatementHandleBuilder_ == null) { return preparedStatementHandle_; } else { return preparedStatementHandleBuilder_.getMessage(); } } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public Builder setPreparedStatementHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) { if (preparedStatementHandleBuilder_ == null) { if (value == null) { throw new NullPointerException(); } preparedStatementHandle_ = value; onChanged(); } else { preparedStatementHandleBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public Builder setPreparedStatementHandle( org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder builderForValue) { if (preparedStatementHandleBuilder_ == null) { preparedStatementHandle_ = builderForValue.build(); onChanged(); } else { preparedStatementHandleBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public Builder mergePreparedStatementHandle(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle value) { if (preparedStatementHandleBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010) && preparedStatementHandle_ != org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance()) { preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.newBuilder(preparedStatementHandle_).mergeFrom(value).buildPartial(); } else { preparedStatementHandle_ = value; } onChanged(); } else { preparedStatementHandleBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public Builder clearPreparedStatementHandle() { if (preparedStatementHandleBuilder_ == null) { preparedStatementHandle_ = org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance(); onChanged(); } else { preparedStatementHandleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder getPreparedStatementHandleBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPreparedStatementHandleFieldBuilder().getBuilder(); } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder getPreparedStatementHandleOrBuilder() { if (preparedStatementHandleBuilder_ != null) { return preparedStatementHandleBuilder_.getMessageOrBuilder(); } else { return preparedStatementHandle_; } } /** * <code>optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;</code> * * <pre> * * Input for query type PREPARED_STATEMENT. Input is a prepared statement handle * to state on server side which is returned in response to CreatePreparedStatementReq. * </pre> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder> getPreparedStatementHandleFieldBuilder() { if (preparedStatementHandleBuilder_ == null) { preparedStatementHandleBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.Builder, org.apache.drill.exec.proto.UserProtos.PreparedStatementHandleOrBuilder>( preparedStatementHandle_, getParentForChildren(), isClean()); preparedStatementHandle_ = null; } return preparedStatementHandleBuilder_; } // @@protoc_insertion_point(builder_scope:exec.user.RunQuery) } static { defaultInstance = new RunQuery(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:exec.user.RunQuery) } private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_Property_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_Property_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_UserProperties_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_UserProperties_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_RpcEndpointInfos_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_UserToBitHandshake_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_UserToBitHandshake_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_RequestResults_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_RequestResults_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetQueryPlanFragments_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_QueryPlanFragments_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_QueryPlanFragments_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_BitToUserHandshake_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_BitToUserHandshake_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_LikeFilter_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_LikeFilter_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetCatalogsReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetCatalogsReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_CatalogMetadata_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_CatalogMetadata_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetCatalogsResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetCatalogsResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetSchemasReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetSchemasReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_SchemaMetadata_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_SchemaMetadata_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetSchemasResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetSchemasResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetTablesReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetTablesReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_TableMetadata_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_TableMetadata_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetTablesResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetTablesResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetColumnsReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetColumnsReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_ColumnMetadata_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_ColumnMetadata_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetColumnsResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetColumnsResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_CreatePreparedStatementReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_ResultColumnMetadata_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_PreparedStatementHandle_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_PreparedStatement_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_PreparedStatement_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_CreatePreparedStatementResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetServerMetaReq_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetServerMetaReq_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_ConvertSupport_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_ConvertSupport_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_GetServerMetaResp_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_GetServerMetaResp_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_ServerMeta_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_ServerMeta_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_exec_user_RunQuery_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_exec_user_RunQuery_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\nUser.proto\022\texec.user\032\017SchemaDef.proto" + "\032\013Types.proto\032\023UserBitShared.proto\032\rBitD" + "ata.proto\032\020BitControl.proto\032\025ExecutionPr" + "otos.proto\"&\n\010Property\022\013\n\003key\030\001 \002(\t\022\r\n\005v" + "alue\030\002 \002(\t\"9\n\016UserProperties\022\'\n\nproperti" + "es\030\001 \003(\0132\023.exec.user.Property\"\267\001\n\020RpcEnd" + "pointInfos\022\014\n\004name\030\001 \001(\t\022\017\n\007version\030\002 \001(" + "\t\022\024\n\014majorVersion\030\003 \001(\r\022\024\n\014minorVersion\030" + "\004 \001(\r\022\024\n\014patchVersion\030\005 \001(\r\022\023\n\013applicati" + "on\030\006 \001(\t\022\023\n\013buildNumber\030\007 \001(\r\022\030\n\020version", "Qualifier\030\010 \001(\t\"\375\002\n\022UserToBitHandshake\022." + "\n\007channel\030\001 \001(\0162\027.exec.shared.RpcChannel" + ":\004USER\022\031\n\021support_listening\030\002 \001(\010\022\023\n\013rpc" + "_version\030\003 \001(\005\0221\n\013credentials\030\004 \001(\0132\034.ex" + "ec.shared.UserCredentials\022-\n\nproperties\030" + "\005 \001(\0132\031.exec.user.UserProperties\022$\n\025supp" + "ort_complex_types\030\006 \001(\010:\005false\022\036\n\017suppor" + "t_timeout\030\007 \001(\010:\005false\0221\n\014client_infos\030\010" + " \001(\0132\033.exec.user.RpcEndpointInfos\022,\n\014sas" + "l_support\030\t \001(\0162\026.exec.user.SaslSupport\"", "S\n\016RequestResults\022&\n\010query_id\030\001 \001(\0132\024.ex" + "ec.shared.QueryId\022\031\n\021maximum_responses\030\002" + " \001(\005\"g\n\025GetQueryPlanFragments\022\r\n\005query\030\001" + " \002(\t\022$\n\004type\030\002 \001(\0162\026.exec.shared.QueryTy" + "pe\022\031\n\nsplit_plan\030\003 \001(\010:\005false\"\316\001\n\022QueryP" + "lanFragments\0223\n\006status\030\001 \002(\0162#.exec.shar" + "ed.QueryResult.QueryState\022&\n\010query_id\030\002 " + "\001(\0132\024.exec.shared.QueryId\0221\n\tfragments\030\003" + " \003(\0132\036.exec.bit.control.PlanFragment\022(\n\005" + "error\030\004 \001(\0132\031.exec.shared.DrillPBError\"\200", "\002\n\022BitToUserHandshake\022\023\n\013rpc_version\030\002 \001" + "(\005\022*\n\006status\030\003 \001(\0162\032.exec.user.Handshake" + "Status\022\017\n\007errorId\030\004 \001(\t\022\024\n\014errorMessage\030" + "\005 \001(\t\0221\n\014server_infos\030\006 \001(\0132\033.exec.user." + "RpcEndpointInfos\022 \n\030authenticationMechan" + "isms\030\007 \003(\t\022-\n\021supported_methods\030\010 \003(\0162\022." + "exec.user.RpcType\"-\n\nLikeFilter\022\017\n\007patte" + "rn\030\001 \001(\t\022\016\n\006escape\030\002 \001(\t\"D\n\016GetCatalogsR" + "eq\0222\n\023catalog_name_filter\030\001 \001(\0132\025.exec.u" + "ser.LikeFilter\"M\n\017CatalogMetadata\022\024\n\014cat", "alog_name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\017\n\007" + "connect\030\003 \001(\t\"\223\001\n\017GetCatalogsResp\022(\n\006sta" + "tus\030\001 \001(\0162\030.exec.user.RequestStatus\022,\n\010c" + "atalogs\030\002 \003(\0132\032.exec.user.CatalogMetadat" + "a\022(\n\005error\030\003 \001(\0132\031.exec.shared.DrillPBEr" + "ror\"v\n\rGetSchemasReq\0222\n\023catalog_name_fil" + "ter\030\001 \001(\0132\025.exec.user.LikeFilter\0221\n\022sche" + "ma_name_filter\030\002 \001(\0132\025.exec.user.LikeFil" + "ter\"i\n\016SchemaMetadata\022\024\n\014catalog_name\030\001 " + "\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\r\n\005owner\030\003 \001(\t\022", "\014\n\004type\030\004 \001(\t\022\017\n\007mutable\030\005 \001(\t\"\220\001\n\016GetSc" + "hemasResp\022(\n\006status\030\001 \001(\0162\030.exec.user.Re" + "questStatus\022*\n\007schemas\030\002 \003(\0132\031.exec.user" + ".SchemaMetadata\022(\n\005error\030\003 \001(\0132\031.exec.sh" + "ared.DrillPBError\"\302\001\n\014GetTablesReq\0222\n\023ca" + "talog_name_filter\030\001 \001(\0132\025.exec.user.Like" + "Filter\0221\n\022schema_name_filter\030\002 \001(\0132\025.exe" + "c.user.LikeFilter\0220\n\021table_name_filter\030\003" + " \001(\0132\025.exec.user.LikeFilter\022\031\n\021table_typ" + "e_filter\030\004 \003(\t\"\\\n\rTableMetadata\022\024\n\014catal", "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nta" + "ble_name\030\003 \001(\t\022\014\n\004type\030\004 \001(\t\"\215\001\n\rGetTabl" + "esResp\022(\n\006status\030\001 \001(\0162\030.exec.user.Reque" + "stStatus\022(\n\006tables\030\002 \003(\0132\030.exec.user.Tab" + "leMetadata\022(\n\005error\030\003 \001(\0132\031.exec.shared." + "DrillPBError\"\333\001\n\rGetColumnsReq\0222\n\023catalo" + "g_name_filter\030\001 \001(\0132\025.exec.user.LikeFilt" + "er\0221\n\022schema_name_filter\030\002 \001(\0132\025.exec.us" + "er.LikeFilter\0220\n\021table_name_filter\030\003 \001(\013" + "2\025.exec.user.LikeFilter\0221\n\022column_name_f", "ilter\030\004 \001(\0132\025.exec.user.LikeFilter\"\251\003\n\016C" + "olumnMetadata\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013" + "column_name\030\004 \001(\t\022\030\n\020ordinal_position\030\005 " + "\001(\005\022\025\n\rdefault_value\030\006 \001(\t\022\023\n\013is_nullabl" + "e\030\007 \001(\010\022\021\n\tdata_type\030\010 \001(\t\022\027\n\017char_max_l" + "ength\030\t \001(\005\022\031\n\021char_octet_length\030\n \001(\005\022\031" + "\n\021numeric_precision\030\013 \001(\005\022\037\n\027numeric_pre" + "cision_radix\030\014 \001(\005\022\025\n\rnumeric_scale\030\r \001(" + "\005\022\033\n\023date_time_precision\030\016 \001(\005\022\025\n\rinterv", "al_type\030\017 \001(\t\022\032\n\022interval_precision\030\020 \001(" + "\005\022\023\n\013column_size\030\021 \001(\005\"\220\001\n\016GetColumnsRes" + "p\022(\n\006status\030\001 \001(\0162\030.exec.user.RequestSta" + "tus\022*\n\007columns\030\002 \003(\0132\031.exec.user.ColumnM" + "etadata\022(\n\005error\030\003 \001(\0132\031.exec.shared.Dri" + "llPBError\"/\n\032CreatePreparedStatementReq\022" + "\021\n\tsql_query\030\001 \001(\t\"\326\003\n\024ResultColumnMetad" + "ata\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\023\n\013column_nam" + "e\030\004 \001(\t\022\r\n\005label\030\005 \001(\t\022\021\n\tdata_type\030\006 \001(", "\t\022\023\n\013is_nullable\030\007 \001(\010\022\021\n\tprecision\030\010 \001(" + "\005\022\r\n\005scale\030\t \001(\005\022\016\n\006signed\030\n \001(\010\022\024\n\014disp" + "lay_size\030\013 \001(\005\022\022\n\nis_aliased\030\014 \001(\010\0225\n\rse" + "archability\030\r \001(\0162\036.exec.user.ColumnSear" + "chability\0223\n\014updatability\030\016 \001(\0162\035.exec.u" + "ser.ColumnUpdatability\022\026\n\016auto_increment" + "\030\017 \001(\010\022\030\n\020case_sensitivity\030\020 \001(\010\022\020\n\010sort" + "able\030\021 \001(\010\022\022\n\nclass_name\030\022 \001(\t\022\023\n\013is_cur" + "rency\030\024 \001(\010\".\n\027PreparedStatementHandle\022\023" + "\n\013server_info\030\001 \001(\014\"\200\001\n\021PreparedStatemen", "t\0220\n\007columns\030\001 \003(\0132\037.exec.user.ResultCol" + "umnMetadata\0229\n\rserver_handle\030\002 \001(\0132\".exe" + "c.user.PreparedStatementHandle\"\253\001\n\033Creat" + "ePreparedStatementResp\022(\n\006status\030\001 \001(\0162\030" + ".exec.user.RequestStatus\0228\n\022prepared_sta" + "tement\030\002 \001(\0132\034.exec.user.PreparedStateme" + "nt\022(\n\005error\030\003 \001(\0132\031.exec.shared.DrillPBE" + "rror\"\022\n\020GetServerMetaReq\"P\n\016ConvertSuppo" + "rt\022\037\n\004from\030\001 \002(\0162\021.common.MinorType\022\035\n\002t" + "o\030\002 \002(\0162\021.common.MinorType\"\223\001\n\021GetServer", "MetaResp\022(\n\006status\030\001 \001(\0162\030.exec.user.Req" + "uestStatus\022*\n\013server_meta\030\002 \001(\0132\025.exec.u" + "ser.ServerMeta\022(\n\005error\030\003 \001(\0132\031.exec.sha" + "red.DrillPBError\"\377\r\n\nServerMeta\022\035\n\025all_t" + "ables_selectable\030\001 \001(\010\022%\n\035blob_included_" + "in_max_row_size\030\002 \001(\010\022\030\n\020catalog_at_star" + "t\030\003 \001(\010\022\031\n\021catalog_separator\030\004 \001(\t\022\024\n\014ca" + "talog_term\030\005 \001(\t\0222\n\017collate_support\030\006 \003(" + "\0162\031.exec.user.CollateSupport\022!\n\031column_a" + "liasing_supported\030\007 \001(\010\0222\n\017convert_suppo", "rt\030\010 \003(\0132\031.exec.user.ConvertSupport\022E\n\031c" + "orrelation_names_support\030\t \001(\0162\".exec.us" + "er.CorrelationNamesSupport\022\033\n\023date_time_" + "functions\030\n \003(\t\022F\n\032date_time_literals_su" + "pport\030\013 \003(\0162\".exec.user.DateTimeLiterals" + "Support\0223\n\020group_by_support\030\014 \001(\0162\031.exec" + ".user.GroupBySupport\0226\n\021identifier_casin" + "g\030\r \001(\0162\033.exec.user.IdentifierCasing\022\037\n\027" + "identifier_quote_string\030\016 \001(\t\022$\n\034like_es" + "cape_clause_supported\030\017 \001(\010\022!\n\031max_binar", "y_literal_length\030\020 \001(\r\022\037\n\027max_catalog_na" + "me_length\030\021 \001(\r\022\037\n\027max_char_literal_leng" + "th\030\022 \001(\r\022\036\n\026max_column_name_length\030\023 \001(\r" + "\022\037\n\027max_columns_in_group_by\030\024 \001(\r\022\037\n\027max" + "_columns_in_order_by\030\025 \001(\r\022\035\n\025max_column" + "s_in_select\030\026 \001(\r\022\036\n\026max_cursor_name_len" + "gth\030\027 \001(\r\022\034\n\024max_logical_lob_size\030\030 \001(\r\022" + "\024\n\014max_row_size\030\031 \001(\r\022\036\n\026max_schema_name" + "_length\030\032 \001(\r\022\034\n\024max_statement_length\030\033 " + "\001(\r\022\026\n\016max_statements\030\034 \001(\r\022\035\n\025max_table", "_name_length\030\035 \001(\r\022\034\n\024max_tables_in_sele" + "ct\030\036 \001(\r\022\034\n\024max_user_name_length\030\037 \001(\r\0220" + "\n\016null_collation\030 \001(\0162\030.exec.user.NullC" + "ollation\022&\n\036null_plus_non_null_equals_nu" + "ll\030! \001(\010\022\031\n\021numeric_functions\030\" \003(\t\0223\n\020o" + "rder_by_support\030# \003(\0162\031.exec.user.OrderB" + "ySupport\0227\n\022outer_join_support\030$ \003(\0162\033.e" + "xec.user.OuterJoinSupport\022=\n\030quoted_iden" + "tifier_casing\030% \001(\0162\033.exec.user.Identifi" + "erCasing\022\021\n\tread_only\030& \001(\010\022\023\n\013schema_te", "rm\030\' \001(\t\022\034\n\024search_escape_string\030( \001(\t\022#" + "\n\033select_for_update_supported\030) \001(\010\022\032\n\022s" + "pecial_characters\030* \001(\t\022\024\n\014sql_keywords\030" + "+ \003(\t\022\030\n\020string_functions\030, \003(\t\0224\n\020subqu" + "ery_support\030- \003(\0162\032.exec.user.SubQuerySu" + "pport\022\030\n\020system_functions\030. \003(\t\022\022\n\ntable" + "_term\030/ \001(\t\022\035\n\025transaction_supported\0300 \001" + "(\010\022.\n\runion_support\0301 \003(\0162\027.exec.user.Un" + "ionSupport\"\353\001\n\010RunQuery\0221\n\014results_mode\030" + "\001 \001(\0162\033.exec.user.QueryResultsMode\022$\n\004ty", "pe\030\002 \001(\0162\026.exec.shared.QueryType\022\014\n\004plan" + "\030\003 \001(\t\0221\n\tfragments\030\004 \003(\0132\036.exec.bit.con" + "trol.PlanFragment\022E\n\031prepared_statement_" + "handle\030\005 \001(\0132\".exec.user.PreparedStateme" + "ntHandle*\320\003\n\007RpcType\022\r\n\tHANDSHAKE\020\000\022\007\n\003A" + "CK\020\001\022\013\n\007GOODBYE\020\002\022\r\n\tRUN_QUERY\020\003\022\020\n\014CANC" + "EL_QUERY\020\004\022\023\n\017REQUEST_RESULTS\020\005\022\027\n\023RESUM" + "E_PAUSED_QUERY\020\013\022\034\n\030GET_QUERY_PLAN_FRAGM" + "ENTS\020\014\022\020\n\014GET_CATALOGS\020\016\022\017\n\013GET_SCHEMAS\020" + "\017\022\016\n\nGET_TABLES\020\020\022\017\n\013GET_COLUMNS\020\021\022\035\n\031CR", "EATE_PREPARED_STATEMENT\020\026\022\023\n\017GET_SERVER_" + "META\020\010\022\016\n\nQUERY_DATA\020\006\022\020\n\014QUERY_HANDLE\020\007" + "\022\030\n\024QUERY_PLAN_FRAGMENTS\020\r\022\014\n\010CATALOGS\020\022" + "\022\013\n\007SCHEMAS\020\023\022\n\n\006TABLES\020\024\022\013\n\007COLUMNS\020\025\022\026" + "\n\022PREPARED_STATEMENT\020\027\022\017\n\013SERVER_META\020\t\022" + "\020\n\014QUERY_RESULT\020\n\022\020\n\014SASL_MESSAGE\020\030*6\n\013S" + "aslSupport\022\030\n\024UNKNOWN_SASL_SUPPORT\020\000\022\r\n\t" + "SASL_AUTH\020\001*#\n\020QueryResultsMode\022\017\n\013STREA" + "M_FULL\020\001*q\n\017HandshakeStatus\022\013\n\007SUCCESS\020\001" + "\022\030\n\024RPC_VERSION_MISMATCH\020\002\022\017\n\013AUTH_FAILE", "D\020\003\022\023\n\017UNKNOWN_FAILURE\020\004\022\021\n\rAUTH_REQUIRE" + "D\020\005*D\n\rRequestStatus\022\022\n\016UNKNOWN_STATUS\020\000" + "\022\006\n\002OK\020\001\022\n\n\006FAILED\020\002\022\013\n\007TIMEOUT\020\003*Y\n\023Col" + "umnSearchability\022\031\n\025UNKNOWN_SEARCHABILIT" + "Y\020\000\022\010\n\004NONE\020\001\022\010\n\004CHAR\020\002\022\n\n\006NUMBER\020\003\022\007\n\003A" + "LL\020\004*K\n\022ColumnUpdatability\022\030\n\024UNKNOWN_UP" + "DATABILITY\020\000\022\r\n\tREAD_ONLY\020\001\022\014\n\010WRITABLE\020" + "\002*1\n\016CollateSupport\022\016\n\nCS_UNKNOWN\020\000\022\017\n\013C" + "S_GROUP_BY\020\001*J\n\027CorrelationNamesSupport\022" + "\013\n\007CN_NONE\020\001\022\026\n\022CN_DIFFERENT_NAMES\020\002\022\n\n\006", "CN_ANY\020\003*\271\003\n\027DateTimeLiteralsSupport\022\016\n\n" + "DL_UNKNOWN\020\000\022\013\n\007DL_DATE\020\001\022\013\n\007DL_TIME\020\002\022\020" + "\n\014DL_TIMESTAMP\020\003\022\024\n\020DL_INTERVAL_YEAR\020\004\022\025" + "\n\021DL_INTERVAL_MONTH\020\005\022\023\n\017DL_INTERVAL_DAY" + "\020\006\022\024\n\020DL_INTERVAL_HOUR\020\007\022\026\n\022DL_INTERVAL_" + "MINUTE\020\010\022\026\n\022DL_INTERVAL_SECOND\020\t\022\035\n\031DL_I" + "NTERVAL_YEAR_TO_MONTH\020\n\022\033\n\027DL_INTERVAL_D" + "AY_TO_HOUR\020\013\022\035\n\031DL_INTERVAL_DAY_TO_MINUT" + "E\020\014\022\035\n\031DL_INTERVAL_DAY_TO_SECOND\020\r\022\036\n\032DL" + "_INTERVAL_HOUR_TO_MINUTE\020\016\022\036\n\032DL_INTERVA", "L_HOUR_TO_SECOND\020\017\022 \n\034DL_INTERVAL_MINUTE" + "_TO_SECOND\020\020*Y\n\016GroupBySupport\022\013\n\007GB_NON" + "E\020\001\022\022\n\016GB_SELECT_ONLY\020\002\022\024\n\020GB_BEYOND_SEL" + "ECT\020\003\022\020\n\014GB_UNRELATED\020\004*x\n\020IdentifierCas" + "ing\022\016\n\nIC_UNKNOWN\020\000\022\023\n\017IC_STORES_LOWER\020\001" + "\022\023\n\017IC_STORES_MIXED\020\002\022\023\n\017IC_STORES_UPPER" + "\020\003\022\025\n\021IC_SUPPORTS_MIXED\020\004*X\n\rNullCollati" + "on\022\016\n\nNC_UNKNOWN\020\000\022\017\n\013NC_AT_START\020\001\022\r\n\tN" + "C_AT_END\020\002\022\013\n\007NC_HIGH\020\003\022\n\n\006NC_LOW\020\004*E\n\016O" + "rderBySupport\022\016\n\nOB_UNKNOWN\020\000\022\020\n\014OB_UNRE", "LATED\020\001\022\021\n\rOB_EXPRESSION\020\002*\226\001\n\020OuterJoin" + "Support\022\016\n\nOJ_UNKNOWN\020\000\022\013\n\007OJ_LEFT\020\001\022\014\n\010" + "OJ_RIGHT\020\002\022\013\n\007OJ_FULL\020\003\022\r\n\tOJ_NESTED\020\004\022\022" + "\n\016OJ_NOT_ORDERED\020\005\022\014\n\010OJ_INNER\020\006\022\031\n\025OJ_A" + "LL_COMPARISON_OPS\020\007*\204\001\n\017SubQuerySupport\022" + "\016\n\nSQ_UNKNOWN\020\000\022\021\n\rSQ_CORRELATED\020\001\022\024\n\020SQ" + "_IN_COMPARISON\020\002\022\020\n\014SQ_IN_EXISTS\020\003\022\020\n\014SQ" + "_IN_INSERT\020\004\022\024\n\020SQ_IN_QUANTIFIED\020\005*;\n\014Un" + "ionSupport\022\r\n\tU_UNKNOWN\020\000\022\013\n\007U_UNION\020\001\022\017" + "\n\013U_UNION_ALL\020\002B+\n\033org.apache.drill.exec", ".protoB\nUserProtosH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_exec_user_Property_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_exec_user_Property_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_Property_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_exec_user_UserProperties_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_exec_user_UserProperties_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_UserProperties_descriptor, new java.lang.String[] { "Properties", }); internal_static_exec_user_RpcEndpointInfos_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_exec_user_RpcEndpointInfos_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_RpcEndpointInfos_descriptor, new java.lang.String[] { "Name", "Version", "MajorVersion", "MinorVersion", "PatchVersion", "Application", "BuildNumber", "VersionQualifier", }); internal_static_exec_user_UserToBitHandshake_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_exec_user_UserToBitHandshake_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_UserToBitHandshake_descriptor, new java.lang.String[] { "Channel", "SupportListening", "RpcVersion", "Credentials", "Properties", "SupportComplexTypes", "SupportTimeout", "ClientInfos", "SaslSupport", }); internal_static_exec_user_RequestResults_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_exec_user_RequestResults_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_RequestResults_descriptor, new java.lang.String[] { "QueryId", "MaximumResponses", }); internal_static_exec_user_GetQueryPlanFragments_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_exec_user_GetQueryPlanFragments_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetQueryPlanFragments_descriptor, new java.lang.String[] { "Query", "Type", "SplitPlan", }); internal_static_exec_user_QueryPlanFragments_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_exec_user_QueryPlanFragments_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_QueryPlanFragments_descriptor, new java.lang.String[] { "Status", "QueryId", "Fragments", "Error", }); internal_static_exec_user_BitToUserHandshake_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_exec_user_BitToUserHandshake_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_BitToUserHandshake_descriptor, new java.lang.String[] { "RpcVersion", "Status", "ErrorId", "ErrorMessage", "ServerInfos", "AuthenticationMechanisms", "SupportedMethods", }); internal_static_exec_user_LikeFilter_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_exec_user_LikeFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_LikeFilter_descriptor, new java.lang.String[] { "Pattern", "Escape", }); internal_static_exec_user_GetCatalogsReq_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_exec_user_GetCatalogsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetCatalogsReq_descriptor, new java.lang.String[] { "CatalogNameFilter", }); internal_static_exec_user_CatalogMetadata_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_exec_user_CatalogMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_CatalogMetadata_descriptor, new java.lang.String[] { "CatalogName", "Description", "Connect", }); internal_static_exec_user_GetCatalogsResp_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_exec_user_GetCatalogsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetCatalogsResp_descriptor, new java.lang.String[] { "Status", "Catalogs", "Error", }); internal_static_exec_user_GetSchemasReq_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_exec_user_GetSchemasReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetSchemasReq_descriptor, new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", }); internal_static_exec_user_SchemaMetadata_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_exec_user_SchemaMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_SchemaMetadata_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "Owner", "Type", "Mutable", }); internal_static_exec_user_GetSchemasResp_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_exec_user_GetSchemasResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetSchemasResp_descriptor, new java.lang.String[] { "Status", "Schemas", "Error", }); internal_static_exec_user_GetTablesReq_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_exec_user_GetTablesReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetTablesReq_descriptor, new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "TableTypeFilter", }); internal_static_exec_user_TableMetadata_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_exec_user_TableMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_TableMetadata_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "Type", }); internal_static_exec_user_GetTablesResp_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_exec_user_GetTablesResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetTablesResp_descriptor, new java.lang.String[] { "Status", "Tables", "Error", }); internal_static_exec_user_GetColumnsReq_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_exec_user_GetColumnsReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetColumnsReq_descriptor, new java.lang.String[] { "CatalogNameFilter", "SchemaNameFilter", "TableNameFilter", "ColumnNameFilter", }); internal_static_exec_user_ColumnMetadata_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_exec_user_ColumnMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_ColumnMetadata_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "OrdinalPosition", "DefaultValue", "IsNullable", "DataType", "CharMaxLength", "CharOctetLength", "NumericPrecision", "NumericPrecisionRadix", "NumericScale", "DateTimePrecision", "IntervalType", "IntervalPrecision", "ColumnSize", }); internal_static_exec_user_GetColumnsResp_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_exec_user_GetColumnsResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetColumnsResp_descriptor, new java.lang.String[] { "Status", "Columns", "Error", }); internal_static_exec_user_CreatePreparedStatementReq_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_exec_user_CreatePreparedStatementReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_CreatePreparedStatementReq_descriptor, new java.lang.String[] { "SqlQuery", }); internal_static_exec_user_ResultColumnMetadata_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_exec_user_ResultColumnMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_ResultColumnMetadata_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "ColumnName", "Label", "DataType", "IsNullable", "Precision", "Scale", "Signed", "DisplaySize", "IsAliased", "Searchability", "Updatability", "AutoIncrement", "CaseSensitivity", "Sortable", "ClassName", "IsCurrency", }); internal_static_exec_user_PreparedStatementHandle_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_exec_user_PreparedStatementHandle_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_PreparedStatementHandle_descriptor, new java.lang.String[] { "ServerInfo", }); internal_static_exec_user_PreparedStatement_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_exec_user_PreparedStatement_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_PreparedStatement_descriptor, new java.lang.String[] { "Columns", "ServerHandle", }); internal_static_exec_user_CreatePreparedStatementResp_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_exec_user_CreatePreparedStatementResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_CreatePreparedStatementResp_descriptor, new java.lang.String[] { "Status", "PreparedStatement", "Error", }); internal_static_exec_user_GetServerMetaReq_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_exec_user_GetServerMetaReq_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetServerMetaReq_descriptor, new java.lang.String[] { }); internal_static_exec_user_ConvertSupport_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_exec_user_ConvertSupport_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_ConvertSupport_descriptor, new java.lang.String[] { "From", "To", }); internal_static_exec_user_GetServerMetaResp_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_exec_user_GetServerMetaResp_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_GetServerMetaResp_descriptor, new java.lang.String[] { "Status", "ServerMeta", "Error", }); internal_static_exec_user_ServerMeta_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_exec_user_ServerMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_ServerMeta_descriptor, new java.lang.String[] { "AllTablesSelectable", "BlobIncludedInMaxRowSize", "CatalogAtStart", "CatalogSeparator", "CatalogTerm", "CollateSupport", "ColumnAliasingSupported", "ConvertSupport", "CorrelationNamesSupport", "DateTimeFunctions", "DateTimeLiteralsSupport", "GroupBySupport", "IdentifierCasing", "IdentifierQuoteString", "LikeEscapeClauseSupported", "MaxBinaryLiteralLength", "MaxCatalogNameLength", "MaxCharLiteralLength", "MaxColumnNameLength", "MaxColumnsInGroupBy", "MaxColumnsInOrderBy", "MaxColumnsInSelect", "MaxCursorNameLength", "MaxLogicalLobSize", "MaxRowSize", "MaxSchemaNameLength", "MaxStatementLength", "MaxStatements", "MaxTableNameLength", "MaxTablesInSelect", "MaxUserNameLength", "NullCollation", "NullPlusNonNullEqualsNull", "NumericFunctions", "OrderBySupport", "OuterJoinSupport", "QuotedIdentifierCasing", "ReadOnly", "SchemaTerm", "SearchEscapeString", "SelectForUpdateSupported", "SpecialCharacters", "SqlKeywords", "StringFunctions", "SubquerySupport", "SystemFunctions", "TableTerm", "TransactionSupported", "UnionSupport", }); internal_static_exec_user_RunQuery_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_exec_user_RunQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_exec_user_RunQuery_descriptor, new java.lang.String[] { "ResultsMode", "Type", "Plan", "Fragments", "PreparedStatementHandle", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { org.apache.drill.exec.proto.SchemaDefProtos.getDescriptor(), org.apache.drill.common.types.TypeProtos.getDescriptor(), org.apache.drill.exec.proto.UserBitShared.getDescriptor(), org.apache.drill.exec.proto.BitData.getDescriptor(), org.apache.drill.exec.proto.BitControl.getDescriptor(), org.apache.drill.exec.proto.ExecProtos.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }