Class AssistAnswer.Reply.Builder (0.79.0)

public static final class AssistAnswer.Reply.Builder extends GeneratedMessage.Builder<AssistAnswer.Reply.Builder> implements AssistAnswer.ReplyOrBuilder

One part of the multi-part response of the assist call.

Protobuf type google.cloud.discoveryengine.v1.AssistAnswer.Reply

Static Methods

getDescriptor()

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

Methods

build()

public AssistAnswer.Reply build()
Returns
Type Description
AssistAnswer.Reply

buildPartial()

public AssistAnswer.Reply buildPartial()
Returns
Type Description
AssistAnswer.Reply

clear()

public AssistAnswer.Reply.Builder clear()
Returns
Type Description
AssistAnswer.Reply.Builder
Overrides

clearGroundedContent()

public AssistAnswer.Reply.Builder clearGroundedContent()

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Returns
Type Description
AssistAnswer.Reply.Builder

clearReply()

public AssistAnswer.Reply.Builder clearReply()
Returns
Type Description
AssistAnswer.Reply.Builder

getDefaultInstanceForType()

public AssistAnswer.Reply getDefaultInstanceForType()
Returns
Type Description
AssistAnswer.Reply

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGroundedContent()

public AssistantGroundedContent getGroundedContent()

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Returns
Type Description
AssistantGroundedContent

The groundedContent.

getGroundedContentBuilder()

public AssistantGroundedContent.Builder getGroundedContentBuilder()

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Returns
Type Description
AssistantGroundedContent.Builder

getGroundedContentOrBuilder()

public AssistantGroundedContentOrBuilder getGroundedContentOrBuilder()

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Returns
Type Description
AssistantGroundedContentOrBuilder

getReplyCase()

public AssistAnswer.Reply.ReplyCase getReplyCase()
Returns
Type Description
AssistAnswer.Reply.ReplyCase

hasGroundedContent()

public boolean hasGroundedContent()

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Returns
Type Description
boolean

Whether the groundedContent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AssistAnswer.Reply other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public AssistAnswer.Reply.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AssistAnswer.Reply.Builder
Overrides

mergeGroundedContent(AssistantGroundedContent value)

public AssistAnswer.Reply.Builder mergeGroundedContent(AssistantGroundedContent value)

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Parameter
Name Description
value AssistantGroundedContent
Returns
Type Description
AssistAnswer.Reply.Builder

setGroundedContent(AssistantGroundedContent value)

public AssistAnswer.Reply.Builder setGroundedContent(AssistantGroundedContent value)

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Parameter
Name Description
value AssistantGroundedContent
Returns
Type Description
AssistAnswer.Reply.Builder

setGroundedContent(AssistantGroundedContent.Builder builderForValue)

public AssistAnswer.Reply.Builder setGroundedContent(AssistantGroundedContent.Builder builderForValue)

Possibly grounded response text or media from the assistant.

.google.cloud.discoveryengine.v1.AssistantGroundedContent grounded_content = 1;

Parameter
Name Description
builderForValue AssistantGroundedContent.Builder
Returns
Type Description
AssistAnswer.Reply.Builder