-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [chat] update Nodejs generator to send API versions in headers …
…for GAPICs (#5345) * docs: update Chat API comments PiperOrigin-RevId: 633320855 Source-Link: googleapis/googleapis@6cac6e4 Source-Link: googleapis/googleapis-gen@d5f80f5 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6ImQ1ZjgwZjUwNmRkM2I3Mjk3YzVmOTJiYzJkYzc5MmExMWI3ZmIzODcifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: update Nodejs generator to send API versions in headers for GAPICs PiperOrigin-RevId: 634109303 Source-Link: googleapis/googleapis@998ade8 Source-Link: googleapis/googleapis-gen@000ca6f Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNoYXQvLk93bEJvdC55YW1sIiwiaCI6IjAwMGNhNmYwMDgwMWY2NWI4NDdlNjAyOWNiMDUxMTE0MDRkZjIxZWMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
0f99f52
commit e99879b
Showing
26 changed files
with
219 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; | |
option java_multiple_files = true; | ||
option java_outer_classname = "ChatServiceProto"; | ||
option java_package = "com.google.chat.v1"; | ||
option objc_class_prefix = "DYNAPIProto"; | ||
option php_namespace = "Google\\Apps\\Chat\\V1"; | ||
option ruby_package = "Google::Apps::Chat::V1"; | ||
|
||
|
@@ -59,7 +60,8 @@ service ChatService { | |
"https://www.googleapis.com/auth/chat.users.readstate," | ||
"https://www.googleapis.com/auth/chat.users.readstate.readonly"; | ||
|
||
// Creates a message in a Google Chat space. For an example, see [Send a | ||
// Creates a message in a Google Chat space. The maximum message size, | ||
// including text and cards, is 32,000 bytes. For an example, see [Send a | ||
// message](https://developers.google.com/workspace/chat/create-messages). | ||
// | ||
// Calling this method requires | ||
|
@@ -250,6 +252,7 @@ service ChatService { | |
// | ||
// Lists spaces visible to the caller or authenticated user. Group chats | ||
// and DMs aren't listed until the first message is sent. | ||
// | ||
rpc ListSpaces(ListSpacesRequest) returns (ListSpacesResponse) { | ||
option (google.api.http) = { | ||
get: "/v1/spaces" | ||
|
@@ -300,17 +303,17 @@ service ChatService { | |
// members](https://developers.google.com/workspace/chat/set-up-spaces). | ||
// | ||
// To specify the human members to add, add memberships with the appropriate | ||
// `member.name` in the `SetUpSpaceRequest`. To add a human user, use | ||
// `users/{user}`, where `{user}` can be the email address for the user. For | ||
// users in the same Workspace organization `{user}` can also be the `id` for | ||
// the person from the People API, or the `id` for the user in the Directory | ||
// API. For example, if the People API Person profile ID for | ||
// `[email protected]` is `123456789`, you can add the user to the space by | ||
// setting the `membership.member.name` to `users/[email protected]` or | ||
// `users/123456789`. | ||
// | ||
// For a space or group chat, if the caller blocks or is blocked by some | ||
// members, then those members aren't added to the created space. | ||
// `membership.member.name`. To add a human user, use `users/{user}`, where | ||
// `{user}` can be the email address for the user. For users in the same | ||
// Workspace organization `{user}` can also be the `id` for the person from | ||
// the People API, or the `id` for the user in the Directory API. For example, | ||
// if the People API Person profile ID for `[email protected]` is `123456789`, | ||
// you can add the user to the space by setting the `membership.member.name` | ||
// to `users/[email protected]` or `users/123456789`. | ||
// | ||
// For a named space or group chat, if the caller blocks, or is blocked | ||
// by some members, or doesn't have permission to add some members, then | ||
// those members aren't added to the created space. | ||
// | ||
// To create a direct message (DM) between the calling user and another human | ||
// user, specify exactly one membership to represent the human user. If | ||
|
@@ -423,8 +426,8 @@ service ChatService { | |
// directly to the specified space. Requires [user | ||
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). | ||
// | ||
// To specify the member to add, set the `membership.member.name` in the | ||
// `CreateMembershipRequest`: | ||
// To specify the member to add, set the `membership.member.name` for the | ||
// human or app member. | ||
// | ||
// - To add the calling app to a space or a direct message between two human | ||
// users, use `users/app`. Unable to add other | ||
|
@@ -445,8 +448,11 @@ service ChatService { | |
option (google.api.method_signature) = "parent,membership"; | ||
} | ||
|
||
// Updates a membership. Requires [user | ||
// authentication](https://developers.google.com/chat/api/guides/auth/users). | ||
// Updates a membership. For an example, see [Update a user's membership in | ||
// a space](https://developers.google.com/workspace/chat/update-members). | ||
// | ||
// Requires [user | ||
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). | ||
rpc UpdateMembership(UpdateMembershipRequest) returns (Membership) { | ||
option (google.api.http) = { | ||
patch: "/v1/{membership.name=spaces/*/members/*}" | ||
|
@@ -508,7 +514,9 @@ service ChatService { | |
} | ||
|
||
// Returns details about a user's read state within a space, used to identify | ||
// read and unread messages. | ||
// read and unread messages. For an example, see [Get details about a user's | ||
// space read | ||
// state](https://developers.google.com/workspace/chat/get-space-read-state). | ||
// | ||
// Requires [user | ||
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). | ||
|
@@ -520,7 +528,8 @@ service ChatService { | |
} | ||
|
||
// Updates a user's read state within a space, used to identify read and | ||
// unread messages. | ||
// unread messages. For an example, see [Update a user's space read | ||
// state](https://developers.google.com/workspace/chat/update-space-read-state). | ||
// | ||
// Requires [user | ||
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). | ||
|
@@ -534,7 +543,9 @@ service ChatService { | |
} | ||
|
||
// Returns details about a user's read state within a thread, used to identify | ||
// read and unread messages. | ||
// read and unread messages. For an example, see [Get details about a user's | ||
// thread read | ||
// state](https://developers.google.com/workspace/chat/get-thread-read-state). | ||
// | ||
// Requires [user | ||
// authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb"; | |
option java_multiple_files = true; | ||
option java_outer_classname = "SpaceSetupProto"; | ||
option java_package = "com.google.chat.v1"; | ||
option objc_class_prefix = "DYNAPIProto"; | ||
option php_namespace = "Google\\Apps\\Chat\\V1"; | ||
option ruby_package = "Google::Apps::Chat::V1"; | ||
|
||
|
@@ -68,14 +69,14 @@ message SetUpSpaceRequest { | |
// | ||
// The set currently allows up to 20 memberships (in addition to the caller). | ||
// | ||
// The `Membership.member` field must contain a `user` with `name` populated | ||
// (format: `users/{user}`) and `type` set to `User.Type.HUMAN`. You can only | ||
// add human users when setting up a space (adding Chat apps is only supported | ||
// for direct message setup with the calling app). You can also add members | ||
// using the user's email as an alias for {user}. For example, the `user.name` | ||
// can be `users/[email protected]`." To invite Gmail users or users from | ||
// external Google Workspace domains, user's email must be used for | ||
// `{user}`. | ||
// For human membership, the `Membership.member` field must contain a `user` | ||
// with `name` populated (format: `users/{user}`) and `type` set to | ||
// `User.Type.HUMAN`. You can only add human users when setting up a space | ||
// (adding Chat apps is only supported for direct message setup with the | ||
// calling app). You can also add members using the user's email as an alias | ||
// for {user}. For example, the `user.name` can be `users/[email protected]`. | ||
// To invite Gmail users or users from external Google Workspace domains, | ||
// user's email must be used for `{user}`. | ||
// | ||
// Optional when setting `Space.spaceType` to `SPACE`. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.