Skip to content

Commit

Permalink
feat: Adding new fields for Serverless analytics (#1816)
Browse files Browse the repository at this point in the history
* feat: Adding new fields for Serverless analytics

PiperOrigin-RevId: 513499163

Source-Link: googleapis/googleapis@c3ffffa

Source-Link: googleapis/googleapis-gen@3e262dc
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2UyNjJkYzg2YTllNzNlYTBiNmNmZDdkMTlhYzc2ODVhYzM0YTBlNSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Mar 6, 2023
1 parent 21af00c commit 2a6ca6f
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
14 changes: 14 additions & 0 deletions protos/google/spanner/v1/spanner.proto
Expand Up @@ -643,6 +643,13 @@ message ExecuteSqlRequest {

// Common options for this request.
RequestOptions request_options = 11;

// If this is for a partitioned read and this field is set to `true`, the
// request will be executed via Spanner independent compute resources.
//
// If the field is set to `true` but the request does not set
// `partition_token`, the API will return an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 15;
}

// The request for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml].
Expand Down Expand Up @@ -949,6 +956,13 @@ message ReadRequest {

// Common options for this request.
RequestOptions request_options = 11;

// If this is for a partitioned query and this field is set to `true`, the
// request will be executed via Spanner independent compute resources.
//
// If the field is set to `true` but the request does not set
// `partition_token`, the API will return an `INVALID_ARGUMENT` error.
bool data_boost_enabled = 16;
}

// The request for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction].
Expand Down
12 changes: 12 additions & 0 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions src/v1/spanner_client.ts
Expand Up @@ -824,6 +824,12 @@ export class SpannerClient {
* Query optimizer configuration to use for the given query.
* @param {google.spanner.v1.RequestOptions} request.requestOptions
* Common options for this request.
* @param {boolean} request.dataBoostEnabled
* If this is for a partitioned read and this field is set to `true`, the
* request will be executed via Spanner independent compute resources.
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API will return an `INVALID_ARGUMENT` error.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down Expand Up @@ -1075,6 +1081,12 @@ export class SpannerClient {
* PartitionReadRequest message used to create this partition_token.
* @param {google.spanner.v1.RequestOptions} request.requestOptions
* Common options for this request.
* @param {boolean} request.dataBoostEnabled
* If this is for a partitioned query and this field is set to `true`, the
* request will be executed via Spanner independent compute resources.
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API will return an `INVALID_ARGUMENT` error.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
Expand Down Expand Up @@ -1770,6 +1782,12 @@ export class SpannerClient {
* Query optimizer configuration to use for the given query.
* @param {google.spanner.v1.RequestOptions} request.requestOptions
* Common options for this request.
* @param {boolean} request.dataBoostEnabled
* If this is for a partitioned read and this field is set to `true`, the
* request will be executed via Spanner independent compute resources.
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API will return an `INVALID_ARGUMENT` error.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Stream}
Expand Down Expand Up @@ -1848,6 +1866,12 @@ export class SpannerClient {
* PartitionReadRequest message used to create this partition_token.
* @param {google.spanner.v1.RequestOptions} request.requestOptions
* Common options for this request.
* @param {boolean} request.dataBoostEnabled
* If this is for a partitioned query and this field is set to `true`, the
* request will be executed via Spanner independent compute resources.
*
* If the field is set to `true` but the request does not set
* `partition_token`, the API will return an `INVALID_ARGUMENT` error.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Stream}
Expand Down

0 comments on commit 2a6ca6f

Please sign in to comment.