Class DriveDataRef.Builder (0.49.0)

public static final class DriveDataRef.Builder extends GeneratedMessage.Builder<DriveDataRef.Builder> implements DriveDataRefOrBuilder

A reference to the data of a drive attachment.

Protobuf type google.chat.v1.DriveDataRef

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public DriveDataRef build()
Returns
Type Description
DriveDataRef

buildPartial()

public DriveDataRef buildPartial()
Returns
Type Description
DriveDataRef

clear()

public DriveDataRef.Builder clear()
Returns
Type Description
DriveDataRef.Builder
Overrides

clearDriveFileId()

public DriveDataRef.Builder clearDriveFileId()

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

string drive_file_id = 2;

Returns
Type Description
DriveDataRef.Builder

This builder for chaining.

getDefaultInstanceForType()

public DriveDataRef getDefaultInstanceForType()
Returns
Type Description
DriveDataRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDriveFileId()

public String getDriveFileId()

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

string drive_file_id = 2;

Returns
Type Description
String

The driveFileId.

getDriveFileIdBytes()

public ByteString getDriveFileIdBytes()

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

string drive_file_id = 2;

Returns
Type Description
ByteString

The bytes for driveFileId.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DriveDataRef other)

public DriveDataRef.Builder mergeFrom(DriveDataRef other)
Parameter
Name Description
other DriveDataRef
Returns
Type Description
DriveDataRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DriveDataRef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DriveDataRef.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DriveDataRef.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DriveDataRef.Builder
Overrides

setDriveFileId(String value)

public DriveDataRef.Builder setDriveFileId(String value)

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

string drive_file_id = 2;

Parameter
Name Description
value String

The driveFileId to set.

Returns
Type Description
DriveDataRef.Builder

This builder for chaining.

setDriveFileIdBytes(ByteString value)

public DriveDataRef.Builder setDriveFileIdBytes(ByteString value)

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

string drive_file_id = 2;

Parameter
Name Description
value ByteString

The bytes for driveFileId to set.

Returns
Type Description
DriveDataRef.Builder

This builder for chaining.