| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1765b55 commit 26dadeb
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -238,10 +238,19 @@ message Message { | |||
| 238 | 238 | DeletionMetadata deletion_metadata = 38 | |
| 239 | 239 | [(google.api.field_behavior) = OUTPUT_ONLY]; | |
| 240 | 240 | ||
| 241 | - // Output only. Information about a message that's quoted by a Google Chat | ||
| 242 | - // user in a space. Google Chat users can quote a message to reply to it. | ||
| 241 | + // Optional. Information about a message that another message quotes. | ||
| 242 | + // | ||
| 243 | + // When you create a message, you can quote messages within the same | ||
| 244 | + // thread, or quote a root message to create a new root message. | ||
| 245 | + // However, you can't quote a message reply from a different thread. | ||
| 246 | + // | ||
| 247 | + // When you update a message, you can't add or replace the | ||
| 248 | + // `quotedMessageMetadata` field, but you can remove it. | ||
| 249 | + // | ||
| 250 | + // For example usage, see [Quote another | ||
| 251 | + // message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). | ||
| 243 | 252 | QuotedMessageMetadata quoted_message_metadata = 39 | |
| 244 | - [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 253 | + [(google.api.field_behavior) = OPTIONAL]; | ||
| 245 | 254 | ||
| 246 | 255 | // Output only. GIF images that are attached to the message. | |
| 247 | 256 | repeated AttachedGif attached_gifs = 42 | |
@@ -266,25 +275,41 @@ message AttachedGif { | |||
| 266 | 275 | string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | |
| 267 | 276 | } | |
| 268 | 277 | ||
| 269 | - // Information about a quoted message. | ||
| 278 | + // Information about a message that another message quotes. | ||
| 279 | + // | ||
| 280 | + // When you create a message, you can quote messages within the same | ||
| 281 | + // thread, or quote a root message to create a new root message. | ||
| 282 | + // However, you can't quote a message reply from a different thread. | ||
| 283 | + // | ||
| 284 | + // When you update a message, you can't add or replace the | ||
| 285 | + // `quotedMessageMetadata` field, but you can remove it. | ||
| 286 | + // | ||
| 287 | + // For example usage, see [Quote another | ||
| 288 | + // message](https://developers.google.com/workspace/chat/create-messages#quote-a-message). | ||
| 270 | 289 | message QuotedMessageMetadata { | |
| 271 | 290 | option (google.api.resource) = { | |
| 272 | 291 | type: "chat.googleapis.com/QuotedMessageMetadata" | |
| 273 | 292 | pattern: "spaces/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}" | |
| 274 | 293 | }; | |
| 275 | 294 | ||
| 276 | - // Output only. Resource name of the quoted message. | ||
| 295 | + // Required. Resource name of the message that is quoted. | ||
| 277 | 296 | // | |
| 278 | 297 | // Format: `spaces/{space}/messages/{message}` | |
| 279 | 298 | string name = 1 [ | |
| 280 | - (google.api.field_behavior) = OUTPUT_ONLY, | ||
| 299 | + (google.api.field_behavior) = REQUIRED, | ||
| 281 | 300 | (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } | |
| 282 | 301 | ]; | |
| 283 | 302 | ||
| 284 | - // Output only. The timestamp when the quoted message was created or when the | ||
| 303 | + // Required. The timestamp when the quoted message was created or when the | ||
| 285 | 304 | // quoted message was last updated. | |
| 305 | + // | ||
| 306 | + // If the message was edited, use this field, `last_update_time`. | ||
| 307 | + // If the message was never edited, use `create_time`. | ||
| 308 | + // | ||
| 309 | + // If `last_update_time` doesn't match the latest version of the quoted | ||
| 310 | + // message, the request fails. | ||
| 286 | 311 | google.protobuf.Timestamp last_update_time = 2 | |
| 287 | - [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 312 | + [(google.api.field_behavior) = REQUIRED]; | ||
| 288 | 313 | } | |
| 289 | 314 | ||
| 290 | 315 | // A thread in a Google Chat space. For example usage, see | |
@@ -456,6 +481,8 @@ message UpdateMessageRequest { | |||
| 456 | 481 | // | |
| 457 | 482 | // - `accessory_widgets` (Requires [app | |
| 458 | 483 | // authentication](/chat/api/guides/auth/service-accounts).) | |
| 484 | + // | ||
| 485 | + // - `quoted_message_metadata` (Only allows removal of the quoted message.) | ||
| 459 | 486 | google.protobuf.FieldMask update_mask = 2 | |
| 460 | 487 | [(google.api.field_behavior) = REQUIRED]; | |
| 461 | 488 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -355,8 +355,8 @@ message Space { | |||
| 355 | 355 | // and `SpaceType` is `SPACE`, otherwise should not be set. | |
| 356 | 356 | // | |
| 357 | 357 | // In the format `customers/{customer}`, where `customer` is the `id` from the | |
| 358 | - // [Admin SDK customer resource]( | ||
| 359 | - // https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). | ||
| 358 | + // [Admin SDK customer | ||
| 359 | + // resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). | ||
| 360 | 360 | // Private apps can also use the `customers/my_customer` alias to create | |
| 361 | 361 | // the space in the same Google Workspace organization as the app. | |
| 362 | 362 | // | |
| Back | FazBrowse Home | New Git URL |
0 commit comments