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

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

There is a newer version: 5.5.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: common.proto

package com.hazelcast.org.apache.calcite.avatica.proto;

public final class Common {
  private Common() {}
  public static void registerAllExtensions(
      com.hazelcast.com.google.protobuf.ExtensionRegistryLite registry) {
  }

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