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

nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest Maven / Gradle / Ivy

There is a newer version: 1.1.6
Show newest version
// Generated by the protocol buffer nl.topicus.jdbc.shaded.com.iler.  DO NOT EDIT!
// source: google/spanner/v1/spanner.proto

package nl.topicus.jdbc.shaded.com.google.spanner.v1;

/**
 * 
 * The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
 * [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].
 * 
* * Protobuf type {@code google.spanner.v1.ExecuteSqlRequest} */ public final class ExecuteSqlRequest extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.spanner.v1.ExecuteSqlRequest) ExecuteSqlRequestOrBuilder { // Use ExecuteSqlRequest.newBuilder() to construct. private ExecuteSqlRequest(nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExecuteSqlRequest() { session_ = ""; sql_ = ""; resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; queryMode_ = 0; } @java.lang.Override public final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private ExecuteSqlRequest( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); session_ = s; break; } case 18: { nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder subBuilder = null; if (transaction_ != null) { subBuilder = transaction_.toBuilder(); } transaction_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(transaction_); transaction_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); sql_ = s; break; } case 34: { nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder subBuilder = null; if (params_ != null) { subBuilder = params_.toBuilder(); } params_ = input.readMessage(nl.topicus.jdbc.shaded.com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(params_); params_ = subBuilder.buildPartial(); } break; } case 42: { if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { paramTypes_ = nl.topicus.jdbc.shaded.com.google.protobuf.MapField.newMapField( ParamTypesDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000010; } nl.topicus.jdbc.shaded.com.google.protobuf.MapEntry paramTypes__ = input.readMessage( ParamTypesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); paramTypes_.getMutableMap().put( paramTypes__.getKey(), paramTypes__.getValue()); break; } case 50: { resumeToken_ = input.readBytes(); break; } case 56: { int rawValue = input.readEnum(); queryMode_ = rawValue; break; } } } } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.nl.topicus.jdbc.shaded.io.IOException e) { throw new nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable(); } } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetParamTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.Builder.class); } /** *
   * Mode in which the query must be processed.
   * 
* * Protobuf enum {@code google.spanner.v1.ExecuteSqlRequest.QueryMode} */ public enum QueryMode implements nl.topicus.jdbc.shaded.com.google.protobuf.ProtocolMessageEnum { /** *
     * The default mode where only the query result, without any information
     * about the query plan is returned.
     * 
* * NORMAL = 0; */ NORMAL(0), /** *
     * This mode returns only the query plan, without any result rows or
     * execution statistics information.
     * 
* * PLAN = 1; */ PLAN(1), /** *
     * This mode returns both the query plan and the execution statistics along
     * with the result rows.
     * 
* * PROFILE = 2; */ PROFILE(2), UNRECOGNIZED(-1), ; /** *
     * The default mode where only the query result, without any information
     * about the query plan is returned.
     * 
* * NORMAL = 0; */ public static final int NORMAL_VALUE = 0; /** *
     * This mode returns only the query plan, without any result rows or
     * execution statistics information.
     * 
* * PLAN = 1; */ public static final int PLAN_VALUE = 1; /** *
     * This mode returns both the query plan and the execution statistics along
     * with the result rows.
     * 
* * PROFILE = 2; */ public static final int PROFILE_VALUE = 2; 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 QueryMode valueOf(int value) { return forNumber(value); } public static QueryMode forNumber(int value) { switch (value) { case 0: return NORMAL; case 1: return PLAN; case 2: return PROFILE; default: return null; } } public static nl.topicus.jdbc.shaded.com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Internal.EnumLiteMap< QueryMode> internalValueMap = new nl.topicus.jdbc.shaded.com.google.protobuf.Internal.EnumLiteMap() { public QueryMode findValueByNumber(int number) { return QueryMode.forNumber(number); } }; public final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.getDescriptor().getEnumTypes().get(0); } private static final QueryMode[] VALUES = values(); public static QueryMode valueOf( nl.topicus.jdbc.shaded.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 QueryMode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.spanner.v1.ExecuteSqlRequest.QueryMode) } private int bitField0_; public static final int SESSION_FIELD_NUMBER = 1; private volatile java.lang.Object session_; /** *
   * Required. The session in which the SQL query should be performed.
   * 
* * string session = 1; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } } /** *
   * Required. The session in which the SQL query should be performed.
   * 
* * string session = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int TRANSACTION_FIELD_NUMBER = 2; private nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector transaction_; /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public boolean hasTransaction() { return transaction_ != null; } /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector getTransaction() { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } /** *
   * The transaction to use. If none is provided, the default is a
   * temporary read-only transaction with strong concurrency.
   * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { return getTransaction(); } public static final int SQL_FIELD_NUMBER = 3; private volatile java.lang.Object sql_; /** *
   * Required. The SQL query string.
   * 
* * string sql = 3; */ public java.lang.String getSql() { java.lang.Object ref = sql_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; } } /** *
   * Required. The SQL query string.
   * 
* * string sql = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof java.lang.String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } public static final int PARAMS_FIELD_NUMBER = 4; private nl.topicus.jdbc.shaded.com.google.protobuf.Struct params_; /** *
   * The SQL query string can contain parameter placeholders. A parameter
   * placeholder consists of `'@'` followed by the parameter
   * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
   * numbers, and underscores.
   * Parameters can appear anywhere that a literal value is expected.  The same
   * parameter name can be used more than once, for example:
   *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
   * It is an error to execute an SQL query with unbound parameters.
   * Parameter values are specified using `params`, which is a JSON
   * object whose keys are parameter names, and whose values are the
   * corresponding parameter values.
   * 
* * .google.protobuf.Struct params = 4; */ public boolean hasParams() { return params_ != null; } /** *
   * The SQL query string can contain parameter placeholders. A parameter
   * placeholder consists of `'@'` followed by the parameter
   * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
   * numbers, and underscores.
   * Parameters can appear anywhere that a literal value is expected.  The same
   * parameter name can be used more than once, for example:
   *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
   * It is an error to execute an SQL query with unbound parameters.
   * Parameter values are specified using `params`, which is a JSON
   * object whose keys are parameter names, and whose values are the
   * corresponding parameter values.
   * 
* * .google.protobuf.Struct params = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct getParams() { return params_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : params_; } /** *
   * The SQL query string can contain parameter placeholders. A parameter
   * placeholder consists of `'@'` followed by the parameter
   * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
   * numbers, and underscores.
   * Parameters can appear anywhere that a literal value is expected.  The same
   * parameter name can be used more than once, for example:
   *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
   * It is an error to execute an SQL query with unbound parameters.
   * Parameter values are specified using `params`, which is a JSON
   * object whose keys are parameter names, and whose values are the
   * corresponding parameter values.
   * 
* * .google.protobuf.Struct params = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder getParamsOrBuilder() { return getParams(); } public static final int PARAM_TYPES_FIELD_NUMBER = 5; private static final class ParamTypesDefaultEntryHolder { static final nl.topicus.jdbc.shaded.com.google.protobuf.MapEntry< java.lang.String, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type> defaultEntry = nl.topicus.jdbc.shaded.com.google.protobuf.MapEntry .newDefaultInstance( nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_ParamTypesEntry_descriptor, nl.topicus.jdbc.shaded.com.google.protobuf.WireFormat.FieldType.STRING, "", nl.topicus.jdbc.shaded.com.google.protobuf.WireFormat.FieldType.MESSAGE, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type.getDefaultInstance()); } private nl.topicus.jdbc.shaded.com.google.protobuf.MapField< java.lang.String, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type> paramTypes_; private nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetParamTypes() { if (paramTypes_ == null) { return nl.topicus.jdbc.shaded.com.google.protobuf.MapField.emptyMapField( ParamTypesDefaultEntryHolder.defaultEntry); } return paramTypes_; } public int getParamTypesCount() { return internalGetParamTypes().getMap().size(); } /** *
   * It is not always possible for Cloud Spanner to infer the right SQL type
   * from a JSON value.  For example, values of type `BYTES` and values
   * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
   * In these cases, `param_types` can be used to specify the exact
   * SQL type for some or all of the SQL query parameters. See the
   * definition of [Type][google.spanner.v1.Type] for more information
   * about SQL types.
   * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public boolean containsParamTypes( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetParamTypes().getMap().containsKey(key); } /** * Use {@link #getParamTypesMap()} instead. */ @java.lang.Deprecated public java.util.Map getParamTypes() { return getParamTypesMap(); } /** *
   * It is not always possible for Cloud Spanner to infer the right SQL type
   * from a JSON value.  For example, values of type `BYTES` and values
   * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
   * In these cases, `param_types` can be used to specify the exact
   * SQL type for some or all of the SQL query parameters. See the
   * definition of [Type][google.spanner.v1.Type] for more information
   * about SQL types.
   * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public java.util.Map getParamTypesMap() { return internalGetParamTypes().getMap(); } /** *
   * It is not always possible for Cloud Spanner to infer the right SQL type
   * from a JSON value.  For example, values of type `BYTES` and values
   * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
   * In these cases, `param_types` can be used to specify the exact
   * SQL type for some or all of the SQL query parameters. See the
   * definition of [Type][google.spanner.v1.Type] for more information
   * about SQL types.
   * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Type getParamTypesOrDefault( java.lang.String key, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParamTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * It is not always possible for Cloud Spanner to infer the right SQL type
   * from a JSON value.  For example, values of type `BYTES` and values
   * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
   * In these cases, `param_types` can be used to specify the exact
   * SQL type for some or all of the SQL query parameters. See the
   * definition of [Type][google.spanner.v1.Type] for more information
   * about SQL types.
   * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Type getParamTypesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParamTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int RESUME_TOKEN_FIELD_NUMBER = 6; private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString resumeToken_; /** *
   * If this request is resuming a previously interrupted SQL query
   * execution, `resume_token` should be copied from the last
   * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
   * enables the new SQL query execution to resume where the last one left
   * off. The rest of the request parameters must exactly match the
   * request that yielded this token.
   * 
* * bytes resume_token = 6; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getResumeToken() { return resumeToken_; } public static final int QUERY_MODE_FIELD_NUMBER = 7; private int queryMode_; /** *
   * Used to control the amount of debugging information returned in
   * [ResultSetStats][google.spanner.v1.ResultSetStats].
   * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public int getQueryModeValue() { return queryMode_; } /** *
   * Used to control the amount of debugging information returned in
   * [ResultSetStats][google.spanner.v1.ResultSetStats].
   * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode getQueryMode() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode result = nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.valueOf(queryMode_); return result == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream output) throws java.nl.topicus.jdbc.shaded.io.IOException { if (!getSessionBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, session_); } if (transaction_ != null) { output.writeMessage(2, getTransaction()); } if (!getSqlBytes().isEmpty()) { nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sql_); } if (params_ != null) { output.writeMessage(4, getParams()); } nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetParamTypes(), ParamTypesDefaultEntryHolder.defaultEntry, 5); if (!resumeToken_.isEmpty()) { output.writeBytes(6, resumeToken_); } if (queryMode_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL.getNumber()) { output.writeEnum(7, queryMode_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getSessionBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.nl.topicus.jdbc.shaded.com.uteStringSize(1, session_); } if (transaction_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(2, getTransaction()); } if (!getSqlBytes().isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.nl.topicus.jdbc.shaded.com.uteStringSize(3, sql_); } if (params_ != null) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(4, getParams()); } for (java.util.Map.Entry entry : internalGetParamTypes().getMap().entrySet()) { nl.topicus.jdbc.shaded.com.google.protobuf.MapEntry paramTypes__ = ParamTypesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteMessageSize(5, paramTypes__); } if (!resumeToken_.isEmpty()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteBytesSize(6, resumeToken_); } if (queryMode_ != nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.NORMAL.getNumber()) { size += nl.topicus.jdbc.shaded.com.google.protobuf.CodedOutputStream .nl.topicus.jdbc.shaded.com.uteEnumSize(7, queryMode_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest)) { return super.equals(obj); } nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest other = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest) obj; boolean result = true; result = result && getSession() .equals(other.getSession()); result = result && (hasTransaction() == other.hasTransaction()); if (hasTransaction()) { result = result && getTransaction() .equals(other.getTransaction()); } result = result && getSql() .equals(other.getSql()); result = result && (hasParams() == other.hasParams()); if (hasParams()) { result = result && getParams() .equals(other.getParams()); } result = result && internalGetParamTypes().equals( other.internalGetParamTypes()); result = result && getResumeToken() .equals(other.getResumeToken()); result = result && queryMode_ == other.queryMode_; return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); if (hasTransaction()) { hash = (37 * hash) + TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getTransaction().hashCode(); } hash = (37 * hash) + SQL_FIELD_NUMBER; hash = (53 * hash) + getSql().hashCode(); if (hasParams()) { hash = (37 * hash) + PARAMS_FIELD_NUMBER; hash = (53 * hash) + getParams().hashCode(); } if (!internalGetParamTypes().getMap().isEmpty()) { hash = (37 * hash) + PARAM_TYPES_FIELD_NUMBER; hash = (53 * hash) + internalGetParamTypes().hashCode(); } hash = (37 * hash) + RESUME_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getResumeToken().hashCode(); hash = (37 * hash) + QUERY_MODE_FIELD_NUMBER; hash = (53 * hash) + queryMode_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( java.nio.ByteBuffer data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( java.nio.ByteBuffer data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom(byte[] data) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( byte[] data, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom(java.nl.topicus.jdbc.shaded.io.InputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( java.nl.topicus.jdbc.shaded.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseDelimitedFrom(java.nl.topicus.jdbc.shaded.io.InputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseDelimitedFrom( java.nl.topicus.jdbc.shaded.io.InputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parseFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { return nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * The request for [ExecuteSql][google.spanner.v1.Spanner.ExecuteSql] and
   * [ExecuteStreamingSql][google.spanner.v1.Spanner.ExecuteStreamingSql].
   * 
* * Protobuf type {@code google.spanner.v1.ExecuteSqlRequest} */ public static final class Builder extends nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.spanner.v1.ExecuteSqlRequest) nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequestOrBuilder { public static final nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 5: return internalGetParamTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 5: return internalGetMutableParamTypes(); default: throw new RuntimeException( "Invalid map field number: " + number); } } protected nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.class, nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.Builder.class); } // Construct using nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (nl.topicus.jdbc.shaded.com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); session_ = ""; if (transactionBuilder_ == null) { transaction_ = null; } else { transaction_ = null; transactionBuilder_ = null; } sql_ = ""; if (paramsBuilder_ == null) { params_ = null; } else { params_ = null; paramsBuilder_ = null; } internalGetMutableParamTypes().clear(); resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; queryMode_ = 0; return this; } public nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.SpannerProto.internal_static_google_spanner_v1_ExecuteSqlRequest_descriptor; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest getDefaultInstanceForType() { return nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance(); } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest build() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest buildPartial() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest result = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.session_ = session_; if (transactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = transactionBuilder_.build(); } result.sql_ = sql_; if (paramsBuilder_ == null) { result.params_ = params_; } else { result.params_ = paramsBuilder_.build(); } result.paramTypes_ = internalGetParamTypes(); result.paramTypes_.makeImmutable(); result.resumeToken_ = resumeToken_; result.queryMode_ = queryMode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( nl.topicus.jdbc.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.protobuf.Message other) { if (other instanceof nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest) { return mergeFrom((nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest other) { if (other == nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.getDefaultInstance()) return this; if (!other.getSession().isEmpty()) { session_ = other.session_; onChanged(); } if (other.hasTransaction()) { mergeTransaction(other.getTransaction()); } if (!other.getSql().isEmpty()) { sql_ = other.sql_; onChanged(); } if (other.hasParams()) { mergeParams(other.getParams()); } internalGetMutableParamTypes().mergeFrom( other.internalGetParamTypes()); if (other.getResumeToken() != nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken()); } if (other.queryMode_ != 0) { setQueryModeValue(other.getQueryModeValue()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.nl.topicus.jdbc.shaded.io.IOException { nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object session_ = ""; /** *
     * Required. The session in which the SQL query should be performed.
     * 
