Class BatchCommitWriteStreamsRequest.Builder

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

public static final class BatchCommitWriteStreamsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCommitWriteStreamsRequest.Builder> implements BatchCommitWriteStreamsRequestOrBuilder
 Request message for `BatchCommitWriteStreams`.
 
Protobuf type google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest
  • 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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • getDefaultInstanceForType

      public BatchCommitWriteStreamsRequest 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 BatchCommitWriteStreamsRequest 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<BatchCommitWriteStreamsRequest.Builder>
    • setField

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • clearField

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • clearOneof

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • setRepeatedField

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • addRepeatedField

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • mergeFrom

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • mergeFrom

      public BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Parent table that all the streams should belong to, in the form
       of `projects/{project}/datasets/{dataset}/tables/{table}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface BatchCommitWriteStreamsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent table that all the streams should belong to, in the form
       of `projects/{project}/datasets/{dataset}/tables/{table}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface BatchCommitWriteStreamsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. Parent table that all the streams should belong to, in the form
       of `projects/{project}/datasets/{dataset}/tables/{table}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. Parent table that all the streams should belong to, in the form
       of `projects/{project}/datasets/{dataset}/tables/{table}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchCommitWriteStreamsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent table that all the streams should belong to, in the form
       of `projects/{project}/datasets/{dataset}/tables/{table}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getWriteStreamsList

      public com.google.protobuf.ProtocolStringList getWriteStreamsList()
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWriteStreamsList in interface BatchCommitWriteStreamsRequestOrBuilder
      Returns:
      A list containing the writeStreams.
    • getWriteStreamsCount

      public int getWriteStreamsCount()
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWriteStreamsCount in interface BatchCommitWriteStreamsRequestOrBuilder
      Returns:
      The count of writeStreams.
    • getWriteStreams

      public String getWriteStreams(int index)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWriteStreams in interface BatchCommitWriteStreamsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The writeStreams at the given index.
    • getWriteStreamsBytes

      public com.google.protobuf.ByteString getWriteStreamsBytes(int index)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWriteStreamsBytes in interface BatchCommitWriteStreamsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the writeStreams at the given index.
    • setWriteStreams

      public BatchCommitWriteStreamsRequest.Builder setWriteStreams(int index, String value)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The writeStreams to set.
      Returns:
      This builder for chaining.
    • addWriteStreams

      public BatchCommitWriteStreamsRequest.Builder addWriteStreams(String value)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The writeStreams to add.
      Returns:
      This builder for chaining.
    • addAllWriteStreams

      public BatchCommitWriteStreamsRequest.Builder addAllWriteStreams(Iterable<String> values)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The writeStreams to add.
      Returns:
      This builder for chaining.
    • clearWriteStreams

      public BatchCommitWriteStreamsRequest.Builder clearWriteStreams()
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addWriteStreamsBytes

      public BatchCommitWriteStreamsRequest.Builder addWriteStreamsBytes(com.google.protobuf.ByteString value)
       Required. The group of streams that will be committed atomically.
       
      repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the writeStreams to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>
    • mergeUnknownFields

      public final BatchCommitWriteStreamsRequest.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<BatchCommitWriteStreamsRequest.Builder>