@SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableParamTypes(); default: throw new RuntimeException("Invalid map field number: " + number); } }
/** * * * <pre> * 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 statement parameters. See the * definition of [Type][google.spanner.v1.Type] for more information * about SQL types. * </pre> * * <code>map<string, .google.spanner.v1.Type> param_types = 5;</code> */ public Builder putParamTypes(java.lang.String key, 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; } /**
/** * * * <pre> * 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 statement parameters. See the * definition of [Type][google.spanner.v1.Type] for more information * about SQL types. * </pre> * * <code>map<string, .google.spanner.v1.Type> param_types = 5;</code> */ 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. */
mergeParams(other.getParams()); internalGetMutableParamTypes().mergeFrom(other.internalGetParamTypes()); if (other.getResumeToken() != com.google.protobuf.ByteString.EMPTY) { setResumeToken(other.getResumeToken());
@java.lang.Override 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_ = com.google.protobuf.ByteString.EMPTY; queryMode_ = 0; partitionToken_ = com.google.protobuf.ByteString.EMPTY; seqno_ = 0L; return this; }
/** * * * <pre> * 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 statement parameters. See the * definition of [Type][google.spanner.v1.Type] for more information * about SQL types. * </pre> * * <code>map<string, .google.spanner.v1.Type> param_types = 5;</code> */ public Builder putAllParamTypes( java.util.Map<java.lang.String, com.google.spanner.v1.Type> values) { internalGetMutableParamTypes().getMutableMap().putAll(values); return this; }
/** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.spanner.v1.Type> getMutableParamTypes() { return internalGetMutableParamTypes().getMutableMap(); } /**
public Builder clearParamTypes() { internalGetMutableParamTypes().getMutableMap().clear(); return this; } /**