Class BatchCreateSessionsRequest.Builder

    • Method Detail

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

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