@@ -103,6 +103,39 @@ message Space {
103103 string guidelines = 2 ;
104104 }
105105
106+ // Represents the [access
107+ // setting](https://support.google.com/chat/answer/11971020) of the space.
108+ message AccessSettings {
109+ // Represents the access state of the space.
110+ enum AccessState {
111+ // Access state is unknown or not supported in this API.
112+ ACCESS_STATE_UNSPECIFIED = 0 ;
113+
114+ // Space is discoverable by added or invited members or groups.
115+ PRIVATE = 1 ;
116+
117+ // Space is discoverable by the selected [target
118+ // audience](https://support.google.com/a/answer/9934697), as well as
119+ // added or invited members or groups.
120+ DISCOVERABLE = 2 ;
121+ }
122+
123+ // Output only. Indicates the access state of the space.
124+ AccessState access_state = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
125+
126+ // Optional. The resource name of the [target
127+ // audience](https://support.google.com/a/answer/9934697) who can discover
128+ // the space, join the space, and preview the messages in the space. For
129+ // details, see [Make a space discoverable to a target
130+ // audience](https://developers.google.com/workspace/chat/space-target-audience).
131+ //
132+ // Format: `audiences/{audience}`
133+ //
134+ // To use the default target audience for the Google Workspace organization,
135+ // set to `audiences/default`.
136+ string audience = 3 [(google.api.field_behavior ) = OPTIONAL ];
137+ }
138+
106139 // Resource name of the space.
107140 //
108141 // Format: `spaces/{space}`
@@ -192,6 +225,14 @@ message Space {
192225 //
193226 // To support admin install, your Chat app must feature direct messaging.
194227 bool admin_installed = 19 [(google.api.field_behavior ) = OUTPUT_ONLY ];
228+
229+ // Optional. Specifies the [access
230+ // setting](https://support.google.com/chat/answer/11971020) of the space.
231+ // Only populated when the `space_type` is `SPACE`.
232+ AccessSettings access_settings = 23 [(google.api.field_behavior ) = OPTIONAL ];
233+
234+ // Output only. The URI for a user to access the space.
235+ string space_uri = 25 [(google.api.field_behavior ) = OUTPUT_ONLY ];
195236}
196237
197238// A request to create a named space.
@@ -270,7 +311,7 @@ message ListSpacesResponse {
270311
271312// A request to return a single space.
272313message GetSpaceRequest {
273- // Required. Resource name of the space, in the form " spaces/*" .
314+ // Required. Resource name of the space, in the form ` spaces/{space}` .
274315 //
275316 // Format: `spaces/{space}`
276317 string name = 1 [
@@ -325,6 +366,7 @@ message UpdateSpaceRequest {
325366 // the display name is optional if the existing space already has the `SPACE`
326367 // type. Trying to update the space type in other ways results in an invalid
327368 // argument error).
369+ // `space_type` is not supported with admin access.
328370 //
329371 // - `space_details`
330372 //
@@ -333,12 +375,27 @@ message UpdateSpaceRequest {
333375 // allows users to change their history
334376 // setting](https://support.google.com/a/answer/7664184).
335377 // Warning: mutually exclusive with all other field paths.)
378+ // `space_history_state` is not supported with admin access.
379+ //
380+ // - `access_settings.audience` (Supports changing the [access
381+ // setting](https://support.google.com/chat/answer/11971020) of who can
382+ // discover the space, join the space, and preview the messages in space. If
383+ // no audience is specified in the access setting, the space's access setting
384+ // is updated to private. Warning: mutually exclusive with all other field
385+ // paths.)
386+ // `access_settings.audience` is not supported with admin access.
336387 //
337- // - Developer Preview: `access_settings.audience` (Supports changing the
338- // [access setting](https://support.google.com/chat/answer/11971020) of a
339- // space. If no audience is specified in the access setting, the space's
340- // access setting is updated to restricted. Warning: mutually exclusive with
341- // all other field paths.)
388+ // - Developer Preview: Supports changing the [permission
389+ // settings](https://support.google.com/chat/answer/13340792) of a space,
390+ // supported field paths
391+ // include: `permission_settings.manage_members_and_groups`,
392+ // `permission_settings.modify_space_details`,
393+ // `permission_settings.toggle_history`,
394+ // `permission_settings.use_at_mention_all`,
395+ // `permission_settings.manage_apps`, `permission_settings.manage_webhooks`,
396+ // `permission_settings.reply_messages`
397+ // (Warning: mutually exclusive with all other non-permission settings field
398+ // paths). `permission_settings` is not supported with admin access.
342399 google.protobuf.FieldMask update_mask = 2 ;
343400}
344401
0 commit comments