Class StartResumableWriteRequest.Builder (2.22.3)

public static final class StartResumableWriteRequest.Builder extends GeneratedMessageV3.Builder<StartResumableWriteRequest.Builder> implements StartResumableWriteRequestOrBuilder

Request message StartResumableWrite.

Protobuf type google.storage.v2.StartResumableWriteRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StartResumableWriteRequest build()
Returns
TypeDescription
StartResumableWriteRequest

buildPartial()

public StartResumableWriteRequest buildPartial()
Returns
TypeDescription
StartResumableWriteRequest

clear()

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

clearCommonObjectRequestParams()

public StartResumableWriteRequest.Builder clearCommonObjectRequestParams()

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Returns
TypeDescription
StartResumableWriteRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearObjectChecksums()

public StartResumableWriteRequest.Builder clearObjectChecksums()

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Returns
TypeDescription
StartResumableWriteRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWriteObjectSpec()

public StartResumableWriteRequest.Builder clearWriteObjectSpec()

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
StartResumableWriteRequest.Builder

clone()

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

getCommonObjectRequestParams()

public CommonObjectRequestParams getCommonObjectRequestParams()

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Returns
TypeDescription
CommonObjectRequestParams

The commonObjectRequestParams.

getCommonObjectRequestParamsBuilder()

public CommonObjectRequestParams.Builder getCommonObjectRequestParamsBuilder()

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Returns
TypeDescription
CommonObjectRequestParams.Builder

getCommonObjectRequestParamsOrBuilder()

public CommonObjectRequestParamsOrBuilder getCommonObjectRequestParamsOrBuilder()

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Returns
TypeDescription
CommonObjectRequestParamsOrBuilder

getDefaultInstanceForType()

public StartResumableWriteRequest getDefaultInstanceForType()
Returns
TypeDescription
StartResumableWriteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getObjectChecksums()

public ObjectChecksums getObjectChecksums()

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Returns
TypeDescription
ObjectChecksums

The objectChecksums.

getObjectChecksumsBuilder()

public ObjectChecksums.Builder getObjectChecksumsBuilder()

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Returns
TypeDescription
ObjectChecksums.Builder

getObjectChecksumsOrBuilder()

public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Returns
TypeDescription
ObjectChecksumsOrBuilder

getWriteObjectSpec()

public WriteObjectSpec getWriteObjectSpec()

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteObjectSpec

The writeObjectSpec.

getWriteObjectSpecBuilder()

public WriteObjectSpec.Builder getWriteObjectSpecBuilder()

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteObjectSpec.Builder

getWriteObjectSpecOrBuilder()

public WriteObjectSpecOrBuilder getWriteObjectSpecOrBuilder()

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
WriteObjectSpecOrBuilder

hasCommonObjectRequestParams()

public boolean hasCommonObjectRequestParams()

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Returns
TypeDescription
boolean

Whether the commonObjectRequestParams field is set.

hasObjectChecksums()

public boolean hasObjectChecksums()

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Returns
TypeDescription
boolean

Whether the objectChecksums field is set.

hasWriteObjectSpec()

public boolean hasWriteObjectSpec()

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the writeObjectSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCommonObjectRequestParams(CommonObjectRequestParams value)

public StartResumableWriteRequest.Builder mergeCommonObjectRequestParams(CommonObjectRequestParams value)

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Parameter
NameDescription
valueCommonObjectRequestParams
Returns
TypeDescription
StartResumableWriteRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(StartResumableWriteRequest other)

public StartResumableWriteRequest.Builder mergeFrom(StartResumableWriteRequest other)
Parameter
NameDescription
otherStartResumableWriteRequest
Returns
TypeDescription
StartResumableWriteRequest.Builder

mergeObjectChecksums(ObjectChecksums value)

public StartResumableWriteRequest.Builder mergeObjectChecksums(ObjectChecksums value)

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Parameter
NameDescription
valueObjectChecksums
Returns
TypeDescription
StartResumableWriteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWriteObjectSpec(WriteObjectSpec value)

public StartResumableWriteRequest.Builder mergeWriteObjectSpec(WriteObjectSpec value)

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWriteObjectSpec
Returns
TypeDescription
StartResumableWriteRequest.Builder

setCommonObjectRequestParams(CommonObjectRequestParams value)

public StartResumableWriteRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams value)

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Parameter
NameDescription
valueCommonObjectRequestParams
Returns
TypeDescription
StartResumableWriteRequest.Builder

setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)

public StartResumableWriteRequest.Builder setCommonObjectRequestParams(CommonObjectRequestParams.Builder builderForValue)

A set of parameters common to Storage API requests concerning an object.

.google.storage.v2.CommonObjectRequestParams common_object_request_params = 3;

Parameter
NameDescription
builderForValueCommonObjectRequestParams.Builder
Returns
TypeDescription
StartResumableWriteRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setObjectChecksums(ObjectChecksums value)

public StartResumableWriteRequest.Builder setObjectChecksums(ObjectChecksums value)

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Parameter
NameDescription
valueObjectChecksums
Returns
TypeDescription
StartResumableWriteRequest.Builder

setObjectChecksums(ObjectChecksums.Builder builderForValue)

public StartResumableWriteRequest.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)

The checksums of the complete object. This will be used to validate the uploaded object. For each upload, object_checksums can be provided with either StartResumableWriteRequest or the WriteObjectRequest with finish_write set to true.

.google.storage.v2.ObjectChecksums object_checksums = 5;

Parameter
NameDescription
builderForValueObjectChecksums.Builder
Returns
TypeDescription
StartResumableWriteRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriteObjectSpec(WriteObjectSpec value)

public StartResumableWriteRequest.Builder setWriteObjectSpec(WriteObjectSpec value)

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueWriteObjectSpec
Returns
TypeDescription
StartResumableWriteRequest.Builder

setWriteObjectSpec(WriteObjectSpec.Builder builderForValue)

public StartResumableWriteRequest.Builder setWriteObjectSpec(WriteObjectSpec.Builder builderForValue)

Required. The destination bucket, object, and metadata, as well as any preconditions.

.google.storage.v2.WriteObjectSpec write_object_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueWriteObjectSpec.Builder
Returns
TypeDescription
StartResumableWriteRequest.Builder