Send feedback
Class ConversationTurn.Builder (0.66.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.66.0 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConversationTurn . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ConversationTurn build ()
buildPartial()
public ConversationTurn buildPartial ()
clear()
public ConversationTurn . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ConversationTurn . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConversationTurn . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public ConversationTurn . Builder clearUserInput ()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
clearVirtualAgentOutput()
public ConversationTurn . Builder clearVirtualAgentOutput ()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
clone()
public ConversationTurn . Builder clone ()
Overrides
getDefaultInstanceForType()
public ConversationTurn getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public ConversationTurn . UserInput getUserInput ()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
public ConversationTurn . UserInput . Builder getUserInputBuilder ()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
public ConversationTurn . UserInputOrBuilder getUserInputOrBuilder ()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
getVirtualAgentOutput()
public ConversationTurn . VirtualAgentOutput getVirtualAgentOutput ()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
getVirtualAgentOutputBuilder()
public ConversationTurn . VirtualAgentOutput . Builder getVirtualAgentOutputBuilder ()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
getVirtualAgentOutputOrBuilder()
public ConversationTurn . VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder ()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ConversationTurn other)
public ConversationTurn . Builder mergeFrom ( ConversationTurn other )
public ConversationTurn . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ConversationTurn . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConversationTurn . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ConversationTurn . Builder mergeUserInput ( ConversationTurn . UserInput value )
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ConversationTurn . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConversationTurn . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConversationTurn . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public ConversationTurn . Builder setUserInput ( ConversationTurn . UserInput value )
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
public ConversationTurn . Builder setUserInput ( ConversationTurn . UserInput . Builder builderForValue )
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
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;
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;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]