Class BatchCreateSessionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder>
com.google.spanner.v1.BatchCreateSessionsRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BatchCreateSessionsRequestOrBuilder, Cloneable
Enclosing class:
BatchCreateSessionsRequest

public static final class BatchCreateSessionsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateSessionsRequest.Builder> implements BatchCreateSessionsRequestOrBuilder
 The request for
 [BatchCreateSessions][google.spanner.v1.Spanner.BatchCreateSessions].
 
Protobuf type google.spanner.v1.BatchCreateSessionsRequest
  • 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<BatchCreateSessionsRequest.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<BatchCreateSessionsRequest.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<BatchCreateSessionsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public BatchCreateSessionsRequest.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<BatchCreateSessionsRequest.Builder>
      Throws:
      IOException
    • getDatabase

      public String getDatabase()
       Required. The database in which the new sessions are created.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabase in interface BatchCreateSessionsRequestOrBuilder
      Returns:
      The database.
    • getDatabaseBytes

      public com.google.protobuf.ByteString getDatabaseBytes()
       Required. The database in which the new sessions are created.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getDatabaseBytes in interface BatchCreateSessionsRequestOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      public BatchCreateSessionsRequest.Builder setDatabase(String value)
       Required. The database in which the new sessions are created.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • clearDatabase

      public BatchCreateSessionsRequest.Builder clearDatabase()
       Required. The database in which the new sessions are created.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setDatabaseBytes

      public BatchCreateSessionsRequest.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
       Required. The database in which the new sessions are created.
       
      string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for database to set.
      Returns:
      This builder for chaining.
    • hasSessionTemplate

      public boolean hasSessionTemplate()
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
      Specified by:
      hasSessionTemplate in interface BatchCreateSessionsRequestOrBuilder
      Returns:
      Whether the sessionTemplate field is set.
    • getSessionTemplate

      public Session getSessionTemplate()
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
      Specified by:
      getSessionTemplate in interface BatchCreateSessionsRequestOrBuilder
      Returns:
      The sessionTemplate.
    • setSessionTemplate

      public BatchCreateSessionsRequest.Builder setSessionTemplate(Session value)
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
    • setSessionTemplate

      public BatchCreateSessionsRequest.Builder setSessionTemplate(Session.Builder builderForValue)
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
    • mergeSessionTemplate

      public BatchCreateSessionsRequest.Builder mergeSessionTemplate(Session value)
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
    • clearSessionTemplate

      public BatchCreateSessionsRequest.Builder clearSessionTemplate()
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
    • getSessionTemplateBuilder

      public Session.Builder getSessionTemplateBuilder()
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
    • getSessionTemplateOrBuilder

      public SessionOrBuilder getSessionTemplateOrBuilder()
       Parameters to be applied to each created session.
       
      .google.spanner.v1.Session session_template = 2;
      Specified by:
      getSessionTemplateOrBuilder in interface BatchCreateSessionsRequestOrBuilder
    • getSessionCount

      public int getSessionCount()
       Required. The number of sessions to be created in this batch call.
       The API may return fewer than the requested number of sessions. If a
       specific number of sessions are desired, the client can make additional
       calls to BatchCreateSessions (adjusting
       [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]
       as necessary).
       
      int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSessionCount in interface BatchCreateSessionsRequestOrBuilder
      Returns:
      The sessionCount.
    • setSessionCount

      public BatchCreateSessionsRequest.Builder setSessionCount(int value)
       Required. The number of sessions to be created in this batch call.
       The API may return fewer than the requested number of sessions. If a
       specific number of sessions are desired, the client can make additional
       calls to BatchCreateSessions (adjusting
       [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]
       as necessary).
       
      int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sessionCount to set.
      Returns:
      This builder for chaining.
    • clearSessionCount

      public BatchCreateSessionsRequest.Builder clearSessionCount()
       Required. The number of sessions to be created in this batch call.
       The API may return fewer than the requested number of sessions. If a
       specific number of sessions are desired, the client can make additional
       calls to BatchCreateSessions (adjusting
       [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count]
       as necessary).
       
      int32 session_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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