Class CreateSessionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateSessionRequest.Builder>
com.google.cloud.aiplatform.v1.CreateSessionRequest.Builder
All Implemented Interfaces:
CreateSessionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateSessionRequest

public static final class CreateSessionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateSessionRequest.Builder> implements CreateSessionRequestOrBuilder
 Request message for
 [SessionService.CreateSession][google.cloud.aiplatform.v1.SessionService.CreateSession].
 
Protobuf type google.cloud.aiplatform.v1.CreateSessionRequest
  • 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<CreateSessionRequest.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<CreateSessionRequest.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<CreateSessionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The resource name of the location to create the session in.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateSessionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the location to create the session in.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateSessionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateSessionRequest.Builder setParent(String value)
       Required. The resource name of the location to create the session in.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateSessionRequest.Builder clearParent()
       Required. The resource name of the location to create the session in.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateSessionRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the location to create the session in.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasSession

      public boolean hasSession()
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSession in interface CreateSessionRequestOrBuilder
      Returns:
      Whether the session field is set.
    • getSession

      public Session getSession()
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSession in interface CreateSessionRequestOrBuilder
      Returns:
      The session.
    • setSession

      public CreateSessionRequest.Builder setSession(Session value)
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
    • setSession

      public CreateSessionRequest.Builder setSession(Session.Builder builderForValue)
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeSession

      public CreateSessionRequest.Builder mergeSession(Session value)
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearSession

      public CreateSessionRequest.Builder clearSession()
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSessionBuilder

      public Session.Builder getSessionBuilder()
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
    • getSessionOrBuilder

      public SessionOrBuilder getSessionOrBuilder()
       Required. The session to create.
       
      .google.cloud.aiplatform.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSessionOrBuilder in interface CreateSessionRequestOrBuilder
    • getSessionId

      public String getSessionId()
       Optional. The user defined ID to use for session, which will become the
       final component of the session resource name. If not provided, Vertex AI
       will generate a value for this ID.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9-]`. The first character must be a letter, and the last character
       must be a letter or number.
       
      string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionId in interface CreateSessionRequestOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
       Optional. The user defined ID to use for session, which will become the
       final component of the session resource name. If not provided, Vertex AI
       will generate a value for this ID.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9-]`. The first character must be a letter, and the last character
       must be a letter or number.
       
      string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionIdBytes in interface CreateSessionRequestOrBuilder
      Returns:
      The bytes for sessionId.
    • setSessionId

      public CreateSessionRequest.Builder setSessionId(String value)
       Optional. The user defined ID to use for session, which will become the
       final component of the session resource name. If not provided, Vertex AI
       will generate a value for this ID.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9-]`. The first character must be a letter, and the last character
       must be a letter or number.
       
      string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sessionId to set.
      Returns:
      This builder for chaining.
    • clearSessionId

      public CreateSessionRequest.Builder clearSessionId()
       Optional. The user defined ID to use for session, which will become the
       final component of the session resource name. If not provided, Vertex AI
       will generate a value for this ID.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9-]`. The first character must be a letter, and the last character
       must be a letter or number.
       
      string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSessionIdBytes

      public CreateSessionRequest.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
       Optional. The user defined ID to use for session, which will become the
       final component of the session resource name. If not provided, Vertex AI
       will generate a value for this ID.
      
       This value may be up to 63 characters, and valid characters are
       `[a-z0-9-]`. The first character must be a letter, and the last character
       must be a letter or number.
       
      string session_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for sessionId to set.
      Returns:
      This builder for chaining.