Class AttachmentDataRef.Builder (0.12.0)

publicstaticfinalclass AttachmentDataRef.BuilderextendsGeneratedMessageV3.Builder<AttachmentDataRef.Builder>implementsAttachmentDataRefOrBuilder

A reference to the attachment data.

Protobuf type google.chat.v1.AttachmentDataRef

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAttachmentDataRef.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

build()

publicAttachmentDataRefbuild()
Returns
Type Description
AttachmentDataRef

buildPartial()

publicAttachmentDataRefbuildPartial()
Returns
Type Description
AttachmentDataRef

clear()

publicAttachmentDataRef.Builderclear()
Returns
Type Description
AttachmentDataRef.Builder
Overrides

clearAttachmentUploadToken()

publicAttachmentDataRef.BuilderclearAttachmentUploadToken()

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)

publicAttachmentDataRef.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AttachmentDataRef.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAttachmentDataRef.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AttachmentDataRef.Builder
Overrides

clearResourceName()

publicAttachmentDataRef.BuilderclearResourceName()

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()

publicAttachmentDataRef.Builderclone()
Returns
Type Description
AttachmentDataRef.Builder
Overrides

getAttachmentUploadToken()

publicStringgetAttachmentUploadToken()

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()

publicByteStringgetAttachmentUploadTokenBytes()

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()

publicAttachmentDataRefgetDefaultInstanceForType()
Returns
Type Description
AttachmentDataRef

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResourceName()

publicStringgetResourceName()

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()

publicByteStringgetResourceNameBytes()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AttachmentDataRef other)

publicAttachmentDataRef.BuildermergeFrom(AttachmentDataRefother)
Parameter
Name Description
other AttachmentDataRef
Returns
Type Description
AttachmentDataRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAttachmentDataRef.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AttachmentDataRef.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicAttachmentDataRef.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
AttachmentDataRef.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAttachmentDataRef.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachmentDataRef.Builder
Overrides

setAttachmentUploadToken(String value)

publicAttachmentDataRef.BuildersetAttachmentUploadToken(Stringvalue)

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)

publicAttachmentDataRef.BuildersetAttachmentUploadTokenBytes(ByteStringvalue)

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)

publicAttachmentDataRef.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

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

publicAttachmentDataRef.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AttachmentDataRef.Builder
Overrides

setResourceName(String value)

publicAttachmentDataRef.BuildersetResourceName(Stringvalue)

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)

publicAttachmentDataRef.BuildersetResourceNameBytes(ByteStringvalue)

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)

publicfinalAttachmentDataRef.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AttachmentDataRef.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.