Resource: Attachment
An attachment resource with a unique name that an agent can use to identify the attachment.
| JSON representation |
|---|
{ "name": string, "gcsUrl": string, "displayName": string, "description": string, "contentType": string, "sizeBytes": string, "attachmentOperationSource": enum ( |
| Fields | |
|---|---|
name |
Output only. The unique identifier of the attachment. Read-only. Defined by the platform. |
gcsUrl |
Output only. The GCS URL of the attachment. This is the publicly accessible URL that is used to fetch the attachment from GCS. |
displayName |
Optional. Display name of the attachment. |
description |
Optional. Text description of the attachment's content. Screen readers use this description to help users with disabilities understand what the attachment contains. |
contentType |
Optional. The content type of the attachment. |
sizeBytes |
Output only. Size in bytes of the attachment. |
attachmentOperationSource |
Required. The source that triggered the attachment upload. Required if |
uploadTime |
Output only. The time when the attachment was uploaded to GCS. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
uploadError |
Output only. Error result, if any, that occurred during the attachment upload. |
AttachmentOperationSource
List of Attachment Operation Sources.
| Enums | |
|---|---|
ATTACHMENT_OPERATION_SOURCE_UNSPECIFIED |
Attachment Operation is unspecified |
VERIFICATION_PAGE |
Console verification page. |
VERIFICATION_ATTACHMENT_VIA_BC_API |
Supporting attachment for agent verification, uploaded using the Business Communications API. |
Status
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details.
You can find out more about this error model and how to work with it in the API Design Guide.
| JSON representation |
|---|
{ "code": integer, "message": string, "details": [ { "@type": string, field1: ..., ... } ] } |
| Fields | |
|---|---|
code |
The status code, which should be an enum value of |
message |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the |
details[] |
A list of messages that carry the error details. There is a common set of message types for APIs to use. An object containing fields of an arbitrary type. An additional field |
Methods |
|
|---|---|
|
Creates an attachment for an RCS for Business agent. |