Interface AttachmentDataRefOrBuilder (0.19.0)

public interface AttachmentDataRefOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAttachmentUploadToken()

public abstract String getAttachmentUploadToken()

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.

string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The attachmentUploadToken.

getAttachmentUploadTokenBytes()

public abstract ByteString getAttachmentUploadTokenBytes()

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.

string attachment_upload_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for attachmentUploadToken.

getResourceName()

public abstract String getResourceName()

Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data.

string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public abstract ByteString getResourceNameBytes()

Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data.

string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for resourceName.