Class Storage.BatchCreateReadSessionStreamsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Storage.BatchCreateReadSessionStreamsRequest.Builder>
com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.Builder
All Implemented Interfaces:
Storage.BatchCreateReadSessionStreamsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Storage.BatchCreateReadSessionStreamsRequest

public static final class Storage.BatchCreateReadSessionStreamsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<Storage.BatchCreateReadSessionStreamsRequest.Builder> implements Storage.BatchCreateReadSessionStreamsRequestOrBuilder
 Information needed to request additional streams for an established read
 session.
 
Protobuf type google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Storage.BatchCreateReadSessionStreamsRequest.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.GeneratedMessage.Builder<Storage.BatchCreateReadSessionStreamsRequest.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.GeneratedMessage.Builder<Storage.BatchCreateReadSessionStreamsRequest.Builder>
    • getDefaultInstanceForType

      public Storage.BatchCreateReadSessionStreamsRequest 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

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

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

    • isInitialized

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

      public Storage.BatchCreateReadSessionStreamsRequest.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<Storage.BatchCreateReadSessionStreamsRequest.Builder>
      Throws:
      IOException
    • hasSession

      public boolean hasSession()
       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSession in interface Storage.BatchCreateReadSessionStreamsRequestOrBuilder
      Returns:
      Whether the session field is set.
    • getSession

      public Storage.ReadSession getSession()
       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSession in interface Storage.BatchCreateReadSessionStreamsRequestOrBuilder
      Returns:
      The session.
    • setSession

       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSession

       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeSession

       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSession

       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSessionBuilder

      public Storage.ReadSession.Builder getSessionBuilder()
       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSessionOrBuilder

      public Storage.ReadSessionOrBuilder getSessionOrBuilder()
       Required. Must be a non-expired session obtained from a call to
       CreateReadSession. Only the name field needs to be set.
       
      .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSessionOrBuilder in interface Storage.BatchCreateReadSessionStreamsRequestOrBuilder
    • getRequestedStreams

      public int getRequestedStreams()
       Required. Number of new streams requested. Must be positive.
       Number of added streams may be less than this, see CreateReadSessionRequest
       for more information.
       
      int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRequestedStreams in interface Storage.BatchCreateReadSessionStreamsRequestOrBuilder
      Returns:
      The requestedStreams.
    • setRequestedStreams

      public Storage.BatchCreateReadSessionStreamsRequest.Builder setRequestedStreams(int value)
       Required. Number of new streams requested. Must be positive.
       Number of added streams may be less than this, see CreateReadSessionRequest
       for more information.
       
      int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The requestedStreams to set.
      Returns:
      This builder for chaining.
    • clearRequestedStreams

       Required. Number of new streams requested. Must be positive.
       Number of added streams may be less than this, see CreateReadSessionRequest
       for more information.
       
      int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.