Class Session.Builder

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

public static final class Session.Builder extends com.google.protobuf.GeneratedMessage.Builder<Session.Builder> implements SessionOrBuilder
 A session contains a set of actions between users and Vertex agents.
 
Protobuf type google.cloud.aiplatform.v1.Session
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Session.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Session.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Session.Builder>
    • clear

      public Session.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<Session.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<Session.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Session.Builder mergeFrom(Session other)
    • isInitialized

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

      public Session.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<Session.Builder>
      Throws:
      IOException
    • getExpirationCase

      public Session.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface SessionOrBuilder
    • clearExpiration

      public Session.Builder clearExpiration()
    • hasExpireTime

      public boolean hasExpireTime()
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExpireTime in interface SessionOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTime in interface SessionOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public Session.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setExpireTime

      public Session.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeExpireTime

      public Session.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearExpireTime

      public Session.Builder clearExpireTime()
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Optional. Timestamp of when this session is considered expired.
       This is *always* provided on output, regardless of what was sent
       on input.
       The minimum value is 24 hours from the time of creation.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTimeOrBuilder in interface SessionOrBuilder
    • hasTtl

      public boolean hasTtl()
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasTtl in interface SessionOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getTtl in interface SessionOrBuilder
      Returns:
      The ttl.
    • setTtl

      public Session.Builder setTtl(com.google.protobuf.Duration value)
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • setTtl

      public Session.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • mergeTtl

      public Session.Builder mergeTtl(com.google.protobuf.Duration value)
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • clearTtl

      public Session.Builder clearTtl()
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Optional. Input only. The TTL for this session.
       The minimum value is 24 hours.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getTtlOrBuilder in interface SessionOrBuilder
    • getName

      public String getName()
       Identifier. The resource name of the session.
       Format:
       'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SessionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the session.
       Format:
       'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SessionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Session.Builder setName(String value)
       Identifier. The resource name of the session.
       Format:
       'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Session.Builder clearName()
       Identifier. The resource name of the session.
       Format:
       'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Session.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the session.
       Format:
       'projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}'.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SessionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SessionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Session.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Session.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Session.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Session.Builder clearCreateTime()
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when the session was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SessionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface SessionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface SessionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Session.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Session.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Session.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Session.Builder clearUpdateTime()
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when the session was updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface SessionOrBuilder
    • getDisplayName

      public String getDisplayName()
       Optional. The display name of the session.
       
      string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface SessionOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. The display name of the session.
       
      string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface SessionOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Session.Builder setDisplayName(String value)
       Optional. The display name of the session.
       
      string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Session.Builder clearDisplayName()
       Optional. The display name of the session.
       
      string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Session.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. The display name of the session.
       
      string display_name = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: SessionOrBuilder
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsCount in interface SessionOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
      Specified by:
      containsLabels in interface SessionOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface SessionOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsMap in interface SessionOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrDefault in interface SessionOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
      Specified by:
      getLabelsOrThrow in interface SessionOrBuilder
    • clearLabels

      public Session.Builder clearLabels()
    • removeLabels

      public Session.Builder removeLabels(String key)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
    • getMutableLabels

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

      public Session.Builder putLabels(String key, String value)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
    • putAllLabels

      public Session.Builder putAllLabels(Map<String,String> values)
       The labels with user-defined metadata to organize your Sessions.
      
       Label keys and values can be no longer than 64 characters
       (Unicode codepoints), can only contain lowercase letters, numeric
       characters, underscores and dashes. International characters are allowed.
      
       See https://goo.gl/xmQnxf for more information and examples of labels.
       
      map<string, string> labels = 8;
    • hasSessionState

      public boolean hasSessionState()
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSessionState in interface SessionOrBuilder
      Returns:
      Whether the sessionState field is set.
    • getSessionState

      public com.google.protobuf.Struct getSessionState()
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionState in interface SessionOrBuilder
      Returns:
      The sessionState.
    • setSessionState

      public Session.Builder setSessionState(com.google.protobuf.Struct value)
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
    • setSessionState

      public Session.Builder setSessionState(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSessionState

      public Session.Builder mergeSessionState(com.google.protobuf.Struct value)
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
    • clearSessionState

      public Session.Builder clearSessionState()
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getSessionStateBuilder

      public com.google.protobuf.Struct.Builder getSessionStateBuilder()
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
    • getSessionStateOrBuilder

      public com.google.protobuf.StructOrBuilder getSessionStateOrBuilder()
       Optional. Session specific memory which stores key conversation points.
       
      .google.protobuf.Struct session_state = 10 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSessionStateOrBuilder in interface SessionOrBuilder
    • getUserId

      public String getUserId()
       Required. Immutable. String id provided by the user
       
      string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUserId in interface SessionOrBuilder
      Returns:
      The userId.
    • getUserIdBytes

      public com.google.protobuf.ByteString getUserIdBytes()
       Required. Immutable. String id provided by the user
       
      string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUserIdBytes in interface SessionOrBuilder
      Returns:
      The bytes for userId.
    • setUserId

      public Session.Builder setUserId(String value)
       Required. Immutable. String id provided by the user
       
      string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The userId to set.
      Returns:
      This builder for chaining.
    • clearUserId

      public Session.Builder clearUserId()
       Required. Immutable. String id provided by the user
       
      string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUserIdBytes

      public Session.Builder setUserIdBytes(com.google.protobuf.ByteString value)
       Required. Immutable. String id provided by the user
       
      string user_id = 12 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for userId to set.
      Returns:
      This builder for chaining.