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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DriveDataRef.BuilderImplements
DriveDataRefOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public DriveDataRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
DriveDataRef.Builder |
clone()
public DriveDataRef.Builder clone()
Returns | |
---|---|
Type | Description |
DriveDataRef.Builder |
getDefaultInstanceForType()
public DriveDataRef getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DriveDataRef |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DriveDataRef.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
DriveDataRef.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DriveDataRef.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DriveDataRef.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final DriveDataRef.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DriveDataRef.Builder |