public static final class SearchResponse.SessionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder> implements SearchResponse.SessionInfoOrBuilder
Information about the session.Protobuf type
google.cloud.discoveryengine.v1.SearchResponse.SessionInfo| Modifier and Type | Method and Description |
|---|---|
SearchResponse.SessionInfo |
build() |
SearchResponse.SessionInfo |
buildPartial() |
SearchResponse.SessionInfo.Builder |
clear() |
SearchResponse.SessionInfo.Builder |
clearName()
Name of the session.
|
SearchResponse.SessionInfo.Builder |
clearQueryId()
Query ID that corresponds to this search API call.
|
SearchResponse.SessionInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
Name of the session.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the session.
|
String |
getQueryId()
Query ID that corresponds to this search API call.
|
com.google.protobuf.ByteString |
getQueryIdBytes()
Query ID that corresponds to this search API call.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchResponse.SessionInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchResponse.SessionInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchResponse.SessionInfo.Builder |
mergeFrom(SearchResponse.SessionInfo other) |
SearchResponse.SessionInfo.Builder |
setName(String value)
Name of the session.
|
SearchResponse.SessionInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the session.
|
SearchResponse.SessionInfo.Builder |
setQueryId(String value)
Query ID that corresponds to this search API call.
|
SearchResponse.SessionInfo.Builder |
setQueryIdBytes(com.google.protobuf.ByteString value)
Query ID that corresponds to this search API call.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchResponse.SessionInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.SessionInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchResponse.SessionInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder mergeFrom(SearchResponse.SessionInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchResponse.SessionInfo.Builder>IOExceptionpublic String getName()
Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;getName in interface SearchResponse.SessionInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;getNameBytes in interface SearchResponse.SessionInfoOrBuilderpublic SearchResponse.SessionInfo.Builder setName(String value)
Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;value - The name to set.public SearchResponse.SessionInfo.Builder clearName()
Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;public SearchResponse.SessionInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the session. If the auto-session mode is used (when [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] ends with "-"), this field holds the newly generated session name.
string name = 1;value - The bytes for name to set.public 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;getQueryId in interface SearchResponse.SessionInfoOrBuilderpublic 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;getQueryIdBytes in interface SearchResponse.SessionInfoOrBuilderpublic SearchResponse.SessionInfo.Builder setQueryId(String value)
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;value - The queryId to set.public SearchResponse.SessionInfo.Builder clearQueryId()
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;public SearchResponse.SessionInfo.Builder setQueryIdBytes(com.google.protobuf.ByteString value)
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;value - The bytes for queryId to set.Copyright © 2026 Google LLC. All rights reserved.