Class DriveLinkData.Builder (0.49.0)

public static final class DriveLinkData.Builder extends GeneratedMessage.Builder<DriveLinkData.Builder> implements DriveLinkDataOrBuilder

Data for Google Drive links.

Protobuf type google.chat.v1.DriveLinkData

Static Methods

getDescriptor()

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

Methods

build()

public DriveLinkData build()
Returns
Type Description
DriveLinkData

buildPartial()

public DriveLinkData buildPartial()
Returns
Type Description
DriveLinkData

clear()

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

clearDriveDataRef()

public DriveLinkData.Builder clearDriveDataRef()

A DriveDataRef which references a Google Drive file.

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

Returns
Type Description
DriveLinkData.Builder

clearMimeType()

public DriveLinkData.Builder clearMimeType()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
Type Description
DriveLinkData.Builder

This builder for chaining.

getDefaultInstanceForType()

public DriveLinkData getDefaultInstanceForType()
Returns
Type Description
DriveLinkData

getDescriptorForType()

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

getDriveDataRef()

public DriveDataRef getDriveDataRef()

A DriveDataRef which references a Google Drive file.

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

Returns
Type Description
DriveDataRef

The driveDataRef.

getDriveDataRefBuilder()

public DriveDataRef.Builder getDriveDataRefBuilder()

A DriveDataRef which references a Google Drive file.

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

Returns
Type Description
DriveDataRef.Builder

getDriveDataRefOrBuilder()

public DriveDataRefOrBuilder getDriveDataRefOrBuilder()

A DriveDataRef which references a Google Drive file.

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

Returns
Type Description
DriveDataRefOrBuilder

getMimeType()

public String getMimeType()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
Type Description
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
Type Description
ByteString

The bytes for mimeType.

hasDriveDataRef()

public boolean hasDriveDataRef()

A DriveDataRef which references a Google Drive file.

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

Returns
Type Description
boolean

Whether the driveDataRef field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDriveDataRef(DriveDataRef value)

public DriveLinkData.Builder mergeDriveDataRef(DriveDataRef value)

A DriveDataRef which references a Google Drive file.

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

Parameter
Name Description
value DriveDataRef
Returns
Type Description
DriveLinkData.Builder

mergeFrom(DriveLinkData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDriveDataRef(DriveDataRef value)

public DriveLinkData.Builder setDriveDataRef(DriveDataRef value)

A DriveDataRef which references a Google Drive file.

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

Parameter
Name Description
value DriveDataRef
Returns
Type Description
DriveLinkData.Builder

setDriveDataRef(DriveDataRef.Builder builderForValue)

public DriveLinkData.Builder setDriveDataRef(DriveDataRef.Builder builderForValue)

A DriveDataRef which references a Google Drive file.

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

Parameter
Name Description
builderForValue DriveDataRef.Builder
Returns
Type Description
DriveLinkData.Builder

setMimeType(String value)

public DriveLinkData.Builder setMimeType(String value)

The mime type of the linked Google Drive resource.

string mime_type = 2;

Parameter
Name Description
value String

The mimeType to set.

Returns
Type Description
DriveLinkData.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public DriveLinkData.Builder setMimeTypeBytes(ByteString value)

The mime type of the linked Google Drive resource.

string mime_type = 2;

Parameter
Name Description
value ByteString

The bytes for mimeType to set.

Returns
Type Description
DriveLinkData.Builder

This builder for chaining.