public interface AttachmentOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAttachmentDataRef()
public abstract AttachmentDataRef getAttachmentDataRef()A reference to the attachment data. This field is used with the media API to download the attachment data.
.google.chat.v1.AttachmentDataRef attachment_data_ref = 4;
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef |
The attachmentDataRef. |
getAttachmentDataRefOrBuilder()
public abstract AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder()A reference to the attachment data. This field is used with the media API to download the attachment data.
.google.chat.v1.AttachmentDataRef attachment_data_ref = 4;
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRefOrBuilder |
|
getContentName()
public abstract String getContentName()Output only. The original file name for the content, not the full path.
string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The contentName. |
getContentNameBytes()
public abstract ByteString getContentNameBytes()Output only. The original file name for the content, not the full path.
string content_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentName. |
getContentType()
public abstract String getContentType()Output only. The content type (MIME type) of the file.
string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The contentType. |
getContentTypeBytes()
public abstract ByteString getContentTypeBytes()Output only. The content type (MIME type) of the file.
string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for contentType. |
getDataRefCase()
public abstract Attachment.DataRefCase getDataRefCase()| Returns | |
|---|---|
| Type | Description |
Attachment.DataRefCase |
|
getDownloadUri()
public abstract String getDownloadUri()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.
string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The downloadUri. |
getDownloadUriBytes()
public abstract ByteString getDownloadUriBytes()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.
string download_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for downloadUri. |
getDriveDataRef()
public abstract DriveDataRef getDriveDataRef()Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
.google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DriveDataRef |
The driveDataRef. |
getDriveDataRefOrBuilder()
public abstract DriveDataRefOrBuilder getDriveDataRefOrBuilder()Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
.google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DriveDataRefOrBuilder |
|
getName()
public abstract String getName() Resource name of the attachment, in the form
spaces/*/messages/*/attachments/*.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes() Resource name of the attachment, in the form
spaces/*/messages/*/attachments/*.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSource()
public abstract Attachment.Source getSource()Output only. The source of the attachment.
.google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Attachment.Source |
The source. |
getSourceValue()
public abstract int getSourceValue()Output only. The source of the attachment.
.google.chat.v1.Attachment.Source source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for source. |
getThumbnailUri()
public abstract String getThumbnailUri()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.
string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The thumbnailUri. |
getThumbnailUriBytes()
public abstract ByteString getThumbnailUriBytes()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.
string thumbnail_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for thumbnailUri. |
hasAttachmentDataRef()
public abstract boolean hasAttachmentDataRef()A reference to the attachment data. This field is used with the media API to download the attachment data.
.google.chat.v1.AttachmentDataRef attachment_data_ref = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the attachmentDataRef field is set. |
hasDriveDataRef()
public abstract boolean hasDriveDataRef()Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
.google.chat.v1.DriveDataRef drive_data_ref = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the driveDataRef field is set. |