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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConversationTurn.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ConversationTurn build()
Returns
buildPartial()
public ConversationTurn buildPartial()
Returns
clear()
public ConversationTurn.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ConversationTurn.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConversationTurn.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ConversationTurn.Builder clearUserInput()
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Returns
clearVirtualAgentOutput()
public ConversationTurn.Builder clearVirtualAgentOutput()
The virtual agent output.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
clone()
public ConversationTurn.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ConversationTurn getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public ConversationTurn.UserInput getUserInput()
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Returns
public ConversationTurn.UserInput.Builder getUserInputBuilder()
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Returns
public ConversationTurn.UserInputOrBuilder getUserInputOrBuilder()
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Returns
getVirtualAgentOutput()
public ConversationTurn.VirtualAgentOutput getVirtualAgentOutput()
The virtual agent output.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
getVirtualAgentOutputBuilder()
public ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder()
The virtual agent output.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
getVirtualAgentOutputOrBuilder()
public ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder()
The virtual agent output.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
public boolean hasUserInput()
The user input.
.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
Type |
Description |
boolean |
Whether the virtualAgentOutput field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ConversationTurn other)
public ConversationTurn.Builder mergeFrom(ConversationTurn other)
Parameter
Returns
public ConversationTurn.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ConversationTurn.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConversationTurn.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ConversationTurn.Builder mergeUserInput(ConversationTurn.UserInput value)
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ConversationTurn.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConversationTurn.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConversationTurn.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ConversationTurn.Builder setUserInput(ConversationTurn.UserInput value)
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Parameter
Returns
public ConversationTurn.Builder setUserInput(ConversationTurn.UserInput.Builder builderForValue)
The user input.
.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1;
Parameter
Returns
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
Returns
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
Returns