@google-apps/chat 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -342,6 +342,41 @@ service ChatService {
342
342
  option (google.api.method_signature) = "name";
343
343
  }
344
344
 
345
+ // Searches for messages in Google Chat that the calling user has access to.
346
+ // Returns a list of messages matching the search criteria.
347
+ //
348
+ // To search across all spaces the user has access to, set `parent` to
349
+ // `spaces/-`. Using any other value for `parent` results in an
350
+ // `INVALID_ARGUMENT` error. The returned messages have their `name` field
351
+ // populated with the full resource name, which includes the specific `space`
352
+ // in which the message resides.
353
+ //
354
+ // This API doesn't return all message types. The types of messages listed
355
+ // below aren't included in the response. Use
356
+ // [ListMessages][google.chat.v1.ChatService.ListMessages] to list all
357
+ // messages.
358
+ //
359
+ // - Private Messages that are visible to the authenticated user.
360
+ // - Messages posted by Chat apps in spaces or group chats.
361
+ // - Messages in a Chat app DM.
362
+ // - Messages from blocked users.
363
+ // - Messages in spaces that the caller has muted.
364
+ //
365
+ // Requires [user
366
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
367
+ // with one of the following [authorization
368
+ // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
369
+ //
370
+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
371
+ // - `https://www.googleapis.com/auth/chat.messages`
372
+ rpc SearchMessages(SearchMessagesRequest) returns (SearchMessagesResponse) {
373
+ option (google.api.http) = {
374
+ post: "/v1/{parent=spaces/*}/messages:search"
375
+ body: "*"
376
+ };
377
+ option (google.api.method_signature) = "parent,filter";
378
+ }
379
+
345
380
  // Gets the metadata of a message attachment. The attachment data is fetched
346
381
  // using the [media
347
382
  // API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download).
@@ -415,19 +450,30 @@ service ChatService {
415
450
  option (google.api.method_signature) = "";
416
451
  }
417
452
 
418
- // Returns a list of spaces in a Google Workspace organization based on an
419
- // administrator's search. In the request, set `use_admin_access` to `true`.
420
- // For an example, see [Search for and manage
453
+ // Returns a list of spaces in a Google Workspace organization. For an
454
+ // example, see [Search for and manage
421
455
  // spaces](https://developers.google.com/workspace/chat/search-manage-admin).
422
456
  //
423
- // Requires [user
457
+ // When `use_admin_access` is set to `false`, the results are limited to
458
+ // spaces where the calling user is a joined member. To search with
459
+ // administrator privileges, set `use_admin_access` to `true`.
460
+ //
461
+ // Supports the following types of
462
+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
463
+ //
464
+ // - [User
465
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
466
+ // with one of the following authorization scopes:
467
+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
468
+ // - `https://www.googleapis.com/auth/chat.spaces`
469
+ //
470
+ // - [User
424
471
  // authentication with administrator
425
472
  // privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges)
426
473
  // and one of the following [authorization
427
474
  // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
