diff --git a/packages/google-cloud-bigquery-connection/README.md b/packages/google-cloud-bigquery-connection/README.md
index 0567eb61fcb..5eb4570e852 100644
--- a/packages/google-cloud-bigquery-connection/README.md
+++ b/packages/google-cloud-bigquery-connection/README.md
@@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
-# [Google BigQuery Connection: Node.js Client](https://github.com/googleapis/google-cloud-node)
+# [Google BigQuery Connection: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection)
[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/bigquery-connection.svg)](https://www.npmjs.org/package/@google-cloud/bigquery-connection)
@@ -85,29 +85,28 @@ const listConnectionsResponse = listConnections();
## Samples
-Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
+Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-bigquery-connection/samples) directory. Each sample's `README.md` has instructions for running its sample.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
-| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js,samples/README.md) |
-| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js,samples/README.md) |
-| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js,samples/README.md) |
-| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js,samples/README.md) |
-| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js,samples/README.md) |
-| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js,samples/README.md) |
-| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js,samples/README.md) |
-| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js,samples/README.md) |
-| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js,samples/README.md) |
-| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js,samples/README.md) |
-| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js,samples/README.md) |
-| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js,samples/README.md) |
-| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js,samples/README.md) |
-| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js,samples/README.md) |
-| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js,samples/README.md) |
-| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js,samples/README.md) |
-| Connection_service.update_connection_credential | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js,samples/README.md) |
-| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/quickstart.js,samples/README.md) |
-| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/test/quickstart.js,samples/README.md) |
+| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.create_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.delete_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.get_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.list_connections.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.set_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.test_iam_permissions.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1/connection_service.update_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.create_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.create_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.delete_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.delete_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.get_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.get_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.get_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.list_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.list_connections.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.set_iam_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.set_iam_policy.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.test_iam_permissions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.test_iam_permissions.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.update_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Connection_service.update_connection_credential | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/generated/v1beta1/connection_service.update_connection_credential.js,packages/google-cloud-bigquery-connection/samples/README.md) |
+| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/quickstart.js,packages/google-cloud-bigquery-connection/samples/README.md) |
diff --git a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto
index d1f416cc634..d09418ad71e 100644
--- a/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto
+++ b/packages/google-cloud-bigquery-connection/protos/google/cloud/bigquery/connection/v1/connection.proto
@@ -263,6 +263,12 @@ message Connection {
// Spark properties.
SparkProperties spark = 23;
+
+ // Optional. Salesforce DataCloud properties. This field is intended for
+ // use only by Salesforce partner projects. This field contains properties
+ // for your Salesforce DataCloud connection.
+ SalesforceDataCloudProperties salesforce_data_cloud = 24
+ [(google.api.field_behavior) = OPTIONAL];
}
// Output only. The creation timestamp of the connection.
@@ -327,23 +333,39 @@ message CloudSpannerProperties {
// If parallelism should be used when reading from Cloud Spanner
bool use_parallelism = 2;
+ // Allows setting max parallelism per query when executing on Spanner
+ // independent compute resources. If unspecified, default values of
+ // parallelism are chosen that are dependent on the Cloud Spanner instance
+ // configuration.
+ //
+ // REQUIRES: `use_parallelism` must be set.
+ // REQUIRES: Either `use_data_boost` or `use_serverless_analytics` must be
+ // set.
+ int32 max_parallelism = 5;
+
// If the serverless analytics service should be used to read data from Cloud
// Spanner.
// Note: `use_parallelism` must be set when using serverless analytics.
bool use_serverless_analytics = 3;
+ // If set, the request will be executed via Spanner independent compute
+ // resources.
+ // REQUIRES: `use_parallelism` must be set.
+ //
+ // NOTE: `use_serverless_analytics` will be deprecated. Prefer
+ // `use_data_boost` over `use_serverless_analytics`.
+ bool use_data_boost = 6;
+
// Optional. Cloud Spanner database role for fine-grained access control.
- // A database role is a collection of fine-grained access privileges. Example:
- // Admin predefines roles that provides user a set of permissions (SELECT,
- // INSERT, ..). The user can then specify a predefined role on a connection to
- // execute their Cloud Spanner query. The role is passthrough here. If the
- // user is not authorized to use the specified role, they get an error. This
- // validation happens on Cloud Spanner.
+ // The Cloud Spanner admin should have provisioned the database role with
+ // appropriate permissions, such as `SELECT` and `INSERT`. Other users should
+ // only use roles provided by their Cloud Spanner admins.
//
- // See https://cloud.google.com/spanner/docs/fgac-about for more details.
+ // For more details, see [About fine-grained access control]
+ // (https://cloud.google.com/spanner/docs/fgac-about).
//
- // REQUIRES: database role name must start with uppercase/lowercase letter
- // and only contain uppercase/lowercase letters, numbers, and underscores.
+ // REQUIRES: The database role name must start with a letter, and can only
+ // contain letters, numbers, and underscores.
string database_role = 4 [(google.api.field_behavior) = OPTIONAL];
}
@@ -476,7 +498,7 @@ message SparkProperties {
// The service account does not have any permissions associated with it when
// it is created. After creation, customers delegate permissions to the
// service account. When the connection is used in the context of a stored
- // procedure for Apache Spark in BigQuery, the service account will be used to
+ // procedure for Apache Spark in BigQuery, the service account is used to
// connect to the desired resources in Google Cloud.
//
// The account ID is in the form of:
@@ -491,3 +513,17 @@ message SparkProperties {
SparkHistoryServerConfig spark_history_server_config = 4
[(google.api.field_behavior) = OPTIONAL];
}
+
+// Connection properties specific to Salesforce DataCloud. This is intended for
+// use only by Salesforce partner projects.
+message SalesforceDataCloudProperties {
+ // The URL to the user's Salesforce DataCloud instance.
+ string instance_uri = 1;
+
+ // Output only. A unique Google-owned and Google-generated service account
+ // identity for the connection.
+ string identity = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // The ID of the user's Salesforce tenant.
+ string tenant_id = 3;
+}
diff --git a/packages/google-cloud-bigquery-connection/protos/protos.d.ts b/packages/google-cloud-bigquery-connection/protos/protos.d.ts
index 4cddfb3e7f5..0537f71b0c4 100644
--- a/packages/google-cloud-bigquery-connection/protos/protos.d.ts
+++ b/packages/google-cloud-bigquery-connection/protos/protos.d.ts
@@ -875,6 +875,9 @@ export namespace google {
/** Connection spark */
spark?: (google.cloud.bigquery.connection.v1.ISparkProperties|null);
+ /** Connection salesforceDataCloud */
+ salesforceDataCloud?: (google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties|null);
+
/** Connection creationTime */
creationTime?: (number|Long|string|null);
@@ -921,6 +924,9 @@ export namespace google {
/** Connection spark. */
public spark?: (google.cloud.bigquery.connection.v1.ISparkProperties|null);
+ /** Connection salesforceDataCloud. */
+ public salesforceDataCloud?: (google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties|null);
+
/** Connection creationTime. */
public creationTime: (number|Long|string);
@@ -931,7 +937,7 @@ export namespace google {
public hasCredential: boolean;
/** Connection properties. */
- public properties?: ("cloudSql"|"aws"|"azure"|"cloudSpanner"|"cloudResource"|"spark");
+ public properties?: ("cloudSql"|"aws"|"azure"|"cloudSpanner"|"cloudResource"|"spark"|"salesforceDataCloud");
/**
* Creates a new Connection instance using the specified properties.
@@ -1254,9 +1260,15 @@ export namespace google {
/** CloudSpannerProperties useParallelism */
useParallelism?: (boolean|null);
+ /** CloudSpannerProperties maxParallelism */
+ maxParallelism?: (number|null);
+
/** CloudSpannerProperties useServerlessAnalytics */
useServerlessAnalytics?: (boolean|null);
+ /** CloudSpannerProperties useDataBoost */
+ useDataBoost?: (boolean|null);
+
/** CloudSpannerProperties databaseRole */
databaseRole?: (string|null);
}
@@ -1276,9 +1288,15 @@ export namespace google {
/** CloudSpannerProperties useParallelism. */
public useParallelism: boolean;
+ /** CloudSpannerProperties maxParallelism. */
+ public maxParallelism: number;
+
/** CloudSpannerProperties useServerlessAnalytics. */
public useServerlessAnalytics: boolean;
+ /** CloudSpannerProperties useDataBoost. */
+ public useDataBoost: boolean;
+
/** CloudSpannerProperties databaseRole. */
public databaseRole: string;
@@ -2210,6 +2228,115 @@ export namespace google {
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
+
+ /** Properties of a SalesforceDataCloudProperties. */
+ interface ISalesforceDataCloudProperties {
+
+ /** SalesforceDataCloudProperties instanceUri */
+ instanceUri?: (string|null);
+
+ /** SalesforceDataCloudProperties identity */
+ identity?: (string|null);
+
+ /** SalesforceDataCloudProperties tenantId */
+ tenantId?: (string|null);
+ }
+
+ /** Represents a SalesforceDataCloudProperties. */
+ class SalesforceDataCloudProperties implements ISalesforceDataCloudProperties {
+
+ /**
+ * Constructs a new SalesforceDataCloudProperties.
+ * @param [properties] Properties to set
+ */
+ constructor(properties?: google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties);
+
+ /** SalesforceDataCloudProperties instanceUri. */
+ public instanceUri: string;
+
+ /** SalesforceDataCloudProperties identity. */
+ public identity: string;
+
+ /** SalesforceDataCloudProperties tenantId. */
+ public tenantId: string;
+
+ /**
+ * Creates a new SalesforceDataCloudProperties instance using the specified properties.
+ * @param [properties] Properties to set
+ * @returns SalesforceDataCloudProperties instance
+ */
+ public static create(properties?: google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties): google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties;
+
+ /**
+ * Encodes the specified SalesforceDataCloudProperties message. Does not implicitly {@link google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.verify|verify} messages.
+ * @param message SalesforceDataCloudProperties message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encode(message: google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Encodes the specified SalesforceDataCloudProperties message, length delimited. Does not implicitly {@link google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.verify|verify} messages.
+ * @param message SalesforceDataCloudProperties message or plain object to encode
+ * @param [writer] Writer to encode to
+ * @returns Writer
+ */
+ public static encodeDelimited(message: google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties, writer?: $protobuf.Writer): $protobuf.Writer;
+
+ /**
+ * Decodes a SalesforceDataCloudProperties message from the specified reader or buffer.
+ * @param reader Reader or buffer to decode from
+ * @param [length] Message length if known beforehand
+ * @returns SalesforceDataCloudProperties
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties;
+
+ /**
+ * Decodes a SalesforceDataCloudProperties message from the specified reader or buffer, length delimited.
+ * @param reader Reader or buffer to decode from
+ * @returns SalesforceDataCloudProperties
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties;
+
+ /**
+ * Verifies a SalesforceDataCloudProperties message.
+ * @param message Plain object to verify
+ * @returns `null` if valid, otherwise the reason why it is not
+ */
+ public static verify(message: { [k: string]: any }): (string|null);
+
+ /**
+ * Creates a SalesforceDataCloudProperties message from a plain object. Also converts values to their respective internal types.
+ * @param object Plain object
+ * @returns SalesforceDataCloudProperties
+ */
+ public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties;
+
+ /**
+ * Creates a plain object from a SalesforceDataCloudProperties message. Also converts values to other types if specified.
+ * @param message SalesforceDataCloudProperties
+ * @param [options] Conversion options
+ * @returns Plain object
+ */
+ public static toObject(message: google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties, options?: $protobuf.IConversionOptions): { [k: string]: any };
+
+ /**
+ * Converts this SalesforceDataCloudProperties to JSON.
+ * @returns JSON object
+ */
+ public toJSON(): { [k: string]: any };
+
+ /**
+ * Gets the default type url for SalesforceDataCloudProperties
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns The default type url
+ */
+ public static getTypeUrl(typeUrlPrefix?: string): string;
+ }
}
/** Namespace v1beta1. */
diff --git a/packages/google-cloud-bigquery-connection/protos/protos.js b/packages/google-cloud-bigquery-connection/protos/protos.js
index 591fa0327d5..2ba510f10f3 100644
--- a/packages/google-cloud-bigquery-connection/protos/protos.js
+++ b/packages/google-cloud-bigquery-connection/protos/protos.js
@@ -1808,6 +1808,7 @@
* @property {google.cloud.bigquery.connection.v1.ICloudSpannerProperties|null} [cloudSpanner] Connection cloudSpanner
* @property {google.cloud.bigquery.connection.v1.ICloudResourceProperties|null} [cloudResource] Connection cloudResource
* @property {google.cloud.bigquery.connection.v1.ISparkProperties|null} [spark] Connection spark
+ * @property {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties|null} [salesforceDataCloud] Connection salesforceDataCloud
* @property {number|Long|null} [creationTime] Connection creationTime
* @property {number|Long|null} [lastModifiedTime] Connection lastModifiedTime
* @property {boolean|null} [hasCredential] Connection hasCredential
@@ -1900,6 +1901,14 @@
*/
Connection.prototype.spark = null;
+ /**
+ * Connection salesforceDataCloud.
+ * @member {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties|null|undefined} salesforceDataCloud
+ * @memberof google.cloud.bigquery.connection.v1.Connection
+ * @instance
+ */
+ Connection.prototype.salesforceDataCloud = null;
+
/**
* Connection creationTime.
* @member {number|Long} creationTime
@@ -1929,12 +1938,12 @@
/**
* Connection properties.
- * @member {"cloudSql"|"aws"|"azure"|"cloudSpanner"|"cloudResource"|"spark"|undefined} properties
+ * @member {"cloudSql"|"aws"|"azure"|"cloudSpanner"|"cloudResource"|"spark"|"salesforceDataCloud"|undefined} properties
* @memberof google.cloud.bigquery.connection.v1.Connection
* @instance
*/
Object.defineProperty(Connection.prototype, "properties", {
- get: $util.oneOfGetter($oneOfFields = ["cloudSql", "aws", "azure", "cloudSpanner", "cloudResource", "spark"]),
+ get: $util.oneOfGetter($oneOfFields = ["cloudSql", "aws", "azure", "cloudSpanner", "cloudResource", "spark", "salesforceDataCloud"]),
set: $util.oneOfSetter($oneOfFields)
});
@@ -1986,6 +1995,8 @@
$root.google.cloud.bigquery.connection.v1.CloudResourceProperties.encode(message.cloudResource, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
if (message.spark != null && Object.hasOwnProperty.call(message, "spark"))
$root.google.cloud.bigquery.connection.v1.SparkProperties.encode(message.spark, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
+ if (message.salesforceDataCloud != null && Object.hasOwnProperty.call(message, "salesforceDataCloud"))
+ $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.encode(message.salesforceDataCloud, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
return writer;
};
@@ -2056,6 +2067,10 @@
message.spark = $root.google.cloud.bigquery.connection.v1.SparkProperties.decode(reader, reader.uint32());
break;
}
+ case 24: {
+ message.salesforceDataCloud = $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.decode(reader, reader.uint32());
+ break;
+ }
case 5: {
message.creationTime = reader.int64();
break;
@@ -2171,6 +2186,16 @@
return "spark." + error;
}
}
+ if (message.salesforceDataCloud != null && message.hasOwnProperty("salesforceDataCloud")) {
+ if (properties.properties === 1)
+ return "properties: multiple values";
+ properties.properties = 1;
+ {
+ var error = $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.verify(message.salesforceDataCloud);
+ if (error)
+ return "salesforceDataCloud." + error;
+ }
+ }
if (message.creationTime != null && message.hasOwnProperty("creationTime"))
if (!$util.isInteger(message.creationTime) && !(message.creationTime && $util.isInteger(message.creationTime.low) && $util.isInteger(message.creationTime.high)))
return "creationTime: integer|Long expected";
@@ -2231,6 +2256,11 @@
throw TypeError(".google.cloud.bigquery.connection.v1.Connection.spark: object expected");
message.spark = $root.google.cloud.bigquery.connection.v1.SparkProperties.fromObject(object.spark);
}
+ if (object.salesforceDataCloud != null) {
+ if (typeof object.salesforceDataCloud !== "object")
+ throw TypeError(".google.cloud.bigquery.connection.v1.Connection.salesforceDataCloud: object expected");
+ message.salesforceDataCloud = $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.fromObject(object.salesforceDataCloud);
+ }
if (object.creationTime != null)
if ($util.Long)
(message.creationTime = $util.Long.fromValue(object.creationTime)).unsigned = false;
@@ -2331,6 +2361,11 @@
if (options.oneofs)
object.properties = "spark";
}
+ if (message.salesforceDataCloud != null && message.hasOwnProperty("salesforceDataCloud")) {
+ object.salesforceDataCloud = $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.toObject(message.salesforceDataCloud, options);
+ if (options.oneofs)
+ object.properties = "salesforceDataCloud";
+ }
return object;
};
@@ -2939,7 +2974,9 @@
* @interface ICloudSpannerProperties
* @property {string|null} [database] CloudSpannerProperties database
* @property {boolean|null} [useParallelism] CloudSpannerProperties useParallelism
+ * @property {number|null} [maxParallelism] CloudSpannerProperties maxParallelism
* @property {boolean|null} [useServerlessAnalytics] CloudSpannerProperties useServerlessAnalytics
+ * @property {boolean|null} [useDataBoost] CloudSpannerProperties useDataBoost
* @property {string|null} [databaseRole] CloudSpannerProperties databaseRole
*/
@@ -2974,6 +3011,14 @@
*/
CloudSpannerProperties.prototype.useParallelism = false;
+ /**
+ * CloudSpannerProperties maxParallelism.
+ * @member {number} maxParallelism
+ * @memberof google.cloud.bigquery.connection.v1.CloudSpannerProperties
+ * @instance
+ */
+ CloudSpannerProperties.prototype.maxParallelism = 0;
+
/**
* CloudSpannerProperties useServerlessAnalytics.
* @member {boolean} useServerlessAnalytics
@@ -2982,6 +3027,14 @@
*/
CloudSpannerProperties.prototype.useServerlessAnalytics = false;
+ /**
+ * CloudSpannerProperties useDataBoost.
+ * @member {boolean} useDataBoost
+ * @memberof google.cloud.bigquery.connection.v1.CloudSpannerProperties
+ * @instance
+ */
+ CloudSpannerProperties.prototype.useDataBoost = false;
+
/**
* CloudSpannerProperties databaseRole.
* @member {string} databaseRole
@@ -3022,6 +3075,10 @@
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.useServerlessAnalytics);
if (message.databaseRole != null && Object.hasOwnProperty.call(message, "databaseRole"))
writer.uint32(/* id 4, wireType 2 =*/34).string(message.databaseRole);
+ if (message.maxParallelism != null && Object.hasOwnProperty.call(message, "maxParallelism"))
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxParallelism);
+ if (message.useDataBoost != null && Object.hasOwnProperty.call(message, "useDataBoost"))
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.useDataBoost);
return writer;
};
@@ -3064,10 +3121,18 @@
message.useParallelism = reader.bool();
break;
}
+ case 5: {
+ message.maxParallelism = reader.int32();
+ break;
+ }
case 3: {
message.useServerlessAnalytics = reader.bool();
break;
}
+ case 6: {
+ message.useDataBoost = reader.bool();
+ break;
+ }
case 4: {
message.databaseRole = reader.string();
break;
@@ -3113,9 +3178,15 @@
if (message.useParallelism != null && message.hasOwnProperty("useParallelism"))
if (typeof message.useParallelism !== "boolean")
return "useParallelism: boolean expected";
+ if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
+ if (!$util.isInteger(message.maxParallelism))
+ return "maxParallelism: integer expected";
if (message.useServerlessAnalytics != null && message.hasOwnProperty("useServerlessAnalytics"))
if (typeof message.useServerlessAnalytics !== "boolean")
return "useServerlessAnalytics: boolean expected";
+ if (message.useDataBoost != null && message.hasOwnProperty("useDataBoost"))
+ if (typeof message.useDataBoost !== "boolean")
+ return "useDataBoost: boolean expected";
if (message.databaseRole != null && message.hasOwnProperty("databaseRole"))
if (!$util.isString(message.databaseRole))
return "databaseRole: string expected";
@@ -3138,8 +3209,12 @@
message.database = String(object.database);
if (object.useParallelism != null)
message.useParallelism = Boolean(object.useParallelism);
+ if (object.maxParallelism != null)
+ message.maxParallelism = object.maxParallelism | 0;
if (object.useServerlessAnalytics != null)
message.useServerlessAnalytics = Boolean(object.useServerlessAnalytics);
+ if (object.useDataBoost != null)
+ message.useDataBoost = Boolean(object.useDataBoost);
if (object.databaseRole != null)
message.databaseRole = String(object.databaseRole);
return message;
@@ -3163,6 +3238,8 @@
object.useParallelism = false;
object.useServerlessAnalytics = false;
object.databaseRole = "";
+ object.maxParallelism = 0;
+ object.useDataBoost = false;
}
if (message.database != null && message.hasOwnProperty("database"))
object.database = message.database;
@@ -3172,6 +3249,10 @@
object.useServerlessAnalytics = message.useServerlessAnalytics;
if (message.databaseRole != null && message.hasOwnProperty("databaseRole"))
object.databaseRole = message.databaseRole;
+ if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism"))
+ object.maxParallelism = message.maxParallelism;
+ if (message.useDataBoost != null && message.hasOwnProperty("useDataBoost"))
+ object.useDataBoost = message.useDataBoost;
return object;
};
@@ -5154,6 +5235,256 @@
return SparkProperties;
})();
+ v1.SalesforceDataCloudProperties = (function() {
+
+ /**
+ * Properties of a SalesforceDataCloudProperties.
+ * @memberof google.cloud.bigquery.connection.v1
+ * @interface ISalesforceDataCloudProperties
+ * @property {string|null} [instanceUri] SalesforceDataCloudProperties instanceUri
+ * @property {string|null} [identity] SalesforceDataCloudProperties identity
+ * @property {string|null} [tenantId] SalesforceDataCloudProperties tenantId
+ */
+
+ /**
+ * Constructs a new SalesforceDataCloudProperties.
+ * @memberof google.cloud.bigquery.connection.v1
+ * @classdesc Represents a SalesforceDataCloudProperties.
+ * @implements ISalesforceDataCloudProperties
+ * @constructor
+ * @param {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties=} [properties] Properties to set
+ */
+ function SalesforceDataCloudProperties(properties) {
+ if (properties)
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
+ if (properties[keys[i]] != null)
+ this[keys[i]] = properties[keys[i]];
+ }
+
+ /**
+ * SalesforceDataCloudProperties instanceUri.
+ * @member {string} instanceUri
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @instance
+ */
+ SalesforceDataCloudProperties.prototype.instanceUri = "";
+
+ /**
+ * SalesforceDataCloudProperties identity.
+ * @member {string} identity
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @instance
+ */
+ SalesforceDataCloudProperties.prototype.identity = "";
+
+ /**
+ * SalesforceDataCloudProperties tenantId.
+ * @member {string} tenantId
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @instance
+ */
+ SalesforceDataCloudProperties.prototype.tenantId = "";
+
+ /**
+ * Creates a new SalesforceDataCloudProperties instance using the specified properties.
+ * @function create
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties=} [properties] Properties to set
+ * @returns {google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties} SalesforceDataCloudProperties instance
+ */
+ SalesforceDataCloudProperties.create = function create(properties) {
+ return new SalesforceDataCloudProperties(properties);
+ };
+
+ /**
+ * Encodes the specified SalesforceDataCloudProperties message. Does not implicitly {@link google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.verify|verify} messages.
+ * @function encode
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties} message SalesforceDataCloudProperties message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SalesforceDataCloudProperties.encode = function encode(message, writer) {
+ if (!writer)
+ writer = $Writer.create();
+ if (message.instanceUri != null && Object.hasOwnProperty.call(message, "instanceUri"))
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceUri);
+ if (message.identity != null && Object.hasOwnProperty.call(message, "identity"))
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.identity);
+ if (message.tenantId != null && Object.hasOwnProperty.call(message, "tenantId"))
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.tenantId);
+ return writer;
+ };
+
+ /**
+ * Encodes the specified SalesforceDataCloudProperties message, length delimited. Does not implicitly {@link google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties.verify|verify} messages.
+ * @function encodeDelimited
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {google.cloud.bigquery.connection.v1.ISalesforceDataCloudProperties} message SalesforceDataCloudProperties message or plain object to encode
+ * @param {$protobuf.Writer} [writer] Writer to encode to
+ * @returns {$protobuf.Writer} Writer
+ */
+ SalesforceDataCloudProperties.encodeDelimited = function encodeDelimited(message, writer) {
+ return this.encode(message, writer).ldelim();
+ };
+
+ /**
+ * Decodes a SalesforceDataCloudProperties message from the specified reader or buffer.
+ * @function decode
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @param {number} [length] Message length if known beforehand
+ * @returns {google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties} SalesforceDataCloudProperties
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SalesforceDataCloudProperties.decode = function decode(reader, length) {
+ if (!(reader instanceof $Reader))
+ reader = $Reader.create(reader);
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties();
+ while (reader.pos < end) {
+ var tag = reader.uint32();
+ switch (tag >>> 3) {
+ case 1: {
+ message.instanceUri = reader.string();
+ break;
+ }
+ case 2: {
+ message.identity = reader.string();
+ break;
+ }
+ case 3: {
+ message.tenantId = reader.string();
+ break;
+ }
+ default:
+ reader.skipType(tag & 7);
+ break;
+ }
+ }
+ return message;
+ };
+
+ /**
+ * Decodes a SalesforceDataCloudProperties message from the specified reader or buffer, length delimited.
+ * @function decodeDelimited
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
+ * @returns {google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties} SalesforceDataCloudProperties
+ * @throws {Error} If the payload is not a reader or valid buffer
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
+ */
+ SalesforceDataCloudProperties.decodeDelimited = function decodeDelimited(reader) {
+ if (!(reader instanceof $Reader))
+ reader = new $Reader(reader);
+ return this.decode(reader, reader.uint32());
+ };
+
+ /**
+ * Verifies a SalesforceDataCloudProperties message.
+ * @function verify
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {Object.} message Plain object to verify
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
+ */
+ SalesforceDataCloudProperties.verify = function verify(message) {
+ if (typeof message !== "object" || message === null)
+ return "object expected";
+ if (message.instanceUri != null && message.hasOwnProperty("instanceUri"))
+ if (!$util.isString(message.instanceUri))
+ return "instanceUri: string expected";
+ if (message.identity != null && message.hasOwnProperty("identity"))
+ if (!$util.isString(message.identity))
+ return "identity: string expected";
+ if (message.tenantId != null && message.hasOwnProperty("tenantId"))
+ if (!$util.isString(message.tenantId))
+ return "tenantId: string expected";
+ return null;
+ };
+
+ /**
+ * Creates a SalesforceDataCloudProperties message from a plain object. Also converts values to their respective internal types.
+ * @function fromObject
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {Object.} object Plain object
+ * @returns {google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties} SalesforceDataCloudProperties
+ */
+ SalesforceDataCloudProperties.fromObject = function fromObject(object) {
+ if (object instanceof $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties)
+ return object;
+ var message = new $root.google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties();
+ if (object.instanceUri != null)
+ message.instanceUri = String(object.instanceUri);
+ if (object.identity != null)
+ message.identity = String(object.identity);
+ if (object.tenantId != null)
+ message.tenantId = String(object.tenantId);
+ return message;
+ };
+
+ /**
+ * Creates a plain object from a SalesforceDataCloudProperties message. Also converts values to other types if specified.
+ * @function toObject
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties} message SalesforceDataCloudProperties
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
+ * @returns {Object.} Plain object
+ */
+ SalesforceDataCloudProperties.toObject = function toObject(message, options) {
+ if (!options)
+ options = {};
+ var object = {};
+ if (options.defaults) {
+ object.instanceUri = "";
+ object.identity = "";
+ object.tenantId = "";
+ }
+ if (message.instanceUri != null && message.hasOwnProperty("instanceUri"))
+ object.instanceUri = message.instanceUri;
+ if (message.identity != null && message.hasOwnProperty("identity"))
+ object.identity = message.identity;
+ if (message.tenantId != null && message.hasOwnProperty("tenantId"))
+ object.tenantId = message.tenantId;
+ return object;
+ };
+
+ /**
+ * Converts this SalesforceDataCloudProperties to JSON.
+ * @function toJSON
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @instance
+ * @returns {Object.} JSON object
+ */
+ SalesforceDataCloudProperties.prototype.toJSON = function toJSON() {
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
+ };
+
+ /**
+ * Gets the default type url for SalesforceDataCloudProperties
+ * @function getTypeUrl
+ * @memberof google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties
+ * @static
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
+ * @returns {string} The default type url
+ */
+ SalesforceDataCloudProperties.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
+ if (typeUrlPrefix === undefined) {
+ typeUrlPrefix = "type.googleapis.com";
+ }
+ return typeUrlPrefix + "/google.cloud.bigquery.connection.v1.SalesforceDataCloudProperties";
+ };
+
+ return SalesforceDataCloudProperties;
+ })();
+
return v1;
})();
diff --git a/packages/google-cloud-bigquery-connection/protos/protos.json b/packages/google-cloud-bigquery-connection/protos/protos.json
index bafbf5a0e06..89016ec936c 100644
--- a/packages/google-cloud-bigquery-connection/protos/protos.json
+++ b/packages/google-cloud-bigquery-connection/protos/protos.json
@@ -306,7 +306,8 @@
"azure",
"cloudSpanner",
"cloudResource",
- "spark"
+ "spark",
+ "salesforceDataCloud"
]
}
},
@@ -347,6 +348,13 @@
"type": "SparkProperties",
"id": 23
},
+ "salesforceDataCloud": {
+ "type": "SalesforceDataCloudProperties",
+ "id": 24,
+ "options": {
+ "(google.api.field_behavior)": "OPTIONAL"
+ }
+ },
"creationTime": {
"type": "int64",
"id": 5,
@@ -431,10 +439,18 @@
"type": "bool",
"id": 2
},
+ "maxParallelism": {
+ "type": "int32",
+ "id": 5
+ },
"useServerlessAnalytics": {
"type": "bool",
"id": 3
},
+ "useDataBoost": {
+ "type": "bool",
+ "id": 6
+ },
"databaseRole": {
"type": "string",
"id": 4,
@@ -604,6 +620,25 @@
}
}
}
+ },
+ "SalesforceDataCloudProperties": {
+ "fields": {
+ "instanceUri": {
+ "type": "string",
+ "id": 1
+ },
+ "identity": {
+ "type": "string",
+ "id": 2,
+ "options": {
+ "(google.api.field_behavior)": "OUTPUT_ONLY"
+ }
+ },
+ "tenantId": {
+ "type": "string",
+ "id": 3
+ }
+ }
}
}
},
diff --git a/packages/google-cloud-bigquery-connection/samples/README.md b/packages/google-cloud-bigquery-connection/samples/README.md
index 4c865732496..58f8bae796a 100644
--- a/packages/google-cloud-bigquery-connection/samples/README.md
+++ b/packages/google-cloud-bigquery-connection/samples/README.md
@@ -30,7 +30,6 @@
* [Connection_service.update_connection](#connection_service.update_connection)
* [Connection_service.update_connection_credential](#connection_service.update_connection_credential)
* [Quickstart](#quickstart)
- * [Quickstart](#quickstart)
## Before you begin
@@ -348,23 +347,6 @@ __Usage:__
`node packages/google-cloud-bigquery-connection/samples/quickstart.js`
------
-
-
-
-
-### Quickstart
-
-View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-bigquery-connection/samples/test/quickstart.js).
-
-[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-bigquery-connection/samples/test/quickstart.js,samples/README.md)
-
-__Usage:__
-
-
-`node packages/google-cloud-bigquery-connection/samples/test/quickstart.js`
-
-
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata.google.cloud.bigquery.connection.v1.json b/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata.google.cloud.bigquery.connection.v1.json
index 27235fe6c0c..d8049e370f1 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata.google.cloud.bigquery.connection.v1.json
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata.google.cloud.bigquery.connection.v1.json
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-connection",
- "version": "2.2.0",
+ "version": "2.2.1",
"language": "TYPESCRIPT",
"apis": [
{
diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json b/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json
index 7f37a8f601f..a79354c4cce 100644
--- a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json
+++ b/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.connection.v1beta1.json
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-connection",
- "version": "2.2.0",
+ "version": "2.2.1",
"language": "TYPESCRIPT",
"apis": [
{