public static final class AttachmentDataRef.Builder extends GeneratedMessage.Builder<AttachmentDataRef.Builder> implements AttachmentDataRefOrBuilderA reference to the attachment data.
Protobuf type google.chat.v1.AttachmentDataRef
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AttachmentDataRef.BuilderImplements
AttachmentDataRefOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AttachmentDataRef build()| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef |
|
buildPartial()
public AttachmentDataRef buildPartial()| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef |
|
clear()
public AttachmentDataRef.Builder clear()| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
|
clearAttachmentUploadToken()
public AttachmentDataRef.Builder clearAttachmentUploadToken()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 |
AttachmentDataRef.Builder |
This builder for chaining. |
clearResourceName()
public AttachmentDataRef.Builder clearResourceName()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 |
AttachmentDataRef.Builder |
This builder for chaining. |
getAttachmentUploadToken()
public 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 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. |
getDefaultInstanceForType()
public AttachmentDataRef getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getResourceName()
public 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 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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AttachmentDataRef other)
public AttachmentDataRef.Builder mergeFrom(AttachmentDataRef other)| Parameter | |
|---|---|
| Name | Description |
other |
AttachmentDataRef |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttachmentDataRef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AttachmentDataRef.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
|
setAttachmentUploadToken(String value)
public AttachmentDataRef.Builder setAttachmentUploadToken(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe attachmentUploadToken to set. |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
This builder for chaining. |
setAttachmentUploadTokenBytes(ByteString value)
public AttachmentDataRef.Builder setAttachmentUploadTokenBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for attachmentUploadToken to set. |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
This builder for chaining. |
setResourceName(String value)
public AttachmentDataRef.Builder setResourceName(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
This builder for chaining. |
setResourceNameBytes(ByteString value)
public AttachmentDataRef.Builder setResourceNameBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceName to set. |
| Returns | |
|---|---|
| Type | Description |
AttachmentDataRef.Builder |
This builder for chaining. |