Class DriveDataRef (0.3.0)

public final class DriveDataRef extends GeneratedMessageV3 implements DriveDataRefOrBuilder

A reference to the data of a drive attachment.

Protobuf type google.chat.v1.DriveDataRef

Static Fields

DRIVE_FILE_ID_FIELD_NUMBER

public static final int DRIVE_FILE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DriveDataRef getDefaultInstance()
Returns
TypeDescription
DriveDataRef

getDescriptor()

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

newBuilder()

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

newBuilder(DriveDataRef prototype)

public static DriveDataRef.Builder newBuilder(DriveDataRef prototype)
Parameter
NameDescription
prototypeDriveDataRef
Returns
TypeDescription
DriveDataRef.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DriveDataRef getDefaultInstanceForType()
Returns
TypeDescription
DriveDataRef

getDriveFileId()

public String getDriveFileId()

The ID for the drive file. Use with the Drive API.

string drive_file_id = 2;

Returns
TypeDescription
String

The driveFileId.

getDriveFileIdBytes()

public ByteString getDriveFileIdBytes()

The ID for the drive file. Use with the Drive API.

string drive_file_id = 2;

Returns
TypeDescription
ByteString

The bytes for driveFileId.

getParserForType()

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

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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