public static final class Conversation.Interaction extends GeneratedMessageV3 implements Conversation.InteractionOrBuilder
Represents an interaction between an end user and a Dialogflow CX agent
using V3 (Streaming)DetectIntent API, or an interaction between an end user
and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.
Protobuf type google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MISSING_TRANSITION_FIELD_NUMBER
public static final int MISSING_TRANSITION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARTIAL_RESPONSES_FIELD_NUMBER
public static final int PARTIAL_RESPONSES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
REQUEST_UTTERANCES_FIELD_NUMBER
public static final int REQUEST_UTTERANCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
RESPONSE_UTTERANCES_FIELD_NUMBER
public static final int RESPONSE_UTTERANCES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Conversation.Interaction getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Conversation.Interaction.Builder newBuilder()
newBuilder(Conversation.Interaction prototype)
public static Conversation.Interaction.Builder newBuilder(Conversation.Interaction prototype)
public static Conversation.Interaction parseDelimitedFrom(InputStream input)
public static Conversation.Interaction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Conversation.Interaction parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Conversation.Interaction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Conversation.Interaction parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Conversation.Interaction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Conversation.Interaction parseFrom(CodedInputStream input)
public static Conversation.Interaction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Conversation.Interaction parseFrom(InputStream input)
public static Conversation.Interaction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Conversation.Interaction parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Conversation.Interaction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Conversation.Interaction> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCreateTime()
public Timestamp getCreateTime()
The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;
Returns |
Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;
getDefaultInstanceForType()
public Conversation.Interaction getDefaultInstanceForType()
getMissingTransition()
public Conversation.Interaction.MissingTransition getMissingTransition()
Missing transition predicted for the interaction. This field is set only
if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;
getMissingTransitionOrBuilder()
public Conversation.Interaction.MissingTransitionOrBuilder getMissingTransitionOrBuilder()
Missing transition predicted for the interaction. This field is set only
if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;
getParserForType()
public Parser<Conversation.Interaction> getParserForType()
Overrides
getPartialResponses(int index)
public DetectIntentResponse getPartialResponses(int index)
The partial responses of the interaction. Empty if there is no partial
response in the interaction.
See the
partial response
documentation.
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;
Parameter |
Name |
Description |
index |
int
|
getPartialResponsesCount()
public int getPartialResponsesCount()
The partial responses of the interaction. Empty if there is no partial
response in the interaction.
See the
partial response
documentation.
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;
Returns |
Type |
Description |
int |
|
getPartialResponsesList()
public List<DetectIntentResponse> getPartialResponsesList()
The partial responses of the interaction. Empty if there is no partial
response in the interaction.
See the
partial response
documentation.
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;
getPartialResponsesOrBuilder(int index)
public DetectIntentResponseOrBuilder getPartialResponsesOrBuilder(int index)
The partial responses of the interaction. Empty if there is no partial
response in the interaction.
See the
partial response
documentation.
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;
Parameter |
Name |
Description |
index |
int
|
getPartialResponsesOrBuilderList()
public List<? extends DetectIntentResponseOrBuilder> getPartialResponsesOrBuilderList()
The partial responses of the interaction. Empty if there is no partial
response in the interaction.
See the
partial response
documentation.
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponseOrBuilder> |
|
getRequest()
public DetectIntentRequest getRequest()
The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
getRequestOrBuilder()
public DetectIntentRequestOrBuilder getRequestOrBuilder()
The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
getRequestUtterances()
public String getRequestUtterances()
The input text or the transcript of the input audio in the request.
string request_utterances = 4;
Returns |
Type |
Description |
String |
The requestUtterances.
|
getRequestUtterancesBytes()
public ByteString getRequestUtterancesBytes()
The input text or the transcript of the input audio in the request.
string request_utterances = 4;
Returns |
Type |
Description |
ByteString |
The bytes for requestUtterances.
|
getResponse()
public DetectIntentResponse getResponse()
The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
getResponseOrBuilder()
public DetectIntentResponseOrBuilder getResponseOrBuilder()
The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
getResponseUtterances()
public String getResponseUtterances()
The output text or the transcript of the output audio in the responses.
If multiple output messages are returned, they will be concatenated into
one.
string response_utterances = 5;
Returns |
Type |
Description |
String |
The responseUtterances.
|
getResponseUtterancesBytes()
public ByteString getResponseUtterancesBytes()
The output text or the transcript of the output audio in the responses.
If multiple output messages are returned, they will be concatenated into
one.
string response_utterances = 5;
Returns |
Type |
Description |
ByteString |
The bytes for responseUtterances.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasCreateTime()
public boolean hasCreateTime()
The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;
Returns |
Type |
Description |
boolean |
Whether the createTime field is set.
|
hasMissingTransition()
public boolean hasMissingTransition()
Missing transition predicted for the interaction. This field is set only
if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;
Returns |
Type |
Description |
boolean |
Whether the missingTransition field is set.
|
hasRequest()
public boolean hasRequest()
The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
Returns |
Type |
Description |
boolean |
Whether the request field is set.
|
hasResponse()
public boolean hasResponse()
The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
Returns |
Type |
Description |
boolean |
Whether the response field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Conversation.Interaction.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Conversation.Interaction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Conversation.Interaction.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides