Skip to content

Commit

Permalink
build: Add ChatService client libraries publishing settings
Browse files Browse the repository at this point in the history
docs: Add comment that MULTI_SELECT in SelectionType is now available in Developer Preview for Workspace Addons
docs: Add comment that the Columns widget  is now available in Developer Preview for Workspace Addons

PiperOrigin-RevId: 609795940
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 23, 2024
1 parent a8bcfb6 commit e04130e
Show file tree
Hide file tree
Showing 20 changed files with 115 additions and 7 deletions.
18 changes: 13 additions & 5 deletions google/apps/card/v1/card.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ option go_package = "google.golang.org/genproto/googleapis/apps/card/v1;card";
option java_multiple_files = true;
option java_outer_classname = "CardProto";
option java_package = "com.google.apps.card.v1";
option php_namespace = "Google\\Apps\\Card\\V1";
option ruby_package = "Google::Apps::Card::V1";

// A card interface displayed in a Google Chat message or Google Workspace
// Add-on.
Expand Down Expand Up @@ -1057,7 +1059,10 @@ message SelectionInput {
// [`SelectionInput` widget
// page](https://developers.google.com/chat/ui/widgets/selection-input#multiselect-menu).
//
// [Google Chat apps](https://developers.google.com/chat):
// [Google Workspace Add-ons and Chat
// apps](https://developers.google.com/workspace/extend):
// multiselect for Google Workspace Add-ons are in
// [Developer Preview](https://developers.google.com/workspace/preview).
MULTI_SELECT = 4;
}

Expand Down Expand Up @@ -1572,9 +1577,9 @@ message Grid {
OnClick on_click = 5;
}

