Class ConversationTurn.Builder (0.65.0)

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

One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConversationTurn build()
Returns
Type Description
ConversationTurn

buildPartial()

public ConversationTurn buildPartial()
Returns
Type Description
ConversationTurn

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserInput()

public ConversationTurn.Builder clearUserInput()

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Returns
Type Description
ConversationTurn.Builder

clearVirtualAgentOutput()

public ConversationTurn.Builder clearVirtualAgentOutput()

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

Returns
Type Description
ConversationTurn.Builder

clone()

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

getDefaultInstanceForType()

public ConversationTurn getDefaultInstanceForType()
Returns
Type Description
ConversationTurn

getDescriptorForType()

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

getUserInput()

public ConversationTurn.UserInput getUserInput()

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Returns
Type Description
ConversationTurn.UserInput

The userInput.

getUserInputBuilder()

public ConversationTurn.UserInput.Builder getUserInputBuilder()

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Returns
Type Description
ConversationTurn.UserInput.Builder

getUserInputOrBuilder()

public ConversationTurn.UserInputOrBuilder getUserInputOrBuilder()

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Returns
Type Description
ConversationTurn.UserInputOrBuilder

getVirtualAgentOutput()

public ConversationTurn.VirtualAgentOutput getVirtualAgentOutput()

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

Returns
Type Description
ConversationTurn.VirtualAgentOutput

The virtualAgentOutput.

getVirtualAgentOutputBuilder()

public ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder()

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

Returns
Type Description
ConversationTurn.VirtualAgentOutput.Builder

getVirtualAgentOutputOrBuilder()

public ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder()

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

Returns
Type Description
ConversationTurn.VirtualAgentOutputOrBuilder

hasUserInput()

public boolean hasUserInput()

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Returns
Type Description
boolean

Whether the userInput field is set.

hasVirtualAgentOutput()

public boolean hasVirtualAgentOutput()

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

Returns
Type Description
boolean

Whether the virtualAgentOutput field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConversationTurn other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserInput(ConversationTurn.UserInput value)

public ConversationTurn.Builder mergeUserInput(ConversationTurn.UserInput value)

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Parameter
Name Description
value ConversationTurn.UserInput
Returns
Type Description
ConversationTurn.Builder

mergeVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

public ConversationTurn.Builder mergeVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserInput(ConversationTurn.UserInput value)

public ConversationTurn.Builder setUserInput(ConversationTurn.UserInput value)

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

Parameter
Name Description
value ConversationTurn.UserInput
Returns
Type Description
ConversationTurn.Builder

setUserInput(ConversationTurn.UserInput.Builder builderForValue)

public ConversationTurn.Builder setUserInput(ConversationTurn.UserInput.Builder builderForValue)

The user input.

.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;

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

setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

public ConversationTurn.Builder setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

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

setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput.Builder builderForValue)

public ConversationTurn.Builder setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput.Builder builderForValue)

The virtual agent output.

.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;

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