Class DriveLinkData.Builder (0.7.0)

public static final class DriveLinkData.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DriveLinkData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DriveLinkData.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public DriveLinkData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DriveLinkData.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public DriveLinkData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DriveLinkData.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DriveLinkData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public DriveLinkData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DriveLinkData.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DriveLinkData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DriveLinkData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DriveLinkData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DriveLinkData.Builder
Overrides