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()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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()
Optional. The resource name of the attachment data. This field is used with
the media API to download the attachment data.
string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];
clone()
public AttachmentDataRef.Builder clone()
Overrides
getAttachmentUploadToken()
public String getAttachmentUploadToken()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The attachmentUploadToken.
|
getAttachmentUploadTokenBytes()
public ByteString getAttachmentUploadTokenBytes()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
ByteString |
The bytes for attachmentUploadToken.
|
getDefaultInstanceForType()
public AttachmentDataRef getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResourceName()
public String getResourceName()
Optional. The resource name of the attachment data. This field is used with
the media API to download the attachment data.
string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
String |
The resourceName.
|
getResourceNameBytes()
public ByteString getResourceNameBytes()
Optional. The resource name of the attachment data. This field is used with
the media API to download the attachment data.
string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];
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)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The attachmentUploadToken to set.
|
setAttachmentUploadTokenBytes(ByteString value)
public AttachmentDataRef.Builder setAttachmentUploadTokenBytes(ByteString value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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)
Optional. The resource name of the attachment data. This field is used with
the media API to download the attachment data.
string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
String
The resourceName to set.
|
setResourceNameBytes(ByteString value)
public AttachmentDataRef.Builder setResourceNameBytes(ByteString value)
Optional. The resource name of the attachment data. This field is used with
the media API to download the attachment data.
string resource_name = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
ByteString
The bytes for resourceName to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AttachmentDataRef.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides