Class UploadAttachmentResponse.Builder (0.49.0)

public static final class UploadAttachmentResponse.Builder extends GeneratedMessage.Builder<UploadAttachmentResponse.Builder> implements UploadAttachmentResponseOrBuilder

Response of uploading an attachment.

Protobuf type google.chat.v1.UploadAttachmentResponse

Static Methods

getDescriptor()

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

Methods

build()

public UploadAttachmentResponse build()
Returns
Type Description
UploadAttachmentResponse

buildPartial()

public UploadAttachmentResponse buildPartial()
Returns
Type Description
UploadAttachmentResponse

clear()

public UploadAttachmentResponse.Builder clear()
Returns
Type Description
UploadAttachmentResponse.Builder
Overrides

clearAttachmentDataRef()

public UploadAttachmentResponse.Builder clearAttachmentDataRef()

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Returns
Type Description
UploadAttachmentResponse.Builder

getAttachmentDataRef()

public AttachmentDataRef getAttachmentDataRef()

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Returns
Type Description
AttachmentDataRef

The attachmentDataRef.

getAttachmentDataRefBuilder()

public AttachmentDataRef.Builder getAttachmentDataRefBuilder()

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Returns
Type Description
AttachmentDataRef.Builder

getAttachmentDataRefOrBuilder()

public AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder()

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Returns
Type Description
AttachmentDataRefOrBuilder

getDefaultInstanceForType()

public UploadAttachmentResponse getDefaultInstanceForType()
Returns
Type Description
UploadAttachmentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

hasAttachmentDataRef()

public boolean hasAttachmentDataRef()

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Returns
Type Description
boolean

Whether the attachmentDataRef field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAttachmentDataRef(AttachmentDataRef value)

public UploadAttachmentResponse.Builder mergeAttachmentDataRef(AttachmentDataRef value)

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Parameter
Name Description
value AttachmentDataRef
Returns
Type Description
UploadAttachmentResponse.Builder

mergeFrom(UploadAttachmentResponse other)

public UploadAttachmentResponse.Builder mergeFrom(UploadAttachmentResponse other)
Parameter
Name Description
other UploadAttachmentResponse
Returns
Type Description
UploadAttachmentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UploadAttachmentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadAttachmentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setAttachmentDataRef(AttachmentDataRef value)

public UploadAttachmentResponse.Builder setAttachmentDataRef(AttachmentDataRef value)

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Parameter
Name Description
value AttachmentDataRef
Returns
Type Description
UploadAttachmentResponse.Builder

setAttachmentDataRef(AttachmentDataRef.Builder builderForValue)

public UploadAttachmentResponse.Builder setAttachmentDataRef(AttachmentDataRef.Builder builderForValue)

Reference to the uploaded attachment.

.google.chat.v1.AttachmentDataRef attachment_data_ref = 1;

Parameter
Name Description
builderForValue AttachmentDataRef.Builder
Returns
Type Description
UploadAttachmentResponse.Builder