Class BatchCommitWriteStreamsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder
All Implemented Interfaces:
BatchCommitWriteStreamsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchCommitWriteStreamsResponse

public static final class BatchCommitWriteStreamsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder> implements BatchCommitWriteStreamsResponseOrBuilder
 Response message for `BatchCommitWriteStreams`.
 
Protobuf type google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • getDefaultInstanceForType

      public BatchCommitWriteStreamsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public BatchCommitWriteStreamsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • setField

      public BatchCommitWriteStreamsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • clearField

      public BatchCommitWriteStreamsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • clearOneof

      public BatchCommitWriteStreamsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • setRepeatedField

      public BatchCommitWriteStreamsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • addRepeatedField

      public BatchCommitWriteStreamsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • mergeFrom

      public BatchCommitWriteStreamsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchCommitWriteStreamsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • mergeFrom

      public BatchCommitWriteStreamsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BatchCommitWriteStreamsResponse.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      hasCommitTime in interface BatchCommitWriteStreamsResponseOrBuilder
      Returns:
      Whether the commitTime field is set.
    • getCommitTime

      public com.google.protobuf.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;
      Specified by:
      getCommitTime in interface BatchCommitWriteStreamsResponseOrBuilder
      Returns:
      The commitTime.
    • setCommitTime

      public BatchCommitWriteStreamsResponse.Builder setCommitTime(com.google.protobuf.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;
    • setCommitTime

      public BatchCommitWriteStreamsResponse.Builder setCommitTime(com.google.protobuf.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;
    • mergeCommitTime

      public BatchCommitWriteStreamsResponse.Builder mergeCommitTime(com.google.protobuf.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;
    • 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;
    • getCommitTimeBuilder

      public com.google.protobuf.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;
    • getCommitTimeOrBuilder

      public com.google.protobuf.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;
      Specified by:
      getCommitTimeOrBuilder in interface BatchCommitWriteStreamsResponseOrBuilder
    • 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;
      Specified by:
      getStreamErrorsList in interface BatchCommitWriteStreamsResponseOrBuilder
    • 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;
      Specified by:
      getStreamErrorsCount in interface BatchCommitWriteStreamsResponseOrBuilder
    • getStreamErrors

      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;
      Specified by:
      getStreamErrors in interface BatchCommitWriteStreamsResponseOrBuilder
    • setStreamErrors

      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;
    • setStreamErrors

      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;
    • addStreamErrors

      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;
    • addStreamErrors

      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;
    • addStreamErrors

      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;
    • addStreamErrors

      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;
    • addAllStreamErrors

      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;
    • 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;
    • removeStreamErrors

      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;
    • getStreamErrorsBuilder

      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;
    • getStreamErrorsOrBuilder

      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;
      Specified by:
      getStreamErrorsOrBuilder in interface BatchCommitWriteStreamsResponseOrBuilder
    • 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;
      Specified by:
      getStreamErrorsOrBuilderList in interface BatchCommitWriteStreamsResponseOrBuilder
    • 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;
    • addStreamErrorsBuilder

      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;
    • 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;
    • setUnknownFields

      public final BatchCommitWriteStreamsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>
    • mergeUnknownFields

      public final BatchCommitWriteStreamsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsResponse.Builder>