Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
*
* return server infos in respose to GET_SERVER_META
*
*
* SERVER_META = 9;
*/
SERVER_META(9),
/**
*
* drillbit is reporting a query status change, most likely a terminal message, to the user
*
*
* QUERY_RESULT = 10;
*/
QUERY_RESULT(10),
/**
*
* user to bit and bit to user
*
*
* SASL_MESSAGE = 24;
*/
SASL_MESSAGE(24),
;
/**
* HANDSHAKE = 0;
*/
public static final int HANDSHAKE_VALUE = 0;
/**
* ACK = 1;
*/
public static final int ACK_VALUE = 1;
/**
* GOODBYE = 2;
*/
public static final int GOODBYE_VALUE = 2;
/**
*
* user to bit
*
*
* RUN_QUERY = 3;
*/
public static final int RUN_QUERY_VALUE = 3;
/**
*
* user is sending a query cancellation request to the drillbit
*
*
* CANCEL_QUERY = 4;
*/
public static final int CANCEL_QUERY_VALUE = 4;
/**
* REQUEST_RESULTS = 5;
*/
public static final int REQUEST_RESULTS_VALUE = 5;
/**
*
* user is sending a query resume request to the drillbit
*
*
* RESUME_PAUSED_QUERY = 11;
*/
public static final int RESUME_PAUSED_QUERY_VALUE = 11;
/**
*
* to get plan fragments from query
*
*
* GET_QUERY_PLAN_FRAGMENTS = 12;
*/
public static final int GET_QUERY_PLAN_FRAGMENTS_VALUE = 12;
/**
*
* user is requesting metadata of catalog(s).
*
*
* GET_CATALOGS = 14;
*/
public static final int GET_CATALOGS_VALUE = 14;
/**
*
* user is requesting metadata of schema(s)
*
*
* GET_SCHEMAS = 15;
*/
public static final int GET_SCHEMAS_VALUE = 15;
/**
*
* user is requesting metadata of table(s)
*
*
* GET_TABLES = 16;
*/
public static final int GET_TABLES_VALUE = 16;
/**
*
* user is requesting metadata of column(s)
*
*
* GET_COLUMNS = 17;
*/
public static final int GET_COLUMNS_VALUE = 17;
/**
*
* user is sending a request to create prepared statement
*
*
* CREATE_PREPARED_STATEMENT = 22;
*/
public static final int CREATE_PREPARED_STATEMENT_VALUE = 22;
/**
*
* user is sending a request to receive server metadata
*
*
* GET_SERVER_META = 8;
*/
public static final int GET_SERVER_META_VALUE = 8;
/**
*
* bit to user
*
*
* QUERY_DATA = 6;
*/
public static final int QUERY_DATA_VALUE = 6;
/**
* QUERY_HANDLE = 7;
*/
public static final int QUERY_HANDLE_VALUE = 7;
/**
*
* return plan fragments
*
*
* QUERY_PLAN_FRAGMENTS = 13;
*/
public static final int QUERY_PLAN_FRAGMENTS_VALUE = 13;
/**
*
* return catalogs metadata in response to GET_CATALOGS
*
*
* CATALOGS = 18;
*/
public static final int CATALOGS_VALUE = 18;
/**
*
* return schema metadata in response to GET_SCHEMAS
*
*
* SCHEMAS = 19;
*/
public static final int SCHEMAS_VALUE = 19;
/**
*
* return table metadata in response to GET_TABLES
*
*
* TABLES = 20;
*/
public static final int TABLES_VALUE = 20;
/**
*
* return column metadata in response to GET_COLUMNS
*
*
* COLUMNS = 21;
*/
public static final int COLUMNS_VALUE = 21;
/**
*
* return preparated statement in response to CREATE_PREPARED_STATEMENT
*
*
* PREPARED_STATEMENT = 23;
*/
public static final int PREPARED_STATEMENT_VALUE = 23;
/**
*
* return server infos in respose to GET_SERVER_META
*
*
* SERVER_META = 9;
*/
public static final int SERVER_META_VALUE = 9;
/**
*
* drillbit is reporting a query status change, most likely a terminal message, to the user
*
*
* QUERY_RESULT = 10;
*/
public static final int QUERY_RESULT_VALUE = 10;
/**
*
* user to bit and bit to user
*
*
* SASL_MESSAGE = 24;
*/
public static final int SASL_MESSAGE_VALUE = 24;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RpcType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RpcType forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RpcType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RpcType findValueByNumber(int number) {
return RpcType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private RpcType(int value) {
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 {
/**
* UNKNOWN_SASL_SUPPORT = 0;
*/
UNKNOWN_SASL_SUPPORT(0),
/**
* SASL_AUTH = 1;
*/
SASL_AUTH(1),
/**
* SASL_PRIVACY = 2;
*/
SASL_PRIVACY(2),
;
/**
* UNKNOWN_SASL_SUPPORT = 0;
*/
public static final int UNKNOWN_SASL_SUPPORT_VALUE = 0;
/**
* SASL_AUTH = 1;
*/
public static final int SASL_AUTH_VALUE = 1;
/**
* SASL_PRIVACY = 2;
*/
public static final int SASL_PRIVACY_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SaslSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SaslSupport forNumber(int value) {
switch (value) {
case 0: return UNKNOWN_SASL_SUPPORT;
case 1: return SASL_AUTH;
case 2: return SASL_PRIVACY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SaslSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SaslSupport findValueByNumber(int number) {
return SaslSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private SaslSupport(int value) {
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 {
/**
*
* 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.
*
*
* STREAM_FULL = 1;
*/
STREAM_FULL(1),
;
/**
*
* 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.
*
*
* STREAM_FULL = 1;
*/
public static final int STREAM_FULL_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static QueryResultsMode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static QueryResultsMode forNumber(int value) {
switch (value) {
case 1: return STREAM_FULL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
QueryResultsMode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public QueryResultsMode findValueByNumber(int number) {
return QueryResultsMode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private QueryResultsMode(int value) {
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 {
/**
*
* Handshake is successful (including authentication if any)
*
* Handshake is successful (including authentication if any)
*
*
* SUCCESS = 1;
*/
public static final int SUCCESS_VALUE = 1;
/**
*
* Client and Server RPC versions are different
*
*
* RPC_VERSION_MISMATCH = 2;
*/
public static final int RPC_VERSION_MISMATCH_VALUE = 2;
/**
*
* User authentication failed
*
*
* AUTH_FAILED = 3;
*/
public static final int AUTH_FAILED_VALUE = 3;
/**
*
* Unknown failure, refer to the error message for more details
*
*
* UNKNOWN_FAILURE = 4;
*/
public static final int UNKNOWN_FAILURE_VALUE = 4;
/**
*
* User authentication required
*
*
* AUTH_REQUIRED = 5;
*/
public static final int AUTH_REQUIRED_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static HandshakeStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static HandshakeStatus forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
HandshakeStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public HandshakeStatus findValueByNumber(int number) {
return HandshakeStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private HandshakeStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.user.HandshakeStatus)
}
/**
*
**
* Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request.
*
*
* TIMEOUT = 3;
*/
TIMEOUT(3),
;
/**
* UNKNOWN_STATUS = 0;
*/
public static final int UNKNOWN_STATUS_VALUE = 0;
/**
* OK = 1;
*/
public static final int OK_VALUE = 1;
/**
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
**
* Request timed out. Futher attempts can change any API specific parameters and retry or just retry the request.
*
*
* TIMEOUT = 3;
*/
public static final int TIMEOUT_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RequestStatus valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RequestStatus forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RequestStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RequestStatus findValueByNumber(int number) {
return RequestStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private RequestStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.user.RequestStatus)
}
/**
*
* can be used in WHERE clause but only with LIKE predicate
*
*
* CHAR = 2;
*/
CHAR(2),
/**
*
* can be used in a WHERE clause with all the comparison operators except LIKE
*
*
* NUMBER = 3;
*/
NUMBER(3),
/**
*
* can be used in a WHERE clause with all the comparison operators
*
*
* ALL = 4;
*/
ALL(4),
;
/**
* UNKNOWN_SEARCHABILITY = 0;
*/
public static final int UNKNOWN_SEARCHABILITY_VALUE = 0;
/**
*
* can't be used in WHERE clause
*
*
* NONE = 1;
*/
public static final int NONE_VALUE = 1;
/**
*
* can be used in WHERE clause but only with LIKE predicate
*
*
* CHAR = 2;
*/
public static final int CHAR_VALUE = 2;
/**
*
* can be used in a WHERE clause with all the comparison operators except LIKE
*
*
* NUMBER = 3;
*/
public static final int NUMBER_VALUE = 3;
/**
*
* can be used in a WHERE clause with all the comparison operators
*
*
* ALL = 4;
*/
public static final int ALL_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ColumnSearchability valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ColumnSearchability forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ColumnSearchability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ColumnSearchability findValueByNumber(int number) {
return ColumnSearchability.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private ColumnSearchability(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.user.ColumnSearchability)
}
/**
*
* Whether a column can be updatable.
*
*
* Protobuf enum {@code exec.user.ColumnUpdatability}
*/
public enum ColumnUpdatability
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN_UPDATABILITY = 0;
*/
UNKNOWN_UPDATABILITY(0),
/**
* READ_ONLY = 1;
*/
READ_ONLY(1),
/**
* WRITABLE = 2;
*/
WRITABLE(2),
;
/**
* UNKNOWN_UPDATABILITY = 0;
*/
public static final int UNKNOWN_UPDATABILITY_VALUE = 0;
/**
* READ_ONLY = 1;
*/
public static final int READ_ONLY_VALUE = 1;
/**
* WRITABLE = 2;
*/
public static final int WRITABLE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ColumnUpdatability valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static ColumnUpdatability forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ColumnUpdatability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ColumnUpdatability findValueByNumber(int number) {
return ColumnUpdatability.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private ColumnUpdatability(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* CS_UNKNOWN = 0;
*/
CS_UNKNOWN(0),
/**
*
* COLLATE clause can be added after each grouping column
*
*
* CS_GROUP_BY = 1;
*/
CS_GROUP_BY(1),
;
/**
*
* Unknown support (for forward compatibility)
*
*
* CS_UNKNOWN = 0;
*/
public static final int CS_UNKNOWN_VALUE = 0;
/**
*
* COLLATE clause can be added after each grouping column
*
*
* CS_GROUP_BY = 1;
*/
public static final int CS_GROUP_BY_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CollateSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CollateSupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CollateSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CollateSupport findValueByNumber(int number) {
return CollateSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private CollateSupport(int value) {
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 {
/**
*
* Correlation names are not supported
*
*
* CN_NONE = 1;
*/
CN_NONE(1),
/**
*
* Correlation names are supported, but names have to
*
*
* CN_NONE = 1;
*/
public static final int CN_NONE_VALUE = 1;
/**
*
* Correlation names are supported, but names have to
*
*
* CN_DIFFERENT_NAMES = 2;
*/
public static final int CN_DIFFERENT_NAMES_VALUE = 2;
/**
*
* be different from the tables they represent
*
*
* CN_ANY = 3;
*/
public static final int CN_ANY_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static CorrelationNamesSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static CorrelationNamesSupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
CorrelationNamesSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public CorrelationNamesSupport findValueByNumber(int number) {
return CorrelationNamesSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private CorrelationNamesSupport(int value) {
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 {
/**
*
*
* DL_UNKNOWN = 0;
*/
public static final int DL_UNKNOWN_VALUE = 0;
/**
*
* DATE literal is supported
*
*
* DL_DATE = 1;
*/
public static final int DL_DATE_VALUE = 1;
/**
*
* TIME literal is supported
*
*
* DL_TIME = 2;
*/
public static final int DL_TIME_VALUE = 2;
/**
*
* TIMESTAMP literal is supported
*
*
* DL_TIMESTAMP = 3;
*/
public static final int DL_TIMESTAMP_VALUE = 3;
/**
*
* INTERVAL YEAR literal is supported
*
*
* DL_INTERVAL_YEAR = 4;
*/
public static final int DL_INTERVAL_YEAR_VALUE = 4;
/**
*
* INTERVAL MONTH literal is supported
*
*
* DL_INTERVAL_MONTH = 5;
*/
public static final int DL_INTERVAL_MONTH_VALUE = 5;
/**
*
* INTERVAL DAY literal is supported
*
*
* DL_INTERVAL_DAY = 6;
*/
public static final int DL_INTERVAL_DAY_VALUE = 6;
/**
*
* INTERVAL HOUR literal is supported
*
*
* DL_INTERVAL_HOUR = 7;
*/
public static final int DL_INTERVAL_HOUR_VALUE = 7;
/**
*
* INTERVAL MINUTE literal is supported
*
*
* DL_INTERVAL_MINUTE = 8;
*/
public static final int DL_INTERVAL_MINUTE_VALUE = 8;
/**
*
* INTERVAL SECOND literal is supported
*
*
* DL_INTERVAL_SECOND = 9;
*/
public static final int DL_INTERVAL_SECOND_VALUE = 9;
/**
*
* INTERVAL YEAR TO MONTH literal is supported
*
*
* DL_INTERVAL_YEAR_TO_MONTH = 10;
*/
public static final int DL_INTERVAL_YEAR_TO_MONTH_VALUE = 10;
/**
*
* INTERVAL DAY TO HOUR literal is supported
*
*
* DL_INTERVAL_DAY_TO_HOUR = 11;
*/
public static final int DL_INTERVAL_DAY_TO_HOUR_VALUE = 11;
/**
*
* INTERVAL DAY TO MINUTE literal is supported
*
*
* DL_INTERVAL_DAY_TO_MINUTE = 12;
*/
public static final int DL_INTERVAL_DAY_TO_MINUTE_VALUE = 12;
/**
*
* INTERVAL DAY TO SECOND literal is supported
*
*
* DL_INTERVAL_DAY_TO_SECOND = 13;
*/
public static final int DL_INTERVAL_DAY_TO_SECOND_VALUE = 13;
/**
*
* INTERVAL HOUR TO MINUTE literal is supported
*
*
* DL_INTERVAL_HOUR_TO_MINUTE = 14;
*/
public static final int DL_INTERVAL_HOUR_TO_MINUTE_VALUE = 14;
/**
*
* INTERVAL HOUR TO SECOND literal is supported
*
*
* DL_INTERVAL_HOUR_TO_SECOND = 15;
*/
public static final int DL_INTERVAL_HOUR_TO_SECOND_VALUE = 15;
/**
*
* INTERVAL MINUTE TO SECOND literal is supported
*
*
* DL_INTERVAL_MINUTE_TO_SECOND = 16;
*/
public static final int DL_INTERVAL_MINUTE_TO_SECOND_VALUE = 16;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DateTimeLiteralsSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static DateTimeLiteralsSupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DateTimeLiteralsSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DateTimeLiteralsSupport findValueByNumber(int number) {
return DateTimeLiteralsSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private DateTimeLiteralsSupport(int value) {
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 {
/**
*
* Group by is not supported
*
*
* GB_NONE = 1;
*/
GB_NONE(1),
/**
*
* Group by supported with non aggregated columns in select
*
* Group by supported with columns absent from the select list
*
*
* GB_UNRELATED = 4;
*/
GB_UNRELATED(4),
;
/**
*
* Group by is not supported
*
*
* GB_NONE = 1;
*/
public static final int GB_NONE_VALUE = 1;
/**
*
* Group by supported with non aggregated columns in select
*
*
* GB_SELECT_ONLY = 2;
*/
public static final int GB_SELECT_ONLY_VALUE = 2;
/**
*
* Group by supported with columns absent from the select list
*if all the non-aggregated colums from the select list are also added
*
*
* GB_BEYOND_SELECT = 3;
*/
public static final int GB_BEYOND_SELECT_VALUE = 3;
/**
*
* Group by supported with columns absent from the select list
*
*
* GB_UNRELATED = 4;
*/
public static final int GB_UNRELATED_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static GroupBySupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static GroupBySupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
GroupBySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public GroupBySupport findValueByNumber(int number) {
return GroupBySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private GroupBySupport(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* IC_UNKNOWN = 0;
*/
IC_UNKNOWN(0),
/**
*
* Mixed case identifier is treated as case insensitive
*and stored in lower case
*
*
* IC_UNKNOWN = 0;
*/
public static final int IC_UNKNOWN_VALUE = 0;
/**
*
* Mixed case identifier is treated as case insensitive
*and stored in lower case
*
*
* IC_STORES_LOWER = 1;
*/
public static final int IC_STORES_LOWER_VALUE = 1;
/**
*
* Mixed case identifier is treated as case insensitive
*and stored in mixed case
*
*
* IC_STORES_MIXED = 2;
*/
public static final int IC_STORES_MIXED_VALUE = 2;
/**
*
* Mixed case identifier is treated as case insensitive
*and stored in upper case
*
*
* IC_STORES_UPPER = 3;
*/
public static final int IC_STORES_UPPER_VALUE = 3;
/**
*
* Mixed case identifier is treated as case sensitive
*and stored in mixed case
*
*
* IC_SUPPORTS_MIXED = 4;
*/
public static final int IC_SUPPORTS_MIXED_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdentifierCasing valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static IdentifierCasing forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
IdentifierCasing> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public IdentifierCasing findValueByNumber(int number) {
return IdentifierCasing.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private IdentifierCasing(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* NC_UNKNOWN = 0;
*/
NC_UNKNOWN(0),
/**
*
* NULL values are sorted at the start regardless of the order
*
*
* NC_AT_START = 1;
*/
NC_AT_START(1),
/**
*
* NULL values are sorted at the end regardless of the order
*
*
* NC_AT_END = 2;
*/
NC_AT_END(2),
/**
*
* NULL is the highest value
*
*
* NC_HIGH = 3;
*/
NC_HIGH(3),
/**
*
* NULL is the lowest value
*
*
* NC_LOW = 4;
*/
NC_LOW(4),
;
/**
*
* Unknown support (for forward compatibility)
*
*
* NC_UNKNOWN = 0;
*/
public static final int NC_UNKNOWN_VALUE = 0;
/**
*
* NULL values are sorted at the start regardless of the order
*
*
* NC_AT_START = 1;
*/
public static final int NC_AT_START_VALUE = 1;
/**
*
* NULL values are sorted at the end regardless of the order
*
*
* NC_AT_END = 2;
*/
public static final int NC_AT_END_VALUE = 2;
/**
*
* NULL is the highest value
*
*
* NC_HIGH = 3;
*/
public static final int NC_HIGH_VALUE = 3;
/**
*
* NULL is the lowest value
*
*
* NC_LOW = 4;
*/
public static final int NC_LOW_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NullCollation valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NullCollation forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
NullCollation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public NullCollation findValueByNumber(int number) {
return NullCollation.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private NullCollation(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* OB_UNKNOWN = 0;
*/
OB_UNKNOWN(0),
/**
*
* ORDER BY supported with columns not in SELECT list
*
*
* OB_UNKNOWN = 0;
*/
public static final int OB_UNKNOWN_VALUE = 0;
/**
*
* ORDER BY supported with columns not in SELECT list
*
*
* OB_UNRELATED = 1;
*/
public static final int OB_UNRELATED_VALUE = 1;
/**
*
* ORDER BY with expressions is supported
*
*
* OB_EXPRESSION = 2;
*/
public static final int OB_EXPRESSION_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OrderBySupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static OrderBySupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OrderBySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OrderBySupport findValueByNumber(int number) {
return OrderBySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private OrderBySupport(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* OJ_UNKNOWN = 0;
*/
OJ_UNKNOWN(0),
/**
*
* Left outer join is supported
*
*
* OJ_LEFT = 1;
*/
OJ_LEFT(1),
/**
*
* Right outer join is supported
*
*
* OJ_RIGHT = 2;
*/
OJ_RIGHT(2),
/**
*
* Full outer join is supported
*
*
* OJ_FULL = 3;
*/
OJ_FULL(3),
/**
*
* Nested outer join is supported
*
*
* OJ_NESTED = 4;
*/
OJ_NESTED(4),
/**
*
* Column names in the ON clause don't have to share the same order
*as their respective table names in the OUTER JOIN clase
*
*
* OJ_UNKNOWN = 0;
*/
public static final int OJ_UNKNOWN_VALUE = 0;
/**
*
* Left outer join is supported
*
*
* OJ_LEFT = 1;
*/
public static final int OJ_LEFT_VALUE = 1;
/**
*
* Right outer join is supported
*
*
* OJ_RIGHT = 2;
*/
public static final int OJ_RIGHT_VALUE = 2;
/**
*
* Full outer join is supported
*
*
* OJ_FULL = 3;
*/
public static final int OJ_FULL_VALUE = 3;
/**
*
* Nested outer join is supported
*
*
* OJ_NESTED = 4;
*/
public static final int OJ_NESTED_VALUE = 4;
/**
*
* Column names in the ON clause don't have to share the same order
*as their respective table names in the OUTER JOIN clase
*
*
* OJ_NOT_ORDERED = 5;
*/
public static final int OJ_NOT_ORDERED_VALUE = 5;
/**
*
* Inner table can also be used in an inner join
*
*
* OJ_INNER = 6;
*/
public static final int OJ_INNER_VALUE = 6;
/**
*
* Any comparison operator is supported in the ON clause
*
*
* OJ_ALL_COMPARISON_OPS = 7;
*/
public static final int OJ_ALL_COMPARISON_OPS_VALUE = 7;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OuterJoinSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static OuterJoinSupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OuterJoinSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OuterJoinSupport findValueByNumber(int number) {
return OuterJoinSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private OuterJoinSupport(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* SQ_UNKNOWN = 0;
*/
SQ_UNKNOWN(0),
/**
*
* Correlated subquery is supported
*
*
* SQ_CORRELATED = 1;
*/
SQ_CORRELATED(1),
/**
*
* Subquery in comparison expression is supported
*
*
* SQ_UNKNOWN = 0;
*/
public static final int SQ_UNKNOWN_VALUE = 0;
/**
*
* Correlated subquery is supported
*
*
* SQ_CORRELATED = 1;
*/
public static final int SQ_CORRELATED_VALUE = 1;
/**
*
* Subquery in comparison expression is supported
*
*
* SQ_IN_COMPARISON = 2;
*/
public static final int SQ_IN_COMPARISON_VALUE = 2;
/**
*
* Subquery in EXISTS expression is supported
*
*
* SQ_IN_EXISTS = 3;
*/
public static final int SQ_IN_EXISTS_VALUE = 3;
/**
*
* Subquery in INSERT expression is supported
*
*
* SQ_IN_INSERT = 4;
*/
public static final int SQ_IN_INSERT_VALUE = 4;
/**
*
* Subquery in quantified expression is supported
*
*
* SQ_IN_QUANTIFIED = 5;
*/
public static final int SQ_IN_QUANTIFIED_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static SubQuerySupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static SubQuerySupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
SubQuerySupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public SubQuerySupport findValueByNumber(int number) {
return SubQuerySupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private SubQuerySupport(int value) {
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 {
/**
*
* Unknown support (for forward compatibility)
*
*
* U_UNKNOWN = 0;
*/
U_UNKNOWN(0),
/**
*
* UNION is supported
*
*
* U_UNION = 1;
*/
U_UNION(1),
/**
*
* UNION_ALL is supported
*
*
* U_UNION_ALL = 2;
*/
U_UNION_ALL(2),
;
/**
*
* Unknown support (for forward compatibility)
*
*
* U_UNKNOWN = 0;
*/
public static final int U_UNKNOWN_VALUE = 0;
/**
*
* UNION is supported
*
*
* U_UNION = 1;
*/
public static final int U_UNION_VALUE = 1;
/**
*
* UNION_ALL is supported
*
*
* U_UNION_ALL = 2;
*/
public static final int U_UNION_ALL_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static UnionSupport valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static UnionSupport forNumber(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
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
UnionSupport> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public UnionSupport findValueByNumber(int number) {
return UnionSupport.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
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 value;
private UnionSupport(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:exec.user.UnionSupport)
}
public interface PropertyOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.Property)
com.google.protobuf.MessageOrBuilder {
/**
* required string key = 1;
* @return Whether the key field is set.
*/
boolean hasKey();
/**
* required string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
* required string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
* required string value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* required string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
* required string value = 2;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code exec.user.Property}
*/
public static final class Property extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.Property)
PropertyOrBuilder {
private static final long serialVersionUID = 0L;
// Use Property.newBuilder() to construct.
private Property(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Property() {
key_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Property();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
* required string key = 1;
* @return Whether the key field is set.
*/
@java.lang.Override
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
* @return The key.
*/
@java.lang.Override
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;
}
}
/**
* required string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
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;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* required string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string value = 2;
* @return The value.
*/
@java.lang.Override
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;
}
}
/**
* required string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
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 byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasKey()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.Property)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.Property other = (org.apache.drill.exec.proto.UserProtos.Property) obj;
if (hasKey() != other.hasKey()) return false;
if (hasKey()) {
if (!getKey()
.equals(other.getKey())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasKey()) {
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.Property parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.Property prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code exec.user.Property}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.Property)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
key_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_Property_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.key_ = key_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasKey()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
key_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
value_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
* required string key = 1;
* @return Whether the key field is set.
*/
public boolean hasKey() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string key = 1;
* @return The key.
*/
public java.lang.String getKey() {
java.lang.Object ref = key_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
key_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string key = 1;
* @return The bytes for key.
*/
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;
}
}
/**
* required string key = 1;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
/**
* required string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000001);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
* required string key = 1;
* @param value The bytes for key to set.
* @return This builder for chaining.
*/
public Builder setKeyBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
key_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* required string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string value = 2;
* @return The bytes for value.
*/
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;
}
}
/**
* required string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* required string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* required string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.Property)
}
// @@protoc_insertion_point(class_scope:exec.user.Property)
private static final org.apache.drill.exec.proto.UserProtos.Property DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.Property();
}
public static org.apache.drill.exec.proto.UserProtos.Property getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Property parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UserPropertiesOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.UserProperties)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .exec.user.Property properties = 1;
*/
java.util.List
getPropertiesList();
/**
* repeated .exec.user.Property properties = 1;
*/
org.apache.drill.exec.proto.UserProtos.Property getProperties(int index);
/**
* repeated .exec.user.Property properties = 1;
*/
int getPropertiesCount();
/**
* repeated .exec.user.Property properties = 1;
*/
java.util.List extends org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder>
getPropertiesOrBuilderList();
/**
* repeated .exec.user.Property properties = 1;
*/
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.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.UserProperties)
UserPropertiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserProperties.newBuilder() to construct.
private UserProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserProperties() {
properties_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserProperties();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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 final int PROPERTIES_FIELD_NUMBER = 1;
private java.util.List properties_;
/**
* repeated .exec.user.Property properties = 1;
*/
@java.lang.Override
public java.util.List getPropertiesList() {
return properties_;
}
/**
* repeated .exec.user.Property properties = 1;
*/
@java.lang.Override
public java.util.List extends org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder>
getPropertiesOrBuilderList() {
return properties_;
}
/**
* repeated .exec.user.Property properties = 1;
*/
@java.lang.Override
public int getPropertiesCount() {
return properties_.size();
}
/**
* repeated .exec.user.Property properties = 1;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.Property getProperties(int index) {
return properties_.get(index);
}
/**
* repeated .exec.user.Property properties = 1;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
return properties_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getPropertiesCount(); i++) {
if (!getProperties(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < properties_.size(); i++) {
output.writeMessage(1, properties_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
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();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.UserProperties)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.UserProperties other = (org.apache.drill.exec.proto.UserProtos.UserProperties) obj;
if (!getPropertiesList()
.equals(other.getPropertiesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getPropertiesCount() > 0) {
hash = (37 * hash) + PROPERTIES_FIELD_NUMBER;
hash = (53 * hash) + getPropertiesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.UserProperties prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code exec.user.UserProperties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.UserProperties)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
} else {
properties_ = null;
propertiesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_UserProperties_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.UserProperties.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
properties_ = java.util.Collections.unmodifiableList(properties_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.properties_ = properties_;
} else {
result.properties_ = propertiesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPropertiesFieldBuilder() : null;
} else {
propertiesBuilder_.addAllMessages(other.properties_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getPropertiesCount(); i++) {
if (!getProperties(i).isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.apache.drill.exec.proto.UserProtos.Property m =
input.readMessage(
org.apache.drill.exec.proto.UserProtos.Property.PARSER,
extensionRegistry);
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.add(m);
} else {
propertiesBuilder_.addMessage(m);
}
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List properties_ =
java.util.Collections.emptyList();
private void ensurePropertiesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
properties_ = new java.util.ArrayList(properties_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.Property, org.apache.drill.exec.proto.UserProtos.Property.Builder, org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder> propertiesBuilder_;
/**
* repeated .exec.user.Property properties = 1;
*/
public java.util.List getPropertiesList() {
if (propertiesBuilder_ == null) {
return java.util.Collections.unmodifiableList(properties_);
} else {
return propertiesBuilder_.getMessageList();
}
}
/**
* repeated .exec.user.Property properties = 1;
*/
public int getPropertiesCount() {
if (propertiesBuilder_ == null) {
return properties_.size();
} else {
return propertiesBuilder_.getCount();
}
}
/**
* repeated .exec.user.Property properties = 1;
*/
public org.apache.drill.exec.proto.UserProtos.Property getProperties(int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index);
} else {
return propertiesBuilder_.getMessage(index);
}
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
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;
}
/**
* repeated .exec.user.Property properties = 1;
*/
public Builder addAllProperties(
java.lang.Iterable extends org.apache.drill.exec.proto.UserProtos.Property> values) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, properties_);
onChanged();
} else {
propertiesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .exec.user.Property properties = 1;
*/
public Builder clearProperties() {
if (propertiesBuilder_ == null) {
properties_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
propertiesBuilder_.clear();
}
return this;
}
/**
* repeated .exec.user.Property properties = 1;
*/
public Builder removeProperties(int index) {
if (propertiesBuilder_ == null) {
ensurePropertiesIsMutable();
properties_.remove(index);
onChanged();
} else {
propertiesBuilder_.remove(index);
}
return this;
}
/**
* repeated .exec.user.Property properties = 1;
*/
public org.apache.drill.exec.proto.UserProtos.Property.Builder getPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().getBuilder(index);
}
/**
* repeated .exec.user.Property properties = 1;
*/
public org.apache.drill.exec.proto.UserProtos.PropertyOrBuilder getPropertiesOrBuilder(
int index) {
if (propertiesBuilder_ == null) {
return properties_.get(index); } else {
return propertiesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .exec.user.Property properties = 1;
*/
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_);
}
}
/**
* repeated .exec.user.Property properties = 1;
*/
public org.apache.drill.exec.proto.UserProtos.Property.Builder addPropertiesBuilder() {
return getPropertiesFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance());
}
/**
* repeated .exec.user.Property properties = 1;
*/
public org.apache.drill.exec.proto.UserProtos.Property.Builder addPropertiesBuilder(
int index) {
return getPropertiesFieldBuilder().addBuilder(
index, org.apache.drill.exec.proto.UserProtos.Property.getDefaultInstance());
}
/**
* repeated .exec.user.Property properties = 1;
*/
public java.util.List
getPropertiesBuilderList() {
return getPropertiesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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) != 0),
getParentForChildren(),
isClean());
properties_ = null;
}
return propertiesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.UserProperties)
}
// @@protoc_insertion_point(class_scope:exec.user.UserProperties)
private static final org.apache.drill.exec.proto.UserProtos.UserProperties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.UserProperties();
}
public static org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserProperties parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.UserProperties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RpcEndpointInfosOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.RpcEndpointInfos)
com.google.protobuf.MessageOrBuilder {
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return Whether the majorVersion field is set.
*/
boolean hasMajorVersion();
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return The majorVersion.
*/
int getMajorVersion();
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return Whether the minorVersion field is set.
*/
boolean hasMinorVersion();
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return The minorVersion.
*/
int getMinorVersion();
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return Whether the patchVersion field is set.
*/
boolean hasPatchVersion();
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return The patchVersion.
*/
int getPatchVersion();
/**
*
* example: Tableau 9.3
*
*
* optional string application = 6;
* @return Whether the application field is set.
*/
boolean hasApplication();
/**
*
*
* optional string versionQualifier = 8;
* @return The bytes for versionQualifier.
*/
com.google.protobuf.ByteString
getVersionQualifierBytes();
}
/**
* Protobuf type {@code exec.user.RpcEndpointInfos}
*/
public static final class RpcEndpointInfos extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.RpcEndpointInfos)
RpcEndpointInfosOrBuilder {
private static final long serialVersionUID = 0L;
// Use RpcEndpointInfos.newBuilder() to construct.
private RpcEndpointInfos(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RpcEndpointInfos() {
name_ = "";
version_ = "";
application_ = "";
versionQualifier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RpcEndpointInfos();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
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;
}
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
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;
}
}
public static final int VERSION_FIELD_NUMBER = 2;
private volatile java.lang.Object version_;
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The version.
*/
@java.lang.Override
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;
}
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The bytes for version.
*/
@java.lang.Override
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;
}
}
public static final int MAJORVERSION_FIELD_NUMBER = 3;
private int majorVersion_;
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return Whether the majorVersion field is set.
*/
@java.lang.Override
public boolean hasMajorVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return The majorVersion.
*/
@java.lang.Override
public int getMajorVersion() {
return majorVersion_;
}
public static final int MINORVERSION_FIELD_NUMBER = 4;
private int minorVersion_;
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return Whether the minorVersion field is set.
*/
@java.lang.Override
public boolean hasMinorVersion() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return The minorVersion.
*/
@java.lang.Override
public int getMinorVersion() {
return minorVersion_;
}
public static final int PATCHVERSION_FIELD_NUMBER = 5;
private int patchVersion_;
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return Whether the patchVersion field is set.
*/
@java.lang.Override
public boolean hasPatchVersion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return The patchVersion.
*/
@java.lang.Override
public int getPatchVersion() {
return patchVersion_;
}
public static final int APPLICATION_FIELD_NUMBER = 6;
private volatile java.lang.Object application_;
/**
*
* example: Tableau 9.3
*
*
* optional string application = 6;
* @return Whether the application field is set.
*/
@java.lang.Override
public boolean hasApplication() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
* optional string versionQualifier = 8;
* @return The bytes for versionQualifier.
*/
@java.lang.Override
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 byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, majorVersion_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, minorVersion_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, patchVersion_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, application_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, buildNumber_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, versionQualifier_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, majorVersion_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, minorVersion_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, patchVersion_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, application_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, buildNumber_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, versionQualifier_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos other = (org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (hasMajorVersion() != other.hasMajorVersion()) return false;
if (hasMajorVersion()) {
if (getMajorVersion()
!= other.getMajorVersion()) return false;
}
if (hasMinorVersion() != other.hasMinorVersion()) return false;
if (hasMinorVersion()) {
if (getMinorVersion()
!= other.getMinorVersion()) return false;
}
if (hasPatchVersion() != other.hasPatchVersion()) return false;
if (hasPatchVersion()) {
if (getPatchVersion()
!= other.getPatchVersion()) return false;
}
if (hasApplication() != other.hasApplication()) return false;
if (hasApplication()) {
if (!getApplication()
.equals(other.getApplication())) return false;
}
if (hasBuildNumber() != other.hasBuildNumber()) return false;
if (hasBuildNumber()) {
if (getBuildNumber()
!= other.getBuildNumber()) return false;
}
if (hasVersionQualifier() != other.hasVersionQualifier()) return false;
if (hasVersionQualifier()) {
if (!getVersionQualifier()
.equals(other.getVersionQualifier())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasMajorVersion()) {
hash = (37 * hash) + MAJORVERSION_FIELD_NUMBER;
hash = (53 * hash) + getMajorVersion();
}
if (hasMinorVersion()) {
hash = (37 * hash) + MINORVERSION_FIELD_NUMBER;
hash = (53 * hash) + getMinorVersion();
}
if (hasPatchVersion()) {
hash = (37 * hash) + PATCHVERSION_FIELD_NUMBER;
hash = (53 * hash) + getPatchVersion();
}
if (hasApplication()) {
hash = (37 * hash) + APPLICATION_FIELD_NUMBER;
hash = (53 * hash) + getApplication().hashCode();
}
if (hasBuildNumber()) {
hash = (37 * hash) + BUILDNUMBER_FIELD_NUMBER;
hash = (53 * hash) + getBuildNumber();
}
if (hasVersionQualifier()) {
hash = (37 * hash) + VERSIONQUALIFIER_FIELD_NUMBER;
hash = (53 * hash) + getVersionQualifier().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code exec.user.RpcEndpointInfos}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.RpcEndpointInfos)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_RpcEndpointInfos_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.RpcEndpointInfos.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.majorVersion_ = majorVersion_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.minorVersion_ = minorVersion_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.patchVersion_ = patchVersion_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.application_ = application_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.buildNumber_ = buildNumber_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.versionQualifier_ = versionQualifier_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
name_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
version_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
majorVersion_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
minorVersion_ = input.readUInt32();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
patchVersion_ = input.readUInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
application_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
buildNumber_ = input.readUInt32();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
versionQualifier_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return The bytes for name.
*/
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;
}
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* example: Apache Drill Server, Apache Drill C++ client
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The version.
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return The bytes for version.
*/
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;
}
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000002);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* example: 1.9.0
*
*
* optional string version = 2;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
version_ = value;
onChanged();
return this;
}
private int majorVersion_ ;
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return Whether the majorVersion field is set.
*/
@java.lang.Override
public boolean hasMajorVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return The majorVersion.
*/
@java.lang.Override
public int getMajorVersion() {
return majorVersion_;
}
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @param value The majorVersion to set.
* @return This builder for chaining.
*/
public Builder setMajorVersion(int value) {
bitField0_ |= 0x00000004;
majorVersion_ = value;
onChanged();
return this;
}
/**
*
* example: 1
*
*
* optional uint32 majorVersion = 3;
* @return This builder for chaining.
*/
public Builder clearMajorVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
majorVersion_ = 0;
onChanged();
return this;
}
private int minorVersion_ ;
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return Whether the minorVersion field is set.
*/
@java.lang.Override
public boolean hasMinorVersion() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return The minorVersion.
*/
@java.lang.Override
public int getMinorVersion() {
return minorVersion_;
}
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @param value The minorVersion to set.
* @return This builder for chaining.
*/
public Builder setMinorVersion(int value) {
bitField0_ |= 0x00000008;
minorVersion_ = value;
onChanged();
return this;
}
/**
*
* example: 9
*
*
* optional uint32 minorVersion = 4;
* @return This builder for chaining.
*/
public Builder clearMinorVersion() {
bitField0_ = (bitField0_ & ~0x00000008);
minorVersion_ = 0;
onChanged();
return this;
}
private int patchVersion_ ;
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return Whether the patchVersion field is set.
*/
@java.lang.Override
public boolean hasPatchVersion() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @return The patchVersion.
*/
@java.lang.Override
public int getPatchVersion() {
return patchVersion_;
}
/**
*
* example: 0
*
*
* optional uint32 patchVersion = 5;
* @param value The patchVersion to set.
* @return This builder for chaining.
*/
public Builder setPatchVersion(int value) {
bitField0_ |= 0x00000010;
patchVersion_ = value;
onChanged();
return this;
}
/**
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The type.
*/
java.lang.String getType();
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* optional string mutable = 5;
* @return Whether the mutable field is set.
*/
boolean hasMutable();
/**
* optional string mutable = 5;
* @return The mutable.
*/
java.lang.String getMutable();
/**
* optional string mutable = 5;
* @return The bytes for mutable.
*/
com.google.protobuf.ByteString
getMutableBytes();
}
/**
*
* Message encapsulating metadata for a Schema.
*
*
* Protobuf type {@code exec.user.SchemaMetadata}
*/
public static final class SchemaMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.SchemaMetadata)
SchemaMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use SchemaMetadata.newBuilder() to construct.
private SchemaMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SchemaMetadata() {
catalogName_ = "";
schemaName_ = "";
owner_ = "";
type_ = "";
mutable_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SchemaMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object catalogName_;
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
@java.lang.Override
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
@java.lang.Override
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;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
@java.lang.Override
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;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
@java.lang.Override
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
@java.lang.Override
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;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
@java.lang.Override
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;
}
}
public static final int OWNER_FIELD_NUMBER = 3;
private volatile java.lang.Object owner_;
/**
* optional string owner = 3;
* @return Whether the owner field is set.
*/
@java.lang.Override
public boolean hasOwner() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string owner = 3;
* @return The owner.
*/
@java.lang.Override
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;
}
}
/**
* optional string owner = 3;
* @return The bytes for owner.
*/
@java.lang.Override
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;
}
}
public static final int TYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object type_;
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The type.
*/
@java.lang.Override
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;
}
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
@java.lang.Override
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;
}
}
public static final int MUTABLE_FIELD_NUMBER = 5;
private volatile java.lang.Object mutable_;
/**
* optional string mutable = 5;
* @return Whether the mutable field is set.
*/
@java.lang.Override
public boolean hasMutable() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string mutable = 5;
* @return The mutable.
*/
@java.lang.Override
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;
}
}
/**
* optional string mutable = 5;
* @return The bytes for mutable.
*/
@java.lang.Override
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 byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, owner_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, mutable_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, owner_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, mutable_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.SchemaMetadata)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.SchemaMetadata other = (org.apache.drill.exec.proto.UserProtos.SchemaMetadata) obj;
if (hasCatalogName() != other.hasCatalogName()) return false;
if (hasCatalogName()) {
if (!getCatalogName()
.equals(other.getCatalogName())) return false;
}
if (hasSchemaName() != other.hasSchemaName()) return false;
if (hasSchemaName()) {
if (!getSchemaName()
.equals(other.getSchemaName())) return false;
}
if (hasOwner() != other.hasOwner()) return false;
if (hasOwner()) {
if (!getOwner()
.equals(other.getOwner())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasMutable() != other.hasMutable()) return false;
if (hasMutable()) {
if (!getMutable()
.equals(other.getMutable())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogName()) {
hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCatalogName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasOwner()) {
hash = (37 * hash) + OWNER_FIELD_NUMBER;
hash = (53 * hash) + getOwner().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasMutable()) {
hash = (37 * hash) + MUTABLE_FIELD_NUMBER;
hash = (53 * hash) + getMutable().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.SchemaMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message encapsulating metadata for a Schema.
*
*
* Protobuf type {@code exec.user.SchemaMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.SchemaMetadata)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_SchemaMetadata_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.catalogName_ = catalogName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.owner_ = owner_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.mutable_ = mutable_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
catalogName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
schemaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
owner_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
type_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
mutable_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object catalogName_ = "";
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
catalogName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
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;
}
}
/**
* optional string catalog_name = 1;
* @param value The catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @return This builder for chaining.
*/
public Builder clearCatalogName() {
bitField0_ = (bitField0_ & ~0x00000001);
catalogName_ = getDefaultInstance().getCatalogName();
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @param value The bytes for catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
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;
}
}
/**
* optional string schema_name = 2;
* @param value The schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @param value The bytes for schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
private java.lang.Object owner_ = "";
/**
* optional string owner = 3;
* @return Whether the owner field is set.
*/
public boolean hasOwner() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string owner = 3;
* @return The owner.
*/
public java.lang.String getOwner() {
java.lang.Object ref = owner_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
owner_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string owner = 3;
* @return The bytes for owner.
*/
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;
}
}
/**
* optional string owner = 3;
* @param value The owner to set.
* @return This builder for chaining.
*/
public Builder setOwner(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
owner_ = value;
onChanged();
return this;
}
/**
* optional string owner = 3;
* @return This builder for chaining.
*/
public Builder clearOwner() {
bitField0_ = (bitField0_ & ~0x00000004);
owner_ = getDefaultInstance().getOwner();
onChanged();
return this;
}
/**
* optional string owner = 3;
* @param value The bytes for owner to set.
* @return This builder for chaining.
*/
public Builder setOwnerBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
owner_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
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;
}
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value;
onChanged();
return this;
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Type. Ex. "file", "mongodb", "hive" etc.
*
*
* optional string type = 4;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value;
onChanged();
return this;
}
private java.lang.Object mutable_ = "";
/**
* optional string mutable = 5;
* @return Whether the mutable field is set.
*/
public boolean hasMutable() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string mutable = 5;
* @return The mutable.
*/
public java.lang.String getMutable() {
java.lang.Object ref = mutable_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
mutable_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string mutable = 5;
* @return The bytes for mutable.
*/
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;
}
}
/**
* optional string mutable = 5;
* @param value The mutable to set.
* @return This builder for chaining.
*/
public Builder setMutable(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mutable_ = value;
onChanged();
return this;
}
/**
* optional string mutable = 5;
* @return This builder for chaining.
*/
public Builder clearMutable() {
bitField0_ = (bitField0_ & ~0x00000010);
mutable_ = getDefaultInstance().getMutable();
onChanged();
return this;
}
/**
* optional string mutable = 5;
* @param value The bytes for mutable to set.
* @return This builder for chaining.
*/
public Builder setMutableBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
mutable_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.SchemaMetadata)
}
// @@protoc_insertion_point(class_scope:exec.user.SchemaMetadata)
private static final org.apache.drill.exec.proto.UserProtos.SchemaMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.SchemaMetadata();
}
public static org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SchemaMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetSchemasRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.GetSchemasResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
java.util.List
getSchemasList();
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index);
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
int getSchemasCount();
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
java.util.List extends org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder>
getSchemasOrBuilderList();
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder(
int index);
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
boolean hasError();
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBError getError();
/**
* optional .exec.shared.DrillPBError error = 3;
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
*
* Response message for GetSchemasReq.
*
*
* Protobuf type {@code exec.user.GetSchemasResp}
*/
public static final class GetSchemasResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.GetSchemasResp)
GetSchemasRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetSchemasResp.newBuilder() to construct.
private GetSchemasResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetSchemasResp() {
status_ = 0;
schemas_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetSchemasResp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
public static final int SCHEMAS_FIELD_NUMBER = 2;
private java.util.List schemas_;
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
@java.lang.Override
public java.util.List getSchemasList() {
return schemas_;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder>
getSchemasOrBuilderList() {
return schemas_;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
@java.lang.Override
public int getSchemasCount() {
return schemas_.size();
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index) {
return schemas_.get(index);
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder(
int index) {
return schemas_.get(index);
}
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, status_);
}
for (int i = 0; i < schemas_.size(); i++) {
output.writeMessage(2, schemas_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getError());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
for (int i = 0; i < schemas_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, schemas_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getError());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetSchemasResp)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.GetSchemasResp other = (org.apache.drill.exec.proto.UserProtos.GetSchemasResp) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (!getSchemasList()
.equals(other.getSchemasList())) return false;
if (hasError() != other.hasError()) return false;
if (hasError()) {
if (!getError()
.equals(other.getError())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (getSchemasCount() > 0) {
hash = (37 * hash) + SCHEMAS_FIELD_NUMBER;
hash = (53 * hash) + getSchemasList().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetSchemasResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response message for GetSchemasReq.
*
*
* Protobuf type {@code exec.user.GetSchemasResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.GetSchemasResp)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSchemasFieldBuilder();
getErrorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (schemasBuilder_ == null) {
schemas_ = java.util.Collections.emptyList();
} else {
schemas_ = null;
schemasBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetSchemasResp_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetSchemasResp.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (schemasBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
schemas_ = java.util.Collections.unmodifiableList(schemas_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.schemas_ = schemas_;
} else {
result.schemas_ = schemasBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSchemasFieldBuilder() : null;
} else {
schemasBuilder_.addAllMessages(other.schemas_);
}
}
}
if (other.hasError()) {
mergeError(other.getError());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
org.apache.drill.exec.proto.UserProtos.RequestStatus tmpValue =
org.apache.drill.exec.proto.UserProtos.RequestStatus.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
status_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
org.apache.drill.exec.proto.UserProtos.SchemaMetadata m =
input.readMessage(
org.apache.drill.exec.proto.UserProtos.SchemaMetadata.PARSER,
extensionRegistry);
if (schemasBuilder_ == null) {
ensureSchemasIsMutable();
schemas_.add(m);
} else {
schemasBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List schemas_ =
java.util.Collections.emptyList();
private void ensureSchemasIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
schemas_ = new java.util.ArrayList(schemas_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.SchemaMetadata, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder, org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder> schemasBuilder_;
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public java.util.List getSchemasList() {
if (schemasBuilder_ == null) {
return java.util.Collections.unmodifiableList(schemas_);
} else {
return schemasBuilder_.getMessageList();
}
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public int getSchemasCount() {
if (schemasBuilder_ == null) {
return schemas_.size();
} else {
return schemasBuilder_.getCount();
}
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata getSchemas(int index) {
if (schemasBuilder_ == null) {
return schemas_.get(index);
} else {
return schemasBuilder_.getMessage(index);
}
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public Builder addAllSchemas(
java.lang.Iterable extends org.apache.drill.exec.proto.UserProtos.SchemaMetadata> values) {
if (schemasBuilder_ == null) {
ensureSchemasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, schemas_);
onChanged();
} else {
schemasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public Builder clearSchemas() {
if (schemasBuilder_ == null) {
schemas_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
schemasBuilder_.clear();
}
return this;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public Builder removeSchemas(int index) {
if (schemasBuilder_ == null) {
ensureSchemasIsMutable();
schemas_.remove(index);
onChanged();
} else {
schemasBuilder_.remove(index);
}
return this;
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder getSchemasBuilder(
int index) {
return getSchemasFieldBuilder().getBuilder(index);
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public org.apache.drill.exec.proto.UserProtos.SchemaMetadataOrBuilder getSchemasOrBuilder(
int index) {
if (schemasBuilder_ == null) {
return schemas_.get(index); } else {
return schemasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
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_);
}
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder addSchemasBuilder() {
return getSchemasFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public org.apache.drill.exec.proto.UserProtos.SchemaMetadata.Builder addSchemasBuilder(
int index) {
return getSchemasFieldBuilder().addBuilder(
index, org.apache.drill.exec.proto.UserProtos.SchemaMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.SchemaMetadata schemas = 2;
*/
public java.util.List
getSchemasBuilderList() {
return getSchemasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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) != 0),
getParentForChildren(),
isClean());
schemas_ = null;
}
return schemasBuilder_;
}
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
public boolean hasError() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
error_ != null &&
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.GetSchemasResp)
}
// @@protoc_insertion_point(class_scope:exec.user.GetSchemasResp)
private static final org.apache.drill.exec.proto.UserProtos.GetSchemasResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetSchemasResp();
}
public static org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetSchemasResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetSchemasResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTablesReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.GetTablesReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
boolean hasCatalogNameFilter();
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter();
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
boolean hasSchemaNameFilter();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
boolean hasTableNameFilter();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder();
/**
* repeated string table_type_filter = 4;
* @return A list containing the tableTypeFilter.
*/
java.util.List
getTableTypeFilterList();
/**
* repeated string table_type_filter = 4;
* @return The count of tableTypeFilter.
*/
int getTableTypeFilterCount();
/**
* repeated string table_type_filter = 4;
* @param index The index of the element to return.
* @return The tableTypeFilter at the given index.
*/
java.lang.String getTableTypeFilter(int index);
/**
* repeated string table_type_filter = 4;
* @param index The index of the value to return.
* @return The bytes of the tableTypeFilter at the given index.
*/
com.google.protobuf.ByteString
getTableTypeFilterBytes(int index);
}
/**
*
* Request message for getting the metadata for tables satisfying the given optional filters.
*
*
* Protobuf type {@code exec.user.GetTablesReq}
*/
public static final class GetTablesReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.GetTablesReq)
GetTablesReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTablesReq.newBuilder() to construct.
private GetTablesReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTablesReq() {
tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetTablesReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
@java.lang.Override
public boolean hasCatalogNameFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
@java.lang.Override
public boolean hasSchemaNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
@java.lang.Override
public boolean hasTableNameFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
public static final int TABLE_TYPE_FILTER_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList tableTypeFilter_;
/**
* repeated string table_type_filter = 4;
* @return A list containing the tableTypeFilter.
*/
public com.google.protobuf.ProtocolStringList
getTableTypeFilterList() {
return tableTypeFilter_;
}
/**
* repeated string table_type_filter = 4;
* @return The count of tableTypeFilter.
*/
public int getTableTypeFilterCount() {
return tableTypeFilter_.size();
}
/**
* repeated string table_type_filter = 4;
* @param index The index of the element to return.
* @return The tableTypeFilter at the given index.
*/
public java.lang.String getTableTypeFilter(int index) {
return tableTypeFilter_.get(index);
}
/**
* repeated string table_type_filter = 4;
* @param index The index of the value to return.
* @return The bytes of the tableTypeFilter at the given index.
*/
public com.google.protobuf.ByteString
getTableTypeFilterBytes(int index) {
return tableTypeFilter_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getTableNameFilter());
}
for (int i = 0; i < tableTypeFilter_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tableTypeFilter_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTableNameFilter());
}
{
int dataSize = 0;
for (int i = 0; i < tableTypeFilter_.size(); i++) {
dataSize += computeStringSizeNoTag(tableTypeFilter_.getRaw(i));
}
size += dataSize;
size += 1 * getTableTypeFilterList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetTablesReq)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.GetTablesReq other = (org.apache.drill.exec.proto.UserProtos.GetTablesReq) obj;
if (hasCatalogNameFilter() != other.hasCatalogNameFilter()) return false;
if (hasCatalogNameFilter()) {
if (!getCatalogNameFilter()
.equals(other.getCatalogNameFilter())) return false;
}
if (hasSchemaNameFilter() != other.hasSchemaNameFilter()) return false;
if (hasSchemaNameFilter()) {
if (!getSchemaNameFilter()
.equals(other.getSchemaNameFilter())) return false;
}
if (hasTableNameFilter() != other.hasTableNameFilter()) return false;
if (hasTableNameFilter()) {
if (!getTableNameFilter()
.equals(other.getTableNameFilter())) return false;
}
if (!getTableTypeFilterList()
.equals(other.getTableTypeFilterList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogNameFilter()) {
hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getCatalogNameFilter().hashCode();
}
if (hasSchemaNameFilter()) {
hash = (37 * hash) + SCHEMA_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getSchemaNameFilter().hashCode();
}
if (hasTableNameFilter()) {
hash = (37 * hash) + TABLE_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getTableNameFilter().hashCode();
}
if (getTableTypeFilterCount() > 0) {
hash = (37 * hash) + TABLE_TYPE_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getTableTypeFilterList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request message for getting the metadata for tables satisfying the given optional filters.
*
*
* Protobuf type {@code exec.user.GetTablesReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.GetTablesReq)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
getSchemaNameFilterFieldBuilder();
getTableNameFilterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (schemaNameFilterBuilder_ == null) {
schemaNameFilter_ = null;
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tableNameFilterBuilder_ == null) {
tableNameFilter_ = null;
} else {
tableNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesReq_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetTablesReq.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
if (catalogNameFilterBuilder_ == null) {
result.catalogNameFilter_ = catalogNameFilter_;
} else {
result.catalogNameFilter_ = catalogNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (schemaNameFilterBuilder_ == null) {
result.schemaNameFilter_ = schemaNameFilter_;
} else {
result.schemaNameFilter_ = schemaNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (tableNameFilterBuilder_ == null) {
result.tableNameFilter_ = tableNameFilter_;
} else {
result.tableNameFilter_ = tableNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((bitField0_ & 0x00000008) != 0)) {
tableTypeFilter_ = tableTypeFilter_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.tableTypeFilter_ = tableTypeFilter_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCatalogNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getSchemaNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTableNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureTableTypeFilterIsMutable();
tableTypeFilter_.add(bs);
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
public boolean hasCatalogNameFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
catalogNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCatalogNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
return catalogNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
}
return catalogNameFilterBuilder_;
}
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
public boolean hasSchemaNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
} else {
return schemaNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (schemaNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
schemaNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public Builder clearSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
schemaNameFilter_ = null;
onChanged();
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getSchemaNameFilterBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSchemaNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
if (schemaNameFilterBuilder_ != null) {
return schemaNameFilterBuilder_.getMessageOrBuilder();
} else {
return schemaNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getSchemaNameFilter(),
getParentForChildren(),
isClean());
schemaNameFilter_ = null;
}
return schemaNameFilterBuilder_;
}
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
public boolean hasTableNameFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
} else {
return tableNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (tableNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
tableNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public Builder clearTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
tableNameFilter_ = null;
onChanged();
} else {
tableNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getTableNameFilterBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTableNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
if (tableNameFilterBuilder_ != null) {
return tableNameFilterBuilder_.getMessageOrBuilder();
} else {
return tableNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getTableNameFilter(),
getParentForChildren(),
isClean());
tableNameFilter_ = null;
}
return tableNameFilterBuilder_;
}
private com.google.protobuf.LazyStringList tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTableTypeFilterIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
tableTypeFilter_ = new com.google.protobuf.LazyStringArrayList(tableTypeFilter_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string table_type_filter = 4;
* @return A list containing the tableTypeFilter.
*/
public com.google.protobuf.ProtocolStringList
getTableTypeFilterList() {
return tableTypeFilter_.getUnmodifiableView();
}
/**
* repeated string table_type_filter = 4;
* @return The count of tableTypeFilter.
*/
public int getTableTypeFilterCount() {
return tableTypeFilter_.size();
}
/**
* repeated string table_type_filter = 4;
* @param index The index of the element to return.
* @return The tableTypeFilter at the given index.
*/
public java.lang.String getTableTypeFilter(int index) {
return tableTypeFilter_.get(index);
}
/**
* repeated string table_type_filter = 4;
* @param index The index of the value to return.
* @return The bytes of the tableTypeFilter at the given index.
*/
public com.google.protobuf.ByteString
getTableTypeFilterBytes(int index) {
return tableTypeFilter_.getByteString(index);
}
/**
* repeated string table_type_filter = 4;
* @param index The index to set the value at.
* @param value The tableTypeFilter to set.
* @return This builder for chaining.
*/
public Builder setTableTypeFilter(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableTypeFilterIsMutable();
tableTypeFilter_.set(index, value);
onChanged();
return this;
}
/**
* repeated string table_type_filter = 4;
* @param value The tableTypeFilter to add.
* @return This builder for chaining.
*/
public Builder addTableTypeFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableTypeFilterIsMutable();
tableTypeFilter_.add(value);
onChanged();
return this;
}
/**
* repeated string table_type_filter = 4;
* @param values The tableTypeFilter to add.
* @return This builder for chaining.
*/
public Builder addAllTableTypeFilter(
java.lang.Iterable values) {
ensureTableTypeFilterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tableTypeFilter_);
onChanged();
return this;
}
/**
* repeated string table_type_filter = 4;
* @return This builder for chaining.
*/
public Builder clearTableTypeFilter() {
tableTypeFilter_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string table_type_filter = 4;
* @param value The bytes of the tableTypeFilter to add.
* @return This builder for chaining.
*/
public Builder addTableTypeFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTableTypeFilterIsMutable();
tableTypeFilter_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.GetTablesReq)
}
// @@protoc_insertion_point(class_scope:exec.user.GetTablesReq)
private static final org.apache.drill.exec.proto.UserProtos.GetTablesReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetTablesReq();
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetTablesReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TableMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.TableMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
boolean hasCatalogName();
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
java.lang.String getCatalogName();
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
com.google.protobuf.ByteString
getCatalogNameBytes();
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
boolean hasSchemaName();
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
java.lang.String getSchemaName();
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
boolean hasTableName();
/**
* optional string table_name = 3;
* @return The tableName.
*/
java.lang.String getTableName();
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
com.google.protobuf.ByteString
getTableNameBytes();
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The type.
*/
java.lang.String getType();
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
}
/**
*
* Message encapsulating metadata for a Table.
*
*
* Protobuf type {@code exec.user.TableMetadata}
*/
public static final class TableMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.TableMetadata)
TableMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use TableMetadata.newBuilder() to construct.
private TableMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TableMetadata() {
catalogName_ = "";
schemaName_ = "";
tableName_ = "";
type_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TableMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object catalogName_;
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
@java.lang.Override
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
@java.lang.Override
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;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
@java.lang.Override
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;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
@java.lang.Override
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
@java.lang.Override
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;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
@java.lang.Override
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;
}
}
public static final int TABLE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object tableName_;
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
@java.lang.Override
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string table_name = 3;
* @return The tableName.
*/
@java.lang.Override
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;
}
}
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
@java.lang.Override
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;
}
}
public static final int TYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object type_;
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The type.
*/
@java.lang.Override
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;
}
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
@java.lang.Override
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 byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.TableMetadata)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.TableMetadata other = (org.apache.drill.exec.proto.UserProtos.TableMetadata) obj;
if (hasCatalogName() != other.hasCatalogName()) return false;
if (hasCatalogName()) {
if (!getCatalogName()
.equals(other.getCatalogName())) return false;
}
if (hasSchemaName() != other.hasSchemaName()) return false;
if (hasSchemaName()) {
if (!getSchemaName()
.equals(other.getSchemaName())) return false;
}
if (hasTableName() != other.hasTableName()) return false;
if (hasTableName()) {
if (!getTableName()
.equals(other.getTableName())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogName()) {
hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCatalogName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.TableMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message encapsulating metadata for a Table.
*
*
* Protobuf type {@code exec.user.TableMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.TableMetadata)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
catalogName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
schemaName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
tableName_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_TableMetadata_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.catalogName_ = catalogName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
catalogName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
schemaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
tableName_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
type_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object catalogName_ = "";
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
catalogName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
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;
}
}
/**
* optional string catalog_name = 1;
* @param value The catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @return This builder for chaining.
*/
public Builder clearCatalogName() {
bitField0_ = (bitField0_ & ~0x00000001);
catalogName_ = getDefaultInstance().getCatalogName();
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @param value The bytes for catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
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;
}
}
/**
* optional string schema_name = 2;
* @param value The schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @param value The bytes for schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
private java.lang.Object tableName_ = "";
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string table_name = 3;
* @return The tableName.
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
tableName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
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;
}
}
/**
* optional string table_name = 3;
* @param value The tableName to set.
* @return This builder for chaining.
*/
public Builder setTableName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
* optional string table_name = 3;
* @return This builder for chaining.
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
/**
* optional string table_name = 3;
* @param value The bytes for tableName to set.
* @return This builder for chaining.
*/
public Builder setTableNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return The bytes for type.
*/
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;
}
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value;
onChanged();
return this;
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
*
* Type. Ex. "TABLE", "VIEW" etc.
*
*
* optional string type = 4;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.TableMetadata)
}
// @@protoc_insertion_point(class_scope:exec.user.TableMetadata)
private static final org.apache.drill.exec.proto.UserProtos.TableMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.TableMetadata();
}
public static org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TableMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetTablesRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.GetTablesResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
java.util.List
getTablesList();
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index);
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
int getTablesCount();
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
java.util.List extends org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder>
getTablesOrBuilderList();
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder(
int index);
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
boolean hasError();
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBError getError();
/**
* optional .exec.shared.DrillPBError error = 3;
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
*
* Response message for GetTablesReq.
*
*
* Protobuf type {@code exec.user.GetTablesResp}
*/
public static final class GetTablesResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.GetTablesResp)
GetTablesRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetTablesResp.newBuilder() to construct.
private GetTablesResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetTablesResp() {
status_ = 0;
tables_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetTablesResp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
public static final int TABLES_FIELD_NUMBER = 2;
private java.util.List tables_;
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
@java.lang.Override
public java.util.List getTablesList() {
return tables_;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder>
getTablesOrBuilderList() {
return tables_;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
@java.lang.Override
public int getTablesCount() {
return tables_.size();
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index) {
return tables_.get(index);
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder(
int index) {
return tables_.get(index);
}
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, status_);
}
for (int i = 0; i < tables_.size(); i++) {
output.writeMessage(2, tables_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getError());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
for (int i = 0; i < tables_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, tables_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getError());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetTablesResp)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.GetTablesResp other = (org.apache.drill.exec.proto.UserProtos.GetTablesResp) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (!getTablesList()
.equals(other.getTablesList())) return false;
if (hasError() != other.hasError()) return false;
if (hasError()) {
if (!getError()
.equals(other.getError())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (getTablesCount() > 0) {
hash = (37 * hash) + TABLES_FIELD_NUMBER;
hash = (53 * hash) + getTablesList().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetTablesResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response message for GetTablesReq.
*
*
* Protobuf type {@code exec.user.GetTablesResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.GetTablesResp)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTablesFieldBuilder();
getErrorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (tablesBuilder_ == null) {
tables_ = java.util.Collections.emptyList();
} else {
tables_ = null;
tablesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetTablesResp_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetTablesResp.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (tablesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
tables_ = java.util.Collections.unmodifiableList(tables_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.tables_ = tables_;
} else {
result.tables_ = tablesBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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.GeneratedMessageV3.alwaysUseFieldBuilders ?
getTablesFieldBuilder() : null;
} else {
tablesBuilder_.addAllMessages(other.tables_);
}
}
}
if (other.hasError()) {
mergeError(other.getError());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
org.apache.drill.exec.proto.UserProtos.RequestStatus tmpValue =
org.apache.drill.exec.proto.UserProtos.RequestStatus.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
status_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
org.apache.drill.exec.proto.UserProtos.TableMetadata m =
input.readMessage(
org.apache.drill.exec.proto.UserProtos.TableMetadata.PARSER,
extensionRegistry);
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.add(m);
} else {
tablesBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List tables_ =
java.util.Collections.emptyList();
private void ensureTablesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
tables_ = new java.util.ArrayList(tables_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.TableMetadata, org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder, org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder> tablesBuilder_;
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public java.util.List getTablesList() {
if (tablesBuilder_ == null) {
return java.util.Collections.unmodifiableList(tables_);
} else {
return tablesBuilder_.getMessageList();
}
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public int getTablesCount() {
if (tablesBuilder_ == null) {
return tables_.size();
} else {
return tablesBuilder_.getCount();
}
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public org.apache.drill.exec.proto.UserProtos.TableMetadata getTables(int index) {
if (tablesBuilder_ == null) {
return tables_.get(index);
} else {
return tablesBuilder_.getMessage(index);
}
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public Builder addAllTables(
java.lang.Iterable extends org.apache.drill.exec.proto.UserProtos.TableMetadata> values) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tables_);
onChanged();
} else {
tablesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public Builder clearTables() {
if (tablesBuilder_ == null) {
tables_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
tablesBuilder_.clear();
}
return this;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public Builder removeTables(int index) {
if (tablesBuilder_ == null) {
ensureTablesIsMutable();
tables_.remove(index);
onChanged();
} else {
tablesBuilder_.remove(index);
}
return this;
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder getTablesBuilder(
int index) {
return getTablesFieldBuilder().getBuilder(index);
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public org.apache.drill.exec.proto.UserProtos.TableMetadataOrBuilder getTablesOrBuilder(
int index) {
if (tablesBuilder_ == null) {
return tables_.get(index); } else {
return tablesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
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_);
}
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder() {
return getTablesFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public org.apache.drill.exec.proto.UserProtos.TableMetadata.Builder addTablesBuilder(
int index) {
return getTablesFieldBuilder().addBuilder(
index, org.apache.drill.exec.proto.UserProtos.TableMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.TableMetadata tables = 2;
*/
public java.util.List
getTablesBuilderList() {
return getTablesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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) != 0),
getParentForChildren(),
isClean());
tables_ = null;
}
return tablesBuilder_;
}
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
public boolean hasError() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
error_ != null &&
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.GetTablesResp)
}
// @@protoc_insertion_point(class_scope:exec.user.GetTablesResp)
private static final org.apache.drill.exec.proto.UserProtos.GetTablesResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetTablesResp();
}
public static org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetTablesResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetTablesResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetColumnsReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.GetColumnsReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
boolean hasCatalogNameFilter();
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter();
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
boolean hasSchemaNameFilter();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter();
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
boolean hasTableNameFilter();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter();
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder();
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return Whether the columnNameFilter field is set.
*/
boolean hasColumnNameFilter();
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return The columnNameFilter.
*/
org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter();
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder();
}
/**
*
* Request message for getting the metadata for columns satisfying the given optional filters.
*
*
* Protobuf type {@code exec.user.GetColumnsReq}
*/
public static final class GetColumnsReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.GetColumnsReq)
GetColumnsReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetColumnsReq.newBuilder() to construct.
private GetColumnsReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetColumnsReq() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetColumnsReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int CATALOG_NAME_FILTER_FIELD_NUMBER = 1;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
@java.lang.Override
public boolean hasCatalogNameFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
public static final int SCHEMA_NAME_FILTER_FIELD_NUMBER = 2;
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
@java.lang.Override
public boolean hasSchemaNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
public static final int TABLE_NAME_FILTER_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
@java.lang.Override
public boolean hasTableNameFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
public static final int COLUMN_NAME_FILTER_FIELD_NUMBER = 4;
private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_;
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return Whether the columnNameFilter field is set.
*/
@java.lang.Override
public boolean hasColumnNameFilter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return The columnNameFilter.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() {
return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder() {
return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getTableNameFilter());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getColumnNameFilter());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCatalogNameFilter());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSchemaNameFilter());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTableNameFilter());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getColumnNameFilter());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsReq)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.GetColumnsReq other = (org.apache.drill.exec.proto.UserProtos.GetColumnsReq) obj;
if (hasCatalogNameFilter() != other.hasCatalogNameFilter()) return false;
if (hasCatalogNameFilter()) {
if (!getCatalogNameFilter()
.equals(other.getCatalogNameFilter())) return false;
}
if (hasSchemaNameFilter() != other.hasSchemaNameFilter()) return false;
if (hasSchemaNameFilter()) {
if (!getSchemaNameFilter()
.equals(other.getSchemaNameFilter())) return false;
}
if (hasTableNameFilter() != other.hasTableNameFilter()) return false;
if (hasTableNameFilter()) {
if (!getTableNameFilter()
.equals(other.getTableNameFilter())) return false;
}
if (hasColumnNameFilter() != other.hasColumnNameFilter()) return false;
if (hasColumnNameFilter()) {
if (!getColumnNameFilter()
.equals(other.getColumnNameFilter())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogNameFilter()) {
hash = (37 * hash) + CATALOG_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getCatalogNameFilter().hashCode();
}
if (hasSchemaNameFilter()) {
hash = (37 * hash) + SCHEMA_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getSchemaNameFilter().hashCode();
}
if (hasTableNameFilter()) {
hash = (37 * hash) + TABLE_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getTableNameFilter().hashCode();
}
if (hasColumnNameFilter()) {
hash = (37 * hash) + COLUMN_NAME_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getColumnNameFilter().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request message for getting the metadata for columns satisfying the given optional filters.
*
*
* Protobuf type {@code exec.user.GetColumnsReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.GetColumnsReq)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCatalogNameFilterFieldBuilder();
getSchemaNameFilterFieldBuilder();
getTableNameFilterFieldBuilder();
getColumnNameFilterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (catalogNameFilterBuilder_ == null) {
catalogNameFilter_ = null;
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (schemaNameFilterBuilder_ == null) {
schemaNameFilter_ = null;
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (tableNameFilterBuilder_ == null) {
tableNameFilter_ = null;
} else {
tableNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (columnNameFilterBuilder_ == null) {
columnNameFilter_ = null;
} else {
columnNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsReq_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetColumnsReq.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
if (catalogNameFilterBuilder_ == null) {
result.catalogNameFilter_ = catalogNameFilter_;
} else {
result.catalogNameFilter_ = catalogNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (schemaNameFilterBuilder_ == null) {
result.schemaNameFilter_ = schemaNameFilter_;
} else {
result.schemaNameFilter_ = schemaNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (tableNameFilterBuilder_ == null) {
result.tableNameFilter_ = tableNameFilter_;
} else {
result.tableNameFilter_ = tableNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (columnNameFilterBuilder_ == null) {
result.columnNameFilter_ = columnNameFilter_;
} else {
result.columnNameFilter_ = columnNameFilterBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getCatalogNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getSchemaNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
input.readMessage(
getTableNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
input.readMessage(
getColumnNameFilterFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private org.apache.drill.exec.proto.UserProtos.LikeFilter catalogNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> catalogNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return Whether the catalogNameFilter field is set.
*/
public boolean hasCatalogNameFilter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
* @return The catalogNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
return catalogNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
} else {
return catalogNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public Builder mergeCatalogNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (catalogNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
catalogNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public Builder clearCatalogNameFilter() {
if (catalogNameFilterBuilder_ == null) {
catalogNameFilter_ = null;
onChanged();
} else {
catalogNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getCatalogNameFilterBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getCatalogNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getCatalogNameFilterOrBuilder() {
if (catalogNameFilterBuilder_ != null) {
return catalogNameFilterBuilder_.getMessageOrBuilder();
} else {
return catalogNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : catalogNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter catalog_name_filter = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getCatalogNameFilter(),
getParentForChildren(),
isClean());
catalogNameFilter_ = null;
}
return catalogNameFilterBuilder_;
}
private org.apache.drill.exec.proto.UserProtos.LikeFilter schemaNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> schemaNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return Whether the schemaNameFilter field is set.
*/
public boolean hasSchemaNameFilter() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
* @return The schemaNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
return schemaNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
} else {
return schemaNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public Builder mergeSchemaNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (schemaNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
schemaNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public Builder clearSchemaNameFilter() {
if (schemaNameFilterBuilder_ == null) {
schemaNameFilter_ = null;
onChanged();
} else {
schemaNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getSchemaNameFilterBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSchemaNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getSchemaNameFilterOrBuilder() {
if (schemaNameFilterBuilder_ != null) {
return schemaNameFilterBuilder_.getMessageOrBuilder();
} else {
return schemaNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : schemaNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter schema_name_filter = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getSchemaNameFilter(),
getParentForChildren(),
isClean());
schemaNameFilter_ = null;
}
return schemaNameFilterBuilder_;
}
private org.apache.drill.exec.proto.UserProtos.LikeFilter tableNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> tableNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return Whether the tableNameFilter field is set.
*/
public boolean hasTableNameFilter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
* @return The tableNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
return tableNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
} else {
return tableNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public Builder mergeTableNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (tableNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
tableNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public Builder clearTableNameFilter() {
if (tableNameFilterBuilder_ == null) {
tableNameFilter_ = null;
onChanged();
} else {
tableNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getTableNameFilterBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getTableNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getTableNameFilterOrBuilder() {
if (tableNameFilterBuilder_ != null) {
return tableNameFilterBuilder_.getMessageOrBuilder();
} else {
return tableNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : tableNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter table_name_filter = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getTableNameFilter(),
getParentForChildren(),
isClean());
tableNameFilter_ = null;
}
return tableNameFilterBuilder_;
}
private org.apache.drill.exec.proto.UserProtos.LikeFilter columnNameFilter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder> columnNameFilterBuilder_;
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return Whether the columnNameFilter field is set.
*/
public boolean hasColumnNameFilter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
* @return The columnNameFilter.
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter getColumnNameFilter() {
if (columnNameFilterBuilder_ == null) {
return columnNameFilter_ == null ? org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
} else {
return columnNameFilterBuilder_.getMessage();
}
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
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;
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
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;
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
public Builder mergeColumnNameFilter(org.apache.drill.exec.proto.UserProtos.LikeFilter value) {
if (columnNameFilterBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
columnNameFilter_ != null &&
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;
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
public Builder clearColumnNameFilter() {
if (columnNameFilterBuilder_ == null) {
columnNameFilter_ = null;
onChanged();
} else {
columnNameFilterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder getColumnNameFilterBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getColumnNameFilterFieldBuilder().getBuilder();
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
public org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder getColumnNameFilterOrBuilder() {
if (columnNameFilterBuilder_ != null) {
return columnNameFilterBuilder_.getMessageOrBuilder();
} else {
return columnNameFilter_ == null ?
org.apache.drill.exec.proto.UserProtos.LikeFilter.getDefaultInstance() : columnNameFilter_;
}
}
/**
* optional .exec.user.LikeFilter column_name_filter = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.LikeFilter, org.apache.drill.exec.proto.UserProtos.LikeFilter.Builder, org.apache.drill.exec.proto.UserProtos.LikeFilterOrBuilder>(
getColumnNameFilter(),
getParentForChildren(),
isClean());
columnNameFilter_ = null;
}
return columnNameFilterBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.GetColumnsReq)
}
// @@protoc_insertion_point(class_scope:exec.user.GetColumnsReq)
private static final org.apache.drill.exec.proto.UserProtos.GetColumnsReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetColumnsReq();
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetColumnsReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ColumnMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.ColumnMetadata)
com.google.protobuf.MessageOrBuilder {
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
boolean hasCatalogName();
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
java.lang.String getCatalogName();
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
com.google.protobuf.ByteString
getCatalogNameBytes();
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
boolean hasSchemaName();
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
java.lang.String getSchemaName();
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
boolean hasTableName();
/**
* optional string table_name = 3;
* @return The tableName.
*/
java.lang.String getTableName();
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
com.google.protobuf.ByteString
getTableNameBytes();
/**
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
boolean hasColumnName();
/**
* optional string column_name = 4;
* @return The columnName.
*/
java.lang.String getColumnName();
/**
* optional string column_name = 4;
* @return The bytes for columnName.
*/
com.google.protobuf.ByteString
getColumnNameBytes();
/**
* optional int32 ordinal_position = 5;
* @return Whether the ordinalPosition field is set.
*/
boolean hasOrdinalPosition();
/**
* optional int32 ordinal_position = 5;
* @return The ordinalPosition.
*/
int getOrdinalPosition();
/**
* optional string default_value = 6;
* @return Whether the defaultValue field is set.
*/
boolean hasDefaultValue();
/**
* optional string default_value = 6;
* @return The defaultValue.
*/
java.lang.String getDefaultValue();
/**
* optional string default_value = 6;
* @return The bytes for defaultValue.
*/
com.google.protobuf.ByteString
getDefaultValueBytes();
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
boolean hasIsNullable();
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
boolean getIsNullable();
/**
* optional string data_type = 8;
* @return Whether the dataType field is set.
*/
boolean hasDataType();
/**
* optional string data_type = 8;
* @return The dataType.
*/
java.lang.String getDataType();
/**
* optional string data_type = 8;
* @return The bytes for dataType.
*/
com.google.protobuf.ByteString
getDataTypeBytes();
/**
* optional int32 char_max_length = 9;
* @return Whether the charMaxLength field is set.
*/
boolean hasCharMaxLength();
/**
* optional int32 char_max_length = 9;
* @return The charMaxLength.
*/
int getCharMaxLength();
/**
* optional int32 char_octet_length = 10;
* @return Whether the charOctetLength field is set.
*/
boolean hasCharOctetLength();
/**
* optional int32 char_octet_length = 10;
* @return The charOctetLength.
*/
int getCharOctetLength();
/**
* optional int32 numeric_precision = 11;
* @return Whether the numericPrecision field is set.
*/
boolean hasNumericPrecision();
/**
* optional int32 numeric_precision = 11;
* @return The numericPrecision.
*/
int getNumericPrecision();
/**
* optional int32 numeric_precision_radix = 12;
* @return Whether the numericPrecisionRadix field is set.
*/
boolean hasNumericPrecisionRadix();
/**
* optional int32 numeric_precision_radix = 12;
* @return The numericPrecisionRadix.
*/
int getNumericPrecisionRadix();
/**
* optional int32 numeric_scale = 13;
* @return Whether the numericScale field is set.
*/
boolean hasNumericScale();
/**
* optional int32 numeric_scale = 13;
* @return The numericScale.
*/
int getNumericScale();
/**
* optional int32 date_time_precision = 14;
* @return Whether the dateTimePrecision field is set.
*/
boolean hasDateTimePrecision();
/**
* optional int32 date_time_precision = 14;
* @return The dateTimePrecision.
*/
int getDateTimePrecision();
/**
* optional string interval_type = 15;
* @return Whether the intervalType field is set.
*/
boolean hasIntervalType();
/**
* optional string interval_type = 15;
* @return The intervalType.
*/
java.lang.String getIntervalType();
/**
* optional string interval_type = 15;
* @return The bytes for intervalType.
*/
com.google.protobuf.ByteString
getIntervalTypeBytes();
/**
* optional int32 interval_precision = 16;
* @return Whether the intervalPrecision field is set.
*/
boolean hasIntervalPrecision();
/**
* optional int32 interval_precision = 16;
* @return The intervalPrecision.
*/
int getIntervalPrecision();
/**
* optional int32 column_size = 17;
* @return Whether the columnSize field is set.
*/
boolean hasColumnSize();
/**
* optional int32 column_size = 17;
* @return The columnSize.
*/
int getColumnSize();
}
/**
*
* Message encapsulating metadata for a Column.
*
*
* Protobuf type {@code exec.user.ColumnMetadata}
*/
public static final class ColumnMetadata extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.ColumnMetadata)
ColumnMetadataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ColumnMetadata.newBuilder() to construct.
private ColumnMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ColumnMetadata() {
catalogName_ = "";
schemaName_ = "";
tableName_ = "";
columnName_ = "";
defaultValue_ = "";
dataType_ = "";
intervalType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ColumnMetadata();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int CATALOG_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object catalogName_;
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
@java.lang.Override
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
@java.lang.Override
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;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
@java.lang.Override
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;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
@java.lang.Override
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
@java.lang.Override
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;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
@java.lang.Override
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;
}
}
public static final int TABLE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object tableName_;
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
@java.lang.Override
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string table_name = 3;
* @return The tableName.
*/
@java.lang.Override
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;
}
}
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
@java.lang.Override
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;
}
}
public static final int COLUMN_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object columnName_;
/**
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
@java.lang.Override
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string column_name = 4;
* @return The columnName.
*/
@java.lang.Override
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;
}
}
/**
* optional string column_name = 4;
* @return The bytes for columnName.
*/
@java.lang.Override
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;
}
}
public static final int ORDINAL_POSITION_FIELD_NUMBER = 5;
private int ordinalPosition_;
/**
* optional int32 ordinal_position = 5;
* @return Whether the ordinalPosition field is set.
*/
@java.lang.Override
public boolean hasOrdinalPosition() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 ordinal_position = 5;
* @return The ordinalPosition.
*/
@java.lang.Override
public int getOrdinalPosition() {
return ordinalPosition_;
}
public static final int DEFAULT_VALUE_FIELD_NUMBER = 6;
private volatile java.lang.Object defaultValue_;
/**
* optional string default_value = 6;
* @return Whether the defaultValue field is set.
*/
@java.lang.Override
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string default_value = 6;
* @return The defaultValue.
*/
@java.lang.Override
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;
}
}
/**
* optional string default_value = 6;
* @return The bytes for defaultValue.
*/
@java.lang.Override
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;
}
}
public static final int IS_NULLABLE_FIELD_NUMBER = 7;
private boolean isNullable_;
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
@java.lang.Override
public boolean hasIsNullable() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
public static final int DATA_TYPE_FIELD_NUMBER = 8;
private volatile java.lang.Object dataType_;
/**
* optional string data_type = 8;
* @return Whether the dataType field is set.
*/
@java.lang.Override
public boolean hasDataType() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string data_type = 8;
* @return The dataType.
*/
@java.lang.Override
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;
}
}
/**
* optional string data_type = 8;
* @return The bytes for dataType.
*/
@java.lang.Override
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;
}
}
public static final int CHAR_MAX_LENGTH_FIELD_NUMBER = 9;
private int charMaxLength_;
/**
* optional int32 char_max_length = 9;
* @return Whether the charMaxLength field is set.
*/
@java.lang.Override
public boolean hasCharMaxLength() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 char_max_length = 9;
* @return The charMaxLength.
*/
@java.lang.Override
public int getCharMaxLength() {
return charMaxLength_;
}
public static final int CHAR_OCTET_LENGTH_FIELD_NUMBER = 10;
private int charOctetLength_;
/**
* optional int32 char_octet_length = 10;
* @return Whether the charOctetLength field is set.
*/
@java.lang.Override
public boolean hasCharOctetLength() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int32 char_octet_length = 10;
* @return The charOctetLength.
*/
@java.lang.Override
public int getCharOctetLength() {
return charOctetLength_;
}
public static final int NUMERIC_PRECISION_FIELD_NUMBER = 11;
private int numericPrecision_;
/**
* optional int32 numeric_precision = 11;
* @return Whether the numericPrecision field is set.
*/
@java.lang.Override
public boolean hasNumericPrecision() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int32 numeric_precision = 11;
* @return The numericPrecision.
*/
@java.lang.Override
public int getNumericPrecision() {
return numericPrecision_;
}
public static final int NUMERIC_PRECISION_RADIX_FIELD_NUMBER = 12;
private int numericPrecisionRadix_;
/**
* optional int32 numeric_precision_radix = 12;
* @return Whether the numericPrecisionRadix field is set.
*/
@java.lang.Override
public boolean hasNumericPrecisionRadix() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int32 numeric_precision_radix = 12;
* @return The numericPrecisionRadix.
*/
@java.lang.Override
public int getNumericPrecisionRadix() {
return numericPrecisionRadix_;
}
public static final int NUMERIC_SCALE_FIELD_NUMBER = 13;
private int numericScale_;
/**
* optional int32 numeric_scale = 13;
* @return Whether the numericScale field is set.
*/
@java.lang.Override
public boolean hasNumericScale() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int32 numeric_scale = 13;
* @return The numericScale.
*/
@java.lang.Override
public int getNumericScale() {
return numericScale_;
}
public static final int DATE_TIME_PRECISION_FIELD_NUMBER = 14;
private int dateTimePrecision_;
/**
* optional int32 date_time_precision = 14;
* @return Whether the dateTimePrecision field is set.
*/
@java.lang.Override
public boolean hasDateTimePrecision() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int32 date_time_precision = 14;
* @return The dateTimePrecision.
*/
@java.lang.Override
public int getDateTimePrecision() {
return dateTimePrecision_;
}
public static final int INTERVAL_TYPE_FIELD_NUMBER = 15;
private volatile java.lang.Object intervalType_;
/**
* optional string interval_type = 15;
* @return Whether the intervalType field is set.
*/
@java.lang.Override
public boolean hasIntervalType() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string interval_type = 15;
* @return The intervalType.
*/
@java.lang.Override
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;
}
}
/**
* optional string interval_type = 15;
* @return The bytes for intervalType.
*/
@java.lang.Override
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;
}
}
public static final int INTERVAL_PRECISION_FIELD_NUMBER = 16;
private int intervalPrecision_;
/**
* optional int32 interval_precision = 16;
* @return Whether the intervalPrecision field is set.
*/
@java.lang.Override
public boolean hasIntervalPrecision() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional int32 interval_precision = 16;
* @return The intervalPrecision.
*/
@java.lang.Override
public int getIntervalPrecision() {
return intervalPrecision_;
}
public static final int COLUMN_SIZE_FIELD_NUMBER = 17;
private int columnSize_;
/**
* optional int32 column_size = 17;
* @return Whether the columnSize field is set.
*/
@java.lang.Override
public boolean hasColumnSize() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int32 column_size = 17;
* @return The columnSize.
*/
@java.lang.Override
public int getColumnSize() {
return columnSize_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, columnName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(5, ordinalPosition_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultValue_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, isNullable_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, dataType_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(9, charMaxLength_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeInt32(10, charOctetLength_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt32(11, numericPrecision_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt32(12, numericPrecisionRadix_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeInt32(13, numericScale_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeInt32(14, dateTimePrecision_);
}
if (((bitField0_ & 0x00004000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, intervalType_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeInt32(16, intervalPrecision_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeInt32(17, columnSize_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, columnName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, ordinalPosition_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultValue_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isNullable_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, dataType_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, charMaxLength_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, charOctetLength_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, numericPrecision_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(12, numericPrecisionRadix_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(13, numericScale_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(14, dateTimePrecision_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, intervalType_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, intervalPrecision_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(17, columnSize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ColumnMetadata)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.ColumnMetadata other = (org.apache.drill.exec.proto.UserProtos.ColumnMetadata) obj;
if (hasCatalogName() != other.hasCatalogName()) return false;
if (hasCatalogName()) {
if (!getCatalogName()
.equals(other.getCatalogName())) return false;
}
if (hasSchemaName() != other.hasSchemaName()) return false;
if (hasSchemaName()) {
if (!getSchemaName()
.equals(other.getSchemaName())) return false;
}
if (hasTableName() != other.hasTableName()) return false;
if (hasTableName()) {
if (!getTableName()
.equals(other.getTableName())) return false;
}
if (hasColumnName() != other.hasColumnName()) return false;
if (hasColumnName()) {
if (!getColumnName()
.equals(other.getColumnName())) return false;
}
if (hasOrdinalPosition() != other.hasOrdinalPosition()) return false;
if (hasOrdinalPosition()) {
if (getOrdinalPosition()
!= other.getOrdinalPosition()) return false;
}
if (hasDefaultValue() != other.hasDefaultValue()) return false;
if (hasDefaultValue()) {
if (!getDefaultValue()
.equals(other.getDefaultValue())) return false;
}
if (hasIsNullable() != other.hasIsNullable()) return false;
if (hasIsNullable()) {
if (getIsNullable()
!= other.getIsNullable()) return false;
}
if (hasDataType() != other.hasDataType()) return false;
if (hasDataType()) {
if (!getDataType()
.equals(other.getDataType())) return false;
}
if (hasCharMaxLength() != other.hasCharMaxLength()) return false;
if (hasCharMaxLength()) {
if (getCharMaxLength()
!= other.getCharMaxLength()) return false;
}
if (hasCharOctetLength() != other.hasCharOctetLength()) return false;
if (hasCharOctetLength()) {
if (getCharOctetLength()
!= other.getCharOctetLength()) return false;
}
if (hasNumericPrecision() != other.hasNumericPrecision()) return false;
if (hasNumericPrecision()) {
if (getNumericPrecision()
!= other.getNumericPrecision()) return false;
}
if (hasNumericPrecisionRadix() != other.hasNumericPrecisionRadix()) return false;
if (hasNumericPrecisionRadix()) {
if (getNumericPrecisionRadix()
!= other.getNumericPrecisionRadix()) return false;
}
if (hasNumericScale() != other.hasNumericScale()) return false;
if (hasNumericScale()) {
if (getNumericScale()
!= other.getNumericScale()) return false;
}
if (hasDateTimePrecision() != other.hasDateTimePrecision()) return false;
if (hasDateTimePrecision()) {
if (getDateTimePrecision()
!= other.getDateTimePrecision()) return false;
}
if (hasIntervalType() != other.hasIntervalType()) return false;
if (hasIntervalType()) {
if (!getIntervalType()
.equals(other.getIntervalType())) return false;
}
if (hasIntervalPrecision() != other.hasIntervalPrecision()) return false;
if (hasIntervalPrecision()) {
if (getIntervalPrecision()
!= other.getIntervalPrecision()) return false;
}
if (hasColumnSize() != other.hasColumnSize()) return false;
if (hasColumnSize()) {
if (getColumnSize()
!= other.getColumnSize()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogName()) {
hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCatalogName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasColumnName()) {
hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
}
if (hasOrdinalPosition()) {
hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER;
hash = (53 * hash) + getOrdinalPosition();
}
if (hasDefaultValue()) {
hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getDefaultValue().hashCode();
}
if (hasIsNullable()) {
hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsNullable());
}
if (hasDataType()) {
hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataType().hashCode();
}
if (hasCharMaxLength()) {
hash = (37 * hash) + CHAR_MAX_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getCharMaxLength();
}
if (hasCharOctetLength()) {
hash = (37 * hash) + CHAR_OCTET_LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getCharOctetLength();
}
if (hasNumericPrecision()) {
hash = (37 * hash) + NUMERIC_PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getNumericPrecision();
}
if (hasNumericPrecisionRadix()) {
hash = (37 * hash) + NUMERIC_PRECISION_RADIX_FIELD_NUMBER;
hash = (53 * hash) + getNumericPrecisionRadix();
}
if (hasNumericScale()) {
hash = (37 * hash) + NUMERIC_SCALE_FIELD_NUMBER;
hash = (53 * hash) + getNumericScale();
}
if (hasDateTimePrecision()) {
hash = (37 * hash) + DATE_TIME_PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getDateTimePrecision();
}
if (hasIntervalType()) {
hash = (37 * hash) + INTERVAL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getIntervalType().hashCode();
}
if (hasIntervalPrecision()) {
hash = (37 * hash) + INTERVAL_PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getIntervalPrecision();
}
if (hasColumnSize()) {
hash = (37 * hash) + COLUMN_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getColumnSize();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ColumnMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message encapsulating metadata for a Column.
*
*
* Protobuf type {@code exec.user.ColumnMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.ColumnMetadata)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ColumnMetadata_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.catalogName_ = catalogName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.columnName_ = columnName_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.ordinalPosition_ = ordinalPosition_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.defaultValue_ = defaultValue_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.isNullable_ = isNullable_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.dataType_ = dataType_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.charMaxLength_ = charMaxLength_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.charOctetLength_ = charOctetLength_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.numericPrecision_ = numericPrecision_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.numericPrecisionRadix_ = numericPrecisionRadix_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.numericScale_ = numericScale_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.dateTimePrecision_ = dateTimePrecision_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
to_bitField0_ |= 0x00004000;
}
result.intervalType_ = intervalType_;
if (((from_bitField0_ & 0x00008000) != 0)) {
result.intervalPrecision_ = intervalPrecision_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.columnSize_ = columnSize_;
to_bitField0_ |= 0x00010000;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
catalogName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
schemaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
tableName_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
columnName_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
ordinalPosition_ = input.readInt32();
bitField0_ |= 0x00000010;
break;
} // case 40
case 50: {
defaultValue_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
isNullable_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
dataType_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
charMaxLength_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
charOctetLength_ = input.readInt32();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
numericPrecision_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 88
case 96: {
numericPrecisionRadix_ = input.readInt32();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
numericScale_ = input.readInt32();
bitField0_ |= 0x00001000;
break;
} // case 104
case 112: {
dateTimePrecision_ = input.readInt32();
bitField0_ |= 0x00002000;
break;
} // case 112
case 122: {
intervalType_ = input.readBytes();
bitField0_ |= 0x00004000;
break;
} // case 122
case 128: {
intervalPrecision_ = input.readInt32();
bitField0_ |= 0x00008000;
break;
} // case 128
case 136: {
columnSize_ = input.readInt32();
bitField0_ |= 0x00010000;
break;
} // case 136
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object catalogName_ = "";
/**
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string catalog_name = 1;
* @return The catalogName.
*/
public java.lang.String getCatalogName() {
java.lang.Object ref = catalogName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
catalogName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
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;
}
}
/**
* optional string catalog_name = 1;
* @param value The catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @return This builder for chaining.
*/
public Builder clearCatalogName() {
bitField0_ = (bitField0_ & ~0x00000001);
catalogName_ = getDefaultInstance().getCatalogName();
onChanged();
return this;
}
/**
* optional string catalog_name = 1;
* @param value The bytes for catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string schema_name = 2;
* @return The schemaName.
*/
public java.lang.String getSchemaName() {
java.lang.Object ref = schemaName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
schemaName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
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;
}
}
/**
* optional string schema_name = 2;
* @param value The schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @return This builder for chaining.
*/
public Builder clearSchemaName() {
bitField0_ = (bitField0_ & ~0x00000002);
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* optional string schema_name = 2;
* @param value The bytes for schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
private java.lang.Object tableName_ = "";
/**
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string table_name = 3;
* @return The tableName.
*/
public java.lang.String getTableName() {
java.lang.Object ref = tableName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
tableName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string table_name = 3;
* @return The bytes for tableName.
*/
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;
}
}
/**
* optional string table_name = 3;
* @param value The tableName to set.
* @return This builder for chaining.
*/
public Builder setTableName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
* optional string table_name = 3;
* @return This builder for chaining.
*/
public Builder clearTableName() {
bitField0_ = (bitField0_ & ~0x00000004);
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
/**
* optional string table_name = 3;
* @param value The bytes for tableName to set.
* @return This builder for chaining.
*/
public Builder setTableNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
private java.lang.Object columnName_ = "";
/**
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string column_name = 4;
* @return The columnName.
*/
public java.lang.String getColumnName() {
java.lang.Object ref = columnName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
columnName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string column_name = 4;
* @return The bytes for columnName.
*/
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;
}
}
/**
* optional string column_name = 4;
* @param value The columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
columnName_ = value;
onChanged();
return this;
}
/**
* optional string column_name = 4;
* @return This builder for chaining.
*/
public Builder clearColumnName() {
bitField0_ = (bitField0_ & ~0x00000008);
columnName_ = getDefaultInstance().getColumnName();
onChanged();
return this;
}
/**
* optional string column_name = 4;
* @param value The bytes for columnName to set.
* @return This builder for chaining.
*/
public Builder setColumnNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
columnName_ = value;
onChanged();
return this;
}
private int ordinalPosition_ ;
/**
* optional int32 ordinal_position = 5;
* @return Whether the ordinalPosition field is set.
*/
@java.lang.Override
public boolean hasOrdinalPosition() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 ordinal_position = 5;
* @return The ordinalPosition.
*/
@java.lang.Override
public int getOrdinalPosition() {
return ordinalPosition_;
}
/**
* optional int32 ordinal_position = 5;
* @param value The ordinalPosition to set.
* @return This builder for chaining.
*/
public Builder setOrdinalPosition(int value) {
bitField0_ |= 0x00000010;
ordinalPosition_ = value;
onChanged();
return this;
}
/**
* optional int32 ordinal_position = 5;
* @return This builder for chaining.
*/
public Builder clearOrdinalPosition() {
bitField0_ = (bitField0_ & ~0x00000010);
ordinalPosition_ = 0;
onChanged();
return this;
}
private java.lang.Object defaultValue_ = "";
/**
* optional string default_value = 6;
* @return Whether the defaultValue field is set.
*/
public boolean hasDefaultValue() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string default_value = 6;
* @return The defaultValue.
*/
public java.lang.String getDefaultValue() {
java.lang.Object ref = defaultValue_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
defaultValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string default_value = 6;
* @return The bytes for defaultValue.
*/
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;
}
}
/**
* optional string default_value = 6;
* @param value The defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
defaultValue_ = value;
onChanged();
return this;
}
/**
* optional string default_value = 6;
* @return This builder for chaining.
*/
public Builder clearDefaultValue() {
bitField0_ = (bitField0_ & ~0x00000020);
defaultValue_ = getDefaultInstance().getDefaultValue();
onChanged();
return this;
}
/**
* optional string default_value = 6;
* @param value The bytes for defaultValue to set.
* @return This builder for chaining.
*/
public Builder setDefaultValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
defaultValue_ = value;
onChanged();
return this;
}
private boolean isNullable_ ;
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
@java.lang.Override
public boolean hasIsNullable() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
/**
* optional bool is_nullable = 7;
* @param value The isNullable to set.
* @return This builder for chaining.
*/
public Builder setIsNullable(boolean value) {
bitField0_ |= 0x00000040;
isNullable_ = value;
onChanged();
return this;
}
/**
* optional bool is_nullable = 7;
* @return This builder for chaining.
*/
public Builder clearIsNullable() {
bitField0_ = (bitField0_ & ~0x00000040);
isNullable_ = false;
onChanged();
return this;
}
private java.lang.Object dataType_ = "";
/**
* optional string data_type = 8;
* @return Whether the dataType field is set.
*/
public boolean hasDataType() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string data_type = 8;
* @return The dataType.
*/
public java.lang.String getDataType() {
java.lang.Object ref = dataType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
dataType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string data_type = 8;
* @return The bytes for dataType.
*/
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;
}
}
/**
* optional string data_type = 8;
* @param value The dataType to set.
* @return This builder for chaining.
*/
public Builder setDataType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
dataType_ = value;
onChanged();
return this;
}
/**
* optional string data_type = 8;
* @return This builder for chaining.
*/
public Builder clearDataType() {
bitField0_ = (bitField0_ & ~0x00000080);
dataType_ = getDefaultInstance().getDataType();
onChanged();
return this;
}
/**
* optional string data_type = 8;
* @param value The bytes for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
dataType_ = value;
onChanged();
return this;
}
private int charMaxLength_ ;
/**
* optional int32 char_max_length = 9;
* @return Whether the charMaxLength field is set.
*/
@java.lang.Override
public boolean hasCharMaxLength() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 char_max_length = 9;
* @return The charMaxLength.
*/
@java.lang.Override
public int getCharMaxLength() {
return charMaxLength_;
}
/**
* optional int32 char_max_length = 9;
* @param value The charMaxLength to set.
* @return This builder for chaining.
*/
public Builder setCharMaxLength(int value) {
bitField0_ |= 0x00000100;
charMaxLength_ = value;
onChanged();
return this;
}
/**
* optional int32 char_max_length = 9;
* @return This builder for chaining.
*/
public Builder clearCharMaxLength() {
bitField0_ = (bitField0_ & ~0x00000100);
charMaxLength_ = 0;
onChanged();
return this;
}
private int charOctetLength_ ;
/**
* optional int32 char_octet_length = 10;
* @return Whether the charOctetLength field is set.
*/
@java.lang.Override
public boolean hasCharOctetLength() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int32 char_octet_length = 10;
* @return The charOctetLength.
*/
@java.lang.Override
public int getCharOctetLength() {
return charOctetLength_;
}
/**
* optional int32 char_octet_length = 10;
* @param value The charOctetLength to set.
* @return This builder for chaining.
*/
public Builder setCharOctetLength(int value) {
bitField0_ |= 0x00000200;
charOctetLength_ = value;
onChanged();
return this;
}
/**
* optional int32 char_octet_length = 10;
* @return This builder for chaining.
*/
public Builder clearCharOctetLength() {
bitField0_ = (bitField0_ & ~0x00000200);
charOctetLength_ = 0;
onChanged();
return this;
}
private int numericPrecision_ ;
/**
* optional int32 numeric_precision = 11;
* @return Whether the numericPrecision field is set.
*/
@java.lang.Override
public boolean hasNumericPrecision() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional int32 numeric_precision = 11;
* @return The numericPrecision.
*/
@java.lang.Override
public int getNumericPrecision() {
return numericPrecision_;
}
/**
* optional int32 numeric_precision = 11;
* @param value The numericPrecision to set.
* @return This builder for chaining.
*/
public Builder setNumericPrecision(int value) {
bitField0_ |= 0x00000400;
numericPrecision_ = value;
onChanged();
return this;
}
/**
* optional int32 numeric_precision = 11;
* @return This builder for chaining.
*/
public Builder clearNumericPrecision() {
bitField0_ = (bitField0_ & ~0x00000400);
numericPrecision_ = 0;
onChanged();
return this;
}
private int numericPrecisionRadix_ ;
/**
* optional int32 numeric_precision_radix = 12;
* @return Whether the numericPrecisionRadix field is set.
*/
@java.lang.Override
public boolean hasNumericPrecisionRadix() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional int32 numeric_precision_radix = 12;
* @return The numericPrecisionRadix.
*/
@java.lang.Override
public int getNumericPrecisionRadix() {
return numericPrecisionRadix_;
}
/**
* optional int32 numeric_precision_radix = 12;
* @param value The numericPrecisionRadix to set.
* @return This builder for chaining.
*/
public Builder setNumericPrecisionRadix(int value) {
bitField0_ |= 0x00000800;
numericPrecisionRadix_ = value;
onChanged();
return this;
}
/**
* optional int32 numeric_precision_radix = 12;
* @return This builder for chaining.
*/
public Builder clearNumericPrecisionRadix() {
bitField0_ = (bitField0_ & ~0x00000800);
numericPrecisionRadix_ = 0;
onChanged();
return this;
}
private int numericScale_ ;
/**
* optional int32 numeric_scale = 13;
* @return Whether the numericScale field is set.
*/
@java.lang.Override
public boolean hasNumericScale() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional int32 numeric_scale = 13;
* @return The numericScale.
*/
@java.lang.Override
public int getNumericScale() {
return numericScale_;
}
/**
* optional int32 numeric_scale = 13;
* @param value The numericScale to set.
* @return This builder for chaining.
*/
public Builder setNumericScale(int value) {
bitField0_ |= 0x00001000;
numericScale_ = value;
onChanged();
return this;
}
/**
* optional int32 numeric_scale = 13;
* @return This builder for chaining.
*/
public Builder clearNumericScale() {
bitField0_ = (bitField0_ & ~0x00001000);
numericScale_ = 0;
onChanged();
return this;
}
private int dateTimePrecision_ ;
/**
* optional int32 date_time_precision = 14;
* @return Whether the dateTimePrecision field is set.
*/
@java.lang.Override
public boolean hasDateTimePrecision() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional int32 date_time_precision = 14;
* @return The dateTimePrecision.
*/
@java.lang.Override
public int getDateTimePrecision() {
return dateTimePrecision_;
}
/**
* optional int32 date_time_precision = 14;
* @param value The dateTimePrecision to set.
* @return This builder for chaining.
*/
public Builder setDateTimePrecision(int value) {
bitField0_ |= 0x00002000;
dateTimePrecision_ = value;
onChanged();
return this;
}
/**
* optional int32 date_time_precision = 14;
* @return This builder for chaining.
*/
public Builder clearDateTimePrecision() {
bitField0_ = (bitField0_ & ~0x00002000);
dateTimePrecision_ = 0;
onChanged();
return this;
}
private java.lang.Object intervalType_ = "";
/**
* optional string interval_type = 15;
* @return Whether the intervalType field is set.
*/
public boolean hasIntervalType() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional string interval_type = 15;
* @return The intervalType.
*/
public java.lang.String getIntervalType() {
java.lang.Object ref = intervalType_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
intervalType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string interval_type = 15;
* @return The bytes for intervalType.
*/
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;
}
}
/**
* optional string interval_type = 15;
* @param value The intervalType to set.
* @return This builder for chaining.
*/
public Builder setIntervalType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
intervalType_ = value;
onChanged();
return this;
}
/**
* optional string interval_type = 15;
* @return This builder for chaining.
*/
public Builder clearIntervalType() {
bitField0_ = (bitField0_ & ~0x00004000);
intervalType_ = getDefaultInstance().getIntervalType();
onChanged();
return this;
}
/**
* optional string interval_type = 15;
* @param value The bytes for intervalType to set.
* @return This builder for chaining.
*/
public Builder setIntervalTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
intervalType_ = value;
onChanged();
return this;
}
private int intervalPrecision_ ;
/**
* optional int32 interval_precision = 16;
* @return Whether the intervalPrecision field is set.
*/
@java.lang.Override
public boolean hasIntervalPrecision() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional int32 interval_precision = 16;
* @return The intervalPrecision.
*/
@java.lang.Override
public int getIntervalPrecision() {
return intervalPrecision_;
}
/**
* optional int32 interval_precision = 16;
* @param value The intervalPrecision to set.
* @return This builder for chaining.
*/
public Builder setIntervalPrecision(int value) {
bitField0_ |= 0x00008000;
intervalPrecision_ = value;
onChanged();
return this;
}
/**
* optional int32 interval_precision = 16;
* @return This builder for chaining.
*/
public Builder clearIntervalPrecision() {
bitField0_ = (bitField0_ & ~0x00008000);
intervalPrecision_ = 0;
onChanged();
return this;
}
private int columnSize_ ;
/**
* optional int32 column_size = 17;
* @return Whether the columnSize field is set.
*/
@java.lang.Override
public boolean hasColumnSize() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional int32 column_size = 17;
* @return The columnSize.
*/
@java.lang.Override
public int getColumnSize() {
return columnSize_;
}
/**
* optional int32 column_size = 17;
* @param value The columnSize to set.
* @return This builder for chaining.
*/
public Builder setColumnSize(int value) {
bitField0_ |= 0x00010000;
columnSize_ = value;
onChanged();
return this;
}
/**
* optional int32 column_size = 17;
* @return This builder for chaining.
*/
public Builder clearColumnSize() {
bitField0_ = (bitField0_ & ~0x00010000);
columnSize_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.ColumnMetadata)
}
// @@protoc_insertion_point(class_scope:exec.user.ColumnMetadata)
private static final org.apache.drill.exec.proto.UserProtos.ColumnMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ColumnMetadata();
}
public static org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ColumnMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetColumnsRespOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.GetColumnsResp)
com.google.protobuf.MessageOrBuilder {
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus();
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
java.util.List
getColumnsList();
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index);
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
int getColumnsCount();
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
java.util.List extends org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder(
int index);
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
boolean hasError();
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBError getError();
/**
* optional .exec.shared.DrillPBError error = 3;
*/
org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder();
}
/**
*
* Response message for GetColumnsReq.
*
*
* Protobuf type {@code exec.user.GetColumnsResp}
*/
public static final class GetColumnsResp extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.GetColumnsResp)
GetColumnsRespOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetColumnsResp.newBuilder() to construct.
private GetColumnsResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetColumnsResp() {
status_ = 0;
columns_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetColumnsResp();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private int status_;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
public static final int COLUMNS_FIELD_NUMBER = 2;
private java.util.List columns_;
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
@java.lang.Override
public java.util.List getColumnsList() {
return columns_;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
@java.lang.Override
public java.util.List extends org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
@java.lang.Override
public int getColumnsCount() {
return columns_.size();
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index) {
return columns_.get(index);
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder(
int index) {
return columns_.get(index);
}
public static final int ERROR_FIELD_NUMBER = 3;
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
@java.lang.Override
public boolean hasError() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeEnum(1, status_);
}
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(2, columns_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getError());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, status_);
}
for (int i = 0; i < columns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, columns_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getError());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.GetColumnsResp)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.GetColumnsResp other = (org.apache.drill.exec.proto.UserProtos.GetColumnsResp) obj;
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (!getColumnsList()
.equals(other.getColumnsList())) return false;
if (hasError() != other.hasError()) return false;
if (hasError()) {
if (!getError()
.equals(other.getError())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (getColumnsCount() > 0) {
hash = (37 * hash) + COLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getColumnsList().hashCode();
}
if (hasError()) {
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.GetColumnsResp prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Response message for GetColumnsReq.
*
*
* Protobuf type {@code exec.user.GetColumnsResp}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.GetColumnsResp)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getColumnsFieldBuilder();
getErrorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
status_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
} else {
columns_ = null;
columnsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (errorBuilder_ == null) {
error_ = null;
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_GetColumnsResp_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.GetColumnsResp.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.status_ = status_;
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (errorBuilder_ == null) {
result.error_ = error_;
} else {
result.error_ = errorBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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.GeneratedMessageV3.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
if (other.hasError()) {
mergeError(other.getError());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int tmpRaw = input.readEnum();
org.apache.drill.exec.proto.UserProtos.RequestStatus tmpValue =
org.apache.drill.exec.proto.UserProtos.RequestStatus.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(1, tmpRaw);
} else {
status_ = tmpRaw;
bitField0_ |= 0x00000001;
}
break;
} // case 8
case 18: {
org.apache.drill.exec.proto.UserProtos.ColumnMetadata m =
input.readMessage(
org.apache.drill.exec.proto.UserProtos.ColumnMetadata.PARSER,
extensionRegistry);
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(m);
} else {
columnsBuilder_.addMessage(m);
}
break;
} // case 18
case 26: {
input.readMessage(
getErrorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int status_ = 0;
/**
* optional .exec.user.RequestStatus status = 1;
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return The status.
*/
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.RequestStatus getStatus() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.RequestStatus result = org.apache.drill.exec.proto.UserProtos.RequestStatus.valueOf(status_);
return result == null ? org.apache.drill.exec.proto.UserProtos.RequestStatus.UNKNOWN_STATUS : result;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(org.apache.drill.exec.proto.UserProtos.RequestStatus value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .exec.user.RequestStatus status = 1;
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = 0;
onChanged();
return this;
}
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.drill.exec.proto.UserProtos.ColumnMetadata, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder, org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder> columnsBuilder_;
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public Builder addAllColumns(
java.lang.Iterable extends org.apache.drill.exec.proto.UserProtos.ColumnMetadata> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public org.apache.drill.exec.proto.UserProtos.ColumnMetadataOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
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_);
}
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public org.apache.drill.exec.proto.UserProtos.ColumnMetadata.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, org.apache.drill.exec.proto.UserProtos.ColumnMetadata.getDefaultInstance());
}
/**
* repeated .exec.user.ColumnMetadata columns = 2;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
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.RepeatedFieldBuilderV3<
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) != 0),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
private org.apache.drill.exec.proto.UserBitShared.DrillPBError error_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder> errorBuilder_;
/**
* optional .exec.shared.DrillPBError error = 3;
* @return Whether the error field is set.
*/
public boolean hasError() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .exec.shared.DrillPBError error = 3;
* @return The error.
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError getError() {
if (errorBuilder_ == null) {
return error_ == null ? org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
} else {
return errorBuilder_.getMessage();
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder mergeError(org.apache.drill.exec.proto.UserBitShared.DrillPBError value) {
if (errorBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
error_ != null &&
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;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public Builder clearError() {
if (errorBuilder_ == null) {
error_ = null;
onChanged();
} else {
errorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder getErrorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getErrorFieldBuilder().getBuilder();
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
public org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder getErrorOrBuilder() {
if (errorBuilder_ != null) {
return errorBuilder_.getMessageOrBuilder();
} else {
return error_ == null ?
org.apache.drill.exec.proto.UserBitShared.DrillPBError.getDefaultInstance() : error_;
}
}
/**
* optional .exec.shared.DrillPBError error = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
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.SingleFieldBuilderV3<
org.apache.drill.exec.proto.UserBitShared.DrillPBError, org.apache.drill.exec.proto.UserBitShared.DrillPBError.Builder, org.apache.drill.exec.proto.UserBitShared.DrillPBErrorOrBuilder>(
getError(),
getParentForChildren(),
isClean());
error_ = null;
}
return errorBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.GetColumnsResp)
}
// @@protoc_insertion_point(class_scope:exec.user.GetColumnsResp)
private static final org.apache.drill.exec.proto.UserProtos.GetColumnsResp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.GetColumnsResp();
}
public static org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetColumnsResp parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.GetColumnsResp getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreatePreparedStatementReqOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.CreatePreparedStatementReq)
com.google.protobuf.MessageOrBuilder {
/**
* optional string sql_query = 1;
* @return Whether the sqlQuery field is set.
*/
boolean hasSqlQuery();
/**
* optional string sql_query = 1;
* @return The sqlQuery.
*/
java.lang.String getSqlQuery();
/**
* optional string sql_query = 1;
* @return The bytes for sqlQuery.
*/
com.google.protobuf.ByteString
getSqlQueryBytes();
}
/**
*
* Request message to create a prepared statement. Currently prepared
* statement only accepts a SQL query. Query parameter support is not
* included in current implementation.
*
*
* Protobuf type {@code exec.user.CreatePreparedStatementReq}
*/
public static final class CreatePreparedStatementReq extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.CreatePreparedStatementReq)
CreatePreparedStatementReqOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreatePreparedStatementReq.newBuilder() to construct.
private CreatePreparedStatementReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreatePreparedStatementReq() {
sqlQuery_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreatePreparedStatementReq();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int SQL_QUERY_FIELD_NUMBER = 1;
private volatile java.lang.Object sqlQuery_;
/**
* optional string sql_query = 1;
* @return Whether the sqlQuery field is set.
*/
@java.lang.Override
public boolean hasSqlQuery() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string sql_query = 1;
* @return The sqlQuery.
*/
@java.lang.Override
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;
}
}
/**
* optional string sql_query = 1;
* @return The bytes for sqlQuery.
*/
@java.lang.Override
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 byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sqlQuery_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sqlQuery_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq other = (org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq) obj;
if (hasSqlQuery() != other.hasSqlQuery()) return false;
if (hasSqlQuery()) {
if (!getSqlQuery()
.equals(other.getSqlQuery())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSqlQuery()) {
hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getSqlQuery().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Request message to create a prepared statement. Currently prepared
* statement only accepts a SQL query. Query parameter support is not
* included in current implementation.
*
*
* Protobuf type {@code exec.user.CreatePreparedStatementReq}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.CreatePreparedStatementReq)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
sqlQuery_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_CreatePreparedStatementReq_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.sqlQuery_ = sqlQuery_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
sqlQuery_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object sqlQuery_ = "";
/**
* optional string sql_query = 1;
* @return Whether the sqlQuery field is set.
*/
public boolean hasSqlQuery() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string sql_query = 1;
* @return The sqlQuery.
*/
public java.lang.String getSqlQuery() {
java.lang.Object ref = sqlQuery_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
sqlQuery_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sql_query = 1;
* @return The bytes for sqlQuery.
*/
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;
}
}
/**
* optional string sql_query = 1;
* @param value The sqlQuery to set.
* @return This builder for chaining.
*/
public Builder setSqlQuery(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sqlQuery_ = value;
onChanged();
return this;
}
/**
* optional string sql_query = 1;
* @return This builder for chaining.
*/
public Builder clearSqlQuery() {
bitField0_ = (bitField0_ & ~0x00000001);
sqlQuery_ = getDefaultInstance().getSqlQuery();
onChanged();
return this;
}
/**
* optional string sql_query = 1;
* @param value The bytes for sqlQuery to set.
* @return This builder for chaining.
*/
public Builder setSqlQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
sqlQuery_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.CreatePreparedStatementReq)
}
// @@protoc_insertion_point(class_scope:exec.user.CreatePreparedStatementReq)
private static final org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq();
}
public static org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreatePreparedStatementReq parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.CreatePreparedStatementReq getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ResultColumnMetadataOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.ResultColumnMetadata)
com.google.protobuf.MessageOrBuilder {
/**
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
*
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
boolean hasCatalogName();
/**
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
*
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
com.google.protobuf.ByteString
getCatalogNameBytes();
/**
*
* 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.
*
*
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
boolean hasSchemaName();
/**
*
* 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.
*
* 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.
*
*
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
/**
*
* 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.
*
*
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
boolean hasTableName();
/**
*
* 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.
*
* 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.
*
*
* optional string table_name = 3;
* @return The bytes for tableName.
*/
com.google.protobuf.ByteString
getTableNameBytes();
/**
*
* column name
*
*
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
boolean hasColumnName();
/**
*
* Data type in string format. Value is SQL standard type.
*
*
* optional string data_type = 6;
* @return The bytes for dataType.
*/
com.google.protobuf.ByteString
getDataTypeBytes();
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
boolean hasIsNullable();
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
boolean getIsNullable();
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return Whether the precision field is set.
*/
boolean hasPrecision();
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return The precision.
*/
int getPrecision();
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return Whether the scale field is set.
*/
boolean hasScale();
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return The scale.
*/
int getScale();
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return Whether the signed field is set.
*/
boolean hasSigned();
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return The signed.
*/
boolean getSigned();
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return Whether the displaySize field is set.
*/
boolean hasDisplaySize();
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return The displaySize.
*/
int getDisplaySize();
/**
*
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
*
*
* optional bool is_aliased = 12;
* @return Whether the isAliased field is set.
*/
boolean hasIsAliased();
/**
*
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
*
*
* optional bool is_aliased = 12;
* @return The isAliased.
*/
boolean getIsAliased();
/**
* optional .exec.user.ColumnSearchability searchability = 13;
* @return Whether the searchability field is set.
*/
boolean hasSearchability();
/**
* optional .exec.user.ColumnSearchability searchability = 13;
* @return The searchability.
*/
org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability();
/**
*
* Defaults to READ_ONLY
*
*
* optional .exec.user.ColumnUpdatability updatability = 14;
* @return Whether the updatability field is set.
*/
boolean hasUpdatability();
/**
*
* 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.
*
*
* optional string class_name = 18;
* @return Whether the className field is set.
*/
boolean hasClassName();
/**
*
* 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.
*
* 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.
*
*
* optional string class_name = 18;
* @return The bytes for className.
*/
com.google.protobuf.ByteString
getClassNameBytes();
/**
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @return Whether the isCurrency field is set.
*/
boolean hasIsCurrency();
/**
*
* Is the data type a currency type? For JDBC only.
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
*
* optional string catalog_name = 1;
* @return The bytes for catalogName.
*/
@java.lang.Override
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;
}
}
public static final int SCHEMA_NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object schemaName_;
/**
*
* 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.
*
*
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
@java.lang.Override
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
@java.lang.Override
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;
}
}
public static final int TABLE_NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object tableName_;
/**
*
* 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.
*
*
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
@java.lang.Override
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string table_name = 3;
* @return The bytes for tableName.
*/
@java.lang.Override
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;
}
}
public static final int COLUMN_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object columnName_;
/**
*
* column name
*
*
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
@java.lang.Override
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Data type in string format. Value is SQL standard type.
*
*
* optional string data_type = 6;
* @return The bytes for dataType.
*/
@java.lang.Override
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;
}
}
public static final int IS_NULLABLE_FIELD_NUMBER = 7;
private boolean isNullable_;
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
@java.lang.Override
public boolean hasIsNullable() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
public static final int PRECISION_FIELD_NUMBER = 8;
private int precision_;
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return Whether the precision field is set.
*/
@java.lang.Override
public boolean hasPrecision() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
public static final int SCALE_FIELD_NUMBER = 9;
private int scale_;
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return Whether the scale field is set.
*/
@java.lang.Override
public boolean hasScale() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
public static final int SIGNED_FIELD_NUMBER = 10;
private boolean signed_;
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return Whether the signed field is set.
*/
@java.lang.Override
public boolean hasSigned() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return The signed.
*/
@java.lang.Override
public boolean getSigned() {
return signed_;
}
public static final int DISPLAY_SIZE_FIELD_NUMBER = 11;
private int displaySize_;
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return Whether the displaySize field is set.
*/
@java.lang.Override
public boolean hasDisplaySize() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return The displaySize.
*/
@java.lang.Override
public int getDisplaySize() {
return displaySize_;
}
public static final int IS_ALIASED_FIELD_NUMBER = 12;
private boolean isAliased_;
/**
*
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
*
*
* optional bool is_aliased = 12;
* @return Whether the isAliased field is set.
*/
@java.lang.Override
public boolean hasIsAliased() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Is the column an aliased column. Initial implementation defaults to
* true as we derive schema from LIMIT 0 query and not the query plan.
*
*
* optional bool is_aliased = 12;
* @return The isAliased.
*/
@java.lang.Override
public boolean getIsAliased() {
return isAliased_;
}
public static final int SEARCHABILITY_FIELD_NUMBER = 13;
private int searchability_;
/**
* optional .exec.user.ColumnSearchability searchability = 13;
* @return Whether the searchability field is set.
*/
@java.lang.Override public boolean hasSearchability() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional .exec.user.ColumnSearchability searchability = 13;
* @return The searchability.
*/
@java.lang.Override public org.apache.drill.exec.proto.UserProtos.ColumnSearchability getSearchability() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.ColumnSearchability result = org.apache.drill.exec.proto.UserProtos.ColumnSearchability.valueOf(searchability_);
return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnSearchability.UNKNOWN_SEARCHABILITY : result;
}
public static final int UPDATABILITY_FIELD_NUMBER = 14;
private int updatability_;
/**
*
* Defaults to READ_ONLY
*
*
* optional .exec.user.ColumnUpdatability updatability = 14;
* @return Whether the updatability field is set.
*/
@java.lang.Override public boolean hasUpdatability() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Defaults to READ_ONLY
*
*
* optional .exec.user.ColumnUpdatability updatability = 14;
* @return The updatability.
*/
@java.lang.Override public org.apache.drill.exec.proto.UserProtos.ColumnUpdatability getUpdatability() {
@SuppressWarnings("deprecation")
org.apache.drill.exec.proto.UserProtos.ColumnUpdatability result = org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.valueOf(updatability_);
return result == null ? org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.UNKNOWN_UPDATABILITY : result;
}
public static final int AUTO_INCREMENT_FIELD_NUMBER = 15;
private boolean autoIncrement_;
/**
*
* whether the designated column is automatically incremented.
*
*
* optional bool auto_increment = 15;
* @return Whether the autoIncrement field is set.
*/
@java.lang.Override
public boolean hasAutoIncrement() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* whether the designated column is automatically incremented.
*
*
* optional bool auto_increment = 15;
* @return The autoIncrement.
*/
@java.lang.Override
public boolean getAutoIncrement() {
return autoIncrement_;
}
public static final int CASE_SENSITIVITY_FIELD_NUMBER = 16;
private boolean caseSensitivity_;
/**
*
* Whether column's case matters for collations and comparisons. Defaults to true.
*
*
* optional bool case_sensitivity = 16;
* @return Whether the caseSensitivity field is set.
*/
@java.lang.Override
public boolean hasCaseSensitivity() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Whether column's case matters for collations and comparisons. Defaults to true.
*
*
* optional bool case_sensitivity = 16;
* @return The caseSensitivity.
*/
@java.lang.Override
public boolean getCaseSensitivity() {
return caseSensitivity_;
}
public static final int SORTABLE_FIELD_NUMBER = 17;
private boolean sortable_;
/**
*
* whether the column can be used in ORDER BY clause
*
*
* optional bool sortable = 17;
* @return Whether the sortable field is set.
*/
@java.lang.Override
public boolean hasSortable() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* whether the column can be used in ORDER BY clause
*
*
* optional bool sortable = 17;
* @return The sortable.
*/
@java.lang.Override
public boolean getSortable() {
return sortable_;
}
public static final int CLASS_NAME_FIELD_NUMBER = 18;
private volatile java.lang.Object className_;
/**
*
* 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.
*
*
* optional string class_name = 18;
* @return Whether the className field is set.
*/
@java.lang.Override
public boolean hasClassName() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string class_name = 18;
* @return The bytes for className.
*/
@java.lang.Override
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;
}
}
public static final int IS_CURRENCY_FIELD_NUMBER = 20;
private boolean isCurrency_;
/**
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @return Whether the isCurrency field is set.
*/
@java.lang.Override
public boolean hasIsCurrency() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @return The isCurrency.
*/
@java.lang.Override
public boolean getIsCurrency() {
return isCurrency_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, columnName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, label_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dataType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, isNullable_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt32(8, precision_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeInt32(9, scale_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(10, signed_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeInt32(11, displaySize_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeBool(12, isAliased_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeEnum(13, searchability_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeEnum(14, updatability_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBool(15, autoIncrement_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeBool(16, caseSensitivity_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeBool(17, sortable_);
}
if (((bitField0_ & 0x00020000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, className_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeBool(20, isCurrency_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, columnName_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, label_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dataType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, isNullable_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, precision_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, scale_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, signed_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(11, displaySize_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, isAliased_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, searchability_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, updatability_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, autoIncrement_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(16, caseSensitivity_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, sortable_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, className_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(20, isCurrency_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata other = (org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata) obj;
if (hasCatalogName() != other.hasCatalogName()) return false;
if (hasCatalogName()) {
if (!getCatalogName()
.equals(other.getCatalogName())) return false;
}
if (hasSchemaName() != other.hasSchemaName()) return false;
if (hasSchemaName()) {
if (!getSchemaName()
.equals(other.getSchemaName())) return false;
}
if (hasTableName() != other.hasTableName()) return false;
if (hasTableName()) {
if (!getTableName()
.equals(other.getTableName())) return false;
}
if (hasColumnName() != other.hasColumnName()) return false;
if (hasColumnName()) {
if (!getColumnName()
.equals(other.getColumnName())) return false;
}
if (hasLabel() != other.hasLabel()) return false;
if (hasLabel()) {
if (!getLabel()
.equals(other.getLabel())) return false;
}
if (hasDataType() != other.hasDataType()) return false;
if (hasDataType()) {
if (!getDataType()
.equals(other.getDataType())) return false;
}
if (hasIsNullable() != other.hasIsNullable()) return false;
if (hasIsNullable()) {
if (getIsNullable()
!= other.getIsNullable()) return false;
}
if (hasPrecision() != other.hasPrecision()) return false;
if (hasPrecision()) {
if (getPrecision()
!= other.getPrecision()) return false;
}
if (hasScale() != other.hasScale()) return false;
if (hasScale()) {
if (getScale()
!= other.getScale()) return false;
}
if (hasSigned() != other.hasSigned()) return false;
if (hasSigned()) {
if (getSigned()
!= other.getSigned()) return false;
}
if (hasDisplaySize() != other.hasDisplaySize()) return false;
if (hasDisplaySize()) {
if (getDisplaySize()
!= other.getDisplaySize()) return false;
}
if (hasIsAliased() != other.hasIsAliased()) return false;
if (hasIsAliased()) {
if (getIsAliased()
!= other.getIsAliased()) return false;
}
if (hasSearchability() != other.hasSearchability()) return false;
if (hasSearchability()) {
if (searchability_ != other.searchability_) return false;
}
if (hasUpdatability() != other.hasUpdatability()) return false;
if (hasUpdatability()) {
if (updatability_ != other.updatability_) return false;
}
if (hasAutoIncrement() != other.hasAutoIncrement()) return false;
if (hasAutoIncrement()) {
if (getAutoIncrement()
!= other.getAutoIncrement()) return false;
}
if (hasCaseSensitivity() != other.hasCaseSensitivity()) return false;
if (hasCaseSensitivity()) {
if (getCaseSensitivity()
!= other.getCaseSensitivity()) return false;
}
if (hasSortable() != other.hasSortable()) return false;
if (hasSortable()) {
if (getSortable()
!= other.getSortable()) return false;
}
if (hasClassName() != other.hasClassName()) return false;
if (hasClassName()) {
if (!getClassName()
.equals(other.getClassName())) return false;
}
if (hasIsCurrency() != other.hasIsCurrency()) return false;
if (hasIsCurrency()) {
if (getIsCurrency()
!= other.getIsCurrency()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCatalogName()) {
hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER;
hash = (53 * hash) + getCatalogName().hashCode();
}
if (hasSchemaName()) {
hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSchemaName().hashCode();
}
if (hasTableName()) {
hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getTableName().hashCode();
}
if (hasColumnName()) {
hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
hash = (53 * hash) + getColumnName().hashCode();
}
if (hasLabel()) {
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
}
if (hasDataType()) {
hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataType().hashCode();
}
if (hasIsNullable()) {
hash = (37 * hash) + IS_NULLABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsNullable());
}
if (hasPrecision()) {
hash = (37 * hash) + PRECISION_FIELD_NUMBER;
hash = (53 * hash) + getPrecision();
}
if (hasScale()) {
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + getScale();
}
if (hasSigned()) {
hash = (37 * hash) + SIGNED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSigned());
}
if (hasDisplaySize()) {
hash = (37 * hash) + DISPLAY_SIZE_FIELD_NUMBER;
hash = (53 * hash) + getDisplaySize();
}
if (hasIsAliased()) {
hash = (37 * hash) + IS_ALIASED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsAliased());
}
if (hasSearchability()) {
hash = (37 * hash) + SEARCHABILITY_FIELD_NUMBER;
hash = (53 * hash) + searchability_;
}
if (hasUpdatability()) {
hash = (37 * hash) + UPDATABILITY_FIELD_NUMBER;
hash = (53 * hash) + updatability_;
}
if (hasAutoIncrement()) {
hash = (37 * hash) + AUTO_INCREMENT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAutoIncrement());
}
if (hasCaseSensitivity()) {
hash = (37 * hash) + CASE_SENSITIVITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCaseSensitivity());
}
if (hasSortable()) {
hash = (37 * hash) + SORTABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSortable());
}
if (hasClassName()) {
hash = (37 * hash) + CLASS_NAME_FIELD_NUMBER;
hash = (53 * hash) + getClassName().hashCode();
}
if (hasIsCurrency()) {
hash = (37 * hash) + IS_CURRENCY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsCurrency());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Metadata of a column in query result set
*
*
* Protobuf type {@code exec.user.ResultColumnMetadata}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.ResultColumnMetadata)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
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_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
updatability_ = 0;
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_ResultColumnMetadata_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.catalogName_ = catalogName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.schemaName_ = schemaName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.tableName_ = tableName_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.columnName_ = columnName_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.label_ = label_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.dataType_ = dataType_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.isNullable_ = isNullable_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.precision_ = precision_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.scale_ = scale_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.signed_ = signed_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.displaySize_ = displaySize_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.isAliased_ = isAliased_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.searchability_ = searchability_;
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00002000;
}
result.updatability_ = updatability_;
if (((from_bitField0_ & 0x00004000) != 0)) {
result.autoIncrement_ = autoIncrement_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.caseSensitivity_ = caseSensitivity_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.sortable_ = sortable_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
to_bitField0_ |= 0x00020000;
}
result.className_ = className_;
if (((from_bitField0_ & 0x00040000) != 0)) {
result.isCurrency_ = isCurrency_;
to_bitField0_ |= 0x00040000;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
catalogName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
schemaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
tableName_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
columnName_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
label_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50: {
dataType_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 50
case 56: {
isNullable_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
precision_ = input.readInt32();
bitField0_ |= 0x00000080;
break;
} // case 64
case 72: {
scale_ = input.readInt32();
bitField0_ |= 0x00000100;
break;
} // case 72
case 80: {
signed_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 80
case 88: {
displaySize_ = input.readInt32();
bitField0_ |= 0x00000400;
break;
} // case 88
case 96: {
isAliased_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
int tmpRaw = input.readEnum();
org.apache.drill.exec.proto.UserProtos.ColumnSearchability tmpValue =
org.apache.drill.exec.proto.UserProtos.ColumnSearchability.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(13, tmpRaw);
} else {
searchability_ = tmpRaw;
bitField0_ |= 0x00001000;
}
break;
} // case 104
case 112: {
int tmpRaw = input.readEnum();
org.apache.drill.exec.proto.UserProtos.ColumnUpdatability tmpValue =
org.apache.drill.exec.proto.UserProtos.ColumnUpdatability.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(14, tmpRaw);
} else {
updatability_ = tmpRaw;
bitField0_ |= 0x00002000;
}
break;
} // case 112
case 120: {
autoIncrement_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 128: {
caseSensitivity_ = input.readBool();
bitField0_ |= 0x00008000;
break;
} // case 128
case 136: {
sortable_ = input.readBool();
bitField0_ |= 0x00010000;
break;
} // case 136
case 146: {
className_ = input.readBytes();
bitField0_ |= 0x00020000;
break;
} // case 146
case 160: {
isCurrency_ = input.readBool();
bitField0_ |= 0x00040000;
break;
} // case 160
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object catalogName_ = "";
/**
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
*
* optional string catalog_name = 1;
* @return Whether the catalogName field is set.
*/
public boolean hasCatalogName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
* Designated column's catalog name. Empty string if not applicable.
* Defaults to "DRILL" as drill has only one catalog.
*
*
* optional string catalog_name = 1;
* @param value The bytes for catalogName to set.
* @return This builder for chaining.
*/
public Builder setCatalogNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
catalogName_ = value;
onChanged();
return this;
}
private java.lang.Object schemaName_ = "";
/**
*
* 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.
*
*
* optional string schema_name = 2;
* @return Whether the schemaName field is set.
*/
public boolean hasSchemaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string schema_name = 2;
* @return The bytes for schemaName.
*/
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;
}
}
/**
*
* 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.
*
*
* optional string schema_name = 2;
* @param value The schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
* 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.
*
*
* optional string schema_name = 2;
* @param value The bytes for schemaName to set.
* @return This builder for chaining.
*/
public Builder setSchemaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
schemaName_ = value;
onChanged();
return this;
}
private java.lang.Object tableName_ = "";
/**
*
* 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.
*
*
* optional string table_name = 3;
* @return Whether the tableName field is set.
*/
public boolean hasTableName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string table_name = 3;
* @return The bytes for tableName.
*/
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;
}
}
/**
*
* 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.
*
*
* optional string table_name = 3;
* @param value The tableName to set.
* @return This builder for chaining.
*/
public Builder setTableName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
* 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.
*
*
* optional string table_name = 3;
* @param value The bytes for tableName to set.
* @return This builder for chaining.
*/
public Builder setTableNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tableName_ = value;
onChanged();
return this;
}
private java.lang.Object columnName_ = "";
/**
*
* column name
*
*
* optional string column_name = 4;
* @return Whether the columnName field is set.
*/
public boolean hasColumnName() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Data type in string format. Value is SQL standard type.
*
*
* optional string data_type = 6;
* @param value The bytes for dataType to set.
* @return This builder for chaining.
*/
public Builder setDataTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
dataType_ = value;
onChanged();
return this;
}
private boolean isNullable_ ;
/**
* optional bool is_nullable = 7;
* @return Whether the isNullable field is set.
*/
@java.lang.Override
public boolean hasIsNullable() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool is_nullable = 7;
* @return The isNullable.
*/
@java.lang.Override
public boolean getIsNullable() {
return isNullable_;
}
/**
* optional bool is_nullable = 7;
* @param value The isNullable to set.
* @return This builder for chaining.
*/
public Builder setIsNullable(boolean value) {
bitField0_ |= 0x00000040;
isNullable_ = value;
onChanged();
return this;
}
/**
* optional bool is_nullable = 7;
* @return This builder for chaining.
*/
public Builder clearIsNullable() {
bitField0_ = (bitField0_ & ~0x00000040);
isNullable_ = false;
onChanged();
return this;
}
private int precision_ ;
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return Whether the precision field is set.
*/
@java.lang.Override
public boolean hasPrecision() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return The precision.
*/
@java.lang.Override
public int getPrecision() {
return precision_;
}
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @param value The precision to set.
* @return This builder for chaining.
*/
public Builder setPrecision(int value) {
bitField0_ |= 0x00000080;
precision_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
*
* optional int32 precision = 8;
* @return This builder for chaining.
*/
public Builder clearPrecision() {
bitField0_ = (bitField0_ & ~0x00000080);
precision_ = 0;
onChanged();
return this;
}
private int scale_ ;
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return Whether the scale field is set.
*/
@java.lang.Override
public boolean hasScale() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @return The scale.
*/
@java.lang.Override
public int getScale() {
return scale_;
}
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
*
* optional int32 scale = 9;
* @param value The scale to set.
* @return This builder for chaining.
*/
public Builder setScale(int value) {
bitField0_ |= 0x00000100;
scale_ = value;
onChanged();
return this;
}
/**
*
* Column's number of digits to right of the decimal point.
* 0 is returned for types where the scale is not applicable
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return Whether the signed field is set.
*/
@java.lang.Override
public boolean hasSigned() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return The signed.
*/
@java.lang.Override
public boolean getSigned() {
return signed_;
}
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @param value The signed to set.
* @return This builder for chaining.
*/
public Builder setSigned(boolean value) {
bitField0_ |= 0x00000200;
signed_ = value;
onChanged();
return this;
}
/**
*
* Indicates whether values in the designated column are signed numbers.
*
*
* optional bool signed = 10;
* @return This builder for chaining.
*/
public Builder clearSigned() {
bitField0_ = (bitField0_ & ~0x00000200);
signed_ = false;
onChanged();
return this;
}
private int displaySize_ ;
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return Whether the displaySize field is set.
*/
@java.lang.Override
public boolean hasDisplaySize() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @return The displaySize.
*/
@java.lang.Override
public int getDisplaySize() {
return displaySize_;
}
/**
*
* Maximum number of characters required to display data from the column.
*
*
* optional int32 display_size = 11;
* @param value The displaySize to set.
* @return This builder for chaining.
*/
public Builder setDisplaySize(int value) {
bitField0_ |= 0x00000400;
displaySize_ = value;
onChanged();
return this;
}
/**
*
* Maximum number of characters required to display data from the column.
*
* 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.
*
*
* optional string class_name = 18;
* @return Whether the className field is set.
*/
public boolean hasClassName() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* 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.
*
* 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.
*
*
* optional string class_name = 18;
* @return The bytes for className.
*/
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;
}
}
/**
*
* 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.
*
*
* optional string class_name = 18;
* @param value The className to set.
* @return This builder for chaining.
*/
public Builder setClassName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
className_ = value;
onChanged();
return this;
}
/**
*
* 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.
*
* 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.
*
*
* optional string class_name = 18;
* @param value The bytes for className to set.
* @return This builder for chaining.
*/
public Builder setClassNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00020000;
className_ = value;
onChanged();
return this;
}
private boolean isCurrency_ ;
/**
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @return Whether the isCurrency field is set.
*/
@java.lang.Override
public boolean hasIsCurrency() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Is the data type a currency type? For JDBC only.
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @param value The isCurrency to set.
* @return This builder for chaining.
*/
public Builder setIsCurrency(boolean value) {
bitField0_ |= 0x00040000;
isCurrency_ = value;
onChanged();
return this;
}
/**
*
* Is the data type a currency type? For JDBC only.
*
*
* optional bool is_currency = 20;
* @return This builder for chaining.
*/
public Builder clearIsCurrency() {
bitField0_ = (bitField0_ & ~0x00040000);
isCurrency_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.ResultColumnMetadata)
}
// @@protoc_insertion_point(class_scope:exec.user.ResultColumnMetadata)
private static final org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata();
}
public static org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ResultColumnMetadata parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PreparedStatementHandleOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.PreparedStatementHandle)
com.google.protobuf.MessageOrBuilder {
/**
* optional bytes server_info = 1;
* @return Whether the serverInfo field is set.
*/
boolean hasServerInfo();
/**
* optional bytes server_info = 1;
* @return The serverInfo.
*/
com.google.protobuf.ByteString getServerInfo();
}
/**
*
* Server state of prepared statement. Contents are opaque to
* client. Client just need to submit this object in RunQuery to
* the prepared statement.
*
*
* Protobuf type {@code exec.user.PreparedStatementHandle}
*/
public static final class PreparedStatementHandle extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:exec.user.PreparedStatementHandle)
PreparedStatementHandleOrBuilder {
private static final long serialVersionUID = 0L;
// Use PreparedStatementHandle.newBuilder() to construct.
private PreparedStatementHandle(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PreparedStatementHandle() {
serverInfo_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PreparedStatementHandle();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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);
}
private int bitField0_;
public static final int SERVER_INFO_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString serverInfo_;
/**
* optional bytes server_info = 1;
* @return Whether the serverInfo field is set.
*/
@java.lang.Override
public boolean hasServerInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes server_info = 1;
* @return The serverInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServerInfo() {
return serverInfo_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, serverInfo_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, serverInfo_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle)) {
return super.equals(obj);
}
org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle other = (org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle) obj;
if (hasServerInfo() != other.hasServerInfo()) return false;
if (hasServerInfo()) {
if (!getServerInfo()
.equals(other.getServerInfo())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasServerInfo()) {
hash = (37 * hash) + SERVER_INFO_FIELD_NUMBER;
hash = (53 * hash) + getServerInfo().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
java.nio.ByteBuffer 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(
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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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 com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Server state of prepared statement. Contents are opaque to
* client. Client just need to submit this object in RunQuery to
* the prepared statement.
*
*
* Protobuf type {@code exec.user.PreparedStatementHandle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:exec.user.PreparedStatementHandle)
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;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.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() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
serverInfo_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.drill.exec.proto.UserProtos.internal_static_exec_user_PreparedStatementHandle_descriptor;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstanceForType() {
return org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle.getDefaultInstance();
}
@java.lang.Override
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;
}
@java.lang.Override
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) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.serverInfo_ = serverInfo_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
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());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
serverInfo_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString serverInfo_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes server_info = 1;
* @return Whether the serverInfo field is set.
*/
@java.lang.Override
public boolean hasServerInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes server_info = 1;
* @return The serverInfo.
*/
@java.lang.Override
public com.google.protobuf.ByteString getServerInfo() {
return serverInfo_;
}
/**
* optional bytes server_info = 1;
* @param value The serverInfo to set.
* @return This builder for chaining.
*/
public Builder setServerInfo(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
serverInfo_ = value;
onChanged();
return this;
}
/**
* optional bytes server_info = 1;
* @return This builder for chaining.
*/
public Builder clearServerInfo() {
bitField0_ = (bitField0_ & ~0x00000001);
serverInfo_ = getDefaultInstance().getServerInfo();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:exec.user.PreparedStatementHandle)
}
// @@protoc_insertion_point(class_scope:exec.user.PreparedStatementHandle)
private static final org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle();
}
public static org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PreparedStatementHandle parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.drill.exec.proto.UserProtos.PreparedStatementHandle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PreparedStatementOrBuilder extends
// @@protoc_insertion_point(interface_extends:exec.user.PreparedStatement)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .exec.user.ResultColumnMetadata columns = 1;
*/
java.util.List
getColumnsList();
/**
* repeated .exec.user.ResultColumnMetadata columns = 1;
*/
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata getColumns(int index);
/**
* repeated .exec.user.ResultColumnMetadata columns = 1;
*/
int getColumnsCount();
/**
* repeated .exec.user.ResultColumnMetadata columns = 1;
*/
java.util.List extends org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .exec.user.ResultColumnMetadata columns = 1;
*/
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadataOrBuilder getColumnsOrBuilder(
int index);
/**
*
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
*
*
* optional .exec.user.PreparedStatementHandle server_handle = 2;
* @return Whether the serverHandle field is set.
*/
boolean hasServerHandle();
/**
*
* In order to execute the prepared statement,
* clients need to submit this object in RunQuery message.
*
*
* optional string catalog_term = 5;
* @return The bytes for catalogTerm.
*/
com.google.protobuf.ByteString
getCatalogTermBytes();
/**
*
* COLLATE support
*
*
* repeated .exec.user.CollateSupport collate_support = 6;
* @return A list containing the collateSupport.
*/
java.util.List getCollateSupportList();
/**
*
* COLLATE support
*
*
* repeated .exec.user.CollateSupport collate_support = 6;
* @return The count of collateSupport.
*/
int getCollateSupportCount();
/**
*
* COLLATE support
*
*
* repeated .exec.user.CollateSupport collate_support = 6;
* @param index The index of the element to return.
* @return The collateSupport at the given index.
*/
org.apache.drill.exec.proto.UserProtos.CollateSupport getCollateSupport(int index);
/**
*
* True if column aliasing is supported
*
*
* optional bool column_aliasing_supported = 7;
* @return Whether the columnAliasingSupported field is set.
*/
boolean hasColumnAliasingSupported();
/**
*
* Supported ODBC/JDBC Date Time scalar functions
*
*
* repeated string date_time_functions = 10;
* @return A list containing the dateTimeFunctions.
*/
java.util.List
getDateTimeFunctionsList();
/**
*
* Supported ODBC/JDBC Date Time scalar functions
*
*
* repeated string date_time_functions = 10;
* @return The count of dateTimeFunctions.
*/
int getDateTimeFunctionsCount();
/**
*
* Supported ODBC/JDBC Date Time scalar functions
*
*
* repeated string date_time_functions = 10;
* @param index The index of the element to return.
* @return The dateTimeFunctions at the given index.
*/
java.lang.String getDateTimeFunctions(int index);
/**
*
* Supported ODBC/JDBC Date Time scalar functions
*
*
* repeated string date_time_functions = 10;
* @param index The index of the value to return.
* @return The bytes of the dateTimeFunctions at the given index.
*/
com.google.protobuf.ByteString
getDateTimeFunctionsBytes(int index);
/**
*
* Supported Date Time literals
*
*
* repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
* @return A list containing the dateTimeLiteralsSupport.
*/
java.util.List getDateTimeLiteralsSupportList();
/**
*
* Supported Date Time literals
*
*
* repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
* @return The count of dateTimeLiteralsSupport.
*/
int getDateTimeLiteralsSupportCount();
/**
*
* Supported Date Time literals
*
*
* repeated .exec.user.DateTimeLiteralsSupport date_time_literals_support = 11;
* @param index The index of the element to return.
* @return The dateTimeLiteralsSupport at the given index.
*/
org.apache.drill.exec.proto.UserProtos.DateTimeLiteralsSupport getDateTimeLiteralsSupport(int index);
/**
*
* Group By support
*
*
* optional .exec.user.GroupBySupport group_by_support = 12;
* @return Whether the groupBySupport field is set.
*/
boolean hasGroupBySupport();
/**
*
*
* repeated string numeric_functions = 34;
* @return A list containing the numericFunctions.
*/
java.util.List
getNumericFunctionsList();
/**
*
* Supported ODBC/JDBC numeric scalar functions
*
*
* repeated string numeric_functions = 34;
* @return The count of numericFunctions.
*/
int getNumericFunctionsCount();
/**
*
* Supported ODBC/JDBC numeric scalar functions
*
*
* repeated string numeric_functions = 34;
* @param index The index of the element to return.
* @return The numericFunctions at the given index.
*/
java.lang.String getNumericFunctions(int index);
/**
*
* Supported ODBC/JDBC numeric scalar functions
*
*
* repeated string numeric_functions = 34;
* @param index The index of the value to return.
* @return The bytes of the numericFunctions at the given index.
*/
com.google.protobuf.ByteString
getNumericFunctionsBytes(int index);
/**
*
* Outer join suport
*
*
* repeated .exec.user.OrderBySupport order_by_support = 35;
* @return A list containing the orderBySupport.
*/
java.util.List getOrderBySupportList();
/**
*
* Outer join suport
*
*
* repeated .exec.user.OrderBySupport order_by_support = 35;
* @return The count of orderBySupport.
*/
int getOrderBySupportCount();
/**
*
* Outer join suport
*
*
* repeated .exec.user.OrderBySupport order_by_support = 35;
* @param index The index of the element to return.
* @return The orderBySupport at the given index.
*/
org.apache.drill.exec.proto.UserProtos.OrderBySupport getOrderBySupport(int index);
/**
*
* Outer join suport
*
*
* repeated .exec.user.OuterJoinSupport outer_join_support = 36;
* @return A list containing the outerJoinSupport.
*/
java.util.List getOuterJoinSupportList();
/**
*
* Outer join suport
*
*
* repeated .exec.user.OuterJoinSupport outer_join_support = 36;
* @return The count of outerJoinSupport.
*/
int getOuterJoinSupportCount();
/**
*
* Outer join suport
*
*
* repeated .exec.user.OuterJoinSupport outer_join_support = 36;
* @param index The index of the element to return.
* @return The outerJoinSupport at the given index.
*/
org.apache.drill.exec.proto.UserProtos.OuterJoinSupport getOuterJoinSupport(int index);
/**
*
* Quoted identifier casing
*
*
* optional .exec.user.IdentifierCasing quoted_identifier_casing = 37;
* @return Whether the quotedIdentifierCasing field is set.
*/
boolean hasQuotedIdentifierCasing();
/**
*
* List of extra characters that can be used in identifier names
*
*
* optional string special_characters = 42;
* @return The bytes for specialCharacters.
*/
com.google.protobuf.ByteString
getSpecialCharactersBytes();
/**
*
* list of SQL keywords
*
*
* repeated string sql_keywords = 43;
* @return A list containing the sqlKeywords.
*/
java.util.List
getSqlKeywordsList();
/**
*
* list of SQL keywords
*
*
* repeated string sql_keywords = 43;
* @return The count of sqlKeywords.
*/
int getSqlKeywordsCount();
/**
*
* list of SQL keywords
*
*
* repeated string sql_keywords = 43;
* @param index The index of the element to return.
* @return The sqlKeywords at the given index.
*/
java.lang.String getSqlKeywords(int index);
/**
*
* list of SQL keywords
*
*
* repeated string sql_keywords = 43;
* @param index The index of the value to return.
* @return The bytes of the sqlKeywords at the given index.
*/
com.google.protobuf.ByteString
getSqlKeywordsBytes(int index);
/**
*
* Supported ODBC/JDBC string scalar functions
*
*
* repeated string string_functions = 44;
* @return A list containing the stringFunctions.
*/
java.util.List
getStringFunctionsList();
/**
*
* Supported ODBC/JDBC string scalar functions
*
*
* repeated string string_functions = 44;
* @return The count of stringFunctions.
*/
int getStringFunctionsCount();
/**
*
* Supported ODBC/JDBC string scalar functions
*
*
* repeated string string_functions = 44;
* @param index The index of the element to return.
* @return The stringFunctions at the given index.
*/
java.lang.String getStringFunctions(int index);
/**
*
* Supported ODBC/JDBC string scalar functions
*
*
* repeated string string_functions = 44;
* @param index The index of the value to return.
* @return The bytes of the stringFunctions at the given index.
*/
com.google.protobuf.ByteString
getStringFunctionsBytes(int index);
/**
*
* Subquery support
*
*
* repeated .exec.user.SubQuerySupport subquery_support = 45;
* @return A list containing the subquerySupport.
*/
java.util.List getSubquerySupportList();
/**
*
* Subquery support
*
*
* repeated .exec.user.SubQuerySupport subquery_support = 45;
* @return The count of subquerySupport.
*/
int getSubquerySupportCount();
/**
*
* Subquery support
*
*
* repeated .exec.user.SubQuerySupport subquery_support = 45;
* @param index The index of the element to return.
* @return The subquerySupport at the given index.
*/
org.apache.drill.exec.proto.UserProtos.SubQuerySupport getSubquerySupport(int index);
/**
*
* Supported ODBC/JDBC systen scalar functions
*
*
* repeated string system_functions = 46;
* @return A list containing the systemFunctions.
*/
java.util.List
getSystemFunctionsList();
/**
*
* Supported ODBC/JDBC systen scalar functions
*
*
* repeated string system_functions = 46;
* @return The count of systemFunctions.
*/
int getSystemFunctionsCount();
/**
*
* Supported ODBC/JDBC systen scalar functions
*
*
* repeated string system_functions = 46;
* @param index The index of the element to return.
* @return The systemFunctions at the given index.
*/
java.lang.String getSystemFunctions(int index);
/**
*
* Supported ODBC/JDBC systen scalar functions
*
*
* repeated string system_functions = 46;
* @param index The index of the value to return.
* @return The bytes of the systemFunctions at the given index.
*/
com.google.protobuf.ByteString
getSystemFunctionsBytes(int index);
/**
*
* The term used to designate a table
*
*
* optional string table_term = 47;
* @return Whether the tableTerm field is set.
*/
boolean hasTableTerm();
/**
*