* * string session = 1; */ public java.lang.String getSession() { java.lang.Object ref = session_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); session_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The session in which the SQL query should be performed.
     * 
* * string session = 1; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSessionBytes() { java.lang.Object ref = session_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); session_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Required. The session in which the SQL query should be performed.
     * 
* * string session = 1; */ public Builder setSession( java.lang.String value) { if (value == null) { throw new NullPointerException(); } session_ = value; onChanged(); return this; } /** *
     * Required. The session in which the SQL query should be performed.
     * 
* * string session = 1; */ public Builder clearSession() { session_ = getDefaultInstance().getSession(); onChanged(); return this; } /** *
     * Required. The session in which the SQL query should be performed.
     * 
* * string session = 1; */ public Builder setSessionBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); session_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector transaction_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder> transactionBuilder_; /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public boolean hasTransaction() { return transactionBuilder_ != null || transaction_ != null; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector getTransaction() { if (transactionBuilder_ == null) { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } else { return transactionBuilder_.getMessage(); } } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder setTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector value) { if (transactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { transactionBuilder_.setMessage(value); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder setTransaction( nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder builderForValue) { if (transactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { transactionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder mergeTransaction(nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector value) { if (transactionBuilder_ == null) { if (transaction_ != null) { transaction_ = nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.newBuilder(transaction_).mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { transactionBuilder_.mergeFrom(value); } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public Builder clearTransaction() { if (transactionBuilder_ == null) { transaction_ = null; onChanged(); } else { transaction_ = null; transactionBuilder_ = null; } return this; } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder getTransactionBuilder() { onChanged(); return getTransactionFieldBuilder().getBuilder(); } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder getTransactionOrBuilder() { if (transactionBuilder_ != null) { return transactionBuilder_.getMessageOrBuilder(); } else { return transaction_ == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.getDefaultInstance() : transaction_; } } /** *
     * The transaction to use. If none is provided, the default is a
     * temporary read-only transaction with strong concurrency.
     * 
* * .google.spanner.v1.TransactionSelector transaction = 2; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder> getTransactionFieldBuilder() { if (transactionBuilder_ == null) { transactionBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelector.Builder, nl.topicus.jdbc.shaded.com.google.spanner.v1.TransactionSelectorOrBuilder>( getTransaction(), getParentForChildren(), isClean()); transaction_ = null; } return transactionBuilder_; } private java.lang.Object sql_ = ""; /** *
     * Required. The SQL query string.
     * 
* * string sql = 3; */ public java.lang.String getSql() { java.lang.Object ref = sql_; if (!(ref instanceof java.lang.String)) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString bs = (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sql_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Required. The SQL query string.
     * 
* * string sql = 3; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getSqlBytes() { java.lang.Object ref = sql_; if (ref instanceof String) { nl.topicus.jdbc.shaded.com.google.protobuf.ByteString b = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); sql_ = b; return b; } else { return (nl.topicus.jdbc.shaded.com.google.protobuf.ByteString) ref; } } /** *
     * Required. The SQL query string.
     * 
* * string sql = 3; */ public Builder setSql( java.lang.String value) { if (value == null) { throw new NullPointerException(); } sql_ = value; onChanged(); return this; } /** *
     * Required. The SQL query string.
     * 
* * string sql = 3; */ public Builder clearSql() { sql_ = getDefaultInstance().getSql(); onChanged(); return this; } /** *
     * Required. The SQL query string.
     * 
* * string sql = 3; */ public Builder setSqlBytes( nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sql_ = value; onChanged(); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.Struct params_ = null; private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder> paramsBuilder_; /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public boolean hasParams() { return paramsBuilder_ != null || params_ != null; } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct getParams() { if (paramsBuilder_ == null) { return params_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : params_; } else { return paramsBuilder_.getMessage(); } } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public Builder setParams(nl.topicus.jdbc.shaded.com.google.protobuf.Struct value) { if (paramsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } params_ = value; onChanged(); } else { paramsBuilder_.setMessage(value); } return this; } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public Builder setParams( nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder builderForValue) { if (paramsBuilder_ == null) { params_ = builderForValue.build(); onChanged(); } else { paramsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public Builder mergeParams(nl.topicus.jdbc.shaded.com.google.protobuf.Struct value) { if (paramsBuilder_ == null) { if (params_ != null) { params_ = nl.topicus.jdbc.shaded.com.google.protobuf.Struct.newBuilder(params_).mergeFrom(value).buildPartial(); } else { params_ = value; } onChanged(); } else { paramsBuilder_.mergeFrom(value); } return this; } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public Builder clearParams() { if (paramsBuilder_ == null) { params_ = null; onChanged(); } else { params_ = null; paramsBuilder_ = null; } return this; } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder getParamsBuilder() { onChanged(); return getParamsFieldBuilder().getBuilder(); } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ public nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder getParamsOrBuilder() { if (paramsBuilder_ != null) { return paramsBuilder_.getMessageOrBuilder(); } else { return params_ == null ? nl.topicus.jdbc.shaded.com.google.protobuf.Struct.getDefaultInstance() : params_; } } /** *
     * The SQL query string can contain parameter placeholders. A parameter
     * placeholder consists of `'@'` followed by the parameter
     * name. Parameter names consist of any nl.topicus.jdbc.shaded.com.ination of letters,
     * numbers, and underscores.
     * Parameters can appear anywhere that a literal value is expected.  The same
     * parameter name can be used more than once, for example:
     *   `"WHERE id > @msg_id AND id < @msg_id + 100"`
     * It is an error to execute an SQL query with unbound parameters.
     * Parameter values are specified using `params`, which is a JSON
     * object whose keys are parameter names, and whose values are the
     * corresponding parameter values.
     * 
* * .google.protobuf.Struct params = 4; */ private nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder> getParamsFieldBuilder() { if (paramsBuilder_ == null) { paramsBuilder_ = new nl.topicus.jdbc.shaded.com.google.protobuf.SingleFieldBuilderV3< nl.topicus.jdbc.shaded.com.google.protobuf.Struct, nl.topicus.jdbc.shaded.com.google.protobuf.Struct.Builder, nl.topicus.jdbc.shaded.com.google.protobuf.StructOrBuilder>( getParams(), getParentForChildren(), isClean()); params_ = null; } return paramsBuilder_; } private nl.topicus.jdbc.shaded.com.google.protobuf.MapField< java.lang.String, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type> paramTypes_; private nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetParamTypes() { if (paramTypes_ == null) { return nl.topicus.jdbc.shaded.com.google.protobuf.MapField.emptyMapField( ParamTypesDefaultEntryHolder.defaultEntry); } return paramTypes_; } private nl.topicus.jdbc.shaded.com.google.protobuf.MapField internalGetMutableParamTypes() { onChanged();; if (paramTypes_ == null) { paramTypes_ = nl.topicus.jdbc.shaded.com.google.protobuf.MapField.newMapField( ParamTypesDefaultEntryHolder.defaultEntry); } if (!paramTypes_.isMutable()) { paramTypes_ = paramTypes_.copy(); } return paramTypes_; } public int getParamTypesCount() { return internalGetParamTypes().getMap().size(); } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public boolean containsParamTypes( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetParamTypes().getMap().containsKey(key); } /** * Use {@link #getParamTypesMap()} instead. */ @java.lang.Deprecated public java.util.Map getParamTypes() { return getParamTypesMap(); } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public java.util.Map getParamTypesMap() { return internalGetParamTypes().getMap(); } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Type getParamTypesOrDefault( java.lang.String key, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParamTypes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.Type getParamTypesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetParamTypes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearParamTypes() { internalGetMutableParamTypes().getMutableMap() .clear(); return this; } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public Builder removeParamTypes( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableParamTypes().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParamTypes() { return internalGetMutableParamTypes().getMutableMap(); } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public Builder putParamTypes( java.lang.String key, nl.topicus.jdbc.shaded.com.google.spanner.v1.Type value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableParamTypes().getMutableMap() .put(key, value); return this; } /** *
     * It is not always possible for Cloud Spanner to infer the right SQL type
     * from a JSON value.  For example, values of type `BYTES` and values
     * of type `STRING` both appear in [params][google.spanner.v1.ExecuteSqlRequest.params] as JSON strings.
     * In these cases, `param_types` can be used to specify the exact
     * SQL type for some or all of the SQL query parameters. See the
     * definition of [Type][google.spanner.v1.Type] for more information
     * about SQL types.
     * 
* * map<string, .google.spanner.v1.Type> param_types = 5; */ public Builder putAllParamTypes( java.util.Map values) { internalGetMutableParamTypes().getMutableMap() .putAll(values); return this; } private nl.topicus.jdbc.shaded.com.google.protobuf.ByteString resumeToken_ = nl.topicus.jdbc.shaded.com.google.protobuf.ByteString.EMPTY; /** *
     * If this request is resuming a previously interrupted SQL query
     * execution, `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new SQL query execution to resume where the last one left
     * off. The rest of the request parameters must exactly match the
     * request that yielded this token.
     * 
* * bytes resume_token = 6; */ public nl.topicus.jdbc.shaded.com.google.protobuf.ByteString getResumeToken() { return resumeToken_; } /** *
     * If this request is resuming a previously interrupted SQL query
     * execution, `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new SQL query execution to resume where the last one left
     * off. The rest of the request parameters must exactly match the
     * request that yielded this token.
     * 
* * bytes resume_token = 6; */ public Builder setResumeToken(nl.topicus.jdbc.shaded.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } resumeToken_ = value; onChanged(); return this; } /** *
     * If this request is resuming a previously interrupted SQL query
     * execution, `resume_token` should be copied from the last
     * [PartialResultSet][google.spanner.v1.PartialResultSet] yielded before the interruption. Doing this
     * enables the new SQL query execution to resume where the last one left
     * off. The rest of the request parameters must exactly match the
     * request that yielded this token.
     * 
* * bytes resume_token = 6; */ public Builder clearResumeToken() { resumeToken_ = getDefaultInstance().getResumeToken(); onChanged(); return this; } private int queryMode_ = 0; /** *
     * Used to control the amount of debugging information returned in
     * [ResultSetStats][google.spanner.v1.ResultSetStats].
     * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public int getQueryModeValue() { return queryMode_; } /** *
     * Used to control the amount of debugging information returned in
     * [ResultSetStats][google.spanner.v1.ResultSetStats].
     * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public Builder setQueryModeValue(int value) { queryMode_ = value; onChanged(); return this; } /** *
     * Used to control the amount of debugging information returned in
     * [ResultSetStats][google.spanner.v1.ResultSetStats].
     * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode getQueryMode() { nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode result = nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.valueOf(queryMode_); return result == null ? nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode.UNRECOGNIZED : result; } /** *
     * Used to control the amount of debugging information returned in
     * [ResultSetStats][google.spanner.v1.ResultSetStats].
     * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public Builder setQueryMode(nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest.QueryMode value) { if (value == null) { throw new NullPointerException(); } queryMode_ = value.getNumber(); onChanged(); return this; } /** *
     * Used to control the amount of debugging information returned in
     * [ResultSetStats][google.spanner.v1.ResultSetStats].
     * 
* * .google.spanner.v1.ExecuteSqlRequest.QueryMode query_mode = 7; */ public Builder clearQueryMode() { queryMode_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final nl.topicus.jdbc.shaded.com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder setSessionWithSessionName(nl.topicus.jdbc.shaded.com.google.spanner.v1.SessionName value) { if (value == null) { return setSession(""); } return setSession(value.toString()); } public final nl.topicus.jdbc.shaded.com.google.spanner.v1.SessionName getSessionAsSessionName() { java.lang.String str = getSession(); if (str.isEmpty()) { return null; } return nl.topicus.jdbc.shaded.com.google.spanner.v1.SessionName.parse(str); } // @@protoc_insertion_point(builder_scope:google.spanner.v1.ExecuteSqlRequest) } public final nl.topicus.jdbc.shaded.com.google.spanner.v1.SessionName getSessionAsSessionName() { java.lang.String str = getSession(); if (str.isEmpty()) { return null; } return nl.topicus.jdbc.shaded.com.google.spanner.v1.SessionName.parse(str); } // @@protoc_insertion_point(class_scope:google.spanner.v1.ExecuteSqlRequest) private static final nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest(); } public static nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final nl.topicus.jdbc.shaded.com.google.protobuf.Parser PARSER = new nl.topicus.jdbc.shaded.com.google.protobuf.AbstractParser() { public ExecuteSqlRequest parsePartialFrom( nl.topicus.jdbc.shaded.com.google.protobuf.CodedInputStream input, nl.topicus.jdbc.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws nl.topicus.jdbc.shaded.com.google.protobuf.InvalidProtocolBufferException { return new ExecuteSqlRequest(input, extensionRegistry); } }; public static nl.topicus.jdbc.shaded.com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public nl.topicus.jdbc.shaded.com.google.protobuf.Parser getParserForType() { return PARSER; } public nl.topicus.jdbc.shaded.com.google.spanner.v1.ExecuteSqlRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy