diff --git a/packages/google-chat/protos/google/chat/v1/space.proto b/packages/google-chat/protos/google/chat/v1/space.proto index da6c0fe3a8d..47b1aa1ac54 100644 --- a/packages/google-chat/protos/google/chat/v1/space.proto +++ b/packages/google-chat/protos/google/chat/v1/space.proto @@ -338,6 +338,16 @@ message Space { PermissionSettings permission_settings = 27 [(google.api.field_behavior) = OPTIONAL]; } + + // 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. + google.protobuf.Timestamp import_mode_expire_time = 28 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A request to create a named space with no members. diff --git a/packages/google-chat/protos/protos.d.ts b/packages/google-chat/protos/protos.d.ts index 0a9a36298c6..465a6dd8af7 100644 --- a/packages/google-chat/protos/protos.d.ts +++ b/packages/google-chat/protos/protos.d.ts @@ -17790,6 +17790,9 @@ export namespace google { /** Space permissionSettings */ permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null); + + /** Space importModeExpireTime */ + importModeExpireTime?: (google.protobuf.ITimestamp|null); } /** Represents a Space. */ @@ -17858,6 +17861,9 @@ export namespace google { /** Space permissionSettings. */ public permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null); + /** Space importModeExpireTime. */ + public importModeExpireTime?: (google.protobuf.ITimestamp|null); + /** Space spacePermissionSettings. */ public spacePermissionSettings?: ("predefinedPermissionSettings"|"permissionSettings"); diff --git a/packages/google-chat/protos/protos.js b/packages/google-chat/protos/protos.js index b2276ca4cda..af236cc1541 100644 --- a/packages/google-chat/protos/protos.js +++ b/packages/google-chat/protos/protos.js @@ -45729,6 +45729,7 @@ * @property {string|null} [spaceUri] Space spaceUri * @property {google.chat.v1.Space.PredefinedPermissionSettings|null} [predefinedPermissionSettings] Space predefinedPermissionSettings * @property {google.chat.v1.Space.IPermissionSettings|null} [permissionSettings] Space permissionSettings + * @property {google.protobuf.ITimestamp|null} [importModeExpireTime] Space importModeExpireTime */ /** @@ -45898,6 +45899,14 @@ */ Space.prototype.permissionSettings = null; + /** + * Space importModeExpireTime. + * @member {google.protobuf.ITimestamp|null|undefined} importModeExpireTime + * @memberof google.chat.v1.Space + * @instance + */ + Space.prototype.importModeExpireTime = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -45974,6 +45983,8 @@ writer.uint32(/* id 26, wireType 0 =*/208).int32(message.predefinedPermissionSettings); if (message.permissionSettings != null && Object.hasOwnProperty.call(message, "permissionSettings")) $root.google.chat.v1.Space.PermissionSettings.encode(message.permissionSettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.importModeExpireTime != null && Object.hasOwnProperty.call(message, "importModeExpireTime")) + $root.google.protobuf.Timestamp.encode(message.importModeExpireTime, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); return writer; }; @@ -46084,6 +46095,10 @@ message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.decode(reader, reader.uint32()); break; } + case 28: { + message.importModeExpireTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -46228,6 +46243,11 @@ return "permissionSettings." + error; } } + if (message.importModeExpireTime != null && message.hasOwnProperty("importModeExpireTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.importModeExpireTime); + if (error) + return "importModeExpireTime." + error; + } return null; }; @@ -46397,6 +46417,11 @@ throw TypeError(".google.chat.v1.Space.permissionSettings: object expected"); message.permissionSettings = $root.google.chat.v1.Space.PermissionSettings.fromObject(object.permissionSettings); } + if (object.importModeExpireTime != null) { + if (typeof object.importModeExpireTime !== "object") + throw TypeError(".google.chat.v1.Space.importModeExpireTime: object expected"); + message.importModeExpireTime = $root.google.protobuf.Timestamp.fromObject(object.importModeExpireTime); + } return message; }; @@ -46431,6 +46456,7 @@ object.membershipCount = null; object.accessSettings = null; object.spaceUri = ""; + object.importModeExpireTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -46476,6 +46502,8 @@ if (options.oneofs) object.spacePermissionSettings = "permissionSettings"; } + if (message.importModeExpireTime != null && message.hasOwnProperty("importModeExpireTime")) + object.importModeExpireTime = $root.google.protobuf.Timestamp.toObject(message.importModeExpireTime, options); return object; }; diff --git a/packages/google-chat/protos/protos.json b/packages/google-chat/protos/protos.json index 24452a65547..7e5a6ad9d6f 100644 --- a/packages/google-chat/protos/protos.json +++ b/packages/google-chat/protos/protos.json @@ -4733,6 +4733,13 @@ "options": { "(google.api.field_behavior)": "OPTIONAL" } + }, + "importModeExpireTime": { + "type": "google.protobuf.Timestamp", + "id": 28, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": {