public static final class AnswerQueryResponse.Builder extends GeneratedMessageV3.Builder<AnswerQueryResponse.Builder> implements AnswerQueryResponseOrBuilder
Response message for
ConversationalSearchService.AnswerQuery
method.
Protobuf type google.cloud.discoveryengine.v1beta.AnswerQueryResponse
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 AnswerQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AnswerQueryResponse build()
buildPartial()
public AnswerQueryResponse buildPartial()
clear()
public AnswerQueryResponse.Builder clear()
Overrides
clearAnswer()
public AnswerQueryResponse.Builder clearAnswer()
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
clearField(Descriptors.FieldDescriptor field)
public AnswerQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AnswerQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSession()
public AnswerQueryResponse.Builder clearSession()
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
clone()
public AnswerQueryResponse.Builder clone()
Overrides
getAnswer()
public Answer getAnswer()
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
Returns |
Type |
Description |
Answer |
The answer.
|
getAnswerBuilder()
public Answer.Builder getAnswerBuilder()
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
getAnswerOrBuilder()
public AnswerOrBuilder getAnswerOrBuilder()
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
getDefaultInstanceForType()
public AnswerQueryResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSession()
public Session getSession()
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
Returns |
Type |
Description |
Session |
The session.
|
getSessionBuilder()
public Session.Builder getSessionBuilder()
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
getSessionOrBuilder()
public SessionOrBuilder getSessionOrBuilder()
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
hasAnswer()
public boolean hasAnswer()
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
Returns |
Type |
Description |
boolean |
Whether the answer field is set.
|
hasSession()
public boolean hasSession()
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
Returns |
Type |
Description |
boolean |
Whether the session field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAnswer(Answer value)
public AnswerQueryResponse.Builder mergeAnswer(Answer value)
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
Parameter |
Name |
Description |
value |
Answer
|
mergeFrom(AnswerQueryResponse other)
public AnswerQueryResponse.Builder mergeFrom(AnswerQueryResponse other)
public AnswerQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AnswerQueryResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeSession(Session value)
public AnswerQueryResponse.Builder mergeSession(Session value)
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
Parameter |
Name |
Description |
value |
Session
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAnswer(Answer value)
public AnswerQueryResponse.Builder setAnswer(Answer value)
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
Parameter |
Name |
Description |
value |
Answer
|
setAnswer(Answer.Builder builderForValue)
public AnswerQueryResponse.Builder setAnswer(Answer.Builder builderForValue)
Answer resource object.
If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1,
use Answer.name to fetch
answer information using
ConversationalSearchService.GetAnswer
API.
.google.cloud.discoveryengine.v1beta.Answer answer = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public AnswerQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnswerQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSession(Session value)
public AnswerQueryResponse.Builder setSession(Session value)
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
Parameter |
Name |
Description |
value |
Session
|
setSession(Session.Builder builderForValue)
public AnswerQueryResponse.Builder setSession(Session.Builder builderForValue)
Session resource object.
It will be only available when session field is set and valid in the
AnswerQueryRequest
request.
.google.cloud.discoveryengine.v1beta.Session session = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final AnswerQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides