Class AttachmentDataRef.Builder (0.11.0)

public static final class AttachmentDataRef.Builder extends GeneratedMessageV3.Builder<AttachmentDataRef.Builder> implements AttachmentDataRefOrBuilder

A reference to the attachment data.

Protobuf type google.chat.v1.AttachmentDataRef

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttachmentDataRef.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

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
Overrides

clearAttachmentUploadToken()

public AttachmentDataRef.Builder clearAttachmentUploadToken()

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;

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttachmentDataRef.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttachmentDataRef.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AttachmentDataRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttachmentDataRef.Builder
Overrides

clearResourceName()

public AttachmentDataRef.Builder clearResourceName()

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

string resource_name = 1;

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

clone()

public AttachmentDataRef.Builder clone()
Returns
Type Description
AttachmentDataRef.Builder
Overrides

getAttachmentUploadToken()

public String getAttachmentUploadToken()

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;

Returns
Type Description
String

The attachmentUploadToken.

getAttachmentUploadTokenBytes()

public ByteString getAttachmentUploadTokenBytes()

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;

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
Overrides

getResourceName()

public String getResourceName()

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

string resource_name = 1;

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

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

string resource_name = 1;

Returns
Type Description
ByteString

The bytes for resourceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AttachmentDataRef.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AttachmentDataRef.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttachmentDataRef.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachmentDataRef.Builder
Overrides

setAttachmentUploadToken(String value)

public AttachmentDataRef.Builder setAttachmentUploadToken(String value)

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;

Parameter
Name Description
value String

The attachmentUploadToken to set.

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

setAttachmentUploadTokenBytes(ByteString value)

public AttachmentDataRef.Builder setAttachmentUploadTokenBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for attachmentUploadToken to set.

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttachmentDataRef.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttachmentDataRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

setResourceName(String value)

public AttachmentDataRef.Builder setResourceName(String value)

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

string resource_name = 1;

Parameter
Name Description
value String

The resourceName to set.

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public AttachmentDataRef.Builder setResourceNameBytes(ByteString value)

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

string resource_name = 1;

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
Type Description
AttachmentDataRef.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AttachmentDataRef.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachmentDataRef.Builder
Overrides