Skip to content

Commit 08076ef

Browse files
chore: [google-apps-chat] update Python generator version to 1.25.1 (#14294)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 800535761 Source-Link: googleapis/googleapis@4cf1f99 Source-Link: googleapis/googleapis-gen@133d25b Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtY2hhdC8uT3dsQm90LnlhbWwiLCJoIjoiMTMzZDI1YjY4ZTcxMjExNmUxYzVkYzcxZmMzZWIzYzVlNzE3MDIyYSJ9 BEGIN_NESTED_COMMIT fix: [google-apps-chat] Changed field behavior for an existing field `name` in message `.google.chat.v1.QuotedMessageMetadata` BEGIN_COMMIT_OVERRIDE fix: Changed field behavior for an existing field name in message .google.chat.v1.QuotedMessageMetadata fix: Changed field behavior for an existing field `last_update_time` in message `.google.chat.v1.QuotedMessageMetadata` docs: A comment for field `quoted_message_metadata` in message `.google.chat.v1.Message` is changed docs: A comment for message `QuotedMessageMetadata` is changed docs: A comment for field `name` in message `.google.chat.v1.QuotedMessageMetadata` is changed docs: A comment for field `last_update_time` in message `.google.chat.v1.QuotedMessageMetadata` is changed docs: A comment for field `update_mask` in message `.google.chat.v1.UpdateMessageRequest` is changed docs: A comment for field `customer` in message `.google.chat.v1.Space` is changed END_COMMIT_OVERRIDE fix!: Changed field behavior for an existing field `last_update_time` in message `.google.chat.v1.QuotedMessageMetadata` docs: A comment for field `quoted_message_metadata` in message `.google.chat.v1.Message` is changed docs: A comment for message `QuotedMessageMetadata` is changed docs: A comment for field `name` in message `.google.chat.v1.QuotedMessageMetadata` is changed docs: A comment for field `last_update_time` in message `.google.chat.v1.QuotedMessageMetadata` is changed docs: A comment for field `update_mask` in message `.google.chat.v1.UpdateMessageRequest` is changed docs: A comment for field `customer` in message `.google.chat.v1.Space` is changed PiperOrigin-RevId: 799541738 Source-Link: googleapis/googleapis@26dadeb Source-Link: googleapis/googleapis-gen@be88b6a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWFwcHMtY2hhdC8uT3dsQm90LnlhbWwiLCJoIjoiYmU4OGI2YWE0NjYxODE2YzY2YjFhZjVmYjE4ODM4Njc0MDBiYWJhNSJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b533146 commit 08076ef

File tree

7 files changed

+48
-13
lines changed

7 files changed

+48
-13
lines changed

packages/google-apps-chat/google/apps/chat/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-apps-chat/google/apps/chat_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/async_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,9 @@ async def sample_update_message():
12321232
- ``accessory_widgets`` (Requires `app
12331233
authentication </chat/api/guides/auth/service-accounts>`__.)
12341234
1235+
- ``quoted_message_metadata`` (Only allows removal of
1236+
the quoted message.)
1237+
12351238
This corresponds to the ``update_mask`` field
12361239
on the ``request`` instance; if ``request`` is provided, this
12371240
should not be set.

packages/google-apps-chat/google/apps/chat_v1/services/chat_service/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,6 +1808,9 @@ def sample_update_message():
18081808
- ``accessory_widgets`` (Requires `app
18091809
authentication </chat/api/guides/auth/service-accounts>`__.)
18101810
1811+
- ``quoted_message_metadata`` (Only allows removal of
1812+
the quoted message.)
1813+
18111814
This corresponds to the ``update_mask`` field
18121815
on the ``request`` instance; if ``request`` is provided, this
18131816
should not be set.

packages/google-apps-chat/google/apps/chat_v1/types/message.py

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,19 @@ class Message(proto.Message):
232232
Output only. Information about a deleted message. A message
233233
is deleted when ``delete_time`` is set.
234234
quoted_message_metadata (google.apps.chat_v1.types.QuotedMessageMetadata):
235-
Output only. Information about a message
236-
that's quoted by a Google Chat user in a space.
237-
Google Chat users can quote a message to reply
238-
to it.
235+
Optional. Information about a message that another message
236+
quotes.
237+
238+
When you create a message, you can quote messages within the
239+
same thread, or quote a root message to create a new root
240+
message. However, you can't quote a message reply from a
241+
different thread.
242+
243+
When you update a message, you can't add or replace the
244+
``quotedMessageMetadata`` field, but you can remove it.
245+
246+
For example usage, see `Quote another
247+
message <https://developers.google.com/workspace/chat/create-messages#quote-a-message>`__.
239248
attached_gifs (MutableSequence[google.apps.chat_v1.types.AttachedGif]):
240249
Output only. GIF images that are attached to
241250
the message.
@@ -397,17 +406,33 @@ class AttachedGif(proto.Message):
397406

398407

399408
class QuotedMessageMetadata(proto.Message):
400-
r"""Information about a quoted message.
409+
r"""Information about a message that another message quotes.
410+
411+
When you create a message, you can quote messages within the same
412+
thread, or quote a root message to create a new root message.
413+
However, you can't quote a message reply from a different thread.
414+
415+
When you update a message, you can't add or replace the
416+
``quotedMessageMetadata`` field, but you can remove it.
417+
418+
For example usage, see `Quote another
419+
message <https://developers.google.com/workspace/chat/create-messages#quote-a-message>`__.
401420
402421
Attributes:
403422
name (str):
404-
Output only. Resource name of the quoted message.
423+
Required. Resource name of the message that is quoted.
405424
406425
Format: ``spaces/{space}/messages/{message}``
407426
last_update_time (google.protobuf.timestamp_pb2.Timestamp):
408-
Output only. The timestamp when the quoted
409-
message was created or when the quoted message
410-
was last updated.
427+
Required. The timestamp when the quoted message was created
428+
or when the quoted message was last updated.
429+
430+
If the message was edited, use this field,
431+
``last_update_time``. If the message was never edited, use
432+
``create_time``.
433+
434+
If ``last_update_time`` doesn't match the latest version of
435+
the quoted message, the request fails.
411436
"""
412437

413438
name: str = proto.Field(
@@ -679,6 +704,9 @@ class UpdateMessageRequest(proto.Message):
679704
680705
- ``accessory_widgets`` (Requires `app
681706
authentication </chat/api/guides/auth/service-accounts>`__.)
707+
708+
- ``quoted_message_metadata`` (Only allows removal of the
709+
quoted message.)
682710
allow_missing (bool):
683711
Optional. If ``true`` and the message isn't found, a new
684712
message is created and ``updateMask`` is ignored. The

packages/google-apps-chat/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
def mypy(session):
8888
"""Run the type checker."""
8989
session.install(
90-
"mypy",
90+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2410): Use the latest version of mypy
91+
"mypy<1.16.0",
9192
"types-requests",
9293
"types-protobuf",
9394
)

packages/google-apps-chat/samples/generated_samples/snippet_metadata_google.chat.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-apps-chat",
11-
"version": "0.2.8"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)