public static final class SearchResponse.SessionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder> implements SearchResponse.SessionInfoOrBuilder
Information about the session.Protobuf type
google.cloud.discoveryengine.v1alpha.SearchResponse.SessionInfo| Modifier and Type | Method and Description |
|---|---|
SearchResponse.SessionInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchResponse.SessionInfo |
build() |
SearchResponse.SessionInfo |
buildPartial() |
SearchResponse.SessionInfo.Builder |
clear() |
SearchResponse.SessionInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchResponse.SessionInfo.Builder |
clearName()
Name of the session.
|
SearchResponse.SessionInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchResponse.SessionInfo.Builder |
clearQueryId()
Query ID that corresponds to this search API call.
|
SearchResponse.SessionInfo.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchResponse.SessionInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.
|
SearchResponse.SessionInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchResponse.SessionInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public SearchResponse.SessionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public 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.GeneratedMessageV3.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.public final SearchResponse.SessionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>public final SearchResponse.SessionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchResponse.SessionInfo.Builder>Copyright © 2024 Google LLC. All rights reserved.