Class Storage.StreamStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder
- All Implemented Interfaces:
Storage.StreamStatusOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Storage.StreamStatus
public static final class Storage.StreamStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
implements Storage.StreamStatusOrBuilder
Progress information for a given Stream.Protobuf type
google.cloud.bigquery.storage.v1beta1.StreamStatus-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Number of estimated rows in the current stream.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) 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.Whether this stream can be split.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Represents the progress of the current stream.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongNumber of estimated rows in the current stream.floatA 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.booleanWhether this stream can be split.Represents the progress of the current stream.Represents the progress of the current stream.Represents the progress of the current stream.booleanRepresents the progress of the current stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(Storage.StreamStatus other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProgress(Storage.Progress value) Represents the progress of the current stream.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEstimatedRowCount(long value) Number of estimated rows in the current stream.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.setIsSplittable(boolean value) Whether this stream can be split.setProgress(Storage.Progress value) Represents the progress of the current stream.setProgress(Storage.Progress.Builder builderForValue) Represents the progress of the current stream.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
setField
public Storage.StreamStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clearField
public Storage.StreamStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clearOneof
public Storage.StreamStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
setRepeatedField
public Storage.StreamStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
addRepeatedField
public Storage.StreamStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
public Storage.StreamStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.StreamStatus.Builder>- Throws:
IOException
-
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;- Specified by:
getEstimatedRowCountin interfaceStorage.StreamStatusOrBuilder- Returns:
- The estimatedRowCount.
-
setEstimatedRowCount
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;- Parameters:
value- The estimatedRowCount to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
getFractionConsumedin interfaceStorage.StreamStatusOrBuilder- Returns:
- The fractionConsumed.
-
setFractionConsumed
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;- Parameters:
value- The fractionConsumed to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasProgress
public boolean hasProgress()Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;- Specified by:
hasProgressin interfaceStorage.StreamStatusOrBuilder- Returns:
- Whether the progress field is set.
-
getProgress
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;- Specified by:
getProgressin interfaceStorage.StreamStatusOrBuilder- Returns:
- The progress.
-
setProgress
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4; -
setProgress
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4; -
mergeProgress
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4; -
clearProgress
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4; -
getProgressBuilder
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4; -
getProgressOrBuilder
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;- Specified by:
getProgressOrBuilderin interfaceStorage.StreamStatusOrBuilder
-
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;- Specified by:
getIsSplittablein interfaceStorage.StreamStatusOrBuilder- Returns:
- The isSplittable.
-
setIsSplittable
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;- Parameters:
value- The isSplittable to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final Storage.StreamStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
mergeUnknownFields
public final Storage.StreamStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-