Class ContentRange.Builder (2.22.2)

public static final class ContentRange.Builder extends GeneratedMessageV3.Builder<ContentRange.Builder> implements ContentRangeOrBuilder

Specifies a requested range of bytes to download.

Protobuf type google.storage.v2.ContentRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContentRange build()
Returns
TypeDescription
ContentRange

buildPartial()

public ContentRange buildPartial()
Returns
TypeDescription
ContentRange

clear()

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

clearCompleteLength()

public ContentRange.Builder clearCompleteLength()

The complete length of the object data.

int64 complete_length = 3;

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

clearEnd()

public ContentRange.Builder clearEnd()

The ending offset of the object data.

int64 end = 2;

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStart()

public ContentRange.Builder clearStart()

The starting offset of the object data.

int64 start = 1;

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

clone()

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

getCompleteLength()

public long getCompleteLength()

The complete length of the object data.

int64 complete_length = 3;

Returns
TypeDescription
long

The completeLength.

getDefaultInstanceForType()

public ContentRange getDefaultInstanceForType()
Returns
TypeDescription
ContentRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnd()

public long getEnd()

The ending offset of the object data.

int64 end = 2;

Returns
TypeDescription
long

The end.

getStart()

public long getStart()

The starting offset of the object data.

int64 start = 1;

Returns
TypeDescription
long

The start.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ContentRange other)

public ContentRange.Builder mergeFrom(ContentRange other)
Parameter
NameDescription
otherContentRange
Returns
TypeDescription
ContentRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCompleteLength(long value)

public ContentRange.Builder setCompleteLength(long value)

The complete length of the object data.

int64 complete_length = 3;

Parameter
NameDescription
valuelong

The completeLength to set.

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

setEnd(long value)

public ContentRange.Builder setEnd(long value)

The ending offset of the object data.

int64 end = 2;

Parameter
NameDescription
valuelong

The end to set.

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStart(long value)

public ContentRange.Builder setStart(long value)

The starting offset of the object data.

int64 start = 1;

Parameter
NameDescription
valuelong

The start to set.

Returns
TypeDescription
ContentRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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