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 Summary
Modifier and TypeMethodDescriptionOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOptional.getLabels(int index) Optional.com.google.protobuf.ByteStringgetLabelsBytes(int index) Optional.intOptional.Optional.getName()Immutable.com.google.protobuf.ByteStringImmutable.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getState()The state of the session.intThe state of the session.getTurns(int index) Turns.intTurns.Turns.getTurnsOrBuilder(int index) Turns.List<? extends Session.TurnOrBuilder>Turns.A unique identifier for tracking users.com.google.protobuf.ByteStringA unique identifier for tracking users.booleanOutput only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.v1.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.v1.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.v1.Session.Turn turns = 4; -
getTurns
Turns.
repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; -
getTurnsCount
int getTurnsCount()Turns.
repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; -
getTurnsOrBuilderList
List<? extends Session.TurnOrBuilder> getTurnsOrBuilderList()Turns.
repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; -
getTurnsOrBuilder
Turns.
repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; -
getLabelsList
Optional. The labels for the session. Can be set as filter in ListSessionsRequest.
repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- A list containing the labels.
-
getLabelsCount
int getLabelsCount()Optional. The labels for the session. Can be set as filter in ListSessionsRequest.
repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The count of labels.
-
getLabels
Optional. The labels for the session. Can be set as filter in ListSessionsRequest.
repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the element to return.- Returns:
- The labels at the given index.
-
getLabelsBytes
com.google.protobuf.ByteString getLabelsBytes(int index) Optional. The labels for the session. Can be set as filter in ListSessionsRequest.
repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the labels at the given index.
-
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.
-