Class BatchCommitWriteStreamsResponse.Builder (3.3.1)

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

Response message for BatchCommitWriteStreams.

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.storage.v1beta2.StorageError>
Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BatchCommitWriteStreamsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
valueStorageError
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
builderForValueStorageError.Builder
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameters
NameDescription
indexint
valueStorageError
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameters
NameDescription
indexint
builderForValueStorageError.Builder
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StorageError.Builder

build()

public BatchCommitWriteStreamsResponse build()
Returns
TypeDescription
BatchCommitWriteStreamsResponse

buildPartial()

public BatchCommitWriteStreamsResponse buildPartial()
Returns
TypeDescription
BatchCommitWriteStreamsResponse

clear()

public BatchCommitWriteStreamsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
BatchCommitWriteStreamsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public BatchCommitWriteStreamsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

clone()

public BatchCommitWriteStreamsResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BatchCommitWriteStreamsResponse getDefaultInstanceForType()
Returns
TypeDescription
BatchCommitWriteStreamsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.storage.v1beta2.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
TypeDescription
boolean

Whether the commitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

mergeFrom(BatchCommitWriteStreamsResponse other)

public BatchCommitWriteStreamsResponse.Builder mergeFrom(BatchCommitWriteStreamsResponse other)
Parameter
NameDescription
otherBatchCommitWriteStreamsResponse
Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchCommitWriteStreamsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public BatchCommitWriteStreamsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameters
NameDescription
indexint
valueStorageError
Returns
TypeDescription
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.v1beta2.StorageError stream_errors = 2;

Parameters
NameDescription
indexint
builderForValueStorageError.Builder
Returns
TypeDescription
BatchCommitWriteStreamsResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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