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.v1alpha.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.
Only set if the answer generation (/answer API call) happened in this
turn.
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.v1alpha.Query query = 1;
clone()
public Session.Turn.Builder clone()
Overrides
getAnswer()
public String getAnswer()
The resource name of the answer to the user query.
Only set if the answer generation (/answer API call) happened in this
turn.
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.
Only set if the answer generation (/answer API call) happened in this
turn.
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.v1alpha.Query query = 1;
Returns |
Type |
Description |
Query |
The query.
|
getQueryBuilder()
public Query.Builder getQueryBuilder()
The user query.
.google.cloud.discoveryengine.v1alpha.Query query = 1;
getQueryOrBuilder()
public QueryOrBuilder getQueryOrBuilder()
The user query.
.google.cloud.discoveryengine.v1alpha.Query query = 1;
hasQuery()
public boolean hasQuery()
The user query.
.google.cloud.discoveryengine.v1alpha.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.v1alpha.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.
Only set if the answer generation (/answer API call) happened in this
turn.
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.
Only set if the answer generation (/answer API call) happened in this
turn.
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.v1alpha.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.v1alpha.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