Class UploadAttachmentResponse.Builder (0.3.0)

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

Protobuf type google.chat.v1.UploadAttachmentResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UploadAttachmentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

build()

public UploadAttachmentResponse build()
Returns
TypeDescription
UploadAttachmentResponse

buildPartial()

public UploadAttachmentResponse buildPartial()
Returns
TypeDescription
UploadAttachmentResponse

clear()

public UploadAttachmentResponse.Builder clear()
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

clearAttachmentDataRef()

public UploadAttachmentResponse.Builder clearAttachmentDataRef()

Reference to the uploaded attachment.

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

Returns
TypeDescription
UploadAttachmentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public UploadAttachmentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UploadAttachmentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

clone()

public UploadAttachmentResponse.Builder clone()
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

getAttachmentDataRef()

public AttachmentDataRef getAttachmentDataRef()

Reference to the uploaded attachment.

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

Returns
TypeDescription
AttachmentDataRef

The attachmentDataRef.

getAttachmentDataRefBuilder()

public AttachmentDataRef.Builder getAttachmentDataRefBuilder()

Reference to the uploaded attachment.

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

Returns
TypeDescription
AttachmentDataRef.Builder

getAttachmentDataRefOrBuilder()

public AttachmentDataRefOrBuilder getAttachmentDataRefOrBuilder()

Reference to the uploaded attachment.

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

Returns
TypeDescription
AttachmentDataRefOrBuilder

getDefaultInstanceForType()

public UploadAttachmentResponse getDefaultInstanceForType()
Returns
TypeDescription
UploadAttachmentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAttachmentDataRef()

public boolean hasAttachmentDataRef()

Reference to the uploaded attachment.

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

Returns
TypeDescription
boolean

Whether the attachmentDataRef field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAttachmentDataRef
Returns
TypeDescription
UploadAttachmentResponse.Builder

mergeFrom(UploadAttachmentResponse other)

public UploadAttachmentResponse.Builder mergeFrom(UploadAttachmentResponse other)
Parameter
NameDescription
otherUploadAttachmentResponse
Returns
TypeDescription
UploadAttachmentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UploadAttachmentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UploadAttachmentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UploadAttachmentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAttachmentDataRef
Returns
TypeDescription
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
NameDescription
builderForValueAttachmentDataRef.Builder
Returns
TypeDescription
UploadAttachmentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UploadAttachmentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

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

public UploadAttachmentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UploadAttachmentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UploadAttachmentResponse.Builder
Overrides