From 0f600d27c9331d40a463b971b2fea8f26e14f56e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 10 May 2024 16:25:45 -0400 Subject: [PATCH] fix!: An existing field `source_gcs_uri` is renamed to `source_gcs_bucket` in message `.google.cloud.parallelstore.v1beta.ImportDataRequest` (#7302) fix!: An existing field `destination_path` is renamed to `destination_parallelstore` in message `.google.cloud.parallelstore.v1beta.ImportDataRequest` fix!: An existing field `source_path` is renamed to `source_parallelstore` in message `.google.cloud.parallelstore.v1beta.ExportDataRequest` fix!: An existing field `destination_gcs_uri` is renamed to `destination_gcs_bucket` in message `.google.cloud.parallelstore.v1beta.ExportDataRequest` feat: A new message `SourceGcsBucket` is added feat: A new message `DestinationGcsBucket` is added feat: A new message `SourceParallelstore` is added feat: A new message `DestinationParallelstore` is added PiperOrigin-RevId: 631870782 Source-Link: https://github.com/googleapis/googleapis/commit/29bdbeb032a9842cdfa61cc1c2c558b2ac81696c Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8f3df6bb5211106528fbf67f34c5e3adf96eee1 Copy-Tag: eyJwIjoiUGFyYWxsZWxzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiYzhmM2RmNmJiNTIxMTEwNjUyOGZiZjY3ZjM0YzVlM2FkZjk2ZWVlMSJ9 --- .../metadata/V1Beta/Parallelstore.php | Bin 6731 -> 7139 bytes .../src/V1beta/DestinationGcsBucket.php | 71 ++++++++++++++++++ .../src/V1beta/DestinationParallelstore.php | 71 ++++++++++++++++++ .../src/V1beta/ExportDataRequest.php | 54 ++++++------- .../src/V1beta/ImportDataRequest.php | 54 ++++++------- Parallelstore/src/V1beta/SourceGcsBucket.php | 71 ++++++++++++++++++ .../src/V1beta/SourceParallelstore.php | 71 ++++++++++++++++++ 7 files changed, 332 insertions(+), 60 deletions(-) create mode 100644 Parallelstore/src/V1beta/DestinationGcsBucket.php create mode 100644 Parallelstore/src/V1beta/DestinationParallelstore.php create mode 100644 Parallelstore/src/V1beta/SourceGcsBucket.php create mode 100644 Parallelstore/src/V1beta/SourceParallelstore.php diff --git a/Parallelstore/metadata/V1Beta/Parallelstore.php b/Parallelstore/metadata/V1Beta/Parallelstore.php index b61f54a8f05fe1c9e924f0011758d4ceafd1d37c..1a44eae83d79177200351e5a0494a6e277f31784 100644 GIT binary patch delta 467 zcmX?Y^4NUCe`cmB`kNV9EII3yx%h+gON)|I-II%*N|UowON0ctm`jT?B^VVLH8`D^ zA2>28X>f_Sq!yQC<|US7=I7y8DGV_#Ah9ShCnq(hxFo+QRY;JFr692+17Rkkk}j77 z(9CF
Wu!3@@F4blp79#+>)4&string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ protected $uri = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $uri
+ * Required. URI to a Cloud Storage object in format:
+ * 'gs://string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getUri()
+ {
+ return $this->uri;
+ }
+
+ /**
+ * Required. URI to a Cloud Storage object in format:
+ * 'gs://string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setUri($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->uri = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Parallelstore/src/V1beta/DestinationParallelstore.php b/Parallelstore/src/V1beta/DestinationParallelstore.php
new file mode 100644
index 000000000000..aa269c4cff8f
--- /dev/null
+++ b/Parallelstore/src/V1beta/DestinationParallelstore.php
@@ -0,0 +1,71 @@
+google.cloud.parallelstore.v1beta.DestinationParallelstore
+ */
+class DestinationParallelstore extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $path = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $path
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Parallelstore\V1Beta\Parallelstore::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getPath()
+ {
+ return $this->path;
+ }
+
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setPath($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->path = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Parallelstore/src/V1beta/ExportDataRequest.php b/Parallelstore/src/V1beta/ExportDataRequest.php
index 1bd142857555..ae44382b9a09 100644
--- a/Parallelstore/src/V1beta/ExportDataRequest.php
+++ b/Parallelstore/src/V1beta/ExportDataRequest.php
@@ -47,12 +47,10 @@ class ExportDataRequest extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type string $source_path
- * Optional. Root directory path to the Paralellstore filesystem, starting
- * with '/'. Sets to '/' if no value is set.
- * @type string $destination_gcs_uri
- * URI to a Cloud Storage object in format:
- * 'gs://string source_path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.SourceParallelstore source_parallelstore = 2;
+ * @return \Google\Cloud\Parallelstore\V1beta\SourceParallelstore|null
*/
- public function getSourcePath()
+ public function getSourceParallelstore()
{
return $this->readOneof(2);
}
- public function hasSourcePath()
+ public function hasSourceParallelstore()
{
return $this->hasOneof(2);
}
/**
- * Optional. Root directory path to the Paralellstore filesystem, starting
- * with '/'. Sets to '/' if no value is set.
+ * Parallelstore source.
*
- * Generated from protobuf field string source_path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.SourceParallelstore source_parallelstore = 2;
+ * @param \Google\Cloud\Parallelstore\V1beta\SourceParallelstore $var
* @return $this
*/
- public function setSourcePath($var)
+ public function setSourceParallelstore($var)
{
- GPBUtil::checkString($var, True);
+ GPBUtil::checkMessage($var, \Google\Cloud\Parallelstore\V1beta\SourceParallelstore::class);
$this->writeOneof(2, $var);
return $this;
}
/**
- * URI to a Cloud Storage object in format:
- * 'gs://string destination_gcs_uri = 3;
- * @return string
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.DestinationGcsBucket destination_gcs_bucket = 3;
+ * @return \Google\Cloud\Parallelstore\V1beta\DestinationGcsBucket|null
*/
- public function getDestinationGcsUri()
+ public function getDestinationGcsBucket()
{
return $this->readOneof(3);
}
- public function hasDestinationGcsUri()
+ public function hasDestinationGcsBucket()
{
return $this->hasOneof(3);
}
/**
- * URI to a Cloud Storage object in format:
- * 'gs://string destination_gcs_uri = 3;
- * @param string $var
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.DestinationGcsBucket destination_gcs_bucket = 3;
+ * @param \Google\Cloud\Parallelstore\V1beta\DestinationGcsBucket $var
* @return $this
*/
- public function setDestinationGcsUri($var)
+ public function setDestinationGcsBucket($var)
{
- GPBUtil::checkString($var, True);
+ GPBUtil::checkMessage($var, \Google\Cloud\Parallelstore\V1beta\DestinationGcsBucket::class);
$this->writeOneof(3, $var);
return $this;
diff --git a/Parallelstore/src/V1beta/ImportDataRequest.php b/Parallelstore/src/V1beta/ImportDataRequest.php
index 07cbafdb8fe0..22490bcf147b 100644
--- a/Parallelstore/src/V1beta/ImportDataRequest.php
+++ b/Parallelstore/src/V1beta/ImportDataRequest.php
@@ -47,12 +47,10 @@ class ImportDataRequest extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type string $source_gcs_uri
- * URI to a Cloud Storage object in format:
- * 'gs://string source_gcs_uri = 2;
- * @return string
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;
+ * @return \Google\Cloud\Parallelstore\V1beta\SourceGcsBucket|null
*/
- public function getSourceGcsUri()
+ public function getSourceGcsBucket()
{
return $this->readOneof(2);
}
- public function hasSourceGcsUri()
+ public function hasSourceGcsBucket()
{
return $this->hasOneof(2);
}
/**
- * URI to a Cloud Storage object in format:
- * 'gs://string source_gcs_uri = 2;
- * @param string $var
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.SourceGcsBucket source_gcs_bucket = 2;
+ * @param \Google\Cloud\Parallelstore\V1beta\SourceGcsBucket $var
* @return $this
*/
- public function setSourceGcsUri($var)
+ public function setSourceGcsBucket($var)
{
- GPBUtil::checkString($var, True);
+ GPBUtil::checkMessage($var, \Google\Cloud\Parallelstore\V1beta\SourceGcsBucket::class);
$this->writeOneof(2, $var);
return $this;
}
/**
- * Optional. Root directory path to the Paralellstore filesystem, starting
- * with '/'. Sets to '/' if no value is set.
+ * Parallelstore destination.
*
- * Generated from protobuf field string destination_path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;
+ * @return \Google\Cloud\Parallelstore\V1beta\DestinationParallelstore|null
*/
- public function getDestinationPath()
+ public function getDestinationParallelstore()
{
return $this->readOneof(3);
}
- public function hasDestinationPath()
+ public function hasDestinationParallelstore()
{
return $this->hasOneof(3);
}
/**
- * Optional. Root directory path to the Paralellstore filesystem, starting
- * with '/'. Sets to '/' if no value is set.
+ * Parallelstore destination.
*
- * Generated from protobuf field string destination_path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
+ * Generated from protobuf field .google.cloud.parallelstore.v1beta.DestinationParallelstore destination_parallelstore = 3;
+ * @param \Google\Cloud\Parallelstore\V1beta\DestinationParallelstore $var
* @return $this
*/
- public function setDestinationPath($var)
+ public function setDestinationParallelstore($var)
{
- GPBUtil::checkString($var, True);
+ GPBUtil::checkMessage($var, \Google\Cloud\Parallelstore\V1beta\DestinationParallelstore::class);
$this->writeOneof(3, $var);
return $this;
diff --git a/Parallelstore/src/V1beta/SourceGcsBucket.php b/Parallelstore/src/V1beta/SourceGcsBucket.php
new file mode 100644
index 000000000000..600704436b92
--- /dev/null
+++ b/Parallelstore/src/V1beta/SourceGcsBucket.php
@@ -0,0 +1,71 @@
+google.cloud.parallelstore.v1beta.SourceGcsBucket
+ */
+class SourceGcsBucket extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Required. URI to a Cloud Storage object in format:
+ * 'gs://string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ */
+ protected $uri = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $uri
+ * Required. URI to a Cloud Storage object in format:
+ * 'gs://string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @return string
+ */
+ public function getUri()
+ {
+ return $this->uri;
+ }
+
+ /**
+ * Required. URI to a Cloud Storage object in format:
+ * 'gs://string uri = 1 [(.google.api.field_behavior) = REQUIRED];
+ * @param string $var
+ * @return $this
+ */
+ public function setUri($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->uri = $var;
+
+ return $this;
+ }
+
+}
+
diff --git a/Parallelstore/src/V1beta/SourceParallelstore.php b/Parallelstore/src/V1beta/SourceParallelstore.php
new file mode 100644
index 000000000000..b3711c983c9a
--- /dev/null
+++ b/Parallelstore/src/V1beta/SourceParallelstore.php
@@ -0,0 +1,71 @@
+google.cloud.parallelstore.v1beta.SourceParallelstore
+ */
+class SourceParallelstore extends \Google\Protobuf\Internal\Message
+{
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $path = '';
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type string $path
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Cloud\Parallelstore\V1Beta\Parallelstore::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getPath()
+ {
+ return $this->path;
+ }
+
+ /**
+ * Optional. Root directory path to the Paralellstore filesystem, starting
+ * with '/'. Defaults to '/' if unset.
+ *
+ * Generated from protobuf field string path = 1 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setPath($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->path = $var;
+
+ return $this;
+ }
+
+}
+