diff --git a/BigQueryConnection/metadata/V1/Connection.php b/BigQueryConnection/metadata/V1/Connection.php
index bb1cf9754b5..3d351b921ca 100644
Binary files a/BigQueryConnection/metadata/V1/Connection.php and b/BigQueryConnection/metadata/V1/Connection.php differ
diff --git a/BigQueryConnection/src/V1/Connection.php b/BigQueryConnection/src/V1/Connection.php
index 5e09b59500f..0d3ece9e1ea 100644
--- a/BigQueryConnection/src/V1/Connection.php
+++ b/BigQueryConnection/src/V1/Connection.php
@@ -78,6 +78,8 @@ class Connection extends \Google\Protobuf\Internal\Message
* Cloud Spanner properties.
* @type \Google\Cloud\BigQuery\Connection\V1\CloudResourceProperties $cloud_resource
* Cloud Resource properties.
+ * @type \Google\Cloud\BigQuery\Connection\V1\SparkProperties $spark
+ * Spark properties.
* @type int|string $creation_time
* Output only. The creation timestamp of the connection.
* @type int|string $last_modified_time
@@ -326,6 +328,37 @@ public function setCloudResource($var)
return $this;
}
+ /**
+ * Spark properties.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.SparkProperties spark = 23;
+ * @return \Google\Cloud\BigQuery\Connection\V1\SparkProperties|null
+ */
+ public function getSpark()
+ {
+ return $this->readOneof(23);
+ }
+
+ public function hasSpark()
+ {
+ return $this->hasOneof(23);
+ }
+
+ /**
+ * Spark properties.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.SparkProperties spark = 23;
+ * @param \Google\Cloud\BigQuery\Connection\V1\SparkProperties $var
+ * @return $this
+ */
+ public function setSpark($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Connection\V1\SparkProperties::class);
+ $this->writeOneof(23, $var);
+
+ return $this;
+ }
+
/**
* Output only. The creation timestamp of the connection.
*
diff --git a/BigQueryConnection/src/V1/MetastoreServiceConfig.php b/BigQueryConnection/src/V1/MetastoreServiceConfig.php
new file mode 100644
index 00000000000..42e46ee1973
--- /dev/null
+++ b/BigQueryConnection/src/V1/MetastoreServiceConfig.php
@@ -0,0 +1,75 @@
+google.cloud.bigquery.connection.v1.MetastoreServiceConfig
+ */
+class MetastoreServiceConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Resource name of an existing Dataproc Metastore service.
+ * Example:
+ * * `projects/[project_id]/locations/[region]/services/[service_id]`
+ *
+ * Generated from protobuf field string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ */
+ private $metastore_service = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $metastore_service
+ * Optional. Resource name of an existing Dataproc Metastore service.
+ * Example:
+ * * `projects/[project_id]/locations/[region]/services/[service_id]`
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Bigquery\Connection\V1\Connection::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Resource name of an existing Dataproc Metastore service.
+ * Example:
+ * * `projects/[project_id]/locations/[region]/services/[service_id]`
+ *
+ * Generated from protobuf field string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getMetastoreService()
+ {
+ return $this->metastore_service;
+ }
+
+ /**
+ * Optional. Resource name of an existing Dataproc Metastore service.
+ * Example:
+ * * `projects/[project_id]/locations/[region]/services/[service_id]`
+ *
+ * Generated from protobuf field string metastore_service = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setMetastoreService($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->metastore_service = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/BigQueryConnection/src/V1/SparkHistoryServerConfig.php b/BigQueryConnection/src/V1/SparkHistoryServerConfig.php
new file mode 100644
index 00000000000..6391db4eb5d
--- /dev/null
+++ b/BigQueryConnection/src/V1/SparkHistoryServerConfig.php
@@ -0,0 +1,79 @@
+google.cloud.bigquery.connection.v1.SparkHistoryServerConfig
+ */
+class SparkHistoryServerConfig extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+ * History Server for the connection.
+ * Example:
+ * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+ *
+ * Generated from protobuf field string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ */
+ private $dataproc_cluster = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $dataproc_cluster
+ * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+ * History Server for the connection.
+ * Example:
+ * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Bigquery\Connection\V1\Connection::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+ * History Server for the connection.
+ * Example:
+ * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+ *
+ * Generated from protobuf field string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @return string
+ */
+ public function getDataprocCluster()
+ {
+ return $this->dataproc_cluster;
+ }
+
+ /**
+ * Optional. Resource name of an existing Dataproc Cluster to act as a Spark
+ * History Server for the connection.
+ * Example:
+ * * `projects/[project_id]/regions/[region]/clusters/[cluster_name]`
+ *
+ * Generated from protobuf field string dataproc_cluster = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
+ * @param string $var
+ * @return $this
+ */
+ public function setDataprocCluster($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->dataproc_cluster = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/BigQueryConnection/src/V1/SparkProperties.php b/BigQueryConnection/src/V1/SparkProperties.php
new file mode 100644
index 00000000000..475b174f4fd
--- /dev/null
+++ b/BigQueryConnection/src/V1/SparkProperties.php
@@ -0,0 +1,188 @@
+google.cloud.bigquery.connection.v1.SparkProperties
+ */
+class SparkProperties extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Output only. The account ID of the service created for the purpose of this
+ * connection.
+ * 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
+ * connect to the desired resources in Google Cloud.
+ * The account ID is in the form of:
+ * bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+ *
+ * Generated from protobuf field string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $service_account_id = '';
+ /**
+ * Optional. Dataproc Metastore Service configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $metastore_service_config = null;
+ /**
+ * Optional. Spark History Server configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $spark_history_server_config = null;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $service_account_id
+ * Output only. The account ID of the service created for the purpose of this
+ * connection.
+ * 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
+ * connect to the desired resources in Google Cloud.
+ * The account ID is in the form of:
+ * bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+ * @type \Google\Cloud\BigQuery\Connection\V1\MetastoreServiceConfig $metastore_service_config
+ * Optional. Dataproc Metastore Service configuration for the connection.
+ * @type \Google\Cloud\BigQuery\Connection\V1\SparkHistoryServerConfig $spark_history_server_config
+ * Optional. Spark History Server configuration for the connection.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Bigquery\Connection\V1\Connection::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Output only. The account ID of the service created for the purpose of this
+ * connection.
+ * 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
+ * connect to the desired resources in Google Cloud.
+ * The account ID is in the form of:
+ * bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+ *
+ * Generated from protobuf field string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getServiceAccountId()
+ {
+ return $this->service_account_id;
+ }
+
+ /**
+ * Output only. The account ID of the service created for the purpose of this
+ * connection.
+ * 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
+ * connect to the desired resources in Google Cloud.
+ * The account ID is in the form of:
+ * bqcx--@gcp-sa-bigquery-consp.iam.gserviceaccount.com
+ *
+ * Generated from protobuf field string service_account_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setServiceAccountId($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->service_account_id = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Dataproc Metastore Service configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\BigQuery\Connection\V1\MetastoreServiceConfig|null
+ */
+ public function getMetastoreServiceConfig()
+ {
+ return $this->metastore_service_config;
+ }
+
+ public function hasMetastoreServiceConfig()
+ {
+ return isset($this->metastore_service_config);
+ }
+
+ public function clearMetastoreServiceConfig()
+ {
+ unset($this->metastore_service_config);
+ }
+
+ /**
+ * Optional. Dataproc Metastore Service configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.MetastoreServiceConfig metastore_service_config = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\BigQuery\Connection\V1\MetastoreServiceConfig $var
+ * @return $this
+ */
+ public function setMetastoreServiceConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Connection\V1\MetastoreServiceConfig::class);
+ $this->metastore_service_config = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. Spark History Server configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Cloud\BigQuery\Connection\V1\SparkHistoryServerConfig|null
+ */
+ public function getSparkHistoryServerConfig()
+ {
+ return $this->spark_history_server_config;
+ }
+
+ public function hasSparkHistoryServerConfig()
+ {
+ return isset($this->spark_history_server_config);
+ }
+
+ public function clearSparkHistoryServerConfig()
+ {
+ unset($this->spark_history_server_config);
+ }
+
+ /**
+ * Optional. Spark History Server configuration for the connection.
+ *
+ * Generated from protobuf field .google.cloud.bigquery.connection.v1.SparkHistoryServerConfig spark_history_server_config = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * @param \Google\Cloud\BigQuery\Connection\V1\SparkHistoryServerConfig $var
+ * @return $this
+ */
+ public function setSparkHistoryServerConfig($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\BigQuery\Connection\V1\SparkHistoryServerConfig::class);
+ $this->spark_history_server_config = $var;
+
+ return $this;
+ }
+
+}
+