Send feedback
Class Session.Turn.Builder (0.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.38.0 keyboard_arrow_down
public static final class Session . Turn . Builder extends GeneratedMessageV3 . Builder<Session . Turn . Builder > implements Session . TurnOrBuilder
Represents a turn, including a query from the user and a
answer from service.
Protobuf type google.cloud.discoveryengine.v1beta.Session.Turn
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Session . Turn . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public Session . Turn build ()
buildPartial()
public Session . Turn buildPartial ()
clear()
public Session . Turn . Builder clear ()
Overrides
clearAnswer()
public Session . Turn . Builder clearAnswer ()
The resource name of the answer to the user query.
string answer = 2 [(.google.api.resource_reference) = { ... }
clearField(Descriptors.FieldDescriptor field)
public Session . Turn . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Session . Turn . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearQuery()
public Session . Turn . Builder clearQuery ()
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
clone()
public Session . Turn . Builder clone ()
Overrides
getAnswer()
public String getAnswer ()
The resource name of the answer to the user query.
string answer = 2 [(.google.api.resource_reference) = { ... }
Returns
Type
Description
String
The answer.
getAnswerBytes()
public ByteString getAnswerBytes ()
The resource name of the answer to the user query.
string answer = 2 [(.google.api.resource_reference) = { ... }
Returns
Type
Description
ByteString
The bytes for answer.
getDefaultInstanceForType()
public Session . Turn getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getQuery()
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
Returns
Type
Description
Query
The query.
getQueryBuilder()
public Query . Builder getQueryBuilder ()
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
getQueryOrBuilder()
public QueryOrBuilder getQueryOrBuilder ()
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
hasQuery()
public boolean hasQuery ()
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
Returns
Type
Description
boolean
Whether the query field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Session.Turn other)
public Session . Turn . Builder mergeFrom ( Session . Turn other )
public Session . Turn . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Session . Turn . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeQuery(Query value)
public Session . Turn . Builder mergeQuery ( Query value )
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
Parameter
Name
Description
value
Query
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Session . Turn . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setAnswer(String value)
public Session . Turn . Builder setAnswer ( String value )
The resource name of the answer to the user query.
string answer = 2 [(.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
String
The answer to set.
setAnswerBytes(ByteString value)
public Session . Turn . Builder setAnswerBytes ( ByteString value )
The resource name of the answer to the user query.
string answer = 2 [(.google.api.resource_reference) = { ... }
Parameter
Name
Description
value
ByteString
The bytes for answer to set.
setField(Descriptors.FieldDescriptor field, Object value)
public Session . Turn . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setQuery(Query value)
public Session . Turn . Builder setQuery ( Query value )
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
Parameter
Name
Description
value
Query
setQuery(Query.Builder builderForValue)
public Session . Turn . Builder setQuery ( Query . Builder builderForValue )
The user query.
.google.cloud.discoveryengine.v1beta.Query query = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Session . Turn . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Session . Turn . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]