Class DriveDataRef.Builder (0.9.0)

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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