You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/chat_v1.media.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -153,8 +153,8 @@ <h3>Method Details</h3>
153
153
154
154
{ # Response of uploading an attachment.
155
155
"attachmentDataRef": { # A reference to the attachment data. # Reference to the uploaded attachment.
156
-
"attachmentUploadToken": "A String", # Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
157
-
"resourceName": "A String", # The resource name of the attachment data. This field is used with the media API to download the attachment data.
156
+
"attachmentUploadToken": "A String", # Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
157
+
"resourceName": "A String", # Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data.
Copy file name to clipboardExpand all lines: docs/dyn/chat_v1.spaces.messages.attachments.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -101,17 +101,17 @@ <h3>Method Details</h3>
101
101
An object of the form:
102
102
103
103
{ # An attachment in Google Chat.
104
-
"attachmentDataRef": { # A reference to the attachment data. # A reference to the attachment data. This field is used with the media API to download the attachment data.
105
-
"attachmentUploadToken": "A String", # Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
106
-
"resourceName": "A String", # The resource name of the attachment data. This field is used with the media API to download the attachment data.
104
+
"attachmentDataRef": { # A reference to the attachment data. # Optional. A reference to the attachment data. This field is used to create or update messages with attachments, or with the media API to download the attachment data.
105
+
"attachmentUploadToken": "A String", # Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
106
+
"resourceName": "A String", # Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data.
107
107
},
108
108
"contentName": "A String", # Output only. The original file name for the content, not the full path.
109
109
"contentType": "A String", # Output only. The content type (MIME type) of the file.
110
110
"downloadUri": "A String", # Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content.
111
111
"driveDataRef": { # A reference to the data of a drive attachment. # Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
112
112
"driveFileId": "A String", # The ID for the drive file. Use with the Drive API.
113
113
},
114
-
"name": "A String", # Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`.
114
+
"name": "A String", # Optional. Resource name of the attachment, in the form `spaces/{space}/messages/{message}/attachments/{attachment}`.
115
115
"source": "A String", # Output only. The source of the attachment.
116
116
"thumbnailUri": "A String", # Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content.
Copy file name to clipboardExpand all lines: docs/dyn/chat_v1.spaces.messages.reactions.html
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -105,13 +105,13 @@ <h3>Method Details</h3>
105
105
The object takes the form of:
106
106
107
107
{ # A reaction to a message.
108
-
"emoji": { # An emoji that is used as a reaction to a message. # The emoji used in the reaction.
108
+
"emoji": { # An emoji that is used as a reaction to a message. # Required. The emoji used in the reaction.
109
109
"customEmoji": { # Represents a custom emoji. # Output only. A custom emoji.
110
110
"uid": "A String", # Output only. Unique key for the custom emoji resource.
111
111
},
112
-
"unicode": "A String", # A basic emoji represented by a unicode string.
112
+
"unicode": "A String", # Optional. A basic emoji represented by a unicode string.
113
113
},
114
-
"name": "A String", # The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
114
+
"name": "A String", # Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
115
115
"user": { # A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`. # Output only. The user who created the reaction.
116
116
"displayName": "A String", # Output only. The user's display name.
117
117
"domainId": "A String", # Unique identifier of the user's Google Workspace domain.
@@ -130,13 +130,13 @@ <h3>Method Details</h3>
130
130
An object of the form:
131
131
132
132
{ # A reaction to a message.
133
-
"emoji": { # An emoji that is used as a reaction to a message. # The emoji used in the reaction.
133
+
"emoji": { # An emoji that is used as a reaction to a message. # Required. The emoji used in the reaction.
134
134
"customEmoji": { # Represents a custom emoji. # Output only. A custom emoji.
135
135
"uid": "A String", # Output only. Unique key for the custom emoji resource.
136
136
},
137
-
"unicode": "A String", # A basic emoji represented by a unicode string.
137
+
"unicode": "A String", # Optional. A basic emoji represented by a unicode string.
138
138
},
139
-
"name": "A String", # The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
139
+
"name": "A String", # Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
140
140
"user": { # A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`. # Output only. The user who created the reaction.
141
141
"displayName": "A String", # Output only. The user's display name.
142
142
"domainId": "A String", # Unique identifier of the user's Google Workspace domain.
@@ -186,13 +186,13 @@ <h3>Method Details</h3>
186
186
"nextPageToken": "A String", # Continuation token to retrieve the next page of results. It's empty for the last page of results.
187
187
"reactions": [ # List of reactions in the requested (or first) page.
188
188
{ # A reaction to a message.
189
-
"emoji": { # An emoji that is used as a reaction to a message. # The emoji used in the reaction.
189
+
"emoji": { # An emoji that is used as a reaction to a message. # Required. The emoji used in the reaction.
190
190
"customEmoji": { # Represents a custom emoji. # Output only. A custom emoji.
191
191
"uid": "A String", # Output only. Unique key for the custom emoji resource.
192
192
},
193
-
"unicode": "A String", # A basic emoji represented by a unicode string.
193
+
"unicode": "A String", # Optional. A basic emoji represented by a unicode string.
194
194
},
195
-
"name": "A String", # The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
195
+
"name": "A String", # Identifier. The resource name of the reaction. Format: `spaces/{space}/messages/{message}/reactions/{reaction}`
196
196
"user": { # A user in Google Chat. When returned as an output from a request, if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output for a `User` resource only populates the user's `name` and `type`. # Output only. The user who created the reaction.
197
197
"displayName": "A String", # Output only. The user's display name.
198
198
"domainId": "A String", # Unique identifier of the user's Google Workspace domain.
0 commit comments