428
- //
429
- // - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
430
- // - `https://www.googleapis.com/auth/chat.admin.spaces`
475
+ // - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
476
+ // - `https://www.googleapis.com/auth/chat.admin.spaces`
431
477
  rpc SearchSpaces(SearchSpacesRequest) returns (SearchSpacesResponse) {
432
478
  option (google.api.http) = {
433
479
  get: "/v1/spaces:search"
@@ -28,6 +28,7 @@ import "google/chat/v1/matched_url.proto";
28
28
  import "google/chat/v1/reaction.proto";
29
29
  import "google/chat/v1/slash_command.proto";
30
30
  import "google/chat/v1/space.proto";
31
+ import "google/chat/v1/space_notification_setting.proto";
31
32
  import "google/chat/v1/user.proto";
32
33
  import "google/protobuf/field_mask.proto";
33
34
  import "google/protobuf/timestamp.proto";
@@ -112,8 +113,8 @@ message Message {
112
113
  //
113
114
  // * [Markup
114
115
  // syntax](https://developers.google.com/workspace/chat/format-messages)
115
- // for bold, italic, strikethrough, monospace, monospace block, and bulleted
116
- // list.
116
+ // for bold, italic, strikethrough, monospace, monospace block, bulleted
117
+ // list, and block quote.
117
118
  //
118
119
  // * [User
119
120
  // mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention)
@@ -191,8 +192,8 @@ message Message {
191
192
  // Optional. User-uploaded attachment.
192
193
  repeated Attachment attachment = 18 [(google.api.field_behavior) = OPTIONAL];
193
194
 
194
- // Output only. A URL in `spaces.messages.text` that matches a link preview
195
- // pattern. For more information, see [Preview
195
+ // Output only. A URL in the Chat message `text` field that matches a link
196
+ // preview pattern. For more information, see [Preview
196
197
  // links](https://developers.google.com/workspace/chat/preview-links).
197
198
  MatchedUrl matched_url = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
198
199
 
@@ -677,9 +678,9 @@ message CreateMessageNotificationOptions {
677
678
  // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
678
679
  NOTIFICATION_TYPE_FORCE_NOTIFY = 2;
679
680
 
680
- // Silence the notification as if the recipients have [Chat Do Not
681
- // Disturb](https://support.google.com/chat/answer/9093489) enabled or
682
- // have muted the space.
681
+ // Do not notify recipients, and do not mark the message as unread.
682
+ // This behaves similarly to the user muting the conversation or enabling
683
+ // [Chat Do Not Disturb](https://support.google.com/chat/answer/9093489).
683
684
  //
684
685
  // Requires [app authentication]
685
686
  // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
@@ -830,3 +831,232 @@ message CardWithId {
830
831
  // A card. Maximum size is 32 KB.
831
832
  google.apps.card.v1.Card card = 2;
832
833
  }
834
+
835
+ // Request message for searching messages.
836
+ message SearchMessagesRequest {
837
+ // The kinds of view that are supported for partial search results.
838
+ enum SearchMessagesView {
839
+ // The default / unset value.
840
+ // The API will default to the BASIC view.
841
+ SEARCH_MESSAGES_VIEW_UNSPECIFIED = 0;
842
+
843
+ // Includes only the matched messages in the results, but no additional
844
+ // metadata. This is the default value.
845
+ SEARCH_MESSAGES_VIEW_BASIC = 1;
846
+
847
+ // Includes everything in the results: the matched messages and additional
848
+ // metadata.
849
+ SEARCH_MESSAGES_VIEW_FULL = 2;
850
+ }
851
+
852
+ // Required. The resource name of the space to search within.
853
+ //
854
+ // To search across all spaces the user has access to, set this field to
855
+ // `spaces/-`. Using any other value for `parent` results in an
856
+ // `INVALID_ARGUMENT` error.
857
+ //
858
+ // To limit the search to one or more spaces, use `space.name` or
859
+ // `space.display_name` in the `filter`.
860
+ string parent = 1 [
861
+ (google.api.field_behavior) = REQUIRED,
862
+ (google.api.resource_reference) = { type: "chat.googleapis.com/Space" }
863
+ ];
864
+
865
+ // Required. A search query.
866
+ //
867
+ // The query can specify one or more search keywords, which are used to filter
868
+ // the results,
869
+ //
870
+ // You can also filter the results using the following message fields:
871
+ //
872
+ // - `create_time`: Accepts a timestamp in
873
+ // [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
874
+ // supported comparison operators are: `<` and `>=`.
875
+ // - `sender.name`: The resource name of the sender (`users/{user}`). Only
876
+ // supports `=`. You can use the e-mail as an alias for `{user}`. For
877
+ // example, `users/example@gmail.com`, where `example@gmail.com` is the
878
+ // e-mail of the Google Chat user.
879
+ // - `space.name`: The resource name of the space where the message is posted.
880
+ // (`spaces/{space}`). Only supports `=`. If this filter is not set, the
881
+ // search is performed across all direct messages and spaces the user has
882
+ // access to as a space member.
883
+ // - `space.display_name`: Supports the operator `:` (has) and filters spaces
884
+ // based on a partial match of their display name. Results are limited to
885
+ // the top five space matches. For example, `space.display_name:Project`
886
+ // searches for messages in the top five spaces that contain the word
887
+ // "Project" in their display names.
888
+ // - `attachment`: Supports the operator `:*` (has any) to check for the
889
+ // presence of attachments. If `attachment:*` is specified, only messages
890
+ // that have at least one attachment are returned.
891
+ // - `annotations.user_mentions.user.name`: The resource name of the mentioned
892
+ // user (`users/{user}`). Only supports `:` (has). For example:
893
+ // `annotations.user_mentions.user.name:"users/1234567890"` returns only
894
+ // messages that contain a mention to the specified user. Alternatively, the
895
+ // alias `me` can be used to filter for messages that mention the caller
896
+ // user, for example: `annotations.user_mentions.user.name:users/me`. You
897
+ // can also use the e-mail as an alias for `{user}`, for example,
898
+ // `users/example@gmail.com`.
899
+ //
900
+ // For advanced filtering, the following functions are also available:
901
+ //
902
+ // - `has_link()`: Returns only messages that have at least one hyperlink in
903
+ // the message text.
904
+ // - `is_unread()`: Filters out messages that have been read by the calling
905
+ // user.
906
+ //
907
+ // Using the `space.display_name` filter requires that the calling credentials
908
+ // include one of the following [authorization
909
+ // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
910
+ //
911
+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
912
+ // - `https://www.googleapis.com/auth/chat.spaces`
913
+ //
914
+ // Using the `is_unread()` filter requires that the calling credentials
915
+ // include one of the following [authorization
916
+ // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
917
+ //
918
+ // - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
919
+ // - `https://www.googleapis.com/auth/chat.users.readstate`
920
+ //
921
+ //
922
+ // Across different fields, only `AND` operators are supported. A valid
923
+ // example is `sender.name = "users/1234567890" AND is_unread()`. The word
924
+ // `AND` is optional and is implied if omitted. For example, `sender.name =
925
+ // "users/1234567890" is_unread()` is valid and is equivalent to the previous
926
+ // example. An invalid example is `sender.name = "users/1234567890" OR
927
+ // is_unread()` because `OR` is not supported between different fields.
928
+ //
929
+ // Among the same field:
930
+ //
931
+ // - `create_time` supports only `AND`, and can only be used to represent
932
+ // an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
933
+ // create_time < "2023-01-01T00:00:00+00:00"`.
934
+ // - `sender.name` supports only the `OR` operator, for example:
935
+ // `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
936
+ // - `space.name` supports only the `OR` operator, for example:
937
+ // `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
938
+ // - `space.display_name` supports the operators `AND` and `OR`, but not a
939
+ // mix of both. For example:
940
+ // `space.display_name:Project AND space.display_name:Tasks` returns
941
+ // messages that are in spaces with display names containing both `Project`
942
+ // and `Tasks`, whereas
943
+ // `space.display_name:Project OR space.display_name:Tasks` returns messages
944
+ // that are in spaces with display names containing either `Project` or
945
+ // `Tasks` or both.
946
+ // - `annotations.user_mentions.user.name` supports the operators `AND` and
947
+ // `OR`, but not a mix of both. For example:
948
+ // `annotations.user_mentions.user.name:"users/1234567890" AND
949
+ // annotations.user_mentions.user.name:"users/0987654321"` returns only
950
+ // messages that mentions both users, whereas
951
+ // `annotations.user_mentions.user.name:"users/1234567890" OR
952
+ // annotations.user_mentions.user.name:"users/0987654321"` returns messages
953
+ // that mention either user or both.
954
+ //
955
+ // Parentheses are required to disambiguate operator precedence when combining
956
+ // `AND` and `OR` operators in the same query. For example:
957
+ // `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
958
+ // Otherwise, parentheses are optional.
959
+ //
960
+ // The following example queries are valid:
961
+ //
962
+ // ```
963
+ // "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
964
+ //
965
+ // sender.name = "users/example@gmail.com"
966
+ //
967
+ // annotations.user_mentions.user.name:"users/0987654321"
968
+ //
969
+ // attachment:* AND space.name = "spaces/ABCDEFGH"
970
+ //
971
+ // tasks AND is_unread() AND sender.name = "users/1234567890"
972
+ //
973
+ // "things to do" "urgent"
974
+ //
975
+ // (sender.name = "users/1234567890")
976
+ // AND (create_time < "2023-05-01T00:00:00Z")
977
+ //
978
+ // tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
979
+ //
980
+ // "project one" is_unread()
981
+ //
982
+ // space.display_name:Project tasks
983
+ // ```
984
+ //
985
+ // The maximum query length is 1,000 characters.
986
+ //
987
+ // Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
988
+ // error.
989
+ string filter = 2 [(google.api.field_behavior) = REQUIRED];
990
+
991
+ // Optional. The maximum number of results to return. The service may return
992
+ // fewer than this value.
993
+ //
994
+ // If unspecified, at most 25 are returned.
995
+ //
996
+ // The maximum value is 100. If you use a value more than 100, it's
997
+ // automatically changed to 100.
998
+ int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL];
999
+
1000
+ // Optional. A token, received from the previous search messages call. Provide
1001
+ // this parameter to retrieve the subsequent page.
1002
+ //
1003
+ // When paginating, all other parameters provided should match the call that
1004
+ // provided the page token. Passing different values to the other parameters
1005
+ // might lead to unexpected results.
1006
+ string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
1007
+
1008
+ // Optional. How the results list is ordered.
1009
+ //
1010
+ // Supported attributes to order by are:
1011
+ //
1012
+ // - `create_time`: Sorts the results by the time of the message creation.
1013
+ // Default value.
1014
+ // - `relevance`: Sorts the results by relevance.
1015
+ // [Developer Preview](https://developers.google.com/workspace/preview).
1016
+ //
1017
+ // The default ordering is `create_time desc`. Only a single order per query
1018
+ // (`create_time` or `relevance`) is supported. Only descending order (`desc`)
1019
+ // is supported, and it must be specified after the order attribute.
1020
+ string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
1021
+
1022
+ // Optional. Specifies what kind of search results view to return. The default
1023
+ // is `SEARCH_MESSAGES_VIEW_BASIC`.
1024
+ SearchMessagesView view = 7 [(google.api.field_behavior) = OPTIONAL];
1025
+ }
1026
+
1027
+ // Response message for searching messages.
1028
+ message SearchMessagesResponse {
1029
+ // The list of search results that matched the query.
1030
+ repeated SearchMessageResult results = 1;
1031
+
1032
+ // A token that can be used to retrieve the next page. If this field is empty,
1033
+ // there are no subsequent pages.
1034
+ string next_page_token = 2;
1035
+ }
1036
+
1037
+ // A single result item from a message search.
1038
+ message SearchMessageResult {
1039
+ // The matched message.
1040
+ Message message = 1;
1041
+
1042
+ // Indicates if the matched message is read by the calling user.
1043
+ //
1044
+ // Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
1045
+ // calling credentials include one of the following [authorization
1046
+ // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1047
+ //
1048
+ // - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
1049
+ // - `https://www.googleapis.com/auth/chat.users.readstate`
1050
+ optional bool read = 3;
1051
+
1052
+ // The mute setting of the calling user for the space where the message is
1053
+ // posted. The caller app can use this information to decide how to process
1054
+ // the message depending on whether the space is muted for the user or not.
1055
+ //
1056
+ // Only returned if the request view is `SEARCH_MESSAGES_VIEW_FULL` and the
1057
+ // calling credentials include the following [authorization
1058
+ // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
1059
+ //
1060
+ // - `https://www.googleapis.com/auth/chat.users.spacesettings`
1061
+ SpaceNotificationSetting.MuteSetting space_mute_setting = 4;
1062
+ }
@@ -76,17 +76,20 @@ message Space {
76
76
  // Reserved.
77
77
  SPACE_THREADING_STATE_UNSPECIFIED = 0;
78
78
 
79
- // Named spaces that support message threads. When users respond to a
80
- // message, they can reply in-thread, which keeps their response in the
81
- // context of the original message.
79
+ // Spaces that support message threads. When users respond to a message,
80
+ // they can reply in-thread, which keeps their response in the context of
81
+ // the original message.
82
82
  THREADED_MESSAGES = 2;
83
83
 
84
84
  // Named spaces where the conversation is organized by topic. Topics and
85
85
  // their replies are grouped together.
86
86
  GROUPED_MESSAGES = 3;
87
87
 
88
- // Direct messages (DMs) between two people and group conversations between
89
- // 3 or more people.
88
+ // Spaces that don't support message threading. This space threading state
89
+ // is only used for special cases including:
90
+ //
91
+ // * Continuous meeting chat where threading is intentionally turned off.
92
+ // * Legacy group conversations that were created prior to 2022.
90
93
  UNTHREADED_MESSAGES = 4;
91
94
  }
92
95
 
@@ -765,9 +768,6 @@ message SearchSpacesRequest {
765
768
  // Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces`
766
769
  // [OAuth 2.0
767
770
  // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
768
- //
769
- // This method currently only supports admin access, thus only `true` is
770
- // accepted for this field.
771
771
  bool use_admin_access = 1;
772
772
 
773
773
  // The maximum number of spaces to return. The service may return fewer than
@@ -789,7 +789,8 @@ message SearchSpacesRequest {
789
789
 
790
790
  // Required. A search query.
791
791
  //
792
- // You can search by using the following parameters:
792
+ // You can search by using the following parameters when `useAdminAccess`
793
+ // is set to `true`:
793
794
  //
794
795
  // - `create_time`
795
796
  // - `customer`
@@ -799,18 +800,27 @@ message SearchSpacesRequest {
799
800
  // - `space_history_state`
800
801
  // - `space_type`
801
802
  //
803
+ // When `useAdminAccess` is set to `false`:
804
+ //
805
+ // - `display_name`
806
+ // - `external_user_allowed`
807
+ // - `space_type`
808
+ //
802
809
  // `create_time` and `last_active_time` accept a timestamp in
803
810
  // [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
804
811
  // comparison operators are: `=`, `<`, `>`, `<=`, `>=`.
805
812
  //
806
- // `customer` is required and is used to indicate which customer
807
- // to fetch spaces from. `customers/my_customer` is the only supported value.
813
+ // `customer` is required when `useAdminAccess` is set to `true`, and is
814
+ // used to indicate which customer to fetch spaces from.
815
+ // `customers/my_customer` is the only supported value.
808
816
  //
809
817
  // `display_name` only accepts the `HAS` (`:`) operator. The text to
810
818
  // match is first tokenized into tokens and each token is prefix-matched
811
819
  // case-insensitively and independently as a substring anywhere in the space's
812
820
  // `display_name`. For example, `Fun Eve` matches `Fun event` or `The
813
- // evening was fun`, but not `notFun event` or `even`.
821
+ // evening was fun`, but not `notFun event` or `even`. When `useAdminAccess`
822
+ // is set to `false`, `display_name` is required to retrieve meaningful
823
+ // results. Otherwise, the default behavior is to return an empty response.
814
824
  //
815
825
  // `external_user_allowed` accepts either `true` or `false`.
816
826
  //
@@ -833,7 +843,8 @@ message SearchSpacesRequest {
833
843
  // < "2022-01-01T00:00:00+00:00" AND last_active_time >
834
844
  // "2023-01-01T00:00:00+00:00"`.
835
845
  //
836
- // The following example queries are valid:
846
+ // The following example queries are valid when `useAdminAccess` is set to
847
+ // `true`:
837
848
  //
838
849
  // ```
839
850
  // customer = "customers/my_customer" AND space_type = "SPACE"
@@ -855,6 +866,21 @@ message SearchSpacesRequest {
855
866
  // "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
856
867
  // (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
857
868
  // ```
869
+ //
870
+ // The following example queries are valid when `useAdminAccess` is set to
871
+ // `false`:
872
+ //
873
+ // ```
874
+ // display_name:"Hello World" AND space_type = "SPACE"
875
+ //
876
+ // (display_name:"Hello" OR display_name:"Fun") AND space_type = "SPACE"
877
+ //
878
+ // (external_user_allowed = "true" AND space_type = "SPACE") // Returns an
879
+ // empty response.
880
+ //
881
+ // (external_user_allowed = "true" AND display_name:"Hello" AND space_type =
882
+ // "SPACE")
883
+ // ```
858
884
  string query = 4 [(google.api.field_behavior) = REQUIRED];
859
885
 
860
886
  // Optional. How the list of spaces is ordered.
@@ -867,13 +893,17 @@ message SearchSpacesRequest {
867
893
  // any topic of this space.
868
894
  // - `create_time` — Denotes the time of the space creation.
869
895
  //
896
+ // When `useAdminAccess` is `false`, only `create_time` and `relevance` are
897
+ // supported for ordering. Only `DESC` is supported for these fields in
898
+ // non-admin searches.
899
+ //
870
900
  // Valid ordering operation values are:
871
901
  //
872
902
  // - `ASC` for ascending. Default value.
873
903
  //
874
904
  // - `DESC` for descending.
875
905
  //
876
- // The supported syntax are:
906
+ // The supported syntax are when `useAdminAccess` is set to `true`:
877
907
  //
878
908
  // - `membership_count.joined_direct_human_user_count DESC`
879
909
  // - `membership_count.joined_direct_human_user_count ASC`
@@ -881,13 +911,27 @@ message SearchSpacesRequest {
881
911
  // - `last_active_time ASC`
882
912
  // - `create_time DESC`
883
913
  // - `create_time ASC`
914
+ //
915
+ // When `useAdminAccess` is set to `false`:
916
+ //
917
+ // - `create_time DESC`
918
+ // - `relevance DESC`
884
919
  string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
885
920
  }
886
921
 
887
922
  // Response with a list of spaces corresponding to the search spaces request.
888
923
  message SearchSpacesResponse {
889
- // A page of the requested spaces.
890
- repeated Space spaces = 1;
924
+ // A single result item from a space search.
925
+ message SearchSpaceResult {
926
+ // Output only. The matched space.
927
+ Space space = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
928
+ }
929
+
930
+ // Deprecated: Please use the new `results` field instead.
931
+ // A page of the requested spaces. This field will be populated only when
932
+ // `useAdminAccess` is set to `true` and deprecated in favor of the new
933
+ // `results` field.
934
+ repeated Space spaces = 1 [deprecated = true];
891
935
 
892
936
  // A token that can be used to retrieve the next page. If this field is empty,
893
937
  // there are no subsequent pages.
@@ -896,6 +940,10 @@ message SearchSpacesResponse {
896
940
  // The total number of spaces that match the query, across all pages. If the
897
941
  // result is over 10,000 spaces, this value is an estimate.
898
942
  int32 total_size = 3;
943
+
944
+ // Output only. The list of search results that matched the query.
945
+ repeated SearchSpaceResult results = 4
946
+ [(google.api.field_behavior) = OUTPUT_ONLY];
899
947
  }
900
948
 
901
949
  // Request for deleting a space.