Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-ads-datamanager
version: 0.3.0
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/ads/datamanager/v1
service_config: datamanager_v1.yaml
Expand Down Expand Up @@ -98,7 +98,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-apps-card
version: 0.4.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/apps/card/v1
service_config: ""
Expand All @@ -113,7 +113,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-apps-chat
version: 0.5.0
last_generated_commit: 9a477cd3c26a704130e2a2fb44a40281d9312e4c
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/chat/v1
service_config: chat_v1.yaml
Expand Down Expand Up @@ -491,7 +491,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-backupdr
version: 0.7.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/cloud/backupdr/v1
service_config: backupdr_v1.yaml
Expand Down Expand Up @@ -1590,7 +1590,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-geminidataanalytics
version: 0.9.0
last_generated_commit: 94aa4f5ae672addf00e7970ecc47699e34989e90
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/cloud/geminidataanalytics/v1beta
service_config: geminidataanalytics_v1beta.yaml
Expand Down Expand Up @@ -2224,7 +2224,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-os-config
version: 1.23.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/cloud/osconfig/v1alpha
service_config: osconfig_v1alpha.yaml
Expand Down Expand Up @@ -2387,7 +2387,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-quotas
version: 0.4.0
last_generated_commit: cfe62b3c5ceb9f81879c61480f26707980534462
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/api/cloudquotas/v1
service_config: cloudquotas_v1.yaml
Expand Down Expand Up @@ -2973,7 +2973,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-vectorsearch
version: 0.3.0
last_generated_commit: ded7ed1e4cce7c165c56a417572cebea9bc1d82c
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/cloud/vectorsearch/v1beta
service_config: vectorsearch_v1beta.yaml
Expand Down Expand Up @@ -3598,7 +3598,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: googleapis-common-protos
version: 1.72.0
last_generated_commit: cfe62b3c5ceb9f81879c61480f26707980534462
last_generated_commit: 7a5706618f42f482acf583febcc7b977b66c25b2
apis:
- path: google/api
service_config: serviceconfig.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ class GcpWrappedKeyInfo(proto.Message):
Service resource
ID <//cloud.google.com/kms/docs/getting-resource-ids>`__.
Should be in the format of
"projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}".
``projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}``
or
``gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}``
encrypted_dek (str):
Required. The base64 encoded encrypted data
encryption key.
Expand Down Expand Up @@ -129,11 +131,13 @@ class AwsWrappedKeyInfo(proto.Message):
role_arn (str):
Required. The Amazon Resource Name of the IAM Role to assume
for KMS decryption access. Should be in the format of
"arn:{partition}:iam::{account_id}:role/{role_name}".
``arn:{partition}:iam::{account_id}:role/{role_name}``
kek_uri (str):
Required. The URI of the AWS KMS key used to decrypt the
DEK. Should be in the format of
"arn:{partition}:kms:{region}:{account_id}:key/{key_id}".
``arn:{partition}:kms:{region}:{account_id}:key/{key_id}``
or
``aws-kms://arn:{partition}:kms:{region}:{account_id}:key/{key_id}``
encrypted_dek (str):
Required. The base64 encoded encrypted data
encryption key.
Expand Down
25 changes: 23 additions & 2 deletions packages/google-apps-card/google/apps/card_v1/types/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -1811,8 +1811,29 @@ class SelectionType(proto.Enum):
A set of switches. Users can turn on one or
more switches.
DROPDOWN (3):
A dropdown menu. Users can select one item
from the menu.
A dropdown menu. Users can select one item from the menu.

For Google Chat apps, you can populate items using a dynamic
data source and autosuggest items as users type in the menu.
For example, users can start typing the name of a Google
Chat space and the widget autosuggests the space. To
dynamically populate items for a dropdown menu, use one of
the following types of data sources:

- Google Workspace data: Items are populated using data from
Google Workspace, such as Google Workspace users or Google
Chat spaces.
- External data: Items are populated from an external data
source outside of Google Workspace.

For examples of how to implement dropdown menus for Chat
apps, see `Add a dropdown
menu <https://developers.google.com/workspace/chat/design-interactive-card-dialog#dropdown-menu>`__
and `Dynamically populate drop-down
menus <https://developers.google.com/workspace/chat/design-interactive-card-dialog#dynamic-dropdown-menu>`__.

