Interface SearchResponse.SessionInfoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchResponse.SessionInfo,SearchResponse.SessionInfo.Builder
- Enclosing class:
- SearchResponse
public static interface SearchResponse.SessionInfoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Name of the session.com.google.protobuf.ByteStringName of the session.Query ID that corresponds to this search API call.com.google.protobuf.ByteStringQuery ID that corresponds to this search API call.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()Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1beta.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;- Returns:
- The bytes for name.
-
getQueryId
String getQueryId()Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call.
string query_id = 2;- Returns:
- The queryId.
-
getQueryIdBytes
com.google.protobuf.ByteString getQueryIdBytes()Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call.
string query_id = 2;- Returns:
- The bytes for queryId.
-