Class StartResumableWriteRequest (2.22.5)

public final class StartResumableWriteRequest extends GeneratedMessageV3 implements StartResumableWriteRequestOrBuilder

Request message StartResumableWrite.

Protobuf type google.storage.v2.StartResumableWriteRequest

Static Fields

COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER

public static final int COMMON_OBJECT_REQUEST_PARAMS_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_CHECKSUMS_FIELD_NUMBER

public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
Field Value
TypeDescription
int

WRITE_OBJECT_SPEC_FIELD_NUMBER

public static final int WRITE_OBJECT_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StartResumableWriteRequest getDefaultInstance()
Returns
TypeDescription
StartResumableWriteRequest

getDescriptor()

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

newBuilder()

public static StartResumableWriteRequest.Builder newBuilder()
Returns
TypeDescription
StartResumableWriteRequest.Builder

newBuilder(StartResumableWriteRequest prototype)

public static StartResumableWriteRequest.Builder newBuilder(StartResumableWriteRequest prototype)
Parameter
NameDescription
prototypeStartResumableWriteRequest
Returns
TypeDescription
StartResumableWriteRequest.Builder

parseDelimitedFrom(InputStream input)

public static StartResumableWriteRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StartResumableWriteRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StartResumableWriteRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StartResumableWriteRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StartResumableWriteRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StartResumableWriteRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StartResumableWriteRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StartResumableWriteRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StartResumableWriteRequest> parser()
Returns
TypeDescription
Parser<StartResumableWriteRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

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

getParserForType()

public Parser<StartResumableWriteRequest> getParserForType()
Returns
TypeDescription
Parser<StartResumableWriteRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StartResumableWriteRequest.Builder newBuilderForType()
Returns
TypeDescription
StartResumableWriteRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StartResumableWriteRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StartResumableWriteRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StartResumableWriteRequest.Builder toBuilder()
Returns
TypeDescription
StartResumableWriteRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException