All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.calcite.avatica.proto.Common Maven / Gradle / Ivy

The newest version!
/*
 * 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: common.proto

package org.apache.calcite.avatica.proto;

@SuppressWarnings({"unused", "rawtypes"}) public final class Common {
  private Common() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code StatementType}
   *
   * 
   * Has to be consistent with Meta.StatementType
   * 
*/ public enum StatementType implements com.google.protobuf.ProtocolMessageEnum { /** * SELECT = 0; */ SELECT(0, 0), /** * INSERT = 1; */ INSERT(1, 1), /** * UPDATE = 2; */ UPDATE(2, 2), /** * DELETE = 3; */ DELETE(3, 3), /** * UPSERT = 4; */ UPSERT(4, 4), /** * MERGE = 5; */ MERGE(5, 5), /** * OTHER_DML = 6; */ OTHER_DML(6, 6), /** * CREATE = 7; */ CREATE(7, 7), /** * DROP = 8; */ DROP(8, 8), /** * ALTER = 9; */ ALTER(9, 9), /** * OTHER_DDL = 10; */ OTHER_DDL(10, 10), /** * CALL = 11; */ CALL(11, 11), UNRECOGNIZED(-1, -1), ; /** * SELECT = 0; */ public static final int SELECT_VALUE = 0; /** * INSERT = 1; */ public static final int INSERT_VALUE = 1; /** * UPDATE = 2; */ public static final int UPDATE_VALUE = 2; /** * DELETE = 3; */ public static final int DELETE_VALUE = 3; /** * UPSERT = 4; */ public static final int UPSERT_VALUE = 4; /** * MERGE = 5; */ public static final int MERGE_VALUE = 5; /** * OTHER_DML = 6; */ public static final int OTHER_DML_VALUE = 6; /** * CREATE = 7; */ public static final int CREATE_VALUE = 7; /** * DROP = 8; */ public static final int DROP_VALUE = 8; /** * ALTER = 9; */ public static final int ALTER_VALUE = 9; /** * OTHER_DDL = 10; */ public static final int OTHER_DDL_VALUE = 10; /** * CALL = 11; */ public static final int CALL_VALUE = 11; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static StatementType valueOf(int value) { switch (value) { case 0: return SELECT; case 1: return INSERT; case 2: return UPDATE; case 3: return DELETE; case 4: return UPSERT; case 5: return MERGE; case 6: return OTHER_DML; case 7: return CREATE; case 8: return DROP; case 9: return ALTER; case 10: return OTHER_DDL; case 11: return CALL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StatementType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StatementType findValueByNumber(int number) { return StatementType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.getDescriptor().getEnumTypes().get(0); } private static final StatementType[] VALUES = values(); public static StatementType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private StatementType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:StatementType) } /** * Protobuf enum {@code Rep} */ public enum Rep implements com.google.protobuf.ProtocolMessageEnum { /** * PRIMITIVE_BOOLEAN = 0; */ PRIMITIVE_BOOLEAN(0, 0), /** * PRIMITIVE_BYTE = 1; */ PRIMITIVE_BYTE(1, 1), /** * PRIMITIVE_CHAR = 2; */ PRIMITIVE_CHAR(2, 2), /** * PRIMITIVE_SHORT = 3; */ PRIMITIVE_SHORT(3, 3), /** * PRIMITIVE_INT = 4; */ PRIMITIVE_INT(4, 4), /** * PRIMITIVE_LONG = 5; */ PRIMITIVE_LONG(5, 5), /** * PRIMITIVE_FLOAT = 6; */ PRIMITIVE_FLOAT(6, 6), /** * PRIMITIVE_DOUBLE = 7; */ PRIMITIVE_DOUBLE(7, 7), /** * BOOLEAN = 8; */ BOOLEAN(8, 8), /** * BYTE = 9; */ BYTE(9, 9), /** * CHARACTER = 10; */ CHARACTER(10, 10), /** * SHORT = 11; */ SHORT(11, 11), /** * INTEGER = 12; */ INTEGER(12, 12), /** * LONG = 13; */ LONG(13, 13), /** * FLOAT = 14; */ FLOAT(14, 14), /** * DOUBLE = 15; */ DOUBLE(15, 15), /** * BIG_INTEGER = 25; */ BIG_INTEGER(16, 25), /** * BIG_DECIMAL = 26; */ BIG_DECIMAL(17, 26), /** * JAVA_SQL_TIME = 16; */ JAVA_SQL_TIME(18, 16), /** * JAVA_SQL_TIMESTAMP = 17; */ JAVA_SQL_TIMESTAMP(19, 17), /** * JAVA_SQL_DATE = 18; */ JAVA_SQL_DATE(20, 18), /** * JAVA_UTIL_DATE = 19; */ JAVA_UTIL_DATE(21, 19), /** * BYTE_STRING = 20; */ BYTE_STRING(22, 20), /** * STRING = 21; */ STRING(23, 21), /** * NUMBER = 22; */ NUMBER(24, 22), /** * OBJECT = 23; */ OBJECT(25, 23), /** * NULL = 24; */ NULL(26, 24), /** * ARRAY = 27; */ ARRAY(27, 27), /** * STRUCT = 28; */ STRUCT(28, 28), /** * MULTISET = 29; */ MULTISET(29, 29), UNRECOGNIZED(-1, -1), ; /** * PRIMITIVE_BOOLEAN = 0; */ public static final int PRIMITIVE_BOOLEAN_VALUE = 0; /** * PRIMITIVE_BYTE = 1; */ public static final int PRIMITIVE_BYTE_VALUE = 1; /** * PRIMITIVE_CHAR = 2; */ public static final int PRIMITIVE_CHAR_VALUE = 2; /** * PRIMITIVE_SHORT = 3; */ public static final int PRIMITIVE_SHORT_VALUE = 3; /** * PRIMITIVE_INT = 4; */ public static final int PRIMITIVE_INT_VALUE = 4; /** * PRIMITIVE_LONG = 5; */ public static final int PRIMITIVE_LONG_VALUE = 5; /** * PRIMITIVE_FLOAT = 6; */ public static final int PRIMITIVE_FLOAT_VALUE = 6; /** * PRIMITIVE_DOUBLE = 7; */ public static final int PRIMITIVE_DOUBLE_VALUE = 7; /** * BOOLEAN = 8; */ public static final int BOOLEAN_VALUE = 8; /** * BYTE = 9; */ public static final int BYTE_VALUE = 9; /** * CHARACTER = 10; */ public static final int CHARACTER_VALUE = 10; /** * SHORT = 11; */ public static final int SHORT_VALUE = 11; /** * INTEGER = 12; */ public static final int INTEGER_VALUE = 12; /** * LONG = 13; */ public static final int LONG_VALUE = 13; /** * FLOAT = 14; */ public static final int FLOAT_VALUE = 14; /** * DOUBLE = 15; */ public static final int DOUBLE_VALUE = 15; /** * BIG_INTEGER = 25; */ public static final int BIG_INTEGER_VALUE = 25; /** * BIG_DECIMAL = 26; */ public static final int BIG_DECIMAL_VALUE = 26; /** * JAVA_SQL_TIME = 16; */ public static final int JAVA_SQL_TIME_VALUE = 16; /** * JAVA_SQL_TIMESTAMP = 17; */ public static final int JAVA_SQL_TIMESTAMP_VALUE = 17; /** * JAVA_SQL_DATE = 18; */ public static final int JAVA_SQL_DATE_VALUE = 18; /** * JAVA_UTIL_DATE = 19; */ public static final int JAVA_UTIL_DATE_VALUE = 19; /** * BYTE_STRING = 20; */ public static final int BYTE_STRING_VALUE = 20; /** * STRING = 21; */ public static final int STRING_VALUE = 21; /** * NUMBER = 22; */ public static final int NUMBER_VALUE = 22; /** * OBJECT = 23; */ public static final int OBJECT_VALUE = 23; /** * NULL = 24; */ public static final int NULL_VALUE = 24; /** * ARRAY = 27; */ public static final int ARRAY_VALUE = 27; /** * STRUCT = 28; */ public static final int STRUCT_VALUE = 28; /** * MULTISET = 29; */ public static final int MULTISET_VALUE = 29; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static Rep valueOf(int value) { switch (value) { case 0: return PRIMITIVE_BOOLEAN; case 1: return PRIMITIVE_BYTE; case 2: return PRIMITIVE_CHAR; case 3: return PRIMITIVE_SHORT; case 4: return PRIMITIVE_INT; case 5: return PRIMITIVE_LONG; case 6: return PRIMITIVE_FLOAT; case 7: return PRIMITIVE_DOUBLE; case 8: return BOOLEAN; case 9: return BYTE; case 10: return CHARACTER; case 11: return SHORT; case 12: return INTEGER; case 13: return LONG; case 14: return FLOAT; case 15: return DOUBLE; case 25: return BIG_INTEGER; case 26: return BIG_DECIMAL; case 16: return JAVA_SQL_TIME; case 17: return JAVA_SQL_TIMESTAMP; case 18: return JAVA_SQL_DATE; case 19: return JAVA_UTIL_DATE; case 20: return BYTE_STRING; case 21: return STRING; case 22: return NUMBER; case 23: return OBJECT; case 24: return NULL; case 27: return ARRAY; case 28: return STRUCT; case 29: return MULTISET; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Rep> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Rep findValueByNumber(int number) { return Rep.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.getDescriptor().getEnumTypes().get(1); } private static final Rep[] VALUES = values(); public static Rep valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Rep(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:Rep) } /** * Protobuf enum {@code Severity} * *
   * The severity of some unexpected outcome to an operation.
   * Protobuf enum values must be unique across all other enums
   * 
*/ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { /** * UNKNOWN_SEVERITY = 0; */ UNKNOWN_SEVERITY(0, 0), /** * FATAL_SEVERITY = 1; */ FATAL_SEVERITY(1, 1), /** * ERROR_SEVERITY = 2; */ ERROR_SEVERITY(2, 2), /** * WARNING_SEVERITY = 3; */ WARNING_SEVERITY(3, 3), UNRECOGNIZED(-1, -1), ; /** * UNKNOWN_SEVERITY = 0; */ public static final int UNKNOWN_SEVERITY_VALUE = 0; /** * FATAL_SEVERITY = 1; */ public static final int FATAL_SEVERITY_VALUE = 1; /** * ERROR_SEVERITY = 2; */ public static final int ERROR_SEVERITY_VALUE = 2; /** * WARNING_SEVERITY = 3; */ public static final int WARNING_SEVERITY_VALUE = 3; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static Severity valueOf(int value) { switch (value) { case 0: return UNKNOWN_SEVERITY; case 1: return FATAL_SEVERITY; case 2: return ERROR_SEVERITY; case 3: return WARNING_SEVERITY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Severity> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Severity findValueByNumber(int number) { return Severity.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.getDescriptor().getEnumTypes().get(2); } private static final Severity[] VALUES = values(); public static Severity valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Severity(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:Severity) } /** * Protobuf enum {@code MetaDataOperation} * *
   * Enumeration corresponding to DatabaseMetaData operations
   * 
*/ public enum MetaDataOperation implements com.google.protobuf.ProtocolMessageEnum { /** * GET_ATTRIBUTES = 0; */ GET_ATTRIBUTES(0, 0), /** * GET_BEST_ROW_IDENTIFIER = 1; */ GET_BEST_ROW_IDENTIFIER(1, 1), /** * GET_CATALOGS = 2; */ GET_CATALOGS(2, 2), /** * GET_CLIENT_INFO_PROPERTIES = 3; */ GET_CLIENT_INFO_PROPERTIES(3, 3), /** * GET_COLUMN_PRIVILEGES = 4; */ GET_COLUMN_PRIVILEGES(4, 4), /** * GET_COLUMNS = 5; */ GET_COLUMNS(5, 5), /** * GET_CROSS_REFERENCE = 6; */ GET_CROSS_REFERENCE(6, 6), /** * GET_EXPORTED_KEYS = 7; */ GET_EXPORTED_KEYS(7, 7), /** * GET_FUNCTION_COLUMNS = 8; */ GET_FUNCTION_COLUMNS(8, 8), /** * GET_FUNCTIONS = 9; */ GET_FUNCTIONS(9, 9), /** * GET_IMPORTED_KEYS = 10; */ GET_IMPORTED_KEYS(10, 10), /** * GET_INDEX_INFO = 11; */ GET_INDEX_INFO(11, 11), /** * GET_PRIMARY_KEYS = 12; */ GET_PRIMARY_KEYS(12, 12), /** * GET_PROCEDURE_COLUMNS = 13; */ GET_PROCEDURE_COLUMNS(13, 13), /** * GET_PROCEDURES = 14; */ GET_PROCEDURES(14, 14), /** * GET_PSEUDO_COLUMNS = 15; */ GET_PSEUDO_COLUMNS(15, 15), /** * GET_SCHEMAS = 16; */ GET_SCHEMAS(16, 16), /** * GET_SCHEMAS_WITH_ARGS = 17; */ GET_SCHEMAS_WITH_ARGS(17, 17), /** * GET_SUPER_TABLES = 18; */ GET_SUPER_TABLES(18, 18), /** * GET_SUPER_TYPES = 19; */ GET_SUPER_TYPES(19, 19), /** * GET_TABLE_PRIVILEGES = 20; */ GET_TABLE_PRIVILEGES(20, 20), /** * GET_TABLES = 21; */ GET_TABLES(21, 21), /** * GET_TABLE_TYPES = 22; */ GET_TABLE_TYPES(22, 22), /** * GET_TYPE_INFO = 23; */ GET_TYPE_INFO(23, 23), /** * GET_UDTS = 24; */ GET_UDTS(24, 24), /** * GET_VERSION_COLUMNS = 25; */ GET_VERSION_COLUMNS(25, 25), UNRECOGNIZED(-1, -1), ; /** * GET_ATTRIBUTES = 0; */ public static final int GET_ATTRIBUTES_VALUE = 0; /** * GET_BEST_ROW_IDENTIFIER = 1; */ public static final int GET_BEST_ROW_IDENTIFIER_VALUE = 1; /** * GET_CATALOGS = 2; */ public static final int GET_CATALOGS_VALUE = 2; /** * GET_CLIENT_INFO_PROPERTIES = 3; */ public static final int GET_CLIENT_INFO_PROPERTIES_VALUE = 3; /** * GET_COLUMN_PRIVILEGES = 4; */ public static final int GET_COLUMN_PRIVILEGES_VALUE = 4; /** * GET_COLUMNS = 5; */ public static final int GET_COLUMNS_VALUE = 5; /** * GET_CROSS_REFERENCE = 6; */ public static final int GET_CROSS_REFERENCE_VALUE = 6; /** * GET_EXPORTED_KEYS = 7; */ public static final int GET_EXPORTED_KEYS_VALUE = 7; /** * GET_FUNCTION_COLUMNS = 8; */ public static final int GET_FUNCTION_COLUMNS_VALUE = 8; /** * GET_FUNCTIONS = 9; */ public static final int GET_FUNCTIONS_VALUE = 9; /** * GET_IMPORTED_KEYS = 10; */ public static final int GET_IMPORTED_KEYS_VALUE = 10; /** * GET_INDEX_INFO = 11; */ public static final int GET_INDEX_INFO_VALUE = 11; /** * GET_PRIMARY_KEYS = 12; */ public static final int GET_PRIMARY_KEYS_VALUE = 12; /** * GET_PROCEDURE_COLUMNS = 13; */ public static final int GET_PROCEDURE_COLUMNS_VALUE = 13; /** * GET_PROCEDURES = 14; */ public static final int GET_PROCEDURES_VALUE = 14; /** * GET_PSEUDO_COLUMNS = 15; */ public static final int GET_PSEUDO_COLUMNS_VALUE = 15; /** * GET_SCHEMAS = 16; */ public static final int GET_SCHEMAS_VALUE = 16; /** * GET_SCHEMAS_WITH_ARGS = 17; */ public static final int GET_SCHEMAS_WITH_ARGS_VALUE = 17; /** * GET_SUPER_TABLES = 18; */ public static final int GET_SUPER_TABLES_VALUE = 18; /** * GET_SUPER_TYPES = 19; */ public static final int GET_SUPER_TYPES_VALUE = 19; /** * GET_TABLE_PRIVILEGES = 20; */ public static final int GET_TABLE_PRIVILEGES_VALUE = 20; /** * GET_TABLES = 21; */ public static final int GET_TABLES_VALUE = 21; /** * GET_TABLE_TYPES = 22; */ public static final int GET_TABLE_TYPES_VALUE = 22; /** * GET_TYPE_INFO = 23; */ public static final int GET_TYPE_INFO_VALUE = 23; /** * GET_UDTS = 24; */ public static final int GET_UDTS_VALUE = 24; /** * GET_VERSION_COLUMNS = 25; */ public static final int GET_VERSION_COLUMNS_VALUE = 25; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static MetaDataOperation valueOf(int value) { switch (value) { case 0: return GET_ATTRIBUTES; case 1: return GET_BEST_ROW_IDENTIFIER; case 2: return GET_CATALOGS; case 3: return GET_CLIENT_INFO_PROPERTIES; case 4: return GET_COLUMN_PRIVILEGES; case 5: return GET_COLUMNS; case 6: return GET_CROSS_REFERENCE; case 7: return GET_EXPORTED_KEYS; case 8: return GET_FUNCTION_COLUMNS; case 9: return GET_FUNCTIONS; case 10: return GET_IMPORTED_KEYS; case 11: return GET_INDEX_INFO; case 12: return GET_PRIMARY_KEYS; case 13: return GET_PROCEDURE_COLUMNS; case 14: return GET_PROCEDURES; case 15: return GET_PSEUDO_COLUMNS; case 16: return GET_SCHEMAS; case 17: return GET_SCHEMAS_WITH_ARGS; case 18: return GET_SUPER_TABLES; case 19: return GET_SUPER_TYPES; case 20: return GET_TABLE_PRIVILEGES; case 21: return GET_TABLES; case 22: return GET_TABLE_TYPES; case 23: return GET_TYPE_INFO; case 24: return GET_UDTS; case 25: return GET_VERSION_COLUMNS; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< MetaDataOperation> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public MetaDataOperation findValueByNumber(int number) { return MetaDataOperation.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.getDescriptor().getEnumTypes().get(3); } private static final MetaDataOperation[] VALUES = values(); public static MetaDataOperation valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private MetaDataOperation(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:MetaDataOperation) } /** * Protobuf enum {@code StateType} */ public enum StateType implements com.google.protobuf.ProtocolMessageEnum { /** * SQL = 0; */ SQL(0, 0), /** * METADATA = 1; */ METADATA(1, 1), UNRECOGNIZED(-1, -1), ; /** * SQL = 0; */ public static final int SQL_VALUE = 0; /** * METADATA = 1; */ public static final int METADATA_VALUE = 1; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static StateType valueOf(int value) { switch (value) { case 0: return SQL; case 1: return METADATA; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StateType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StateType findValueByNumber(int number) { return StateType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.getDescriptor().getEnumTypes().get(4); } private static final StateType[] VALUES = values(); public static StateType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int index; private final int value; private StateType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:StateType) } public interface ConnectionPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:ConnectionProperties) com.google.protobuf.MessageOrBuilder { /** * optional bool is_dirty = 1; */ boolean getIsDirty(); /** * optional bool auto_commit = 2; */ boolean getAutoCommit(); /** * optional bool has_auto_commit = 7; * *
     * field is a Boolean, need to discern null and default value
     * 
*/ boolean getHasAutoCommit(); /** * optional bool read_only = 3; */ boolean getReadOnly(); /** * optional bool has_read_only = 8; * *
     * field is a Boolean, need to discern null and default value
     * 
*/ boolean getHasReadOnly(); /** * optional uint32 transaction_isolation = 4; */ int getTransactionIsolation(); /** * optional string catalog = 5; */ java.lang.String getCatalog(); /** * optional string catalog = 5; */ com.google.protobuf.ByteString getCatalogBytes(); /** * optional string schema = 6; */ java.lang.String getSchema(); /** * optional string schema = 6; */ com.google.protobuf.ByteString getSchemaBytes(); } /** * Protobuf type {@code ConnectionProperties} * *
   * Details about a connection
   * 
*/ public static final class ConnectionProperties extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ConnectionProperties) ConnectionPropertiesOrBuilder { // Use ConnectionProperties.newBuilder() to construct. private ConnectionProperties(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ConnectionProperties() { isDirty_ = false; autoCommit_ = false; hasAutoCommit_ = false; readOnly_ = false; hasReadOnly_ = false; transactionIsolation_ = 0; catalog_ = ""; schema_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ConnectionProperties( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { isDirty_ = input.readBool(); break; } case 16: { autoCommit_ = input.readBool(); break; } case 24: { readOnly_ = input.readBool(); break; } case 32: { transactionIsolation_ = input.readUInt32(); break; } case 42: { String s = input.readStringRequireUtf8(); catalog_ = s; break; } case 50: { String s = input.readStringRequireUtf8(); schema_ = s; break; } case 56: { hasAutoCommit_ = input.readBool(); break; } case 64: { hasReadOnly_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_ConnectionProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_ConnectionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.ConnectionProperties.class, org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder.class); } public static final int IS_DIRTY_FIELD_NUMBER = 1; private boolean isDirty_; /** * optional bool is_dirty = 1; */ public boolean getIsDirty() { return isDirty_; } public static final int AUTO_COMMIT_FIELD_NUMBER = 2; private boolean autoCommit_; /** * optional bool auto_commit = 2; */ public boolean getAutoCommit() { return autoCommit_; } public static final int HAS_AUTO_COMMIT_FIELD_NUMBER = 7; private boolean hasAutoCommit_; /** * optional bool has_auto_commit = 7; * *
     * field is a Boolean, need to discern null and default value
     * 
*/ public boolean getHasAutoCommit() { return hasAutoCommit_; } public static final int READ_ONLY_FIELD_NUMBER = 3; private boolean readOnly_; /** * optional bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } public static final int HAS_READ_ONLY_FIELD_NUMBER = 8; private boolean hasReadOnly_; /** * optional bool has_read_only = 8; * *
     * field is a Boolean, need to discern null and default value
     * 
*/ public boolean getHasReadOnly() { return hasReadOnly_; } public static final int TRANSACTION_ISOLATION_FIELD_NUMBER = 4; private int transactionIsolation_; /** * optional uint32 transaction_isolation = 4; */ public int getTransactionIsolation() { return transactionIsolation_; } public static final int CATALOG_FIELD_NUMBER = 5; private volatile java.lang.Object catalog_; /** * optional string catalog = 5; */ public java.lang.String getCatalog() { java.lang.Object ref = catalog_; 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(); catalog_ = s; return s; } } /** * optional string catalog = 5; */ public com.google.protobuf.ByteString getCatalogBytes() { java.lang.Object ref = catalog_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalog_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_FIELD_NUMBER = 6; private volatile java.lang.Object schema_; /** * optional string schema = 6; */ public java.lang.String getSchema() { java.lang.Object ref = schema_; 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(); schema_ = s; return s; } } /** * optional string schema = 6; */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (isDirty_ != false) { output.writeBool(1, isDirty_); } if (autoCommit_ != false) { output.writeBool(2, autoCommit_); } if (readOnly_ != false) { output.writeBool(3, readOnly_); } if (transactionIsolation_ != 0) { output.writeUInt32(4, transactionIsolation_); } if (!getCatalogBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 5, catalog_); } if (!getSchemaBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 6, schema_); } if (hasAutoCommit_ != false) { output.writeBool(7, hasAutoCommit_); } if (hasReadOnly_ != false) { output.writeBool(8, hasReadOnly_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (isDirty_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, isDirty_); } if (autoCommit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, autoCommit_); } if (readOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, readOnly_); } if (transactionIsolation_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, transactionIsolation_); } if (!getCatalogBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, catalog_); } if (!getSchemaBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, schema_); } if (hasAutoCommit_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, hasAutoCommit_); } if (hasReadOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, hasReadOnly_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties 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.calcite.avatica.proto.Common.ConnectionProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.ConnectionProperties prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ConnectionProperties} * *
     * Details about a connection
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:ConnectionProperties) org.apache.calcite.avatica.proto.Common.ConnectionPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_ConnectionProperties_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_ConnectionProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.ConnectionProperties.class, org.apache.calcite.avatica.proto.Common.ConnectionProperties.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.ConnectionProperties.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); isDirty_ = false; autoCommit_ = false; hasAutoCommit_ = false; readOnly_ = false; hasReadOnly_ = false; transactionIsolation_ = 0; catalog_ = ""; schema_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_ConnectionProperties_descriptor; } public org.apache.calcite.avatica.proto.Common.ConnectionProperties getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.ConnectionProperties build() { org.apache.calcite.avatica.proto.Common.ConnectionProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.ConnectionProperties buildPartial() { org.apache.calcite.avatica.proto.Common.ConnectionProperties result = new org.apache.calcite.avatica.proto.Common.ConnectionProperties(this); result.isDirty_ = isDirty_; result.autoCommit_ = autoCommit_; result.hasAutoCommit_ = hasAutoCommit_; result.readOnly_ = readOnly_; result.hasReadOnly_ = hasReadOnly_; result.transactionIsolation_ = transactionIsolation_; result.catalog_ = catalog_; result.schema_ = schema_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.ConnectionProperties) { return mergeFrom((org.apache.calcite.avatica.proto.Common.ConnectionProperties)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.ConnectionProperties other) { if (other == org.apache.calcite.avatica.proto.Common.ConnectionProperties.getDefaultInstance()) return this; if (other.getIsDirty() != false) { setIsDirty(other.getIsDirty()); } if (other.getAutoCommit() != false) { setAutoCommit(other.getAutoCommit()); } if (other.getHasAutoCommit() != false) { setHasAutoCommit(other.getHasAutoCommit()); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } if (other.getHasReadOnly() != false) { setHasReadOnly(other.getHasReadOnly()); } if (other.getTransactionIsolation() != 0) { setTransactionIsolation(other.getTransactionIsolation()); } if (!other.getCatalog().isEmpty()) { catalog_ = other.catalog_; onChanged(); } if (!other.getSchema().isEmpty()) { schema_ = other.schema_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.ConnectionProperties parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.ConnectionProperties) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean isDirty_ ; /** * optional bool is_dirty = 1; */ public boolean getIsDirty() { return isDirty_; } /** * optional bool is_dirty = 1; */ public Builder setIsDirty(boolean value) { isDirty_ = value; onChanged(); return this; } /** * optional bool is_dirty = 1; */ public Builder clearIsDirty() { isDirty_ = false; onChanged(); return this; } private boolean autoCommit_ ; /** * optional bool auto_commit = 2; */ public boolean getAutoCommit() { return autoCommit_; } /** * optional bool auto_commit = 2; */ public Builder setAutoCommit(boolean value) { autoCommit_ = value; onChanged(); return this; } /** * optional bool auto_commit = 2; */ public Builder clearAutoCommit() { autoCommit_ = false; onChanged(); return this; } private boolean hasAutoCommit_ ; /** * optional bool has_auto_commit = 7; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public boolean getHasAutoCommit() { return hasAutoCommit_; } /** * optional bool has_auto_commit = 7; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public Builder setHasAutoCommit(boolean value) { hasAutoCommit_ = value; onChanged(); return this; } /** * optional bool has_auto_commit = 7; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public Builder clearHasAutoCommit() { hasAutoCommit_ = false; onChanged(); return this; } private boolean readOnly_ ; /** * optional bool read_only = 3; */ public boolean getReadOnly() { return readOnly_; } /** * optional bool read_only = 3; */ public Builder setReadOnly(boolean value) { readOnly_ = value; onChanged(); return this; } /** * optional bool read_only = 3; */ public Builder clearReadOnly() { readOnly_ = false; onChanged(); return this; } private boolean hasReadOnly_ ; /** * optional bool has_read_only = 8; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public boolean getHasReadOnly() { return hasReadOnly_; } /** * optional bool has_read_only = 8; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public Builder setHasReadOnly(boolean value) { hasReadOnly_ = value; onChanged(); return this; } /** * optional bool has_read_only = 8; * *
       * field is a Boolean, need to discern null and default value
       * 
*/ public Builder clearHasReadOnly() { hasReadOnly_ = false; onChanged(); return this; } private int transactionIsolation_ ; /** * optional uint32 transaction_isolation = 4; */ public int getTransactionIsolation() { return transactionIsolation_; } /** * optional uint32 transaction_isolation = 4; */ public Builder setTransactionIsolation(int value) { transactionIsolation_ = value; onChanged(); return this; } /** * optional uint32 transaction_isolation = 4; */ public Builder clearTransactionIsolation() { transactionIsolation_ = 0; onChanged(); return this; } private java.lang.Object catalog_ = ""; /** * optional string catalog = 5; */ public java.lang.String getCatalog() { java.lang.Object ref = catalog_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); catalog_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string catalog = 5; */ public com.google.protobuf.ByteString getCatalogBytes() { java.lang.Object ref = catalog_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); catalog_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string catalog = 5; */ public Builder setCatalog( java.lang.String value) { if (value == null) { throw new NullPointerException(); } catalog_ = value; onChanged(); return this; } /** * optional string catalog = 5; */ public Builder clearCatalog() { catalog_ = getDefaultInstance().getCatalog(); onChanged(); return this; } /** * optional string catalog = 5; */ public Builder setCatalogBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); catalog_ = value; onChanged(); return this; } private java.lang.Object schema_ = ""; /** * optional string schema = 6; */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string schema = 6; */ public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schema_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string schema = 6; */ public Builder setSchema( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schema_ = value; onChanged(); return this; } /** * optional string schema = 6; */ public Builder clearSchema() { schema_ = getDefaultInstance().getSchema(); onChanged(); return this; } /** * optional string schema = 6; */ public Builder setSchemaBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:ConnectionProperties) } // @@protoc_insertion_point(class_scope:ConnectionProperties) private static final org.apache.calcite.avatica.proto.Common.ConnectionProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.ConnectionProperties(); } public static org.apache.calcite.avatica.proto.Common.ConnectionProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ConnectionProperties parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ConnectionProperties(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.ConnectionProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StatementHandleOrBuilder extends // @@protoc_insertion_point(interface_extends:StatementHandle) com.google.protobuf.MessageOrBuilder { /** * optional string connection_id = 1; */ java.lang.String getConnectionId(); /** * optional string connection_id = 1; */ com.google.protobuf.ByteString getConnectionIdBytes(); /** * optional uint32 id = 2; */ int getId(); /** * optional .Signature signature = 3; */ boolean hasSignature(); /** * optional .Signature signature = 3; */ org.apache.calcite.avatica.proto.Common.Signature getSignature(); /** * optional .Signature signature = 3; */ org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder(); } /** * Protobuf type {@code StatementHandle} * *
   * Statement handle
   * 
