From 1c3a9ca04cfbf647f8a528be2b34dac8a2c86887 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 4 Dec 2024 08:03:03 -0800 Subject: [PATCH] feat: Chat Apps can now retrieve the import mode expire time information to know when to complete the import mode properly (#7877) docs: Update reference documentation to include import_mode_expire_time field PiperOrigin-RevId: 702468699 Source-Link: https://github.com/googleapis/googleapis/commit/608531f2fa278d8cdf362c1b04550c5b5f2a1599 Source-Link: https://github.com/googleapis/googleapis-gen/commit/59d7d9462080ce01d1e3642c1c571a35cfce3796 Copy-Tag: eyJwIjoiQXBwc0NoYXQvLk93bEJvdC55YW1sIiwiaCI6IjU5ZDdkOTQ2MjA4MGNlMDFkMWUzNjQyYzFjNTcxYTM1Y2ZjZTM3OTYifQ== --- AppsChat/metadata/Chat/V1/Space.php | Bin 4824 -> 4890 bytes AppsChat/src/Chat/V1/Space.php | 60 ++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/AppsChat/metadata/Chat/V1/Space.php b/AppsChat/metadata/Chat/V1/Space.php index d677ec095933d709abd04fe77a26373767f8dc90..5504f5780ffdd9120a567312053453a8169b86e8 100644 GIT binary patch delta 64 zcmV-G0Kfm(C7LF%=mG)Xlj#Dm0rs<+1GfVm5D+Ca&%v9Z)9a(Wq5FDa%Eq1 WX>DZ~9FuwlAp`^9K?Ac<2Zswwco)9_ delta 25 hcmbQGc0+Z;3ns?7lV37zVBE5K7V~!I&6C;NxdD{53c>&Y diff --git a/AppsChat/src/Chat/V1/Space.php b/AppsChat/src/Chat/V1/Space.php index 5ec5b13d3147..9fe556109f1e 100644 --- a/AppsChat/src/Chat/V1/Space.php +++ b/AppsChat/src/Chat/V1/Space.php @@ -159,6 +159,16 @@ class Space extends \Google\Protobuf\Internal\Message * Generated from protobuf field string space_uri = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $space_uri = ''; + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $import_mode_expire_time = null; protected $space_permission_settings; /** @@ -249,6 +259,12 @@ class Space extends \Google\Protobuf\Internal\Message * Optional. Space permission settings for existing spaces. Input for * updating exact space permission settings, where existing permission * settings are replaced. Output lists current permission settings. + * @type \Google\Protobuf\Timestamp $import_mode_expire_time + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. * } */ public function __construct($data = NULL) { @@ -906,6 +922,50 @@ public function setPermissionSettings($var) return $this; } + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getImportModeExpireTime() + { + return $this->import_mode_expire_time; + } + + public function hasImportModeExpireTime() + { + return isset($this->import_mode_expire_time); + } + + public function clearImportModeExpireTime() + { + unset($this->import_mode_expire_time); + } + + /** + * Output only. The time when the space will be automatically deleted by the + * system if it remains in import mode. + * Each space created in import mode must exit this mode before this expire + * time using `spaces.completeImport`. + * This field is only populated for spaces that were created with import mode. + * + * Generated from protobuf field .google.protobuf.Timestamp import_mode_expire_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setImportModeExpireTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->import_mode_expire_time = $var; + + return $this; + } + /** * @return string */