diff --git a/Dataproc/metadata/V1/SessionTemplates.php b/Dataproc/metadata/V1/SessionTemplates.php index 2dfa7b62e810..e7a914ac6244 100644 Binary files a/Dataproc/metadata/V1/SessionTemplates.php and b/Dataproc/metadata/V1/SessionTemplates.php differ diff --git a/Dataproc/metadata/V1/Sessions.php b/Dataproc/metadata/V1/Sessions.php index 4b9e4dfa3e26..df6cb9893dc2 100644 Binary files a/Dataproc/metadata/V1/Sessions.php and b/Dataproc/metadata/V1/Sessions.php differ diff --git a/Dataproc/src/V1/ListSessionsRequest.php b/Dataproc/src/V1/ListSessionsRequest.php index 0e751d9b86e4..34b11a34bcdd 100644 --- a/Dataproc/src/V1/ListSessionsRequest.php +++ b/Dataproc/src/V1/ListSessionsRequest.php @@ -40,11 +40,12 @@ class ListSessionsRequest extends \Google\Protobuf\Internal\Message * A filter is a logical expression constraining the values of various fields * in each session resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND, OR). - * Supported fields are `session_id`, `session_uuid`, `state`, and - * `create_time`. + * Supported fields are `session_id`, `session_uuid`, `state`, `create_time`, + * and `labels`. * Example: `state = ACTIVE and create_time < "2023-01-01T00:00:00Z"` * is a filter for sessions in an ACTIVE state that were created before - * 2023-01-01. + * 2023-01-01. `state = ACTIVE and labels.environment=production` is a filter + * for sessions in an ACTIVE state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparators. * @@ -85,11 +86,12 @@ public static function build(string $parent): self * A filter is a logical expression constraining the values of various fields * in each session resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND, OR). - * Supported fields are `session_id`, `session_uuid`, `state`, and - * `create_time`. + * Supported fields are `session_id`, `session_uuid`, `state`, `create_time`, + * and `labels`. * Example: `state = ACTIVE and create_time < "2023-01-01T00:00:00Z"` * is a filter for sessions in an ACTIVE state that were created before - * 2023-01-01. + * 2023-01-01. `state = ACTIVE and labels.environment=production` is a filter + * for sessions in an ACTIVE state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparators. * } @@ -186,11 +188,12 @@ public function setPageToken($var) * A filter is a logical expression constraining the values of various fields * in each session resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND, OR). - * Supported fields are `session_id`, `session_uuid`, `state`, and - * `create_time`. + * Supported fields are `session_id`, `session_uuid`, `state`, `create_time`, + * and `labels`. * Example: `state = ACTIVE and create_time < "2023-01-01T00:00:00Z"` * is a filter for sessions in an ACTIVE state that were created before - * 2023-01-01. + * 2023-01-01. `state = ACTIVE and labels.environment=production` is a filter + * for sessions in an ACTIVE state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparators. * @@ -207,11 +210,12 @@ public function getFilter() * A filter is a logical expression constraining the values of various fields * in each session resource. Filters are case sensitive, and may contain * multiple clauses combined with logical operators (AND, OR). - * Supported fields are `session_id`, `session_uuid`, `state`, and - * `create_time`. + * Supported fields are `session_id`, `session_uuid`, `state`, `create_time`, + * and `labels`. * Example: `state = ACTIVE and create_time < "2023-01-01T00:00:00Z"` * is a filter for sessions in an ACTIVE state that were created before - * 2023-01-01. + * 2023-01-01. `state = ACTIVE and labels.environment=production` is a filter + * for sessions in an ACTIVE state that have a production environment label. * See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed * description of the filter syntax and a list of supported comparators. * diff --git a/Dataproc/src/V1/Session.php b/Dataproc/src/V1/Session.php index 75e01d9a988b..9c9a1bb3a6af 100644 --- a/Dataproc/src/V1/Session.php +++ b/Dataproc/src/V1/Session.php @@ -130,6 +130,8 @@ class Session extends \Google\Protobuf\Internal\Message * Output only. The time when the session was created. * @type \Google\Cloud\Dataproc\V1\JupyterConfig $jupyter_session * Optional. Jupyter session config. + * @type \Google\Cloud\Dataproc\V1\SparkConnectConfig $spark_connect_session + * Optional. Spark Connect session config. * @type \Google\Cloud\Dataproc\V1\RuntimeInfo $runtime_info * Output only. Runtime information about session execution. * @type int $state @@ -293,6 +295,37 @@ public function setJupyterSession($var) return $this; } + /** + * Optional. Spark Connect session config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataproc\V1\SparkConnectConfig|null + */ + public function getSparkConnectSession() + { + return $this->readOneof(17); + } + + public function hasSparkConnectSession() + { + return $this->hasOneof(17); + } + + /** + * Optional. Spark Connect session config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataproc\V1\SparkConnectConfig $var + * @return $this + */ + public function setSparkConnectSession($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\SparkConnectConfig::class); + $this->writeOneof(17, $var); + + return $this; + } + /** * Output only. Runtime information about session execution. * diff --git a/Dataproc/src/V1/SessionTemplate.php b/Dataproc/src/V1/SessionTemplate.php index 3c96f753f7cd..67f8bbc9f743 100644 --- a/Dataproc/src/V1/SessionTemplate.php +++ b/Dataproc/src/V1/SessionTemplate.php @@ -92,6 +92,8 @@ class SessionTemplate extends \Google\Protobuf\Internal\Message * Output only. The time when the template was created. * @type \Google\Cloud\Dataproc\V1\JupyterConfig $jupyter_session * Optional. Jupyter session config. + * @type \Google\Cloud\Dataproc\V1\SparkConnectConfig $spark_connect_session + * Optional. Spark Connect session config. * @type string $creator * Output only. The email address of the user who created the template. * @type array|\Google\Protobuf\Internal\MapField $labels @@ -237,6 +239,37 @@ public function setJupyterSession($var) return $this; } + /** + * Optional. Spark Connect session config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Dataproc\V1\SparkConnectConfig|null + */ + public function getSparkConnectSession() + { + return $this->readOneof(11); + } + + public function hasSparkConnectSession() + { + return $this->hasOneof(11); + } + + /** + * Optional. Spark Connect session config. + * + * Generated from protobuf field .google.cloud.dataproc.v1.SparkConnectConfig spark_connect_session = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Dataproc\V1\SparkConnectConfig $var + * @return $this + */ + public function setSparkConnectSession($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Dataproc\V1\SparkConnectConfig::class); + $this->writeOneof(11, $var); + + return $this; + } + /** * Output only. The email address of the user who created the template. * diff --git a/Dataproc/src/V1/SparkConnectConfig.php b/Dataproc/src/V1/SparkConnectConfig.php new file mode 100644 index 000000000000..abbf6f34ebbe --- /dev/null +++ b/Dataproc/src/V1/SparkConnectConfig.php @@ -0,0 +1,33 @@ +google.cloud.dataproc.v1.SparkConnectConfig + */ +class SparkConnectConfig extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataproc\V1\Sessions::initOnce(); + parent::__construct($data); + } + +} +