*/ public static final class StatementHandle extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:StatementHandle) StatementHandleOrBuilder { // Use StatementHandle.newBuilder() to construct. private StatementHandle(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private StatementHandle() { connectionId_ = ""; id_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private StatementHandle( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { String s = input.readStringRequireUtf8(); connectionId_ = s; break; } case 16: { id_ = input.readUInt32(); break; } case 26: { org.apache.calcite.avatica.proto.Common.Signature.Builder subBuilder = null; if (signature_ != null) { subBuilder = signature_.toBuilder(); } signature_ = input.readMessage(org.apache.calcite.avatica.proto.Common.Signature.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(signature_); signature_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_StatementHandle_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_StatementHandle_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.StatementHandle.class, org.apache.calcite.avatica.proto.Common.StatementHandle.Builder.class); } public static final int CONNECTION_ID_FIELD_NUMBER = 1; private volatile java.lang.Object connectionId_; /** * optional string connection_id = 1; */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; 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(); connectionId_ = s; return s; } } /** * optional string connection_id = 1; */ public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private int id_; /** * optional uint32 id = 2; */ public int getId() { return id_; } public static final int SIGNATURE_FIELD_NUMBER = 3; private org.apache.calcite.avatica.proto.Common.Signature signature_; /** * optional .Signature signature = 3; */ public boolean hasSignature() { return signature_ != null; } /** * optional .Signature signature = 3; */ public org.apache.calcite.avatica.proto.Common.Signature getSignature() { return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_; } /** * optional .Signature signature = 3; */ public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() { return getSignature(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getConnectionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, connectionId_); } if (id_ != 0) { output.writeUInt32(2, id_); } if (signature_ != null) { output.writeMessage(3, getSignature()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getConnectionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, connectionId_); } if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, id_); } if (signature_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getSignature()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.StatementHandle 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.calcite.avatica.proto.Common.StatementHandle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.StatementHandle parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.StatementHandle prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code StatementHandle} * *
     * Statement handle
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:StatementHandle) org.apache.calcite.avatica.proto.Common.StatementHandleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_StatementHandle_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_StatementHandle_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.StatementHandle.class, org.apache.calcite.avatica.proto.Common.StatementHandle.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.StatementHandle.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); connectionId_ = ""; id_ = 0; if (signatureBuilder_ == null) { signature_ = null; } else { signature_ = null; signatureBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_StatementHandle_descriptor; } public org.apache.calcite.avatica.proto.Common.StatementHandle getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.StatementHandle build() { org.apache.calcite.avatica.proto.Common.StatementHandle result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.StatementHandle buildPartial() { org.apache.calcite.avatica.proto.Common.StatementHandle result = new org.apache.calcite.avatica.proto.Common.StatementHandle(this); result.connectionId_ = connectionId_; result.id_ = id_; if (signatureBuilder_ == null) { result.signature_ = signature_; } else { result.signature_ = signatureBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.StatementHandle) { return mergeFrom((org.apache.calcite.avatica.proto.Common.StatementHandle)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.StatementHandle other) { if (other == org.apache.calcite.avatica.proto.Common.StatementHandle.getDefaultInstance()) return this; if (!other.getConnectionId().isEmpty()) { connectionId_ = other.connectionId_; onChanged(); } if (other.getId() != 0) { setId(other.getId()); } if (other.hasSignature()) { mergeSignature(other.getSignature()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.StatementHandle parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.StatementHandle) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object connectionId_ = ""; /** * optional string connection_id = 1; */ public java.lang.String getConnectionId() { java.lang.Object ref = connectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string connection_id = 1; */ public com.google.protobuf.ByteString getConnectionIdBytes() { java.lang.Object ref = connectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string connection_id = 1; */ public Builder setConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } connectionId_ = value; onChanged(); return this; } /** * optional string connection_id = 1; */ public Builder clearConnectionId() { connectionId_ = getDefaultInstance().getConnectionId(); onChanged(); return this; } /** * optional string connection_id = 1; */ public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionId_ = value; onChanged(); return this; } private int id_ ; /** * optional uint32 id = 2; */ public int getId() { return id_; } /** * optional uint32 id = 2; */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * optional uint32 id = 2; */ public Builder clearId() { id_ = 0; onChanged(); return this; } private org.apache.calcite.avatica.proto.Common.Signature signature_ = null; private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder> signatureBuilder_; /** * optional .Signature signature = 3; */ public boolean hasSignature() { return signatureBuilder_ != null || signature_ != null; } /** * optional .Signature signature = 3; */ public org.apache.calcite.avatica.proto.Common.Signature getSignature() { if (signatureBuilder_ == null) { return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_; } else { return signatureBuilder_.getMessage(); } } /** * optional .Signature signature = 3; */ public Builder setSignature(org.apache.calcite.avatica.proto.Common.Signature value) { if (signatureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); } else { signatureBuilder_.setMessage(value); } return this; } /** * optional .Signature signature = 3; */ public Builder setSignature( org.apache.calcite.avatica.proto.Common.Signature.Builder builderForValue) { if (signatureBuilder_ == null) { signature_ = builderForValue.build(); onChanged(); } else { signatureBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .Signature signature = 3; */ public Builder mergeSignature(org.apache.calcite.avatica.proto.Common.Signature value) { if (signatureBuilder_ == null) { if (signature_ != null) { signature_ = org.apache.calcite.avatica.proto.Common.Signature.newBuilder(signature_).mergeFrom(value).buildPartial(); } else { signature_ = value; } onChanged(); } else { signatureBuilder_.mergeFrom(value); } return this; } /** * optional .Signature signature = 3; */ public Builder clearSignature() { if (signatureBuilder_ == null) { signature_ = null; onChanged(); } else { signature_ = null; signatureBuilder_ = null; } return this; } /** * optional .Signature signature = 3; */ public org.apache.calcite.avatica.proto.Common.Signature.Builder getSignatureBuilder() { onChanged(); return getSignatureFieldBuilder().getBuilder(); } /** * optional .Signature signature = 3; */ public org.apache.calcite.avatica.proto.Common.SignatureOrBuilder getSignatureOrBuilder() { if (signatureBuilder_ != null) { return signatureBuilder_.getMessageOrBuilder(); } else { return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_; } } /** * optional .Signature signature = 3; */ private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder> getSignatureFieldBuilder() { if (signatureBuilder_ == null) { signatureBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.Signature, org.apache.calcite.avatica.proto.Common.Signature.Builder, org.apache.calcite.avatica.proto.Common.SignatureOrBuilder>( getSignature(), getParentForChildren(), isClean()); signature_ = null; } return signatureBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:StatementHandle) } // @@protoc_insertion_point(class_scope:StatementHandle) private static final org.apache.calcite.avatica.proto.Common.StatementHandle DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.StatementHandle(); } public static org.apache.calcite.avatica.proto.Common.StatementHandle getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public StatementHandle parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new StatementHandle(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.StatementHandle getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:Signature) com.google.protobuf.MessageOrBuilder { /** * repeated .ColumnMetaData columns = 1; */ java.util.List getColumnsList(); /** * repeated .ColumnMetaData columns = 1; */ org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index); /** * repeated .ColumnMetaData columns = 1; */ int getColumnsCount(); /** * repeated .ColumnMetaData columns = 1; */ java.util.List getColumnsOrBuilderList(); /** * repeated .ColumnMetaData columns = 1; */ org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index); /** * optional string sql = 2; */ java.lang.String getSql(); /** * optional string sql = 2; */ com.google.protobuf.ByteString getSqlBytes(); /** * repeated .AvaticaParameter parameters = 3; */ java.util.List getParametersList(); /** * repeated .AvaticaParameter parameters = 3; */ org.apache.calcite.avatica.proto.Common.AvaticaParameter getParameters(int index); /** * repeated .AvaticaParameter parameters = 3; */ int getParametersCount(); /** * repeated .AvaticaParameter parameters = 3; */ java.util.List getParametersOrBuilderList(); /** * repeated .AvaticaParameter parameters = 3; */ org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder getParametersOrBuilder( int index); /** * optional .CursorFactory cursor_factory = 4; */ boolean hasCursorFactory(); /** * optional .CursorFactory cursor_factory = 4; */ org.apache.calcite.avatica.proto.Common.CursorFactory getCursorFactory(); /** * optional .CursorFactory cursor_factory = 4; */ org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder getCursorFactoryOrBuilder(); /** * optional .StatementType statementType = 5; */ int getStatementTypeValue(); /** * optional .StatementType statementType = 5; */ org.apache.calcite.avatica.proto.Common.StatementType getStatementType(); } /** * Protobuf type {@code Signature} * *
   * Results of preparing a statement
   * 
*/ public static final class Signature extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:Signature) SignatureOrBuilder { // Use Signature.newBuilder() to construct. private Signature(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Signature() { columns_ = java.util.Collections.emptyList(); sql_ = ""; parameters_ = java.util.Collections.emptyList(); statementType_ = 0; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private Signature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { columns_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } columns_.add(input.readMessage(org.apache.calcite.avatica.proto.Common.ColumnMetaData.parser(), extensionRegistry)); break; } case 18: { String s = input.readStringRequireUtf8(); sql_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { parameters_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } parameters_.add(input.readMessage(org.apache.calcite.avatica.proto.Common.AvaticaParameter.parser(), extensionRegistry)); break; } case 34: { org.apache.calcite.avatica.proto.Common.CursorFactory.Builder subBuilder = null; if (cursorFactory_ != null) { subBuilder = cursorFactory_.toBuilder(); } cursorFactory_ = input.readMessage(org.apache.calcite.avatica.proto.Common.CursorFactory.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(cursorFactory_); cursorFactory_ = subBuilder.buildPartial(); } break; } case 40: { int rawValue = input.readEnum(); statementType_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { columns_ = java.util.Collections.unmodifiableList(columns_); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_Signature_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.Signature.class, org.apache.calcite.avatica.proto.Common.Signature.Builder.class); } private int bitField0_; public static final int COLUMNS_FIELD_NUMBER = 1; private java.util.List columns_; /** * repeated .ColumnMetaData columns = 1; */ public java.util.List getColumnsList() { return columns_; } /** * repeated .ColumnMetaData columns = 1; */ public java.util.List getColumnsOrBuilderList() { return columns_; } /** * repeated .ColumnMetaData columns = 1; */ public int getColumnsCount() { return columns_.size(); } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index) { return columns_.get(index); } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } public static final int SQL_FIELD_NUMBER = 2; private volatile java.lang.Object sql_; /** * optional string sql = 2; */ public java.lang.String getSql() { java.lang.Object ref = sql_; 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(); sql_ = s; return s; } } /** * optional string sql = 2; */ public com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARAMETERS_FIELD_NUMBER = 3; private java.util.List parameters_; /** * repeated .AvaticaParameter parameters = 3; */ public java.util.List getParametersList() { return parameters_; } /** * repeated .AvaticaParameter parameters = 3; */ public java.util.List getParametersOrBuilderList() { return parameters_; } /** * repeated .AvaticaParameter parameters = 3; */ public int getParametersCount() { return parameters_.size(); } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameter getParameters(int index) { return parameters_.get(index); } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder getParametersOrBuilder( int index) { return parameters_.get(index); } public static final int CURSOR_FACTORY_FIELD_NUMBER = 4; private org.apache.calcite.avatica.proto.Common.CursorFactory cursorFactory_; /** * optional .CursorFactory cursor_factory = 4; */ public boolean hasCursorFactory() { return cursorFactory_ != null; } /** * optional .CursorFactory cursor_factory = 4; */ public org.apache.calcite.avatica.proto.Common.CursorFactory getCursorFactory() { return cursorFactory_ == null ? org.apache.calcite.avatica.proto.Common.CursorFactory.getDefaultInstance() : cursorFactory_; } /** * optional .CursorFactory cursor_factory = 4; */ public org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder getCursorFactoryOrBuilder() { return getCursorFactory(); } public static final int STATEMENTTYPE_FIELD_NUMBER = 5; private int statementType_; /** * optional .StatementType statementType = 5; */ public int getStatementTypeValue() { return statementType_; } /** * optional .StatementType statementType = 5; */ public org.apache.calcite.avatica.proto.Common.StatementType getStatementType() { org.apache.calcite.avatica.proto.Common.StatementType result = org.apache.calcite.avatica.proto.Common.StatementType.valueOf(statementType_); return result == null ? org.apache.calcite.avatica.proto.Common.StatementType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < columns_.size(); i++) { output.writeMessage(1, columns_.get(i)); } if (!getSqlBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, sql_); } for (int i = 0; i < parameters_.size(); i++) { output.writeMessage(3, parameters_.get(i)); } if (cursorFactory_ != null) { output.writeMessage(4, getCursorFactory()); } if (statementType_ != org.apache.calcite.avatica.proto.Common.StatementType.SELECT.getNumber()) { output.writeEnum(5, statementType_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, columns_.get(i)); } if (!getSqlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sql_); } for (int i = 0; i < parameters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, parameters_.get(i)); } if (cursorFactory_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCursorFactory()); } if (statementType_ != org.apache.calcite.avatica.proto.Common.StatementType.SELECT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, statementType_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.Signature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.Signature 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.calcite.avatica.proto.Common.Signature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.Signature parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.Signature parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.Signature parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.Signature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.Signature parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.Signature parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.Signature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.Signature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Signature} * *
     * Results of preparing a statement
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:Signature) org.apache.calcite.avatica.proto.Common.SignatureOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_Signature_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_Signature_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.Signature.class, org.apache.calcite.avatica.proto.Common.Signature.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.Signature.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getColumnsFieldBuilder(); getParametersFieldBuilder(); } } public Builder clear() { super.clear(); if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { columnsBuilder_.clear(); } sql_ = ""; if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { parametersBuilder_.clear(); } if (cursorFactoryBuilder_ == null) { cursorFactory_ = null; } else { cursorFactory_ = null; cursorFactoryBuilder_ = null; } statementType_ = 0; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_Signature_descriptor; } public org.apache.calcite.avatica.proto.Common.Signature getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.Signature build() { org.apache.calcite.avatica.proto.Common.Signature result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.Signature buildPartial() { org.apache.calcite.avatica.proto.Common.Signature result = new org.apache.calcite.avatica.proto.Common.Signature(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000001); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } result.sql_ = sql_; if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); bitField0_ = (bitField0_ & ~0x00000004); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } if (cursorFactoryBuilder_ == null) { result.cursorFactory_ = cursorFactory_; } else { result.cursorFactory_ = cursorFactoryBuilder_.build(); } result.statementType_ = statementType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.Signature) { return mergeFrom((org.apache.calcite.avatica.proto.Common.Signature)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.Signature other) { if (other == org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance()) return this; if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000001); columnsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } if (parametersBuilder_ == null) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); } onChanged(); } } else { if (!other.parameters_.isEmpty()) { if (parametersBuilder_.isEmpty()) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; bitField0_ = (bitField0_ & ~0x00000004); parametersBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getParametersFieldBuilder() : null; } else { parametersBuilder_.addAllMessages(other.parameters_); } } } if (other.hasCursorFactory()) { mergeCursorFactory(other.getCursorFactory()); } if (other.statementType_ != 0) { setStatementTypeValue(other.getStatementTypeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.Signature parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.Signature) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { columns_ = new java.util.ArrayList(columns_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder> columnsBuilder_; /** * repeated .ColumnMetaData columns = 1; */ public java.util.List getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * repeated .ColumnMetaData columns = 1; */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * repeated .ColumnMetaData columns = 1; */ public Builder setColumns( int index, org.apache.calcite.avatica.proto.Common.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 .ColumnMetaData columns = 1; */ public Builder setColumns( int index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder addColumns(org.apache.calcite.avatica.proto.Common.ColumnMetaData value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder addColumns( int index, org.apache.calcite.avatica.proto.Common.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 .ColumnMetaData columns = 1; */ public Builder addColumns( org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder addColumns( int index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder addAllColumns( java.lang.Iterable values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ColumnMetaData columns = 1; */ public java.util.List getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance()); } /** * repeated .ColumnMetaData columns = 1; */ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance()); } /** * repeated .ColumnMetaData columns = 1; */ public java.util.List getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder>( columns_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } private java.lang.Object sql_ = ""; /** * optional string sql = 2; */ public java.lang.String getSql() { java.lang.Object ref = sql_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string sql = 2; */ public com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string sql = 2; */ public Builder setSql( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sql_ = value; onChanged(); return this; } /** * optional string sql = 2; */ public Builder clearSql() { sql_ = getDefaultInstance().getSql(); onChanged(); return this; } /** * optional string sql = 2; */ public Builder setSqlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sql_ = value; onChanged(); return this; } private java.util.List parameters_ = java.util.Collections.emptyList(); private void ensureParametersIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { parameters_ = new java.util.ArrayList(parameters_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaParameter, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder, org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder> parametersBuilder_; /** * repeated .AvaticaParameter parameters = 3; */ public java.util.List getParametersList() { if (parametersBuilder_ == null) { return java.util.Collections.unmodifiableList(parameters_); } else { return parametersBuilder_.getMessageList(); } } /** * repeated .AvaticaParameter parameters = 3; */ public int getParametersCount() { if (parametersBuilder_ == null) { return parameters_.size(); } else { return parametersBuilder_.getCount(); } } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameter getParameters(int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessage(index); } } /** * repeated .AvaticaParameter parameters = 3; */ public Builder setParameters( int index, org.apache.calcite.avatica.proto.Common.AvaticaParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.set(index, value); onChanged(); } else { parametersBuilder_.setMessage(index, value); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder setParameters( int index, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.set(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder addParameters(org.apache.calcite.avatica.proto.Common.AvaticaParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(value); onChanged(); } else { parametersBuilder_.addMessage(value); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder addParameters( int index, org.apache.calcite.avatica.proto.Common.AvaticaParameter value) { if (parametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureParametersIsMutable(); parameters_.add(index, value); onChanged(); } else { parametersBuilder_.addMessage(index, value); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder addParameters( org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder addParameters( int index, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder builderForValue) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.add(index, builderForValue.build()); onChanged(); } else { parametersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder addAllParameters( java.lang.Iterable values) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, parameters_); onChanged(); } else { parametersBuilder_.addAllMessages(values); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { parametersBuilder_.clear(); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public Builder removeParameters(int index) { if (parametersBuilder_ == null) { ensureParametersIsMutable(); parameters_.remove(index); onChanged(); } else { parametersBuilder_.remove(index); } return this; } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder getParametersBuilder( int index) { return getParametersFieldBuilder().getBuilder(index); } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder getParametersOrBuilder( int index) { if (parametersBuilder_ == null) { return parameters_.get(index); } else { return parametersBuilder_.getMessageOrBuilder(index); } } /** * repeated .AvaticaParameter parameters = 3; */ public java.util.List getParametersOrBuilderList() { if (parametersBuilder_ != null) { return parametersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(parameters_); } } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder addParametersBuilder() { return getParametersFieldBuilder().addBuilder( org.apache.calcite.avatica.proto.Common.AvaticaParameter.getDefaultInstance()); } /** * repeated .AvaticaParameter parameters = 3; */ public org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder addParametersBuilder( int index) { return getParametersFieldBuilder().addBuilder( index, org.apache.calcite.avatica.proto.Common.AvaticaParameter.getDefaultInstance()); } /** * repeated .AvaticaParameter parameters = 3; */ public java.util.List getParametersBuilderList() { return getParametersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaParameter, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder, org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder> getParametersFieldBuilder() { if (parametersBuilder_ == null) { parametersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaParameter, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder, org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder>( parameters_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; } private org.apache.calcite.avatica.proto.Common.CursorFactory cursorFactory_ = null; private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.CursorFactory, org.apache.calcite.avatica.proto.Common.CursorFactory.Builder, org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder> cursorFactoryBuilder_; /** * optional .CursorFactory cursor_factory = 4; */ public boolean hasCursorFactory() { return cursorFactoryBuilder_ != null || cursorFactory_ != null; } /** * optional .CursorFactory cursor_factory = 4; */ public org.apache.calcite.avatica.proto.Common.CursorFactory getCursorFactory() { if (cursorFactoryBuilder_ == null) { return cursorFactory_ == null ? org.apache.calcite.avatica.proto.Common.CursorFactory.getDefaultInstance() : cursorFactory_; } else { return cursorFactoryBuilder_.getMessage(); } } /** * optional .CursorFactory cursor_factory = 4; */ public Builder setCursorFactory(org.apache.calcite.avatica.proto.Common.CursorFactory value) { if (cursorFactoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cursorFactory_ = value; onChanged(); } else { cursorFactoryBuilder_.setMessage(value); } return this; } /** * optional .CursorFactory cursor_factory = 4; */ public Builder setCursorFactory( org.apache.calcite.avatica.proto.Common.CursorFactory.Builder builderForValue) { if (cursorFactoryBuilder_ == null) { cursorFactory_ = builderForValue.build(); onChanged(); } else { cursorFactoryBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .CursorFactory cursor_factory = 4; */ public Builder mergeCursorFactory(org.apache.calcite.avatica.proto.Common.CursorFactory value) { if (cursorFactoryBuilder_ == null) { if (cursorFactory_ != null) { cursorFactory_ = org.apache.calcite.avatica.proto.Common.CursorFactory.newBuilder(cursorFactory_).mergeFrom(value).buildPartial(); } else { cursorFactory_ = value; } onChanged(); } else { cursorFactoryBuilder_.mergeFrom(value); } return this; } /** * optional .CursorFactory cursor_factory = 4; */ public Builder clearCursorFactory() { if (cursorFactoryBuilder_ == null) { cursorFactory_ = null; onChanged(); } else { cursorFactory_ = null; cursorFactoryBuilder_ = null; } return this; } /** * optional .CursorFactory cursor_factory = 4; */ public org.apache.calcite.avatica.proto.Common.CursorFactory.Builder getCursorFactoryBuilder() { onChanged(); return getCursorFactoryFieldBuilder().getBuilder(); } /** * optional .CursorFactory cursor_factory = 4; */ public org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder getCursorFactoryOrBuilder() { if (cursorFactoryBuilder_ != null) { return cursorFactoryBuilder_.getMessageOrBuilder(); } else { return cursorFactory_ == null ? org.apache.calcite.avatica.proto.Common.CursorFactory.getDefaultInstance() : cursorFactory_; } } /** * optional .CursorFactory cursor_factory = 4; */ private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.CursorFactory, org.apache.calcite.avatica.proto.Common.CursorFactory.Builder, org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder> getCursorFactoryFieldBuilder() { if (cursorFactoryBuilder_ == null) { cursorFactoryBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.CursorFactory, org.apache.calcite.avatica.proto.Common.CursorFactory.Builder, org.apache.calcite.avatica.proto.Common.CursorFactoryOrBuilder>( getCursorFactory(), getParentForChildren(), isClean()); cursorFactory_ = null; } return cursorFactoryBuilder_; } private int statementType_ = 0; /** * optional .StatementType statementType = 5; */ public int getStatementTypeValue() { return statementType_; } /** * optional .StatementType statementType = 5; */ public Builder setStatementTypeValue(int value) { statementType_ = value; onChanged(); return this; } /** * optional .StatementType statementType = 5; */ public org.apache.calcite.avatica.proto.Common.StatementType getStatementType() { org.apache.calcite.avatica.proto.Common.StatementType result = org.apache.calcite.avatica.proto.Common.StatementType.valueOf(statementType_); return result == null ? org.apache.calcite.avatica.proto.Common.StatementType.UNRECOGNIZED : result; } /** * optional .StatementType statementType = 5; */ public Builder setStatementType(org.apache.calcite.avatica.proto.Common.StatementType value) { if (value == null) { throw new NullPointerException(); } statementType_ = value.getNumber(); onChanged(); return this; } /** * optional .StatementType statementType = 5; */ public Builder clearStatementType() { statementType_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:Signature) } // @@protoc_insertion_point(class_scope:Signature) private static final org.apache.calcite.avatica.proto.Common.Signature DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.Signature(); } public static org.apache.calcite.avatica.proto.Common.Signature getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Signature parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new Signature(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.Signature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ColumnMetaDataOrBuilder extends // @@protoc_insertion_point(interface_extends:ColumnMetaData) com.google.protobuf.MessageOrBuilder { /** * optional uint32 ordinal = 1; */ int getOrdinal(); /** * optional bool auto_increment = 2; */ boolean getAutoIncrement(); /** * optional bool case_sensitive = 3; */ boolean getCaseSensitive(); /** * optional bool searchable = 4; */ boolean getSearchable(); /** * optional bool currency = 5; */ boolean getCurrency(); /** * optional uint32 nullable = 6; */ int getNullable(); /** * optional bool signed = 7; */ boolean getSigned(); /** * optional uint32 display_size = 8; */ int getDisplaySize(); /** * optional string label = 9; */ java.lang.String getLabel(); /** * optional string label = 9; */ com.google.protobuf.ByteString getLabelBytes(); /** * optional string column_name = 10; */ java.lang.String getColumnName(); /** * optional string column_name = 10; */ com.google.protobuf.ByteString getColumnNameBytes(); /** * optional string schema_name = 11; */ java.lang.String getSchemaName(); /** * optional string schema_name = 11; */ com.google.protobuf.ByteString getSchemaNameBytes(); /** * optional uint32 precision = 12; */ int getPrecision(); /** * optional uint32 scale = 13; */ int getScale(); /** * optional string table_name = 14; */ java.lang.String getTableName(); /** * optional string table_name = 14; */ com.google.protobuf.ByteString getTableNameBytes(); /** * optional string catalog_name = 15; */ java.lang.String getCatalogName(); /** * optional string catalog_name = 15; */ com.google.protobuf.ByteString getCatalogNameBytes(); /** * optional bool read_only = 16; */ boolean getReadOnly(); /** * optional bool writable = 17; */ boolean getWritable(); /** * optional bool definitely_writable = 18; */ boolean getDefinitelyWritable(); /** * optional string column_class_name = 19; */ java.lang.String getColumnClassName(); /** * optional string column_class_name = 19; */ com.google.protobuf.ByteString getColumnClassNameBytes(); /** * optional .AvaticaType type = 20; */ boolean hasType(); /** * optional .AvaticaType type = 20; */ org.apache.calcite.avatica.proto.Common.AvaticaType getType(); /** * optional .AvaticaType type = 20; */ org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getTypeOrBuilder(); } /** * Protobuf type {@code ColumnMetaData} */ public static final class ColumnMetaData extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:ColumnMetaData) ColumnMetaDataOrBuilder { // Use ColumnMetaData.newBuilder() to construct. private ColumnMetaData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private ColumnMetaData() { ordinal_ = 0; autoIncrement_ = false; caseSensitive_ = false; searchable_ = false; currency_ = false; nullable_ = 0; signed_ = false; displaySize_ = 0; label_ = ""; columnName_ = ""; schemaName_ = ""; precision_ = 0; scale_ = 0; tableName_ = ""; catalogName_ = ""; readOnly_ = false; writable_ = false; definitelyWritable_ = false; columnClassName_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ColumnMetaData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { ordinal_ = input.readUInt32(); break; } case 16: { autoIncrement_ = input.readBool(); break; } case 24: { caseSensitive_ = input.readBool(); break; } case 32: { searchable_ = input.readBool(); break; } case 40: { currency_ = input.readBool(); break; } case 48: { nullable_ = input.readUInt32(); break; } case 56: { signed_ = input.readBool(); break; } case 64: { displaySize_ = input.readUInt32(); break; } case 74: { String s = input.readStringRequireUtf8(); label_ = s; break; } case 82: { String s = input.readStringRequireUtf8(); columnName_ = s; break; } case 90: { String s = input.readStringRequireUtf8(); schemaName_ = s; break; } case 96: { precision_ = input.readUInt32(); break; } case 104: { scale_ = input.readUInt32(); break; } case 114: { String s = input.readStringRequireUtf8(); tableName_ = s; break; } case 122: { String s = input.readStringRequireUtf8(); catalogName_ = s; break; } case 128: { readOnly_ = input.readBool(); break; } case 136: { writable_ = input.readBool(); break; } case 144: { definitelyWritable_ = input.readBool(); break; } case 154: { String s = input.readStringRequireUtf8(); columnClassName_ = s; break; } case 162: { org.apache.calcite.avatica.proto.Common.AvaticaType.Builder subBuilder = null; if (type_ != null) { subBuilder = type_.toBuilder(); } type_ = input.readMessage(org.apache.calcite.avatica.proto.Common.AvaticaType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(type_); type_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_ColumnMetaData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_ColumnMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.ColumnMetaData.class, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder.class); } public static final int ORDINAL_FIELD_NUMBER = 1; private int ordinal_; /** * optional uint32 ordinal = 1; */ public int getOrdinal() { return ordinal_; } public static final int AUTO_INCREMENT_FIELD_NUMBER = 2; private boolean autoIncrement_; /** * optional bool auto_increment = 2; */ public boolean getAutoIncrement() { return autoIncrement_; } public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** * optional bool case_sensitive = 3; */ public boolean getCaseSensitive() { return caseSensitive_; } public static final int SEARCHABLE_FIELD_NUMBER = 4; private boolean searchable_; /** * optional bool searchable = 4; */ public boolean getSearchable() { return searchable_; } public static final int CURRENCY_FIELD_NUMBER = 5; private boolean currency_; /** * optional bool currency = 5; */ public boolean getCurrency() { return currency_; } public static final int NULLABLE_FIELD_NUMBER = 6; private int nullable_; /** * optional uint32 nullable = 6; */ public int getNullable() { return nullable_; } public static final int SIGNED_FIELD_NUMBER = 7; private boolean signed_; /** * optional bool signed = 7; */ public boolean getSigned() { return signed_; } public static final int DISPLAY_SIZE_FIELD_NUMBER = 8; private int displaySize_; /** * optional uint32 display_size = 8; */ public int getDisplaySize() { return displaySize_; } public static final int LABEL_FIELD_NUMBER = 9; private volatile java.lang.Object label_; /** * optional string label = 9; */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } } /** * optional string label = 9; */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLUMN_NAME_FIELD_NUMBER = 10; private volatile java.lang.Object columnName_; /** * optional string column_name = 10; */ 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(); columnName_ = s; return s; } } /** * optional string column_name = 10; */ 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 SCHEMA_NAME_FIELD_NUMBER = 11; private volatile java.lang.Object schemaName_; /** * optional string schema_name = 11; */ 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(); schemaName_ = s; return s; } } /** * optional string schema_name = 11; */ 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 PRECISION_FIELD_NUMBER = 12; private int precision_; /** * optional uint32 precision = 12; */ public int getPrecision() { return precision_; } public static final int SCALE_FIELD_NUMBER = 13; private int scale_; /** * optional uint32 scale = 13; */ public int getScale() { return scale_; } public static final int TABLE_NAME_FIELD_NUMBER = 14; private volatile java.lang.Object tableName_; /** * optional string table_name = 14; */ 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(); tableName_ = s; return s; } } /** * optional string table_name = 14; */ 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 CATALOG_NAME_FIELD_NUMBER = 15; private volatile java.lang.Object catalogName_; /** * optional string catalog_name = 15; */ 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(); catalogName_ = s; return s; } } /** * optional string catalog_name = 15; */ 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 READ_ONLY_FIELD_NUMBER = 16; private boolean readOnly_; /** * optional bool read_only = 16; */ public boolean getReadOnly() { return readOnly_; } public static final int WRITABLE_FIELD_NUMBER = 17; private boolean writable_; /** * optional bool writable = 17; */ public boolean getWritable() { return writable_; } public static final int DEFINITELY_WRITABLE_FIELD_NUMBER = 18; private boolean definitelyWritable_; /** * optional bool definitely_writable = 18; */ public boolean getDefinitelyWritable() { return definitelyWritable_; } public static final int COLUMN_CLASS_NAME_FIELD_NUMBER = 19; private volatile java.lang.Object columnClassName_; /** * optional string column_class_name = 19; */ public java.lang.String getColumnClassName() { java.lang.Object ref = columnClassName_; 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(); columnClassName_ = s; return s; } } /** * optional string column_class_name = 19; */ public com.google.protobuf.ByteString getColumnClassNameBytes() { java.lang.Object ref = columnClassName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 20; private org.apache.calcite.avatica.proto.Common.AvaticaType type_; /** * optional .AvaticaType type = 20; */ public boolean hasType() { return type_ != null; } /** * optional .AvaticaType type = 20; */ public org.apache.calcite.avatica.proto.Common.AvaticaType getType() { return type_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : type_; } /** * optional .AvaticaType type = 20; */ public org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getTypeOrBuilder() { return getType(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (ordinal_ != 0) { output.writeUInt32(1, ordinal_); } if (autoIncrement_ != false) { output.writeBool(2, autoIncrement_); } if (caseSensitive_ != false) { output.writeBool(3, caseSensitive_); } if (searchable_ != false) { output.writeBool(4, searchable_); } if (currency_ != false) { output.writeBool(5, currency_); } if (nullable_ != 0) { output.writeUInt32(6, nullable_); } if (signed_ != false) { output.writeBool(7, signed_); } if (displaySize_ != 0) { output.writeUInt32(8, displaySize_); } if (!getLabelBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 9, label_); } if (!getColumnNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 10, columnName_); } if (!getSchemaNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 11, schemaName_); } if (precision_ != 0) { output.writeUInt32(12, precision_); } if (scale_ != 0) { output.writeUInt32(13, scale_); } if (!getTableNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 14, tableName_); } if (!getCatalogNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 15, catalogName_); } if (readOnly_ != false) { output.writeBool(16, readOnly_); } if (writable_ != false) { output.writeBool(17, writable_); } if (definitelyWritable_ != false) { output.writeBool(18, definitelyWritable_); } if (!getColumnClassNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 19, columnClassName_); } if (type_ != null) { output.writeMessage(20, getType()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (ordinal_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, ordinal_); } if (autoIncrement_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, autoIncrement_); } if (caseSensitive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, caseSensitive_); } if (searchable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, searchable_); } if (currency_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, currency_); } if (nullable_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, nullable_); } if (signed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, signed_); } if (displaySize_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, displaySize_); } if (!getLabelBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, label_); } if (!getColumnNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(10, columnName_); } if (!getSchemaNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(11, schemaName_); } if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, precision_); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, scale_); } if (!getTableNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, tableName_); } if (!getCatalogNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(15, catalogName_); } if (readOnly_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, readOnly_); } if (writable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, writable_); } if (definitelyWritable_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, definitelyWritable_); } if (!getColumnClassNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(19, columnClassName_); } if (type_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getType()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.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.calcite.avatica.proto.Common.ColumnMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.ColumnMetaData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code ColumnMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:ColumnMetaData) org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_ColumnMetaData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_ColumnMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.ColumnMetaData.class, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.ColumnMetaData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); ordinal_ = 0; autoIncrement_ = false; caseSensitive_ = false; searchable_ = false; currency_ = false; nullable_ = 0; signed_ = false; displaySize_ = 0; label_ = ""; columnName_ = ""; schemaName_ = ""; precision_ = 0; scale_ = 0; tableName_ = ""; catalogName_ = ""; readOnly_ = false; writable_ = false; definitelyWritable_ = false; columnClassName_ = ""; if (typeBuilder_ == null) { type_ = null; } else { type_ = null; typeBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_ColumnMetaData_descriptor; } public org.apache.calcite.avatica.proto.Common.ColumnMetaData getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.ColumnMetaData build() { org.apache.calcite.avatica.proto.Common.ColumnMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.ColumnMetaData buildPartial() { org.apache.calcite.avatica.proto.Common.ColumnMetaData result = new org.apache.calcite.avatica.proto.Common.ColumnMetaData(this); result.ordinal_ = ordinal_; result.autoIncrement_ = autoIncrement_; result.caseSensitive_ = caseSensitive_; result.searchable_ = searchable_; result.currency_ = currency_; result.nullable_ = nullable_; result.signed_ = signed_; result.displaySize_ = displaySize_; result.label_ = label_; result.columnName_ = columnName_; result.schemaName_ = schemaName_; result.precision_ = precision_; result.scale_ = scale_; result.tableName_ = tableName_; result.catalogName_ = catalogName_; result.readOnly_ = readOnly_; result.writable_ = writable_; result.definitelyWritable_ = definitelyWritable_; result.columnClassName_ = columnClassName_; if (typeBuilder_ == null) { result.type_ = type_; } else { result.type_ = typeBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.ColumnMetaData) { return mergeFrom((org.apache.calcite.avatica.proto.Common.ColumnMetaData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.ColumnMetaData other) { if (other == org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance()) return this; if (other.getOrdinal() != 0) { setOrdinal(other.getOrdinal()); } if (other.getAutoIncrement() != false) { setAutoIncrement(other.getAutoIncrement()); } if (other.getCaseSensitive() != false) { setCaseSensitive(other.getCaseSensitive()); } if (other.getSearchable() != false) { setSearchable(other.getSearchable()); } if (other.getCurrency() != false) { setCurrency(other.getCurrency()); } if (other.getNullable() != 0) { setNullable(other.getNullable()); } if (other.getSigned() != false) { setSigned(other.getSigned()); } if (other.getDisplaySize() != 0) { setDisplaySize(other.getDisplaySize()); } if (!other.getLabel().isEmpty()) { label_ = other.label_; onChanged(); } if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); } if (!other.getSchemaName().isEmpty()) { schemaName_ = other.schemaName_; onChanged(); } if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getScale() != 0) { setScale(other.getScale()); } if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; onChanged(); } if (!other.getCatalogName().isEmpty()) { catalogName_ = other.catalogName_; onChanged(); } if (other.getReadOnly() != false) { setReadOnly(other.getReadOnly()); } if (other.getWritable() != false) { setWritable(other.getWritable()); } if (other.getDefinitelyWritable() != false) { setDefinitelyWritable(other.getDefinitelyWritable()); } if (!other.getColumnClassName().isEmpty()) { columnClassName_ = other.columnClassName_; onChanged(); } if (other.hasType()) { mergeType(other.getType()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.ColumnMetaData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.ColumnMetaData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int ordinal_ ; /** * optional uint32 ordinal = 1; */ public int getOrdinal() { return ordinal_; } /** * optional uint32 ordinal = 1; */ public Builder setOrdinal(int value) { ordinal_ = value; onChanged(); return this; } /** * optional uint32 ordinal = 1; */ public Builder clearOrdinal() { ordinal_ = 0; onChanged(); return this; } private boolean autoIncrement_ ; /** * optional bool auto_increment = 2; */ public boolean getAutoIncrement() { return autoIncrement_; } /** * optional bool auto_increment = 2; */ public Builder setAutoIncrement(boolean value) { autoIncrement_ = value; onChanged(); return this; } /** * optional bool auto_increment = 2; */ public Builder clearAutoIncrement() { autoIncrement_ = false; onChanged(); return this; } private boolean caseSensitive_ ; /** * optional bool case_sensitive = 3; */ public boolean getCaseSensitive() { return caseSensitive_; } /** * optional bool case_sensitive = 3; */ public Builder setCaseSensitive(boolean value) { caseSensitive_ = value; onChanged(); return this; } /** * optional bool case_sensitive = 3; */ public Builder clearCaseSensitive() { caseSensitive_ = false; onChanged(); return this; } private boolean searchable_ ; /** * optional bool searchable = 4; */ public boolean getSearchable() { return searchable_; } /** * optional bool searchable = 4; */ public Builder setSearchable(boolean value) { searchable_ = value; onChanged(); return this; } /** * optional bool searchable = 4; */ public Builder clearSearchable() { searchable_ = false; onChanged(); return this; } private boolean currency_ ; /** * optional bool currency = 5; */ public boolean getCurrency() { return currency_; } /** * optional bool currency = 5; */ public Builder setCurrency(boolean value) { currency_ = value; onChanged(); return this; } /** * optional bool currency = 5; */ public Builder clearCurrency() { currency_ = false; onChanged(); return this; } private int nullable_ ; /** * optional uint32 nullable = 6; */ public int getNullable() { return nullable_; } /** * optional uint32 nullable = 6; */ public Builder setNullable(int value) { nullable_ = value; onChanged(); return this; } /** * optional uint32 nullable = 6; */ public Builder clearNullable() { nullable_ = 0; onChanged(); return this; } private boolean signed_ ; /** * optional bool signed = 7; */ public boolean getSigned() { return signed_; } /** * optional bool signed = 7; */ public Builder setSigned(boolean value) { signed_ = value; onChanged(); return this; } /** * optional bool signed = 7; */ public Builder clearSigned() { signed_ = false; onChanged(); return this; } private int displaySize_ ; /** * optional uint32 display_size = 8; */ public int getDisplaySize() { return displaySize_; } /** * optional uint32 display_size = 8; */ public Builder setDisplaySize(int value) { displaySize_ = value; onChanged(); return this; } /** * optional uint32 display_size = 8; */ public Builder clearDisplaySize() { displaySize_ = 0; onChanged(); return this; } private java.lang.Object label_ = ""; /** * optional string label = 9; */ public java.lang.String getLabel() { java.lang.Object ref = label_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); label_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string label = 9; */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string label = 9; */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } label_ = value; onChanged(); return this; } /** * optional string label = 9; */ public Builder clearLabel() { label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** * optional string label = 9; */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); label_ = value; onChanged(); return this; } private java.lang.Object columnName_ = ""; /** * optional string column_name = 10; */ 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(); columnName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string column_name = 10; */ 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 = 10; */ public Builder setColumnName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } columnName_ = value; onChanged(); return this; } /** * optional string column_name = 10; */ public Builder clearColumnName() { columnName_ = getDefaultInstance().getColumnName(); onChanged(); return this; } /** * optional string column_name = 10; */ public Builder setColumnNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnName_ = value; onChanged(); return this; } private java.lang.Object schemaName_ = ""; /** * optional string schema_name = 11; */ 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(); schemaName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string schema_name = 11; */ 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 = 11; */ public Builder setSchemaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaName_ = value; onChanged(); return this; } /** * optional string schema_name = 11; */ public Builder clearSchemaName() { schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); return this; } /** * optional string schema_name = 11; */ public Builder setSchemaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaName_ = value; onChanged(); return this; } private int precision_ ; /** * optional uint32 precision = 12; */ public int getPrecision() { return precision_; } /** * optional uint32 precision = 12; */ public Builder setPrecision(int value) { precision_ = value; onChanged(); return this; } /** * optional uint32 precision = 12; */ public Builder clearPrecision() { precision_ = 0; onChanged(); return this; } private int scale_ ; /** * optional uint32 scale = 13; */ public int getScale() { return scale_; } /** * optional uint32 scale = 13; */ public Builder setScale(int value) { scale_ = value; onChanged(); return this; } /** * optional uint32 scale = 13; */ public Builder clearScale() { scale_ = 0; onChanged(); return this; } private java.lang.Object tableName_ = ""; /** * optional string table_name = 14; */ 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(); tableName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string table_name = 14; */ 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 = 14; */ public Builder setTableName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } tableName_ = value; onChanged(); return this; } /** * optional string table_name = 14; */ public Builder clearTableName() { tableName_ = getDefaultInstance().getTableName(); onChanged(); return this; } /** * optional string table_name = 14; */ public Builder setTableNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableName_ = value; onChanged(); return this; } private java.lang.Object catalogName_ = ""; /** * optional string catalog_name = 15; */ 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(); catalogName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string catalog_name = 15; */ 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 = 15; */ public Builder setCatalogName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } catalogName_ = value; onChanged(); return this; } /** * optional string catalog_name = 15; */ public Builder clearCatalogName() { catalogName_ = getDefaultInstance().getCatalogName(); onChanged(); return this; } /** * optional string catalog_name = 15; */ public Builder setCatalogNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); catalogName_ = value; onChanged(); return this; } private boolean readOnly_ ; /** * optional bool read_only = 16; */ public boolean getReadOnly() { return readOnly_; } /** * optional bool read_only = 16; */ public Builder setReadOnly(boolean value) { readOnly_ = value; onChanged(); return this; } /** * optional bool read_only = 16; */ public Builder clearReadOnly() { readOnly_ = false; onChanged(); return this; } private boolean writable_ ; /** * optional bool writable = 17; */ public boolean getWritable() { return writable_; } /** * optional bool writable = 17; */ public Builder setWritable(boolean value) { writable_ = value; onChanged(); return this; } /** * optional bool writable = 17; */ public Builder clearWritable() { writable_ = false; onChanged(); return this; } private boolean definitelyWritable_ ; /** * optional bool definitely_writable = 18; */ public boolean getDefinitelyWritable() { return definitelyWritable_; } /** * optional bool definitely_writable = 18; */ public Builder setDefinitelyWritable(boolean value) { definitelyWritable_ = value; onChanged(); return this; } /** * optional bool definitely_writable = 18; */ public Builder clearDefinitelyWritable() { definitelyWritable_ = false; onChanged(); return this; } private java.lang.Object columnClassName_ = ""; /** * optional string column_class_name = 19; */ public java.lang.String getColumnClassName() { java.lang.Object ref = columnClassName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnClassName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string column_class_name = 19; */ public com.google.protobuf.ByteString getColumnClassNameBytes() { java.lang.Object ref = columnClassName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); columnClassName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string column_class_name = 19; */ public Builder setColumnClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } columnClassName_ = value; onChanged(); return this; } /** * optional string column_class_name = 19; */ public Builder clearColumnClassName() { columnClassName_ = getDefaultInstance().getColumnClassName(); onChanged(); return this; } /** * optional string column_class_name = 19; */ public Builder setColumnClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnClassName_ = value; onChanged(); return this; } private org.apache.calcite.avatica.proto.Common.AvaticaType type_ = null; private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder> typeBuilder_; /** * optional .AvaticaType type = 20; */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** * optional .AvaticaType type = 20; */ public org.apache.calcite.avatica.proto.Common.AvaticaType getType() { if (typeBuilder_ == null) { return type_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** * optional .AvaticaType type = 20; */ public Builder setType(org.apache.calcite.avatica.proto.Common.AvaticaType value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } type_ = value; onChanged(); } else { typeBuilder_.setMessage(value); } return this; } /** * optional .AvaticaType type = 20; */ public Builder setType( org.apache.calcite.avatica.proto.Common.AvaticaType.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); } else { typeBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .AvaticaType type = 20; */ public Builder mergeType(org.apache.calcite.avatica.proto.Common.AvaticaType value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = org.apache.calcite.avatica.proto.Common.AvaticaType.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } onChanged(); } else { typeBuilder_.mergeFrom(value); } return this; } /** * optional .AvaticaType type = 20; */ public Builder clearType() { if (typeBuilder_ == null) { type_ = null; onChanged(); } else { type_ = null; typeBuilder_ = null; } return this; } /** * optional .AvaticaType type = 20; */ public org.apache.calcite.avatica.proto.Common.AvaticaType.Builder getTypeBuilder() { onChanged(); return getTypeFieldBuilder().getBuilder(); } /** * optional .AvaticaType type = 20; */ public org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { return type_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : type_; } } /** * optional .AvaticaType type = 20; */ private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { typeBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder>( getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:ColumnMetaData) } // @@protoc_insertion_point(class_scope:ColumnMetaData) private static final org.apache.calcite.avatica.proto.Common.ColumnMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.ColumnMetaData(); } public static org.apache.calcite.avatica.proto.Common.ColumnMetaData getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ColumnMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new ColumnMetaData(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.ColumnMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AvaticaTypeOrBuilder extends // @@protoc_insertion_point(interface_extends:AvaticaType) com.google.protobuf.MessageOrBuilder { /** * optional uint32 id = 1; */ int getId(); /** * optional string name = 2; */ java.lang.String getName(); /** * optional string name = 2; */ com.google.protobuf.ByteString getNameBytes(); /** * optional .Rep rep = 3; */ int getRepValue(); /** * optional .Rep rep = 3; */ org.apache.calcite.avatica.proto.Common.Rep getRep(); /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ java.util.List getColumnsList(); /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index); /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ int getColumnsCount(); /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ java.util.List getColumnsOrBuilderList(); /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index); /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ boolean hasComponent(); /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ org.apache.calcite.avatica.proto.Common.AvaticaType getComponent(); /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getComponentOrBuilder(); } /** * Protobuf type {@code AvaticaType} * *
   * Base class for a column type
   * 
*/ public static final class AvaticaType extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:AvaticaType) AvaticaTypeOrBuilder { // Use AvaticaType.newBuilder() to construct. private AvaticaType(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AvaticaType() { id_ = 0; name_ = ""; rep_ = 0; columns_ = java.util.Collections.emptyList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AvaticaType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { id_ = input.readUInt32(); break; } case 18: { String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { int rawValue = input.readEnum(); rep_ = rawValue; break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { columns_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } columns_.add(input.readMessage(org.apache.calcite.avatica.proto.Common.ColumnMetaData.parser(), extensionRegistry)); break; } case 42: { org.apache.calcite.avatica.proto.Common.AvaticaType.Builder subBuilder = null; if (component_ != null) { subBuilder = component_.toBuilder(); } component_ = input.readMessage(org.apache.calcite.avatica.proto.Common.AvaticaType.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(component_); component_ = subBuilder.buildPartial(); } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { columns_ = java.util.Collections.unmodifiableList(columns_); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaType_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.AvaticaType.class, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder.class); } private int bitField0_; public static final int ID_FIELD_NUMBER = 1; private int id_; /** * optional uint32 id = 1; */ public int getId() { return id_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; */ 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(); name_ = s; return s; } } /** * optional string name = 2; */ 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 REP_FIELD_NUMBER = 3; private int rep_; /** * optional .Rep rep = 3; */ public int getRepValue() { return rep_; } /** * optional .Rep rep = 3; */ public org.apache.calcite.avatica.proto.Common.Rep getRep() { org.apache.calcite.avatica.proto.Common.Rep result = org.apache.calcite.avatica.proto.Common.Rep.valueOf(rep_); return result == null ? org.apache.calcite.avatica.proto.Common.Rep.UNRECOGNIZED : result; } public static final int COLUMNS_FIELD_NUMBER = 4; private java.util.List columns_; /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ public java.util.List getColumnsList() { return columns_; } /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ public java.util.List getColumnsOrBuilderList() { return columns_; } /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ public int getColumnsCount() { return columns_.size(); } /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index) { return columns_.get(index); } /** * repeated .ColumnMetaData columns = 4; * *
     * Only present when name = STRUCT
     * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index) { return columns_.get(index); } public static final int COMPONENT_FIELD_NUMBER = 5; private org.apache.calcite.avatica.proto.Common.AvaticaType component_; /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ public boolean hasComponent() { return component_ != null; } /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ public org.apache.calcite.avatica.proto.Common.AvaticaType getComponent() { return component_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : component_; } /** * optional .AvaticaType component = 5; * *
     * Only present when name = ARRAY
     * 
*/ public org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getComponentOrBuilder() { return getComponent(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != 0) { output.writeUInt32(1, id_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); } if (rep_ != org.apache.calcite.avatica.proto.Common.Rep.PRIMITIVE_BOOLEAN.getNumber()) { output.writeEnum(3, rep_); } for (int i = 0; i < columns_.size(); i++) { output.writeMessage(4, columns_.get(i)); } if (component_ != null) { output.writeMessage(5, getComponent()); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, id_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); } if (rep_ != org.apache.calcite.avatica.proto.Common.Rep.PRIMITIVE_BOOLEAN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, rep_); } for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, columns_.get(i)); } if (component_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getComponent()); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.AvaticaType 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.calcite.avatica.proto.Common.AvaticaType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.AvaticaType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code AvaticaType} * *
     * Base class for a column type
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:AvaticaType) org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaType_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaType_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.AvaticaType.class, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.AvaticaType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getColumnsFieldBuilder(); } } public Builder clear() { super.clear(); id_ = 0; name_ = ""; rep_ = 0; if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { columnsBuilder_.clear(); } if (componentBuilder_ == null) { component_ = null; } else { component_ = null; componentBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaType_descriptor; } public org.apache.calcite.avatica.proto.Common.AvaticaType getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.AvaticaType build() { org.apache.calcite.avatica.proto.Common.AvaticaType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.AvaticaType buildPartial() { org.apache.calcite.avatica.proto.Common.AvaticaType result = new org.apache.calcite.avatica.proto.Common.AvaticaType(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.id_ = id_; result.name_ = name_; result.rep_ = rep_; if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000008); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } if (componentBuilder_ == null) { result.component_ = component_; } else { result.component_ = componentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.AvaticaType) { return mergeFrom((org.apache.calcite.avatica.proto.Common.AvaticaType)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.AvaticaType other) { if (other == org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance()) return this; if (other.getId() != 0) { setId(other.getId()); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.rep_ != 0) { setRepValue(other.getRepValue()); } if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000008); columnsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (other.hasComponent()) { mergeComponent(other.getComponent()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.AvaticaType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.AvaticaType) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int id_ ; /** * optional uint32 id = 1; */ public int getId() { return id_; } /** * optional uint32 id = 1; */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** * optional uint32 id = 1; */ public Builder clearId() { id_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; */ 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(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; */ 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; } } /** * optional string name = 2; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 2; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int rep_ = 0; /** * optional .Rep rep = 3; */ public int getRepValue() { return rep_; } /** * optional .Rep rep = 3; */ public Builder setRepValue(int value) { rep_ = value; onChanged(); return this; } /** * optional .Rep rep = 3; */ public org.apache.calcite.avatica.proto.Common.Rep getRep() { org.apache.calcite.avatica.proto.Common.Rep result = org.apache.calcite.avatica.proto.Common.Rep.valueOf(rep_); return result == null ? org.apache.calcite.avatica.proto.Common.Rep.UNRECOGNIZED : result; } /** * optional .Rep rep = 3; */ public Builder setRep(org.apache.calcite.avatica.proto.Common.Rep value) { if (value == null) { throw new NullPointerException(); } rep_ = value.getNumber(); onChanged(); return this; } /** * optional .Rep rep = 3; */ public Builder clearRep() { rep_ = 0; onChanged(); return this; } private java.util.List columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { columns_ = new java.util.ArrayList(columns_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder> columnsBuilder_; /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public java.util.List getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaData getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder setColumns( int index, org.apache.calcite.avatica.proto.Common.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 .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder setColumns( int index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder addColumns(org.apache.calcite.avatica.proto.Common.ColumnMetaData value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder addColumns( int index, org.apache.calcite.avatica.proto.Common.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 .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder addColumns( org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder addColumns( int index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder addAllColumns( java.lang.Iterable values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public java.util.List getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance()); } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, org.apache.calcite.avatica.proto.Common.ColumnMetaData.getDefaultInstance()); } /** * repeated .ColumnMetaData columns = 4; * *
       * Only present when name = STRUCT
       * 
*/ public java.util.List getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< org.apache.calcite.avatica.proto.Common.ColumnMetaData, org.apache.calcite.avatica.proto.Common.ColumnMetaData.Builder, org.apache.calcite.avatica.proto.Common.ColumnMetaDataOrBuilder>( columns_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } private org.apache.calcite.avatica.proto.Common.AvaticaType component_ = null; private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder> componentBuilder_; /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public boolean hasComponent() { return componentBuilder_ != null || component_ != null; } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public org.apache.calcite.avatica.proto.Common.AvaticaType getComponent() { if (componentBuilder_ == null) { return component_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : component_; } else { return componentBuilder_.getMessage(); } } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public Builder setComponent(org.apache.calcite.avatica.proto.Common.AvaticaType value) { if (componentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } component_ = value; onChanged(); } else { componentBuilder_.setMessage(value); } return this; } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public Builder setComponent( org.apache.calcite.avatica.proto.Common.AvaticaType.Builder builderForValue) { if (componentBuilder_ == null) { component_ = builderForValue.build(); onChanged(); } else { componentBuilder_.setMessage(builderForValue.build()); } return this; } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public Builder mergeComponent(org.apache.calcite.avatica.proto.Common.AvaticaType value) { if (componentBuilder_ == null) { if (component_ != null) { component_ = org.apache.calcite.avatica.proto.Common.AvaticaType.newBuilder(component_).mergeFrom(value).buildPartial(); } else { component_ = value; } onChanged(); } else { componentBuilder_.mergeFrom(value); } return this; } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public Builder clearComponent() { if (componentBuilder_ == null) { component_ = null; onChanged(); } else { component_ = null; componentBuilder_ = null; } return this; } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public org.apache.calcite.avatica.proto.Common.AvaticaType.Builder getComponentBuilder() { onChanged(); return getComponentFieldBuilder().getBuilder(); } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ public org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder getComponentOrBuilder() { if (componentBuilder_ != null) { return componentBuilder_.getMessageOrBuilder(); } else { return component_ == null ? org.apache.calcite.avatica.proto.Common.AvaticaType.getDefaultInstance() : component_; } } /** * optional .AvaticaType component = 5; * *
       * Only present when name = ARRAY
       * 
*/ private com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder> getComponentFieldBuilder() { if (componentBuilder_ == null) { componentBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.calcite.avatica.proto.Common.AvaticaType, org.apache.calcite.avatica.proto.Common.AvaticaType.Builder, org.apache.calcite.avatica.proto.Common.AvaticaTypeOrBuilder>( getComponent(), getParentForChildren(), isClean()); component_ = null; } return componentBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:AvaticaType) } // @@protoc_insertion_point(class_scope:AvaticaType) private static final org.apache.calcite.avatica.proto.Common.AvaticaType DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.AvaticaType(); } public static org.apache.calcite.avatica.proto.Common.AvaticaType getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AvaticaType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new AvaticaType(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.AvaticaType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AvaticaParameterOrBuilder extends // @@protoc_insertion_point(interface_extends:AvaticaParameter) com.google.protobuf.MessageOrBuilder { /** * optional bool signed = 1; */ boolean getSigned(); /** * optional uint32 precision = 2; */ int getPrecision(); /** * optional uint32 scale = 3; */ int getScale(); /** * optional uint32 parameter_type = 4; */ int getParameterType(); /** * optional string type_name = 5; */ java.lang.String getTypeName(); /** * optional string type_name = 5; */ com.google.protobuf.ByteString getTypeNameBytes(); /** * optional string class_name = 6; */ java.lang.String getClassName(); /** * optional string class_name = 6; */ com.google.protobuf.ByteString getClassNameBytes(); /** * optional string name = 7; */ java.lang.String getName(); /** * optional string name = 7; */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code AvaticaParameter} * *
   * Metadata for a parameter
   * 
*/ public static final class AvaticaParameter extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:AvaticaParameter) AvaticaParameterOrBuilder { // Use AvaticaParameter.newBuilder() to construct. private AvaticaParameter(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AvaticaParameter() { signed_ = false; precision_ = 0; scale_ = 0; parameterType_ = 0; typeName_ = ""; className_ = ""; name_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private AvaticaParameter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { signed_ = input.readBool(); break; } case 16: { precision_ = input.readUInt32(); break; } case 24: { scale_ = input.readUInt32(); break; } case 32: { parameterType_ = input.readUInt32(); break; } case 42: { String s = input.readStringRequireUtf8(); typeName_ = s; break; } case 50: { String s = input.readStringRequireUtf8(); className_ = s; break; } case 58: { String s = input.readStringRequireUtf8(); name_ = s; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaParameter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.AvaticaParameter.class, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder.class); } public static final int SIGNED_FIELD_NUMBER = 1; private boolean signed_; /** * optional bool signed = 1; */ public boolean getSigned() { return signed_; } public static final int PRECISION_FIELD_NUMBER = 2; private int precision_; /** * optional uint32 precision = 2; */ public int getPrecision() { return precision_; } public static final int SCALE_FIELD_NUMBER = 3; private int scale_; /** * optional uint32 scale = 3; */ public int getScale() { return scale_; } public static final int PARAMETER_TYPE_FIELD_NUMBER = 4; private int parameterType_; /** * optional uint32 parameter_type = 4; */ public int getParameterType() { return parameterType_; } public static final int TYPE_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object typeName_; /** * optional string type_name = 5; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; 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(); typeName_ = s; return s; } } /** * optional string type_name = 5; */ public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLASS_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object className_; /** * optional string class_name = 6; */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); className_ = s; return s; } } /** * optional string class_name = 6; */ 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 NAME_FIELD_NUMBER = 7; private volatile java.lang.Object name_; /** * optional string name = 7; */ 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(); name_ = s; return s; } } /** * optional string name = 7; */ 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; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (signed_ != false) { output.writeBool(1, signed_); } if (precision_ != 0) { output.writeUInt32(2, precision_); } if (scale_ != 0) { output.writeUInt32(3, scale_); } if (parameterType_ != 0) { output.writeUInt32(4, parameterType_); } if (!getTypeNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 5, typeName_); } if (!getClassNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 6, className_); } if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 7, name_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (signed_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, signed_); } if (precision_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, precision_); } if (scale_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, scale_); } if (parameterType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, parameterType_); } if (!getTypeNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, typeName_); } if (!getClassNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, className_); } if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, name_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter 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.calcite.avatica.proto.Common.AvaticaParameter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.calcite.avatica.proto.Common.AvaticaParameter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code AvaticaParameter} * *
     * Metadata for a parameter
     * 
*/ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:AvaticaParameter) org.apache.calcite.avatica.proto.Common.AvaticaParameterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaParameter_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaParameter_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.AvaticaParameter.class, org.apache.calcite.avatica.proto.Common.AvaticaParameter.Builder.class); } // Construct using org.apache.calcite.avatica.proto.Common.AvaticaParameter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); signed_ = false; precision_ = 0; scale_ = 0; parameterType_ = 0; typeName_ = ""; className_ = ""; name_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.apache.calcite.avatica.proto.Common.internal_static_AvaticaParameter_descriptor; } public org.apache.calcite.avatica.proto.Common.AvaticaParameter getDefaultInstanceForType() { return org.apache.calcite.avatica.proto.Common.AvaticaParameter.getDefaultInstance(); } public org.apache.calcite.avatica.proto.Common.AvaticaParameter build() { org.apache.calcite.avatica.proto.Common.AvaticaParameter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public org.apache.calcite.avatica.proto.Common.AvaticaParameter buildPartial() { org.apache.calcite.avatica.proto.Common.AvaticaParameter result = new org.apache.calcite.avatica.proto.Common.AvaticaParameter(this); result.signed_ = signed_; result.precision_ = precision_; result.scale_ = scale_; result.parameterType_ = parameterType_; result.typeName_ = typeName_; result.className_ = className_; result.name_ = name_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.apache.calcite.avatica.proto.Common.AvaticaParameter) { return mergeFrom((org.apache.calcite.avatica.proto.Common.AvaticaParameter)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.AvaticaParameter other) { if (other == org.apache.calcite.avatica.proto.Common.AvaticaParameter.getDefaultInstance()) return this; if (other.getSigned() != false) { setSigned(other.getSigned()); } if (other.getPrecision() != 0) { setPrecision(other.getPrecision()); } if (other.getScale() != 0) { setScale(other.getScale()); } if (other.getParameterType() != 0) { setParameterType(other.getParameterType()); } if (!other.getTypeName().isEmpty()) { typeName_ = other.typeName_; onChanged(); } if (!other.getClassName().isEmpty()) { className_ = other.className_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.calcite.avatica.proto.Common.AvaticaParameter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.calcite.avatica.proto.Common.AvaticaParameter) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean signed_ ; /** * optional bool signed = 1; */ public boolean getSigned() { return signed_; } /** * optional bool signed = 1; */ public Builder setSigned(boolean value) { signed_ = value; onChanged(); return this; } /** * optional bool signed = 1; */ public Builder clearSigned() { signed_ = false; onChanged(); return this; } private int precision_ ; /** * optional uint32 precision = 2; */ public int getPrecision() { return precision_; } /** * optional uint32 precision = 2; */ public Builder setPrecision(int value) { precision_ = value; onChanged(); return this; } /** * optional uint32 precision = 2; */ public Builder clearPrecision() { precision_ = 0; onChanged(); return this; } private int scale_ ; /** * optional uint32 scale = 3; */ public int getScale() { return scale_; } /** * optional uint32 scale = 3; */ public Builder setScale(int value) { scale_ = value; onChanged(); return this; } /** * optional uint32 scale = 3; */ public Builder clearScale() { scale_ = 0; onChanged(); return this; } private int parameterType_ ; /** * optional uint32 parameter_type = 4; */ public int getParameterType() { return parameterType_; } /** * optional uint32 parameter_type = 4; */ public Builder setParameterType(int value) { parameterType_ = value; onChanged(); return this; } /** * optional uint32 parameter_type = 4; */ public Builder clearParameterType() { parameterType_ = 0; onChanged(); return this; } private java.lang.Object typeName_ = ""; /** * optional string type_name = 5; */ public java.lang.String getTypeName() { java.lang.Object ref = typeName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); typeName_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string type_name = 5; */ public com.google.protobuf.ByteString getTypeNameBytes() { java.lang.Object ref = typeName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); typeName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type_name = 5; */ public Builder setTypeName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } typeName_ = value; onChanged(); return this; } /** * optional string type_name = 5; */ public Builder clearTypeName() { typeName_ = getDefaultInstance().getTypeName(); onChanged(); return this; } /** * optional string type_name = 5; */ public Builder setTypeNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); typeName_ = value; onChanged(); return this; } private java.lang.Object className_ = ""; /** * optional string class_name = 6; */ public java.lang.String getClassName() { java.lang.Object ref = className_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); className_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string class_name = 6; */ 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; } } /** * optional string class_name = 6; */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } className_ = value; onChanged(); return this; } /** * optional string class_name = 6; */ public Builder clearClassName() { className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /** * optional string class_name = 6; */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); className_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 7; */ 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(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * optional string name = 7; */ 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; } } /** * optional string name = 7; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * optional string name = 7; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 7; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:AvaticaParameter) } // @@protoc_insertion_point(class_scope:AvaticaParameter) private static final org.apache.calcite.avatica.proto.Common.AvaticaParameter DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.apache.calcite.avatica.proto.Common.AvaticaParameter(); } public static org.apache.calcite.avatica.proto.Common.AvaticaParameter getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public AvaticaParameter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { try { return new AvaticaParameter(input, extensionRegistry); } catch (RuntimeException e) { if (e.getCause() instanceof com.google.protobuf.InvalidProtocolBufferException) { throw (com.google.protobuf.InvalidProtocolBufferException) e.getCause(); } throw e; } } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public org.apache.calcite.avatica.proto.Common.AvaticaParameter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface CursorFactoryOrBuilder extends // @@protoc_insertion_point(interface_extends:CursorFactory) com.google.protobuf.MessageOrBuilder { /** * optional .CursorFactory.Style style = 1; */ int getStyleValue(); /** * optional .CursorFactory.Style style = 1; */ org.apache.calcite.avatica.proto.Common.CursorFactory.Style getStyle(); /** * optional string class_name = 2; */ java.lang.String getClassName(); /** * optional string class_name = 2; */ com.google.protobuf.ByteString getClassNameBytes(); /** * repeated string field_names = 3; */ com.google.protobuf.ProtocolStringList getFieldNamesList(); /** * repeated string field_names = 3; */ int getFieldNamesCount(); /** * repeated string field_names = 3; */ java.lang.String getFieldNames(int index); /** * repeated string field_names = 3; */ com.google.protobuf.ByteString getFieldNamesBytes(int index); } /** * Protobuf type {@code CursorFactory} * *
   * Information necessary to convert an Iterable into a Calcite Cursor
   * 
*/ public static final class CursorFactory extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:CursorFactory) CursorFactoryOrBuilder { // Use CursorFactory.newBuilder() to construct. private CursorFactory(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private CursorFactory() { style_ = 0; className_ = ""; fieldNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private CursorFactory( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); style_ = rawValue; break; } case 18: { String s = input.readStringRequireUtf8(); className_ = s; break; } case 26: { String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { fieldNames_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } fieldNames_.add(s); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw new RuntimeException(e.setUnfinishedMessage(this)); } catch (java.io.IOException e) { throw new RuntimeException( new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this)); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { fieldNames_ = fieldNames_.getUnmodifiableView(); } makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.apache.calcite.avatica.proto.Common.internal_static_CursorFactory_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.apache.calcite.avatica.proto.Common.internal_static_CursorFactory_fieldAccessorTable .ensureFieldAccessorsInitialized( org.apache.calcite.avatica.proto.Common.CursorFactory.class, org.apache.calcite.avatica.proto.Common.CursorFactory.Builder.class); } /** * Protobuf enum {@code CursorFactory.Style} */ public enum Style implements com.google.protobuf.ProtocolMessageEnum { /** * OBJECT = 0; */ OBJECT(0, 0), /** * RECORD = 1; */ RECORD(1, 1), /** * RECORD_PROJECTION = 2; */ RECORD_PROJECTION(2, 2), /** * ARRAY = 3; */ ARRAY(3, 3), /** * LIST = 4; */ LIST(4, 4), /** * MAP = 5; */ MAP(5, 5), UNRECOGNIZED(-1, -1), ; /** * OBJECT = 0; */ public static final int OBJECT_VALUE = 0; /** * RECORD = 1; */ public static final int RECORD_VALUE = 1; /** * RECORD_PROJECTION = 2; */ public static final int RECORD_PROJECTION_VALUE = 2; /** * ARRAY = 3; */ public static final int ARRAY_VALUE = 3; /** * LIST = 4; */ public static final int LIST_VALUE = 4; /** * MAP = 5; */ public static final int MAP_VALUE = 5; public final int getNumber() { if (index == -1) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } public static Style valueOf(int value) { switch (value) { case 0: return OBJECT; case 1: return RECORD; case 2: return RECORD_PROJECTION; case 3: return ARRAY; case 4: return LIST; case 5: return MAP; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap