Class DriveLinkData (0.3.0)

public final class DriveLinkData extends GeneratedMessageV3 implements DriveLinkDataOrBuilder

Data for Google Drive links.

Protobuf type google.chat.v1.DriveLinkData

Static Fields

DRIVE_DATA_REF_FIELD_NUMBER

public static final int DRIVE_DATA_REF_FIELD_NUMBER
Field Value
TypeDescription
int

MIME_TYPE_FIELD_NUMBER

public static final int MIME_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DriveLinkData getDefaultInstance()
Returns
TypeDescription
DriveLinkData

getDescriptor()

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

newBuilder()

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

newBuilder(DriveLinkData prototype)

public static DriveLinkData.Builder newBuilder(DriveLinkData prototype)
Parameter
NameDescription
prototypeDriveLinkData
Returns
TypeDescription
DriveLinkData.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DriveLinkData getDefaultInstanceForType()
Returns
TypeDescription
DriveLinkData

getDriveDataRef()

public DriveDataRef getDriveDataRef()

A DriveDataRef which references a Google Drive file.

.google.chat.v1.DriveDataRef drive_data_ref = 1;

Returns
TypeDescription
DriveDataRef

The driveDataRef.

getDriveDataRefOrBuilder()

public DriveDataRefOrBuilder getDriveDataRefOrBuilder()

A DriveDataRef which references a Google Drive file.

.google.chat.v1.DriveDataRef drive_data_ref = 1;

Returns
TypeDescription
DriveDataRefOrBuilder

getMimeType()

public String getMimeType()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.

getParserForType()

public Parser<DriveLinkData> getParserForType()
Returns
TypeDescription
Parser<DriveLinkData>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasDriveDataRef()

public boolean hasDriveDataRef()

A DriveDataRef which references a Google Drive file.

.google.chat.v1.DriveDataRef drive_data_ref = 1;

Returns
TypeDescription
boolean

Whether the driveDataRef field is set.

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 DriveLinkData.Builder newBuilderForType()
Returns
TypeDescription
DriveLinkData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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