public static final class Attachment.Builder extends GeneratedMessage.Builder<Attachment.Builder> implements AttachmentOrBuilderAn attachment in Google Chat.
Protobuf type google.chat.v1.Attachment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Attachment.BuilderImplements
AttachmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Attachment build()| Returns | |
|---|---|
| Type | Description |
Attachment |
|
buildPartial()
public Attachment buildPartial()| Returns | |
|---|---|
| Type | Description |
Attachment |
|
clear()
public Attachment.Builder clear()| Returns | |
|---|---|
| Type | Description |
Attachment.Builder |
|
clearAttachmentDataRef()
public Attachment.Builder clearAttachmentDataRef()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.
.google.chat.v1.AttachmentDataRef attachment_data_ref = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Attachment.Builder |
|
clearContentName()
public Attachment.Builder clearContentName()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 |
Attachment.Builder |
This builder for chaining. |
clearContentType()
public Attachment.Builder clearContentType()Output only. The content type (MIME type) of the file.
string content_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Attachment.Builder |
This builder for chaining. |
clearDataRef()
public Attachment.Builder clearDataRef()