Class CancelResumableWriteRequest.Builder (2.40.1)

public static final class CancelResumableWriteRequest.Builder extends GeneratedMessageV3.Builder<CancelResumableWriteRequest.Builder> implements CancelResumableWriteRequestOrBuilder

Message for canceling an in-progress resumable upload. upload_id must be set.

Protobuf type google.storage.v2.CancelResumableWriteRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CancelResumableWriteRequest build()
Returns
Type Description
CancelResumableWriteRequest

buildPartial()

public CancelResumableWriteRequest buildPartial()
Returns
Type Description
CancelResumableWriteRequest

clear()

public CancelResumableWriteRequest.Builder clear()
Returns
Type Description
CancelResumableWriteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUploadId()

public CancelResumableWriteRequest.Builder clearUploadId()

Required. The upload_id of the resumable upload to cancel. This should be copied from the upload_id field of StartResumableWriteResponse.

string upload_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CancelResumableWriteRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CancelResumableWriteRequest getDefaultInstanceForType()
Returns
Type Description
CancelResumableWriteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUploadId()

public String getUploadId()

Required. The upload_id of the resumable upload to cancel. This should be copied from the upload_id field of StartResumableWriteResponse.

string upload_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The uploadId.

getUploadIdBytes()

public ByteString getUploadIdBytes()

Required. The upload_id of the resumable upload to cancel. This should be copied from the upload_id field of StartResumableWriteResponse.

string upload_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for uploadId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CancelResumableWriteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CancelResumableWriteRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CancelResumableWriteRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CancelResumableWriteRequest.Builder
Overrides

mergeFrom(CancelResumableWriteRequest other)

public CancelResumableWriteRequest.Builder mergeFrom(CancelResumableWriteRequest other)
Parameter
Name Description
other CancelResumableWriteRequest
Returns
Type Description
CancelResumableWriteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CancelResumableWriteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CancelResumableWriteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUploadId(String value)

public CancelResumableWriteRequest.Builder setUploadId(String value)

Required. The upload_id of the resumable upload to cancel. This should be copied from the upload_id field of StartResumableWriteResponse.

string upload_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The uploadId to set.

Returns
Type Description
CancelResumableWriteRequest.Builder

This builder for chaining.

setUploadIdBytes(ByteString value)

public CancelResumableWriteRequest.Builder setUploadIdBytes(ByteString value)

Required. The upload_id of the resumable upload to cancel. This should be copied from the upload_id field of StartResumableWriteResponse.

string upload_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for uploadId to set.

Returns
Type Description
CancelResumableWriteRequest.Builder

This builder for chaining.