Class WriteObjectResponse.Builder (2.9.0)

public static final class WriteObjectResponse.Builder extends GeneratedMessageV3.Builder<WriteObjectResponse.Builder> implements WriteObjectResponseOrBuilder

Response message for WriteObject.

Protobuf type google.storage.v2.WriteObjectResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WriteObjectResponse build()
Returns
TypeDescription
WriteObjectResponse

buildPartial()

public WriteObjectResponse buildPartial()
Returns
TypeDescription
WriteObjectResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPersistedSize()

public WriteObjectResponse.Builder clearPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
WriteObjectResponse.Builder

This builder for chaining.

clearResource()

public WriteObjectResponse.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
WriteObjectResponse.Builder

clearWriteStatus()

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

clone()

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

getDefaultInstanceForType()

public WriteObjectResponse getDefaultInstanceForType()
Returns
TypeDescription
WriteObjectResponse

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. 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 WriteObjectResponse.WriteStatusCase getWriteStatusCase()
Returns
TypeDescription
WriteObjectResponse.WriteStatusCase

hasPersistedSize()

public boolean hasPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. 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 WriteObjectResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WriteObjectResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(WriteObjectResponse other)

public WriteObjectResponse.Builder mergeFrom(WriteObjectResponse other)
Parameter
NameDescription
otherWriteObjectResponse
Returns
TypeDescription
WriteObjectResponse.Builder

mergeResource(Object value)

public WriteObjectResponse.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
WriteObjectResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPersistedSize(long value)

public WriteObjectResponse.Builder setPersistedSize(long value)

The total number of bytes that have been processed for the given object from all WriteObject calls. Only set if the upload has not finalized.

int64 persisted_size = 1;

Parameter
NameDescription
valuelong

The persistedSize to set.

Returns
TypeDescription
WriteObjectResponse.Builder

This builder for chaining.

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

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

setResource(Object value)

public WriteObjectResponse.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
WriteObjectResponse.Builder

setResource(Object.Builder builderForValue)

public WriteObjectResponse.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
WriteObjectResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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