public static final class SearchResponse.SessionInfo extends GeneratedMessageV3 implements SearchResponse.SessionInfoOrBuilder
Information about the session.
Protobuf type google.cloud.discoveryengine.v1alpha.SearchResponse.SessionInfo
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUERY_ID_FIELD_NUMBER
public static final int QUERY_ID_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchResponse.SessionInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchResponse.SessionInfo.Builder newBuilder()
newBuilder(SearchResponse.SessionInfo prototype)
public static SearchResponse.SessionInfo.Builder newBuilder(SearchResponse.SessionInfo prototype)
public static SearchResponse.SessionInfo parseDelimitedFrom(InputStream input)
public static SearchResponse.SessionInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchResponse.SessionInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.SessionInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchResponse.SessionInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.SessionInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.SessionInfo parseFrom(CodedInputStream input)
public static SearchResponse.SessionInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.SessionInfo parseFrom(InputStream input)
public static SearchResponse.SessionInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchResponse.SessionInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.SessionInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchResponse.SessionInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SearchResponse.SessionInfo getDefaultInstanceForType()
getName()
Name of the session.
If the auto-session mode is used (when
SearchRequest.session
ends with "-"), this field holds the newly generated session name.
string name = 1;
Returns |
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Name of the session.
If the auto-session mode is used (when
SearchRequest.session
ends with "-"), this field holds the newly generated session name.
string name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<SearchResponse.SessionInfo> getParserForType()
Overrides
getQueryId()
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;
Returns |
Type |
Description |
String |
The queryId.
|
getQueryIdBytes()
public 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 |
Type |
Description |
ByteString |
The bytes for queryId.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchResponse.SessionInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchResponse.SessionInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SearchResponse.SessionInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides