Class AttachmentDataRef (0.3.0)

public final class AttachmentDataRef extends GeneratedMessageV3 implements AttachmentDataRefOrBuilder

Protobuf type google.chat.v1.AttachmentDataRef

Static Fields

ATTACHMENT_UPLOAD_TOKEN_FIELD_NUMBER

public static final int ATTACHMENT_UPLOAD_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_NAME_FIELD_NUMBER

public static final int RESOURCE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttachmentDataRef getDefaultInstance()
Returns
TypeDescription
AttachmentDataRef

getDescriptor()

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

newBuilder()

public static AttachmentDataRef.Builder newBuilder()
Returns
TypeDescription
AttachmentDataRef.Builder

newBuilder(AttachmentDataRef prototype)

public static AttachmentDataRef.Builder newBuilder(AttachmentDataRef prototype)
Parameter
NameDescription
prototypeAttachmentDataRef
Returns
TypeDescription
AttachmentDataRef.Builder

parseDelimitedFrom(InputStream input)

public static AttachmentDataRef parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttachmentDataRef parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttachmentDataRef parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttachmentDataRef parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttachmentDataRef parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttachmentDataRef parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttachmentDataRef parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttachmentDataRef
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttachmentDataRef> parser()
Returns
TypeDescription
Parser<AttachmentDataRef>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<AttachmentDataRef> getParserForType()
Returns
TypeDescription
Parser<AttachmentDataRef>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttachmentDataRef.Builder newBuilderForType()
Returns
TypeDescription
AttachmentDataRef.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttachmentDataRef.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttachmentDataRef.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttachmentDataRef.Builder toBuilder()
Returns
TypeDescription
AttachmentDataRef.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException