Class DriveDataRef.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DriveDataRef build()
Returns
TypeDescription
DriveDataRef

buildPartial()

public DriveDataRef buildPartial()
Returns
TypeDescription
DriveDataRef

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DriveDataRef getDefaultInstanceForType()
Returns
TypeDescription
DriveDataRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDriveFileId()

public String getDriveFileId()

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

string drive_file_id = 2;

Returns
TypeDescription
String

The driveFileId.

getDriveFileIdBytes()

public ByteString getDriveFileIdBytes()

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

string drive_file_id = 2;

Returns
TypeDescription
ByteString

The bytes for driveFileId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DriveDataRef other)

public DriveDataRef.Builder mergeFrom(DriveDataRef other)
Parameter
NameDescription
otherDriveDataRef
Returns
TypeDescription
DriveDataRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The driveFileId to set.

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

The bytes for driveFileId to set.

Returns
TypeDescription
DriveDataRef.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DriveDataRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DriveDataRef.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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