Class BatchCommitWriteStreamsResponse.Builder (3.5.2)

public static final class BatchCommitWriteStreamsResponse.Builder extends GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder> implements BatchCommitWriteStreamsResponseOrBuilder

Response message for BatchCommitWriteStreams.

Protobuf type google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllStreamErrors(Iterable<? extends StorageError> values)

public BatchCommitWriteStreamsResponse.Builder addAllStreamErrors(Iterable<? extends StorageError> values)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.storage.v1.StorageError>
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCommitWriteStreamsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

addStreamErrors(StorageError value)

public BatchCommitWriteStreamsResponse.Builder addStreamErrors(StorageError value)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
value StorageError
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

addStreamErrors(StorageError.Builder builderForValue)

public BatchCommitWriteStreamsResponse.Builder addStreamErrors(StorageError.Builder builderForValue)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
builderForValue StorageError.Builder
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

addStreamErrors(int index, StorageError value)

public BatchCommitWriteStreamsResponse.Builder addStreamErrors(int index, StorageError value)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameters
Name Description
index int
value StorageError
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

addStreamErrors(int index, StorageError.Builder builderForValue)

public BatchCommitWriteStreamsResponse.Builder addStreamErrors(int index, StorageError.Builder builderForValue)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameters
Name Description
index int
builderForValue StorageError.Builder
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

addStreamErrorsBuilder()

public StorageError.Builder addStreamErrorsBuilder()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
StorageError.Builder

addStreamErrorsBuilder(int index)

public StorageError.Builder addStreamErrorsBuilder(int index)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
StorageError.Builder

build()

public BatchCommitWriteStreamsResponse build()
Returns
Type Description
BatchCommitWriteStreamsResponse

buildPartial()

public BatchCommitWriteStreamsResponse buildPartial()
Returns
Type Description
BatchCommitWriteStreamsResponse

clear()

public BatchCommitWriteStreamsResponse.Builder clear()
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

clearCommitTime()

public BatchCommitWriteStreamsResponse.Builder clearCommitTime()

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public BatchCommitWriteStreamsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCommitWriteStreamsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

clearStreamErrors()

public BatchCommitWriteStreamsResponse.Builder clearStreamErrors()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

clone()

public BatchCommitWriteStreamsResponse.Builder clone()
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

getCommitTime()

public Timestamp getCommitTime()

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Returns
Type Description
Timestamp

The commitTime.

getCommitTimeBuilder()

public Timestamp.Builder getCommitTimeBuilder()

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Returns
Type Description
Builder

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BatchCommitWriteStreamsResponse getDefaultInstanceForType()
Returns
Type Description
BatchCommitWriteStreamsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getStreamErrors(int index)

public StorageError getStreamErrors(int index)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
StorageError

getStreamErrorsBuilder(int index)

public StorageError.Builder getStreamErrorsBuilder(int index)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
StorageError.Builder

getStreamErrorsBuilderList()

public List<StorageError.Builder> getStreamErrorsBuilderList()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
List<Builder>

getStreamErrorsCount()

public int getStreamErrorsCount()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
int

getStreamErrorsList()

public List<StorageError> getStreamErrorsList()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
List<StorageError>

getStreamErrorsOrBuilder(int index)

public StorageErrorOrBuilder getStreamErrorsOrBuilder(int index)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
StorageErrorOrBuilder

getStreamErrorsOrBuilderList()

public List<? extends StorageErrorOrBuilder> getStreamErrorsOrBuilderList()

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Returns
Type Description
List<? extends com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>

hasCommitTime()

public boolean hasCommitTime()

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Returns
Type Description
boolean

Whether the commitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCommitTime(Timestamp value)

public BatchCommitWriteStreamsResponse.Builder mergeCommitTime(Timestamp value)

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

mergeFrom(BatchCommitWriteStreamsResponse other)

public BatchCommitWriteStreamsResponse.Builder mergeFrom(BatchCommitWriteStreamsResponse other)
Parameter
Name Description
other BatchCommitWriteStreamsResponse
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BatchCommitWriteStreamsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BatchCommitWriteStreamsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCommitWriteStreamsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

removeStreamErrors(int index)

public BatchCommitWriteStreamsResponse.Builder removeStreamErrors(int index)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

setCommitTime(Timestamp value)

public BatchCommitWriteStreamsResponse.Builder setCommitTime(Timestamp value)

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

setCommitTime(Timestamp.Builder builderForValue)

public BatchCommitWriteStreamsResponse.Builder setCommitTime(Timestamp.Builder builderForValue)

The time at which streams were committed in microseconds granularity. This field will only exist when there are no stream errors. Note if this field is not set, it means the commit was not successful.

.google.protobuf.Timestamp commit_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchCommitWriteStreamsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

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

public BatchCommitWriteStreamsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides

setStreamErrors(int index, StorageError value)

public BatchCommitWriteStreamsResponse.Builder setStreamErrors(int index, StorageError value)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameters
Name Description
index int
value StorageError
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

setStreamErrors(int index, StorageError.Builder builderForValue)

public BatchCommitWriteStreamsResponse.Builder setStreamErrors(int index, StorageError.Builder builderForValue)

Stream level error if commit failed. Only streams with error will be in the list. If empty, there is no error and all streams are committed successfully. If non empty, certain streams have errors and ZERO stream is committed due to atomicity guarantee.

repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;

Parameters
Name Description
index int
builderForValue StorageError.Builder
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchCommitWriteStreamsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchCommitWriteStreamsResponse.Builder
Overrides