@@ -241,11 +241,13 @@ public final class Message extends com.google.api.client.json.GenericJson {
241
241
/**
242
242
* Immutable. Input for creating a message, otherwise output only. The user that can view the
243
243
* message. When set, the message is private and only visible to the specified user and the Chat
244
- * app. Link previews and attachments aren't supported for private messages. Only Chat apps can
245
- * send private messages. If your Chat app [authenticates as a
246
- * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) to send a
247
- * message, the message can't be private and must omit this field. For details, see [Send a
248
- * message privately](https://developers.google.com/workspace/chat/create-messages#private).
244
+ * app. To include this field in your request, you must call the Chat API using [app
245
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
246
+ * and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
247
+ * nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
248
+ * rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
249
+ * [Send a message privately](https://developers.google.com/workspace/chat/create-
250
+ * messages#private).
249
251
* The value may be {@code null}.
250
252
*/
251
253
@ com .google .api .client .util .Key
@@ -707,11 +709,13 @@ public Message setName(java.lang.String name) {
707
709
/**
708
710
* Immutable. Input for creating a message, otherwise output only. The user that can view the
709
711
* message. When set, the message is private and only visible to the specified user and the Chat
710
- * app. Link previews and attachments aren't supported for private messages. Only Chat apps can
711
- * send private messages. If your Chat app [authenticates as a
712
- * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) to send a
713
- * message, the message can't be private and must omit this field. For details, see [Send a
714
- * message privately](https://developers.google.com/workspace/chat/create-messages#private).
712
+ * app. To include this field in your request, you must call the Chat API using [app
713
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
714
+ * and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
715
+ * nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
716
+ * rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
717
+ * [Send a message privately](https://developers.google.com/workspace/chat/create-
718
+ * messages#private).
715
719
* @return value or {@code null} for none
716
720
*/
717
721
public User getPrivateMessageViewer () {
@@ -721,11 +725,13 @@ public User getPrivateMessageViewer() {
721
725
/**
722
726
* Immutable. Input for creating a message, otherwise output only. The user that can view the
723
727
* message. When set, the message is private and only visible to the specified user and the Chat
724
- * app. Link previews and attachments aren't supported for private messages. Only Chat apps can
725
- * send private messages. If your Chat app [authenticates as a
726
- * user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) to send a
727
- * message, the message can't be private and must omit this field. For details, see [Send a
728
- * message privately](https://developers.google.com/workspace/chat/create-messages#private).
728
+ * app. To include this field in your request, you must call the Chat API using [app
729
+ * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
730
+ * and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/refere
731
+ * nce/rest/v1/spaces.messages.attachments) * [Accessory widgets](https://developers.google.com/wo
732
+ * rkspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget) For details, see
733
+ * [Send a message privately](https://developers.google.com/workspace/chat/create-
734
+ * messages#private).
729
735
* @param privateMessageViewer privateMessageViewer or {@code null} for none
730
736
*/
731
737
public Message setPrivateMessageViewer (User privateMessageViewer ) {
0 commit comments