Class QueryWriteStatusResponse.Builder (2.29.0)

public static final class QueryWriteStatusResponse.Builder extends GeneratedMessageV3.Builder<QueryWriteStatusResponse.Builder> implements QueryWriteStatusResponseOrBuilder

Response object for QueryWriteStatus.

Protobuf type google.storage.v2.QueryWriteStatusResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryWriteStatusResponse build()
Returns
TypeDescription
QueryWriteStatusResponse

buildPartial()

public QueryWriteStatusResponse buildPartial()
Returns
TypeDescription
QueryWriteStatusResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPersistedSize()

public QueryWriteStatusResponse.Builder clearPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
QueryWriteStatusResponse.Builder

This builder for chaining.

clearResource()

public QueryWriteStatusResponse.Builder clearResource()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
QueryWriteStatusResponse.Builder

clearWriteStatus()

public QueryWriteStatusResponse.Builder clearWriteStatus()
Returns
TypeDescription
QueryWriteStatusResponse.Builder

clone()

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

getDefaultInstanceForType()

public QueryWriteStatusResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryWriteStatusResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPersistedSize()

public long getPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
long

The persistedSize.

getResource()

public Object getResource()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
Object

The resource.

getResourceBuilder()

public Object.Builder getResourceBuilder()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
Object.Builder

getResourceOrBuilder()

public ObjectOrBuilder getResourceOrBuilder()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
ObjectOrBuilder

getWriteStatusCase()

public QueryWriteStatusResponse.WriteStatusCase getWriteStatusCase()
Returns
TypeDescription
QueryWriteStatusResponse.WriteStatusCase

hasPersistedSize()

public boolean hasPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
boolean

Whether the persistedSize field is set.

hasResource()

public boolean hasResource()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(QueryWriteStatusResponse other)

public QueryWriteStatusResponse.Builder mergeFrom(QueryWriteStatusResponse other)
Parameter
NameDescription
otherQueryWriteStatusResponse
Returns
TypeDescription
QueryWriteStatusResponse.Builder

mergeResource(Object value)

public QueryWriteStatusResponse.Builder mergeResource(Object value)

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Parameter
NameDescription
valueObject
Returns
TypeDescription
QueryWriteStatusResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPersistedSize(long value)

public QueryWriteStatusResponse.Builder setPersistedSize(long value)

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Parameter
NameDescription
valuelong

The persistedSize to set.

Returns
TypeDescription
QueryWriteStatusResponse.Builder

This builder for chaining.

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

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

setResource(Object value)

public QueryWriteStatusResponse.Builder setResource(Object value)

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Parameter
NameDescription
valueObject
Returns
TypeDescription
QueryWriteStatusResponse.Builder

setResource(Object.Builder builderForValue)

public QueryWriteStatusResponse.Builder setResource(Object.Builder builderForValue)

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Parameter
NameDescription
builderForValueObject.Builder
Returns
TypeDescription
QueryWriteStatusResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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