Send feedback
Class AttachmentDataRef.Builder (0.9.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.9.0 keyboard_arrow_down
public static final class AttachmentDataRef . Builder extends GeneratedMessageV3 . Builder<AttachmentDataRef . Builder > implements AttachmentDataRefOrBuilder
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()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttachmentDataRef . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public AttachmentDataRef build ()
buildPartial()
public AttachmentDataRef buildPartial ()
clear()
public AttachmentDataRef . Builder clear ()
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;
clearField(Descriptors.FieldDescriptor field)
public AttachmentDataRef . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AttachmentDataRef . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public AttachmentDataRef . Builder clone ()
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
Type
Description
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
Type
Description
ByteString
The bytes for attachmentUploadToken.
getDefaultInstanceForType()
public AttachmentDataRef getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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
Type
Description
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
Type
Description
ByteString
The bytes for resourceName.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(AttachmentDataRef other)
public AttachmentDataRef . Builder mergeFrom ( AttachmentDataRef other )
public AttachmentDataRef . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public AttachmentDataRef . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttachmentDataRef . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
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
Name
Description
value
String
The attachmentUploadToken to set.
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
Name
Description
value
ByteString
The bytes for attachmentUploadToken to set.
setField(Descriptors.FieldDescriptor field, Object value)
public AttachmentDataRef . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttachmentDataRef . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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
Name
Description
value
String
The resourceName to set.
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
Name
Description
value
ByteString
The bytes for resourceName to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final AttachmentDataRef . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
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-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]