Class Storage.StreamStatus.Builder (3.2.0)

public static final class Storage.StreamStatus.Builder extends GeneratedMessageV3.Builder<Storage.StreamStatus.Builder> implements Storage.StreamStatusOrBuilder

Progress information for a given Stream.

Protobuf type google.cloud.bigquery.storage.v1beta1.StreamStatus

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Storage.StreamStatus build()
Returns
TypeDescription
Storage.StreamStatus

buildPartial()

public Storage.StreamStatus buildPartial()
Returns
TypeDescription
Storage.StreamStatus

clear()

public Storage.StreamStatus.Builder clear()
Returns
TypeDescription
Storage.StreamStatus.Builder
Overrides

clearEstimatedRowCount()

public Storage.StreamStatus.Builder clearEstimatedRowCount()

Number of estimated rows in the current stream. May change over time as different readers in the stream progress at rates which are relatively fast or slow.

int64 estimated_row_count = 1;

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFractionConsumed()

public Storage.StreamStatus.Builder clearFractionConsumed()

A value in the range [0.0, 1.0] that represents the fraction of rows assigned to this stream that have been processed by the server. In the presence of read filters, the server may process more rows than it returns, so this value reflects progress through the pre-filtering rows.

This value is only populated for sessions created through the BALANCED sharding strategy.

float fraction_consumed = 2;

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

clearIsSplittable()

public Storage.StreamStatus.Builder clearIsSplittable()

Whether this stream can be split. For sessions that use the LIQUID sharding strategy, this value is always false. For BALANCED sessions, this value is false when enough data have been read such that no more splits are possible at that point or beyond. For small tables or streams that are the result of a chain of splits, this value may never be true.

bool is_splittable = 3;

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgress()

public Storage.StreamStatus.Builder clearProgress()

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Returns
TypeDescription
Storage.StreamStatus.Builder

clone()

public Storage.StreamStatus.Builder clone()
Returns
TypeDescription
Storage.StreamStatus.Builder
Overrides

getDefaultInstanceForType()

public Storage.StreamStatus getDefaultInstanceForType()
Returns
TypeDescription
Storage.StreamStatus

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEstimatedRowCount()

public long getEstimatedRowCount()

Number of estimated rows in the current stream. May change over time as different readers in the stream progress at rates which are relatively fast or slow.

int64 estimated_row_count = 1;

Returns
TypeDescription
long

The estimatedRowCount.

getFractionConsumed()

public float getFractionConsumed()

A value in the range [0.0, 1.0] that represents the fraction of rows assigned to this stream that have been processed by the server. In the presence of read filters, the server may process more rows than it returns, so this value reflects progress through the pre-filtering rows.

This value is only populated for sessions created through the BALANCED sharding strategy.

float fraction_consumed = 2;

Returns
TypeDescription
float

The fractionConsumed.

getIsSplittable()

public boolean getIsSplittable()

Whether this stream can be split. For sessions that use the LIQUID sharding strategy, this value is always false. For BALANCED sessions, this value is false when enough data have been read such that no more splits are possible at that point or beyond. For small tables or streams that are the result of a chain of splits, this value may never be true.

bool is_splittable = 3;

Returns
TypeDescription
boolean

The isSplittable.

getProgress()

public Storage.Progress getProgress()

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Returns
TypeDescription
Storage.Progress

The progress.

getProgressBuilder()

public Storage.Progress.Builder getProgressBuilder()

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Returns
TypeDescription
Storage.Progress.Builder

getProgressOrBuilder()

public Storage.ProgressOrBuilder getProgressOrBuilder()

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Returns
TypeDescription
Storage.ProgressOrBuilder

hasProgress()

public boolean hasProgress()

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Returns
TypeDescription
boolean

Whether the progress field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Storage.StreamStatus other)

public Storage.StreamStatus.Builder mergeFrom(Storage.StreamStatus other)
Parameter
NameDescription
otherStorage.StreamStatus
Returns
TypeDescription
Storage.StreamStatus.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProgress(Storage.Progress value)

public Storage.StreamStatus.Builder mergeProgress(Storage.Progress value)

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Parameter
NameDescription
valueStorage.Progress
Returns
TypeDescription
Storage.StreamStatus.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEstimatedRowCount(long value)

public Storage.StreamStatus.Builder setEstimatedRowCount(long value)

Number of estimated rows in the current stream. May change over time as different readers in the stream progress at rates which are relatively fast or slow.

int64 estimated_row_count = 1;

Parameter
NameDescription
valuelong

The estimatedRowCount to set.

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFractionConsumed(float value)

public Storage.StreamStatus.Builder setFractionConsumed(float value)

A value in the range [0.0, 1.0] that represents the fraction of rows assigned to this stream that have been processed by the server. In the presence of read filters, the server may process more rows than it returns, so this value reflects progress through the pre-filtering rows.

This value is only populated for sessions created through the BALANCED sharding strategy.

float fraction_consumed = 2;

Parameter
NameDescription
valuefloat

The fractionConsumed to set.

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

setIsSplittable(boolean value)

public Storage.StreamStatus.Builder setIsSplittable(boolean value)

Whether this stream can be split. For sessions that use the LIQUID sharding strategy, this value is always false. For BALANCED sessions, this value is false when enough data have been read such that no more splits are possible at that point or beyond. For small tables or streams that are the result of a chain of splits, this value may never be true.

bool is_splittable = 3;

Parameter
NameDescription
valueboolean

The isSplittable to set.

Returns
TypeDescription
Storage.StreamStatus.Builder

This builder for chaining.

setProgress(Storage.Progress value)

public Storage.StreamStatus.Builder setProgress(Storage.Progress value)

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Parameter
NameDescription
valueStorage.Progress
Returns
TypeDescription
Storage.StreamStatus.Builder

setProgress(Storage.Progress.Builder builderForValue)

public Storage.StreamStatus.Builder setProgress(Storage.Progress.Builder builderForValue)

Represents the progress of the current stream.

.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;

Parameter
NameDescription
builderForValueStorage.Progress.Builder
Returns
TypeDescription
Storage.StreamStatus.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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