`Google Workspace add-ons and Chat
apps <https://developers.google.com/workspace/extend>`__:
MULTI_SELECT (4):
A menu with a text box. Users can type and select one or
more items. For Google Workspace add-ons, you must populate
Expand Down
4 changes: 4 additions & 0 deletions packages/google-apps-chat/google/apps/chat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@
DeleteMessageRequest,
Dialog,
DialogAction,
ForwardedMetadata,
GetMessageRequest,
ListMessagesRequest,
ListMessagesResponse,
Message,
QuotedMessageMetadata,
QuotedMessageSnapshot,
Thread,
UpdateMessageRequest,
)
Expand Down Expand Up @@ -206,11 +208,13 @@
"DeleteMessageRequest",
"Dialog",
"DialogAction",
"ForwardedMetadata",
"GetMessageRequest",
"ListMessagesRequest",
"ListMessagesResponse",
"Message",
"QuotedMessageMetadata",
"QuotedMessageSnapshot",
"Thread",
"UpdateMessageRequest",
"CreateCustomEmojiRequest",
Expand Down
4 changes: 4 additions & 0 deletions packages/google-apps-chat/google/apps/chat_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@
DeleteMessageRequest,
Dialog,
DialogAction,
ForwardedMetadata,
GetMessageRequest,
ListMessagesRequest,
ListMessagesResponse,
Message,
QuotedMessageMetadata,
QuotedMessageSnapshot,
Thread,
UpdateMessageRequest,
)
Expand Down Expand Up @@ -283,6 +285,7 @@ def _get_version(dependency_name):
"Emoji",
"EmojiReactionSummary",
"FindDirectMessageRequest",
"ForwardedMetadata",
"GetAttachmentRequest",
"GetCustomEmojiRequest",
"GetMembershipRequest",
Expand Down Expand Up @@ -323,6 +326,7 @@ def _get_version(dependency_name):
"MessageDeletedEventData",
"MessageUpdatedEventData",
"QuotedMessageMetadata",
"QuotedMessageSnapshot",
"Reaction",
"ReactionBatchCreatedEventData",
"ReactionBatchDeletedEventData",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@
DeleteMessageRequest,
Dialog,
DialogAction,
ForwardedMetadata,
GetMessageRequest,
ListMessagesRequest,
ListMessagesResponse,
Message,
QuotedMessageMetadata,
QuotedMessageSnapshot,
Thread,
UpdateMessageRequest,
)
Expand Down Expand Up @@ -192,11 +194,13 @@
"DeleteMessageRequest",
"Dialog",
"DialogAction",
"ForwardedMetadata",
"GetMessageRequest",
"ListMessagesRequest",
"ListMessagesResponse",
"Message",
"QuotedMessageMetadata",
"QuotedMessageSnapshot",
"Thread",
"UpdateMessageRequest",
"CreateCustomEmojiRequest",
Expand Down
127 changes: 127 additions & 0 deletions packages/google-apps-chat/google/apps/chat_v1/types/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"Message",
"AttachedGif",
"QuotedMessageMetadata",
"QuotedMessageSnapshot",
"ForwardedMetadata",
"Thread",
"ActionResponse",
"AccessoryWidget",
Expand Down Expand Up @@ -434,8 +436,39 @@ class QuotedMessageMetadata(proto.Message):

If ``last_update_time`` doesn't match the latest version of
the quoted message, the request fails.
quote_type (google.apps.chat_v1.types.QuotedMessageMetadata.QuoteType):
Optional. Specifies the quote type. If not
set, defaults to REPLY in the message read/write
path for backward compatibility.
quoted_message_snapshot (google.apps.chat_v1.types.QuotedMessageSnapshot):
Output only. A snapshot of the quoted
message's content.
forwarded_metadata (google.apps.chat_v1.types.ForwardedMetadata):
Output only. Metadata about the source space
of the quoted message. Populated only for
FORWARD quote type.
"""

class QuoteType(proto.Enum):
r"""The quote type of the quoted message.

Values:
QUOTE_TYPE_UNSPECIFIED (0):
Reserved. This value is unused.
REPLY (1):
If quote_type is ``REPLY``, you can do the following:

- If you're replying in a thread, you can quote another
message in that thread.

- If you're creating a root message, you can quote another
root message in that space.

You can't quote a message reply from a different thread.
"""
QUOTE_TYPE_UNSPECIFIED = 0
REPLY = 1

name: str = proto.Field(
proto.STRING,
number=1,
Expand All @@ -445,6 +478,100 @@ class QuotedMessageMetadata(proto.Message):
number=2,
message=timestamp_pb2.Timestamp,
)
quote_type: QuoteType = proto.Field(
proto.ENUM,
number=4,
enum=QuoteType,
)
quoted_message_snapshot: "QuotedMessageSnapshot" = proto.Field(
proto.MESSAGE,
number=5,
message="QuotedMessageSnapshot",
)
forwarded_metadata: "ForwardedMetadata" = proto.Field(
proto.MESSAGE,
number=6,
message="ForwardedMetadata",
)


class QuotedMessageSnapshot(proto.Message):
r"""Provides a snapshot of the content of the quoted message at
the time of quoting or forwarding

Attributes:
sender (str):
Output only. The quoted message's author
name. Populated for both REPLY & FORWARD quote
types.
text (str):
Output only. Snapshot of the quoted message's
text content.
formatted_text (str):
Output only. Contains the quoted message ``text`` with
markups added to support rich formatting like
hyperlinks,custom emojis, markup, etc. Populated only for
FORWARD quote type.
annotations (MutableSequence[google.apps.chat_v1.types.Annotation]):
Output only. Annotations parsed from the text
body of the quoted message. Populated only for
FORWARD quote type.
attachments (MutableSequence[google.apps.chat_v1.types.Attachment]):
Output only. Attachments that were part of
the quoted message. These are copies of the
quoted message's attachment metadata. Populated
only for FORWARD quote type.
"""

sender: str = proto.Field(
proto.STRING,
number=1,
)
text: str = proto.Field(
proto.STRING,
number=2,
)
formatted_text: str = proto.Field(
proto.STRING,
number=3,
)
annotations: MutableSequence[annotation.Annotation] = proto.RepeatedField(
proto.MESSAGE,
number=4,
message=annotation.Annotation,
)
attachments: MutableSequence[gc_attachment.Attachment] = proto.RepeatedField(
proto.MESSAGE,
number=5,
message=gc_attachment.Attachment,
)


class ForwardedMetadata(proto.Message):
r"""Metadata about the source space from which a message was
forwarded.

Attributes:
space (str):
Output only. The resource name of the source
space. Format: spaces/{space}
space_display_name (str):
Output only. The display name of the source space or DM at
the time of forwarding. For ``SPACE``, this is the space
name. For ``DIRECT_MESSAGE``, this is the other
participant's name (e.g., "User A"). For ``GROUP_CHAT``,
this is a generated name based on members' first names,
limited to 5 including the creator (e.g., "User A, User B").
"""

space: str = proto.Field(
proto.STRING,
number=1,
)
space_display_name: str = proto.Field(
proto.STRING,
number=2,
)


class Thread(proto.Message):
Expand Down
Loading
Loading