Interface SessionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Session, Session.Builder

@Generated public interface SessionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Immutable. Fully qualified name
       `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Immutable. Fully qualified name
       `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Returns:
      The bytes for name.
    • getDisplayName

      String getDisplayName()
       Optional. The display name of the session.
      
       This field is used to identify the session in the UI.
       By default, the display name is the first turn query text in the session.
       
      string display_name = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The displayName.
    • getDisplayNameBytes

      com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. The display name of the session.
      
       This field is used to identify the session in the UI.
       By default, the display name is the first turn query text in the session.
       
      string display_name = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for displayName.
    • getStateValue

      int getStateValue()
       The state of the session.
       
      .google.cloud.discoveryengine.v1beta.Session.State state = 2;
      Returns:
      The enum numeric value on the wire for state.
    • getState

      Session.State getState()
       The state of the session.
       
      .google.cloud.discoveryengine.v1beta.Session.State state = 2;
      Returns:
      The state.
    • getUserPseudoId

      String getUserPseudoId()
       A unique identifier for tracking users.
       
      string user_pseudo_id = 3;
      Returns:
      The userPseudoId.
    • getUserPseudoIdBytes

      com.google.protobuf.ByteString getUserPseudoIdBytes()
       A unique identifier for tracking users.
       
      string user_pseudo_id = 3;
      Returns:
      The bytes for userPseudoId.
    • getTurnsList

      List<Session.Turn> getTurnsList()
       Turns.
       
      repeated .google.cloud.discoveryengine.v1beta.Session.Turn turns = 4;
    • getTurns

      Session.Turn getTurns(int index)
       Turns.
       
      repeated .google.cloud.discoveryengine.v1beta.Session.Turn turns = 4;
    • getTurnsCount

      int getTurnsCount()
       Turns.
       
      repeated .google.cloud.discoveryengine.v1beta.Session.Turn turns = 4;
    • getTurnsOrBuilderList

      List<? extends Session.TurnOrBuilder> getTurnsOrBuilderList()
       Turns.
       
      repeated .google.cloud.discoveryengine.v1beta.Session.Turn turns = 4;
    • getTurnsOrBuilder

      Session.TurnOrBuilder getTurnsOrBuilder(int index)
       Turns.
       
      repeated .google.cloud.discoveryengine.v1beta.Session.Turn turns = 4;
    • hasStartTime

      boolean hasStartTime()
       Output only. The time the session started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the startTime field is set.
    • getStartTime

      com.google.protobuf.Timestamp getStartTime()
       Output only. The time the session started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Output only. The time the session started.
       
      .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasEndTime

      boolean hasEndTime()
       Output only. The time the session finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      Whether the endTime field is set.
    • getEndTime

      com.google.protobuf.Timestamp getEndTime()
       Output only. The time the session finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Output only. The time the session finished.
       
      .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getIsPinned

      boolean getIsPinned()
       Optional. Whether the session is pinned, pinned session will be displayed
       on the top of the session list.
       
      bool is_pinned = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The isPinned.