Class ConversationTurn.VirtualAgentOutput.Builder (0.35.0)

public static final class ConversationTurn.VirtualAgentOutput.Builder extends GeneratedMessageV3.Builder<ConversationTurn.VirtualAgentOutput.Builder> implements ConversationTurn.VirtualAgentOutputOrBuilder

The output from the virtual agent.

Protobuf type google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput

Static Methods

getDescriptor()

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

Methods

addAllDifferences(Iterable<? extends TestRunDifference> values)

public ConversationTurn.VirtualAgentOutput.Builder addAllDifferences(Iterable<? extends TestRunDifference> values)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.TestRunDifference>
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addAllTextResponses(Iterable<? extends ResponseMessage.Text> values)

public ConversationTurn.VirtualAgentOutput.Builder addAllTextResponses(Iterable<? extends ResponseMessage.Text> values)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text>
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addDifferences(TestRunDifference value)

public ConversationTurn.VirtualAgentOutput.Builder addDifferences(TestRunDifference value)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value TestRunDifference
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addDifferences(TestRunDifference.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder addDifferences(TestRunDifference.Builder builderForValue)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue TestRunDifference.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addDifferences(int index, TestRunDifference value)

public ConversationTurn.VirtualAgentOutput.Builder addDifferences(int index, TestRunDifference value)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TestRunDifference
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addDifferences(int index, TestRunDifference.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder addDifferences(int index, TestRunDifference.Builder builderForValue)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TestRunDifference.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addDifferencesBuilder()

public TestRunDifference.Builder addDifferencesBuilder()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TestRunDifference.Builder

addDifferencesBuilder(int index)

public TestRunDifference.Builder addDifferencesBuilder(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TestRunDifference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTextResponses(ResponseMessage.Text value)

public ConversationTurn.VirtualAgentOutput.Builder addTextResponses(ResponseMessage.Text value)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
value ResponseMessage.Text
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addTextResponses(ResponseMessage.Text.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder addTextResponses(ResponseMessage.Text.Builder builderForValue)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
builderForValue ResponseMessage.Text.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addTextResponses(int index, ResponseMessage.Text value)

public ConversationTurn.VirtualAgentOutput.Builder addTextResponses(int index, ResponseMessage.Text value)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameters
Name Description
index int
value ResponseMessage.Text
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addTextResponses(int index, ResponseMessage.Text.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder addTextResponses(int index, ResponseMessage.Text.Builder builderForValue)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameters
Name Description
index int
builderForValue ResponseMessage.Text.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

addTextResponsesBuilder()

public ResponseMessage.Text.Builder addTextResponsesBuilder()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
ResponseMessage.Text.Builder

addTextResponsesBuilder(int index)

public ResponseMessage.Text.Builder addTextResponsesBuilder(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Text.Builder

build()

public ConversationTurn.VirtualAgentOutput build()
Returns
Type Description
ConversationTurn.VirtualAgentOutput

buildPartial()

public ConversationTurn.VirtualAgentOutput buildPartial()
Returns
Type Description
ConversationTurn.VirtualAgentOutput

clear()

public ConversationTurn.VirtualAgentOutput.Builder clear()
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

clearCurrentPage()

public ConversationTurn.VirtualAgentOutput.Builder clearCurrentPage()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearDiagnosticInfo()

public ConversationTurn.VirtualAgentOutput.Builder clearDiagnosticInfo()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearDifferences()

public ConversationTurn.VirtualAgentOutput.Builder clearDifferences()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationTurn.VirtualAgentOutput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

clearSessionParameters()

public ConversationTurn.VirtualAgentOutput.Builder clearSessionParameters()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearStatus()

public ConversationTurn.VirtualAgentOutput.Builder clearStatus()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearTextResponses()

public ConversationTurn.VirtualAgentOutput.Builder clearTextResponses()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clearTriggeredIntent()

public ConversationTurn.VirtualAgentOutput.Builder clearTriggeredIntent()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

clone()

public ConversationTurn.VirtualAgentOutput.Builder clone()
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

getCurrentPage()

public Page getCurrentPage()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
Type Description
Page

The currentPage.

getCurrentPageBuilder()

public Page.Builder getCurrentPageBuilder()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
Type Description
Page.Builder

getCurrentPageOrBuilder()

public PageOrBuilder getCurrentPageOrBuilder()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
Type Description
PageOrBuilder

getDefaultInstanceForType()

public ConversationTurn.VirtualAgentOutput getDefaultInstanceForType()
Returns
Type Description
ConversationTurn.VirtualAgentOutput

getDescriptorForType()

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

getDiagnosticInfo()

public Struct getDiagnosticInfo()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Struct

The diagnosticInfo.

getDiagnosticInfoBuilder()

public Struct.Builder getDiagnosticInfoBuilder()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Builder

getDiagnosticInfoOrBuilder()

public StructOrBuilder getDiagnosticInfoOrBuilder()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
StructOrBuilder

getDifferences(int index)

public TestRunDifference getDifferences(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TestRunDifference

getDifferencesBuilder(int index)

public TestRunDifference.Builder getDifferencesBuilder(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TestRunDifference.Builder

getDifferencesBuilderList()

public List<TestRunDifference.Builder> getDifferencesBuilderList()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getDifferencesCount()

public int getDifferencesCount()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getDifferencesList()

public List<TestRunDifference> getDifferencesList()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<TestRunDifference>

getDifferencesOrBuilder(int index)

public TestRunDifferenceOrBuilder getDifferencesOrBuilder(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
TestRunDifferenceOrBuilder

getDifferencesOrBuilderList()

public List<? extends TestRunDifferenceOrBuilder> getDifferencesOrBuilderList()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder>

getSessionParameters()

public Struct getSessionParameters()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
Type Description
Struct

The sessionParameters.

getSessionParametersBuilder()

public Struct.Builder getSessionParametersBuilder()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
Type Description
Builder

getSessionParametersOrBuilder()

public StructOrBuilder getSessionParametersOrBuilder()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
Type Description
StructOrBuilder

getStatus()

public Status getStatus()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
Type Description
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
Type Description
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getTextResponses(int index)

public ResponseMessage.Text getTextResponses(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Text

getTextResponsesBuilder(int index)

public ResponseMessage.Text.Builder getTextResponsesBuilder(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Text.Builder

getTextResponsesBuilderList()

public List<ResponseMessage.Text.Builder> getTextResponsesBuilderList()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
List<Builder>

getTextResponsesCount()

public int getTextResponsesCount()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
int

getTextResponsesList()

public List<ResponseMessage.Text> getTextResponsesList()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
List<Text>

getTextResponsesOrBuilder(int index)

public ResponseMessage.TextOrBuilder getTextResponsesOrBuilder(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.TextOrBuilder

getTextResponsesOrBuilderList()

public List<? extends ResponseMessage.TextOrBuilder> getTextResponsesOrBuilderList()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder>

getTriggeredIntent()

public Intent getTriggeredIntent()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
Type Description
Intent

The triggeredIntent.

getTriggeredIntentBuilder()

public Intent.Builder getTriggeredIntentBuilder()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
Type Description
Intent.Builder

getTriggeredIntentOrBuilder()

public IntentOrBuilder getTriggeredIntentOrBuilder()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
Type Description
IntentOrBuilder

hasCurrentPage()

public boolean hasCurrentPage()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
Type Description
boolean

Whether the currentPage field is set.

hasDiagnosticInfo()

public boolean hasDiagnosticInfo()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the diagnosticInfo field is set.

hasSessionParameters()

public boolean hasSessionParameters()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
Type Description
boolean

Whether the sessionParameters field is set.

hasStatus()

public boolean hasStatus()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
Type Description
boolean

Whether the status field is set.

hasTriggeredIntent()

public boolean hasTriggeredIntent()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
Type Description
boolean

Whether the triggeredIntent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCurrentPage(Page value)

public ConversationTurn.VirtualAgentOutput.Builder mergeCurrentPage(Page value)

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Parameter
Name Description
value Page
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

mergeDiagnosticInfo(Struct value)

public ConversationTurn.VirtualAgentOutput.Builder mergeDiagnosticInfo(Struct value)

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

mergeFrom(ConversationTurn.VirtualAgentOutput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ConversationTurn.VirtualAgentOutput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

mergeSessionParameters(Struct value)

public ConversationTurn.VirtualAgentOutput.Builder mergeSessionParameters(Struct value)

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Parameter
Name Description
value Struct
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

mergeStatus(Status value)

public ConversationTurn.VirtualAgentOutput.Builder mergeStatus(Status value)

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

mergeTriggeredIntent(Intent value)

public ConversationTurn.VirtualAgentOutput.Builder mergeTriggeredIntent(Intent value)

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Parameter
Name Description
value Intent
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationTurn.VirtualAgentOutput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

removeDifferences(int index)

public ConversationTurn.VirtualAgentOutput.Builder removeDifferences(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

removeTextResponses(int index)

public ConversationTurn.VirtualAgentOutput.Builder removeTextResponses(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
Name Description
index int
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setCurrentPage(Page value)

public ConversationTurn.VirtualAgentOutput.Builder setCurrentPage(Page value)

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Parameter
Name Description
value Page
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setCurrentPage(Page.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setCurrentPage(Page.Builder builderForValue)

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Parameter
Name Description
builderForValue Page.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setDiagnosticInfo(Struct value)

public ConversationTurn.VirtualAgentOutput.Builder setDiagnosticInfo(Struct value)

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Struct
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setDiagnosticInfo(Struct.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setDiagnosticInfo(Struct.Builder builderForValue)

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setDifferences(int index, TestRunDifference value)

public ConversationTurn.VirtualAgentOutput.Builder setDifferences(int index, TestRunDifference value)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value TestRunDifference
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setDifferences(int index, TestRunDifference.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setDifferences(int index, TestRunDifference.Builder builderForValue)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue TestRunDifference.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ConversationTurn.VirtualAgentOutput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder
Overrides

setSessionParameters(Struct value)

public ConversationTurn.VirtualAgentOutput.Builder setSessionParameters(Struct value)

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Parameter
Name Description
value Struct
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setSessionParameters(Struct.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setSessionParameters(Struct.Builder builderForValue)

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setStatus(Status value)

public ConversationTurn.VirtualAgentOutput.Builder setStatus(Status value)

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setStatus(Status.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setStatus(Status.Builder builderForValue)

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setTextResponses(int index, ResponseMessage.Text value)

public ConversationTurn.VirtualAgentOutput.Builder setTextResponses(int index, ResponseMessage.Text value)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameters
Name Description
index int
value ResponseMessage.Text
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setTextResponses(int index, ResponseMessage.Text.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setTextResponses(int index, ResponseMessage.Text.Builder builderForValue)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameters
Name Description
index int
builderForValue ResponseMessage.Text.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setTriggeredIntent(Intent value)

public ConversationTurn.VirtualAgentOutput.Builder setTriggeredIntent(Intent value)

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Parameter
Name Description
value Intent
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setTriggeredIntent(Intent.Builder builderForValue)

public ConversationTurn.VirtualAgentOutput.Builder setTriggeredIntent(Intent.Builder builderForValue)

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Parameter
Name Description
builderForValue Intent.Builder
Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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