public final class ConversationTurn extends GeneratedMessageV3 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 Fields
public static final int USER_INPUT_FIELD_NUMBER
Field Value
VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER
public static final int VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConversationTurn getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConversationTurn.Builder newBuilder()
Returns
newBuilder(ConversationTurn prototype)
public static ConversationTurn.Builder newBuilder(ConversationTurn prototype)
Parameter
Returns
public static ConversationTurn parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConversationTurn parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConversationTurn parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConversationTurn parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConversationTurn> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public ConversationTurn getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ConversationTurn> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
public ConversationTurn.UserInput getUserInput()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
Returns
public ConversationTurn.UserInputOrBuilder getUserInputOrBuilder()
The user input.
.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1;
Returns
getVirtualAgentOutput()
public ConversationTurn.VirtualAgentOutput getVirtualAgentOutput()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
getVirtualAgentOutputOrBuilder()
public ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder()
The virtual agent output.
.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput virtual_agent_output = 2;
Returns
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConversationTurn.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConversationTurn.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConversationTurn.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions