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 typegoogle.cloud.bigquery.storage.v1beta1.StreamStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Storage.StreamStatus.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Storage.StreamStatusbuild()Storage.StreamStatusbuildPartial()Storage.StreamStatus.Builderclear()Storage.StreamStatus.BuilderclearEstimatedRowCount()Number of estimated rows in the current stream.Storage.StreamStatus.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Storage.StreamStatus.BuilderclearFractionConsumed()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.Storage.StreamStatus.BuilderclearIsSplittable()Whether this stream can be split.Storage.StreamStatus.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Storage.StreamStatus.BuilderclearProgress()Represents the progress of the current stream.Storage.StreamStatus.Builderclone()Storage.StreamStatusgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetEstimatedRowCount()Number of estimated rows in the current stream.floatgetFractionConsumed()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.booleangetIsSplittable()Whether this stream can be split.Storage.ProgressgetProgress()Represents the progress of the current stream.Storage.Progress.BuildergetProgressBuilder()Represents the progress of the current stream.Storage.ProgressOrBuildergetProgressOrBuilder()Represents the progress of the current stream.booleanhasProgress()Represents the progress of the current stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Storage.StreamStatus.BuildermergeFrom(Storage.StreamStatus other)Storage.StreamStatus.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Storage.StreamStatus.BuildermergeFrom(com.google.protobuf.Message other)Storage.StreamStatus.BuildermergeProgress(Storage.Progress value)Represents the progress of the current stream.Storage.StreamStatus.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Storage.StreamStatus.BuildersetEstimatedRowCount(long value)Number of estimated rows in the current stream.Storage.StreamStatus.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Storage.StreamStatus.BuildersetFractionConsumed(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.Storage.StreamStatus.BuildersetIsSplittable(boolean value)Whether this stream can be split.Storage.StreamStatus.BuildersetProgress(Storage.Progress value)Represents the progress of the current stream.Storage.StreamStatus.BuildersetProgress(Storage.Progress.Builder builderForValue)Represents the progress of the current stream.Storage.StreamStatus.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Storage.StreamStatus.BuildersetUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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
public 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
public Storage.StreamStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Storage.StreamStatus build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Storage.StreamStatus buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Storage.StreamStatus.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
public Storage.StreamStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
public Storage.StreamStatus.Builder mergeFrom(Storage.StreamStatus other)
-
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
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;- Parameters:
value- The estimatedRowCount to set.- Returns:
- This builder for chaining.
-
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:
- 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
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;- Parameters:
value- The fractionConsumed to set.- Returns:
- This builder for chaining.
-
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:
- 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
public Storage.Progress 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
public Storage.StreamStatus.Builder setProgress(Storage.Progress value)
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;
-
setProgress
public Storage.StreamStatus.Builder setProgress(Storage.Progress.Builder builderForValue)
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;
-
mergeProgress
public Storage.StreamStatus.Builder mergeProgress(Storage.Progress value)
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;
-
clearProgress
public Storage.StreamStatus.Builder clearProgress()
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;
-
getProgressBuilder
public Storage.Progress.Builder getProgressBuilder()
Represents the progress of the current stream.
.google.cloud.bigquery.storage.v1beta1.Progress progress = 4;
-
getProgressOrBuilder
public Storage.ProgressOrBuilder 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
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;- Parameters:
value- The isSplittable to set.- Returns:
- 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:
- 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>
-
-