Class CancelResumableWriteRequest.Builder (2.22.3)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CancelResumableWriteRequest build()
Returns
TypeDescription
CancelResumableWriteRequest

buildPartial()

public CancelResumableWriteRequest buildPartial()
Returns
TypeDescription
CancelResumableWriteRequest

clear()

public CancelResumableWriteRequest.Builder clear()
Returns
TypeDescription
CancelResumableWriteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CancelResumableWriteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CancelResumableWriteRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CancelResumableWriteRequest getDefaultInstanceForType()
Returns
TypeDescription
CancelResumableWriteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for uploadId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CancelResumableWriteRequest other)

public CancelResumableWriteRequest.Builder mergeFrom(CancelResumableWriteRequest other)
Parameter
NameDescription
otherCancelResumableWriteRequest
Returns
TypeDescription
CancelResumableWriteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CancelResumableWriteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CancelResumableWriteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The uploadId to set.

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

The bytes for uploadId to set.

Returns
TypeDescription
CancelResumableWriteRequest.Builder

This builder for chaining.