Class StreamStats.Progress.Builder (2.44.1)

public static final class StreamStats.Progress.Builder extends GeneratedMessageV3.Builder<StreamStats.Progress.Builder> implements StreamStats.ProgressOrBuilder

Protobuf type google.cloud.bigquery.storage.v1beta2.StreamStats.Progress

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StreamStats.Progress build()
Returns
TypeDescription
StreamStats.Progress

buildPartial()

public StreamStats.Progress buildPartial()
Returns
TypeDescription
StreamStats.Progress

clear()

public StreamStats.Progress.Builder clear()
Returns
TypeDescription
StreamStats.Progress.Builder
Overrides

clearAtResponseEnd()

public StreamStats.Progress.Builder clearAtResponseEnd()

Similar to at_response_start, except that this value includes the rows in the current response.

double at_response_end = 2;

Returns
TypeDescription
StreamStats.Progress.Builder

This builder for chaining.

clearAtResponseStart()

public StreamStats.Progress.Builder clearAtResponseStart()

The fraction of rows assigned to the stream that have been processed by the server so far, not including the rows in the current response message.

This value, along with at_response_end, can be used to interpolate the progress made as the rows in the message are being processed using the following formula: at_response_start + (at_response_end - at_response_start) * rows_processed_from_response / rows_in_response.

Note that if a filter is provided, the at_response_end value of the previous response may not necessarily be equal to the at_response_start value of the current response.

double at_response_start = 1;

Returns
TypeDescription
StreamStats.Progress.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StreamStats.Progress.Builder clone()
Returns
TypeDescription
StreamStats.Progress.Builder
Overrides

getAtResponseEnd()

public double getAtResponseEnd()

Similar to at_response_start, except that this value includes the rows in the current response.

double at_response_end = 2;

Returns
TypeDescription
double

The atResponseEnd.

getAtResponseStart()

public double getAtResponseStart()

The fraction of rows assigned to the stream that have been processed by the server so far, not including the rows in the current response message.

This value, along with at_response_end, can be used to interpolate the progress made as the rows in the message are being processed using the following formula: at_response_start + (at_response_end - at_response_start) * rows_processed_from_response / rows_in_response.

Note that if a filter is provided, the at_response_end value of the previous response may not necessarily be equal to the at_response_start value of the current response.

double at_response_start = 1;

Returns
TypeDescription
double

The atResponseStart.

getDefaultInstanceForType()

public StreamStats.Progress getDefaultInstanceForType()
Returns
TypeDescription
StreamStats.Progress

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StreamStats.Progress other)

public StreamStats.Progress.Builder mergeFrom(StreamStats.Progress other)
Parameter
NameDescription
otherStreamStats.Progress
Returns
TypeDescription
StreamStats.Progress.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAtResponseEnd(double value)

public StreamStats.Progress.Builder setAtResponseEnd(double value)

Similar to at_response_start, except that this value includes the rows in the current response.

double at_response_end = 2;

Parameter
NameDescription
valuedouble

The atResponseEnd to set.

Returns
TypeDescription
StreamStats.Progress.Builder

This builder for chaining.

setAtResponseStart(double value)

public StreamStats.Progress.Builder setAtResponseStart(double value)

The fraction of rows assigned to the stream that have been processed by the server so far, not including the rows in the current response message.

This value, along with at_response_end, can be used to interpolate the progress made as the rows in the message are being processed using the following formula: at_response_start + (at_response_end - at_response_start) * rows_processed_from_response / rows_in_response.

Note that if a filter is provided, the at_response_end value of the previous response may not necessarily be equal to the at_response_start value of the current response.

double at_response_start = 1;

Parameter
NameDescription
valuedouble

The atResponseStart to set.

Returns
TypeDescription
StreamStats.Progress.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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