Class AnswerQueryResponse.Builder (0.40.0)

public static final class AnswerQueryResponse.Builder extends GeneratedMessageV3.Builder<AnswerQueryResponse.Builder> implements AnswerQueryResponseOrBuilder

Response message for ConversationalSearchService.AnswerQuery method.

Protobuf type google.cloud.discoveryengine.v1alpha.AnswerQueryResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryResponse.Builder
Overrides

build()

public AnswerQueryResponse build()
Returns
Type Description
AnswerQueryResponse

buildPartial()

public AnswerQueryResponse buildPartial()
Returns
Type Description
AnswerQueryResponse

clear()

public AnswerQueryResponse.Builder clear()
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.Answer answer = 1;

Returns
Type Description
AnswerQueryResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public AnswerQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnswerQueryResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public AnswerQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.Session session = 2;

Returns
Type Description
AnswerQueryResponse.Builder

clone()

public AnswerQueryResponse.Builder clone()
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.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.v1alpha.Answer answer = 1;

Returns
Type Description
Answer.Builder

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.v1alpha.Answer answer = 1;

Returns
Type Description
AnswerOrBuilder

getDefaultInstanceForType()

public AnswerQueryResponse getDefaultInstanceForType()
Returns
Type Description
AnswerQueryResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.v1alpha.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.v1alpha.Session session = 2;

Returns
Type Description
Session.Builder

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.v1alpha.Session session = 2;

Returns
Type Description
SessionOrBuilder

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.v1alpha.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.v1alpha.Session session = 2;

Returns
Type Description
boolean

Whether the session field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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.v1alpha.Answer answer = 1;

Parameter
Name Description
value Answer
Returns
Type Description
AnswerQueryResponse.Builder

mergeFrom(AnswerQueryResponse other)

public AnswerQueryResponse.Builder mergeFrom(AnswerQueryResponse other)
Parameter
Name Description
other AnswerQueryResponse
Returns
Type Description
AnswerQueryResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnswerQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnswerQueryResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnswerQueryResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.Session session = 2;

Parameter
Name Description
value Session
Returns
Type Description
AnswerQueryResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.Answer answer = 1;

Parameter
Name Description
value Answer
Returns
Type Description
AnswerQueryResponse.Builder

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.v1alpha.Answer answer = 1;

Parameter
Name Description
builderForValue Answer.Builder
Returns
Type Description
AnswerQueryResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AnswerQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnswerQueryResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnswerQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnswerQueryResponse.Builder
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.v1alpha.Session session = 2;

Parameter
Name Description
value Session
Returns
Type Description
AnswerQueryResponse.Builder

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.v1alpha.Session session = 2;

Parameter
Name Description
builderForValue Session.Builder
Returns
Type Description
AnswerQueryResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AnswerQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnswerQueryResponse.Builder
Overrides