Class AttachmentDataRef.Builder (0.1.0)

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

Protobuf type google.chat.v1.AttachmentDataRef

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachmentDataRef build()
Returns
TypeDescription
AttachmentDataRef

buildPartial()

public AttachmentDataRef buildPartial()
Returns
TypeDescription
AttachmentDataRef

clear()

public AttachmentDataRef.Builder clear()
Returns
TypeDescription
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
TypeDescription
AttachmentDataRef.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public AttachmentDataRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
AttachmentDataRef.Builder

This builder for chaining.

clone()

public AttachmentDataRef.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for attachmentUploadToken.

getDefaultInstanceForType()

public AttachmentDataRef getDefaultInstanceForType()
Returns
TypeDescription
AttachmentDataRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resourceName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachmentDataRef other)

public AttachmentDataRef.Builder mergeFrom(AttachmentDataRef other)
Parameter
NameDescription
otherAttachmentDataRef
Returns
TypeDescription
AttachmentDataRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The attachmentUploadToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for attachmentUploadToken to set.

Returns
TypeDescription
AttachmentDataRef.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public AttachmentDataRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
AttachmentDataRef.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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