Class ConversationTurn.Builder (0.14.5)

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.v3beta1.ConversationTurn

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConversationTurn.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationTurn.Builder
Overrides

build()

public ConversationTurn build()
Returns
TypeDescription
ConversationTurn

buildPartial()

public ConversationTurn buildPartial()
Returns
TypeDescription
ConversationTurn

clear()

public ConversationTurn.Builder clear()
Returns
TypeDescription
ConversationTurn.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConversationTurn.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConversationTurn.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConversationTurn.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConversationTurn.Builder
Overrides

clearUserInput()

public ConversationTurn.Builder clearUserInput()

The user input.

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

Returns
TypeDescription
ConversationTurn.Builder

clearVirtualAgentOutput()

public ConversationTurn.Builder clearVirtualAgentOutput()

The virtual agent output.

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

Returns
TypeDescription
ConversationTurn.Builder

clone()

public ConversationTurn.Builder clone()
Returns
TypeDescription
ConversationTurn.Builder
Overrides

getDefaultInstanceForType()

public ConversationTurn getDefaultInstanceForType()
Returns
TypeDescription
ConversationTurn

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUserInput()

public ConversationTurn.UserInput getUserInput()

The user input.

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

Returns
TypeDescription
ConversationTurn.UserInput

The userInput.

getUserInputBuilder()

public ConversationTurn.UserInput.Builder getUserInputBuilder()

The user input.

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

Returns
TypeDescription
ConversationTurn.UserInput.Builder

getUserInputOrBuilder()

public ConversationTurn.UserInputOrBuilder getUserInputOrBuilder()

The user input.

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

Returns
TypeDescription
ConversationTurn.UserInputOrBuilder

getVirtualAgentOutput()

public ConversationTurn.VirtualAgentOutput getVirtualAgentOutput()

The virtual agent output.

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

Returns
TypeDescription
ConversationTurn.VirtualAgentOutput

The virtualAgentOutput.

getVirtualAgentOutputBuilder()

public ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder()

The virtual agent output.

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

Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder

getVirtualAgentOutputOrBuilder()

public ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder()

The virtual agent output.

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

Returns
TypeDescription
ConversationTurn.VirtualAgentOutputOrBuilder

hasUserInput()

public boolean hasUserInput()

The user input.

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

Returns
TypeDescription
boolean

Whether the userInput field is set.

hasVirtualAgentOutput()

public boolean hasVirtualAgentOutput()

The virtual agent output.

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

Returns
TypeDescription
boolean

Whether the virtualAgentOutput field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConversationTurn other)

public ConversationTurn.Builder mergeFrom(ConversationTurn other)
Parameter
NameDescription
otherConversationTurn
Returns
TypeDescription
ConversationTurn.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConversationTurn.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConversationTurn.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConversationTurn.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConversationTurn.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationTurn.Builder
Overrides

mergeUserInput(ConversationTurn.UserInput value)

public ConversationTurn.Builder mergeUserInput(ConversationTurn.UserInput value)

The user input.

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

Parameter
NameDescription
valueConversationTurn.UserInput
Returns
TypeDescription
ConversationTurn.Builder

mergeVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

public ConversationTurn.Builder mergeVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

The virtual agent output.

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

Parameter
NameDescription
valueConversationTurn.VirtualAgentOutput
Returns
TypeDescription
ConversationTurn.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConversationTurn.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConversationTurn.Builder
Overrides

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

public ConversationTurn.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConversationTurn.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ConversationTurn.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConversationTurn.Builder
Overrides

setUserInput(ConversationTurn.UserInput value)

public ConversationTurn.Builder setUserInput(ConversationTurn.UserInput value)

The user input.

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

Parameter
NameDescription
valueConversationTurn.UserInput
Returns
TypeDescription
ConversationTurn.Builder

setUserInput(ConversationTurn.UserInput.Builder builderForValue)

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

The user input.

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

Parameter
NameDescription
builderForValueConversationTurn.UserInput.Builder
Returns
TypeDescription
ConversationTurn.Builder

setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

public ConversationTurn.Builder setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput value)

The virtual agent output.

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

Parameter
NameDescription
valueConversationTurn.VirtualAgentOutput
Returns
TypeDescription
ConversationTurn.Builder

setVirtualAgentOutput(ConversationTurn.VirtualAgentOutput.Builder builderForValue)

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

The virtual agent output.

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

Parameter
NameDescription
builderForValueConversationTurn.VirtualAgentOutput.Builder
Returns
TypeDescription
ConversationTurn.Builder