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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Storage.StreamStatus
build()
Storage.StreamStatus
buildPartial()
Storage.StreamStatus.Builder
clear()
Storage.StreamStatus.Builder
clearEstimatedRowCount()
Number of estimated rows in the current stream.Storage.StreamStatus.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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.Storage.StreamStatus.Builder
clearIsSplittable()
Whether this stream can be split.Storage.StreamStatus.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Storage.StreamStatus.Builder
clearProgress()
Represents the progress of the current stream.Storage.StreamStatus.Builder
clone()
Storage.StreamStatus
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getEstimatedRowCount()
Number of estimated rows in the current stream.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.boolean
getIsSplittable()
Whether this stream can be split.Storage.Progress
getProgress()
Represents the progress of the current stream.Storage.Progress.Builder
getProgressBuilder()
Represents the progress of the current stream.Storage.ProgressOrBuilder
getProgressOrBuilder()
Represents the progress of the current stream.boolean
hasProgress()
Represents the progress of the current stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Storage.StreamStatus.Builder
mergeFrom(Storage.StreamStatus other)
Storage.StreamStatus.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Storage.StreamStatus.Builder
mergeFrom(com.google.protobuf.Message other)
Storage.StreamStatus.Builder
mergeProgress(Storage.Progress value)
Represents the progress of the current stream.Storage.StreamStatus.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Storage.StreamStatus.Builder
setEstimatedRowCount(long value)
Number of estimated rows in the current stream.Storage.StreamStatus.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.Storage.StreamStatus.Builder
setIsSplittable(boolean value)
Whether this stream can be split.Storage.StreamStatus.Builder
setProgress(Storage.Progress value)
Represents the progress of the current stream.Storage.StreamStatus.Builder
setProgress(Storage.Progress.Builder builderForValue)
Represents the progress of the current stream.Storage.StreamStatus.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Storage.StreamStatus.Builder
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, 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clear
public Storage.StreamStatus.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
getDefaultInstanceForType
public Storage.StreamStatus getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Storage.StreamStatus build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Storage.StreamStatus buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Storage.StreamStatus.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
setField
public Storage.StreamStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clearField
public Storage.StreamStatus.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
clearOneof
public Storage.StreamStatus.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
addRepeatedField
public Storage.StreamStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
public Storage.StreamStatus.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Storage.StreamStatus.Builder>
-
mergeFrom
public Storage.StreamStatus.Builder mergeFrom(Storage.StreamStatus other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEstimatedRowCount
in 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:
getFractionConsumed
in 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:
hasProgress
in 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:
getProgress
in 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:
getProgressOrBuilder
in 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:
getIsSplittable
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
mergeUnknownFields
public final Storage.StreamStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Storage.StreamStatus.Builder>
-
-