// The `Columns` widget displays up to 2 columns in a card message or dialog.
// You can add widgets to each column; the widgets appear in the order that
// they are specified. For an example in Google Chat apps, see
// The `Columns` widget displays up to 2 columns in a card or dialog. You can
// add widgets to each column; the widgets appear in the order that they are
// specified. For an example in Google Chat apps, see
// [Columns](https://developers.google.com/chat/ui/widgets/columns).
//
// The height of each column is determined by the taller column. For example, if
Expand All @@ -1597,7 +1602,10 @@ message Grid {
// To include more than 2 columns, or to use rows, use the
// [`Grid`][google.apps.card.v1.Grid] widget.
//
// [Google Chat apps](https://developers.google.com/chat):
// [Google Workspace Add-ons and Chat
// apps](https://developers.google.com/workspace/extend):
// Columns for Google Workspace Add-ons are in
// [Developer Preview](https://developers.google.com/workspace/preview).
message Columns {
// A column.
//
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/action_status.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ package google.chat.v1;

import "google/rpc/code.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "ActionStatusProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// Represents the status for a request to either invoke or submit a
// [dialog](https://developers.google.com/chat/how-tos/dialogs).
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/annotation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ package google.chat.v1;

import "google/chat/v1/user.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "AnnotationProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// Output only. Annotations associated with the plain-text body of the message.
// To add basic formatting to a text message, see
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/attachment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ package google.chat.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "AttachmentProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// An attachment in Google Chat.
message Attachment {
Expand Down
4 changes: 4 additions & 0 deletions google/chat/v1/chat_grpc_service_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
{ "service": "google.chat.v1.ChatService", "method": "UploadAttachment" },
{ "service": "google.chat.v1.ChatService", "method": "FindDirectMessage" },
{ "service": "google.chat.v1.ChatService", "method": "CompleteImportSpace" },
{ "service": "google.chat.v1.ChatService", "method": "UpdateMembership" },
{ "service": "google.chat.v1.ChatService", "method": "UpdateSpaceReadState" },
{ "service": "google.chat.v1.ChatService", "method": "GetSpaceReadState" },
{ "service": "google.chat.v1.ChatService", "method": "GetThreadReadState" },
{ "service": "google.chat.v1.ChatService", "method": "GetAttachment" }
],
"timeout": "30s",
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/chat_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ import "google/chat/v1/space.proto";
import "google/chat/v1/space_setup.proto";
import "google/protobuf/empty.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "ChatServiceProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// Enables developers to build Chat apps and
// integrations on Google Chat Platform.
Expand Down
49 changes: 47 additions & 2 deletions google/chat/v1/chat_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ apis:

documentation:
summary: |-
Enables apps to fetch information and perform actions in Google Chat.
Authentication is a prerequisite for using the Google Chat REST API.
The Google Chat API lets you build Chat apps to integrate your services
with Google Chat and manage Chat resources such as spaces, members, and
messages.
authentication:
rules:
Expand Down Expand Up @@ -142,3 +143,47 @@ authentication:
https://www.googleapis.com/auth/chat.import,
https://www.googleapis.com/auth/chat.messages,
https://www.googleapis.com/auth/chat.messages.create
publishing:
new_issue_uri: https://issuetracker.google.com/issues/new?component=350158&template=1047346
documentation_uri: https://developers.google.com/chat/concepts
api_short_name: chat
github_label: 'api: chat'
doc_tag_prefix: chat
organization: CLOUD
library_settings:
- version: google.chat.v1
launch_stage: GA
java_settings:
common:
destinations:
- PACKAGE_MANAGER
cpp_settings:
common:
destinations:
- PACKAGE_MANAGER
php_settings:
common:
destinations:
- PACKAGE_MANAGER
python_settings:
common:
destinations:
- PACKAGE_MANAGER
node_settings:
common:
destinations:
- PACKAGE_MANAGER
dotnet_settings:
common:
destinations:
- PACKAGE_MANAGER
ruby_settings:
common:
destinations:
- PACKAGE_MANAGER
go_settings:
common:
destinations:
- PACKAGE_MANAGER
proto_reference_documentation_uri: https://developers.google.com/chat/api/reference/rest
3 changes: 3 additions & 0 deletions google/chat/v1/contextual_addon.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ package google.chat.v1;

import "google/chat/v1/widgets.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "ContextualAddOnProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// The markup for developers to specify the contents of a contextual AddOn.
message ContextualAddOnMarkup {
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/deletion_metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "DeletionMetadataProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// Information about a deleted message. A message is deleted when `delete_time`
// is set.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "GroupProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A Google Group in Google Chat.
message Group {
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/history_state.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "HistoryStateProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// The history state for messages and spaces. Specifies how long messages and
// conversation threads are kept after creation.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/matched_url.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ package google.chat.v1;

import "google/api/field_behavior.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "MatchedUrlProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A matched URL in a Chat message. Chat apps can preview matched URLs. For more
// information, see [Preview
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/membership.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ import "google/chat/v1/group.proto";
import "google/chat/v1/user.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "MembershipProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// Represents a membership relation in Google Chat, such as whether a user or
// Chat app is invited to, part of, or absent from a space.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ import "google/chat/v1/user.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "MessageProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A message in a Google Chat space.
message Message {
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/reaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/chat/v1/user.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "ReactionProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A reaction to a message.
message Reaction {
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/slash_command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "SlashCommandProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A [slash command](https://developers.google.com/chat/how-tos/slash-commands)
// in Google Chat.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/space.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ import "google/chat/v1/history_state.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "SpaceProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A space in Google Chat. Spaces are conversations between two or more users
// or 1:1 messages between a user and a Chat app.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/space_setup.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ import "google/api/field_behavior.proto";
import "google/chat/v1/membership.proto";
import "google/chat/v1/space.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "SpaceSetupProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

message SetUpSpaceRequest {
// Required. The `Space.spaceType` field is required.
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/user.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ package google.chat.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "UserProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A user in Google Chat.
// When returned as an output from a request, if your Chat app [authenticates as
Expand Down
3 changes: 3 additions & 0 deletions google/chat/v1/widgets.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@ syntax = "proto3";

package google.chat.v1;

option csharp_namespace = "Google.Chat.V1";
option go_package = "google.golang.org/genproto/googleapis/chat/v1;chat";
option java_multiple_files = true;
option java_outer_classname = "WidgetsProto";
option java_package = "com.google.chat.v1";
option php_namespace = "Google\\Chat\\V1";
option ruby_package = "Google::Chat::V1";

// A widget is a UI element that presents text and images.
message WidgetMarkup {
Expand Down

0 comments on commit e04130e

Please sign in to comment.