Class DriveLinkData.Builder (0.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DriveLinkData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DriveLinkData.Builder
Overrides

build()

public DriveLinkData build()
Returns
TypeDescription
DriveLinkData

buildPartial()

public DriveLinkData buildPartial()
Returns
TypeDescription
DriveLinkData

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DriveLinkData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DriveLinkData.Builder
Overrides

clearMimeType()

public DriveLinkData.Builder clearMimeType()

The mime type of the linked Google Drive resource.

string mime_type = 2;

Returns
TypeDescription
DriveLinkData.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DriveLinkData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DriveLinkData.Builder
Overrides

clone()

public DriveLinkData.Builder clone()
Returns
TypeDescription
DriveLinkData.Builder
Overrides

getDefaultInstanceForType()

public DriveLinkData getDefaultInstanceForType()
Returns
TypeDescription
DriveLinkData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getDriveDataRefBuilder()

public DriveDataRef.Builder getDriveDataRefBuilder()

A DriveDataRef which references a Google Drive file.

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

Returns
TypeDescription
DriveDataRef.Builder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDriveDataRef
Returns
TypeDescription
DriveLinkData.Builder

mergeFrom(DriveLinkData other)

public DriveLinkData.Builder mergeFrom(DriveLinkData other)
Parameter
NameDescription
otherDriveLinkData
Returns
TypeDescription
DriveLinkData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DriveLinkData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DriveLinkData.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DriveLinkData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DriveLinkData.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DriveLinkData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDriveDataRef
Returns
TypeDescription
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
NameDescription
builderForValueDriveDataRef.Builder
Returns
TypeDescription
DriveLinkData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DriveLinkData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DriveLinkData.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DriveLinkData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DriveLinkData.Builder
Overrides