Class UploadAttachmentResponse.Builder (0.13.0)

public static final class UploadAttachmentResponse.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UploadAttachmentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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