public final class Conversation extends com.google.protobuf.GeneratedMessageV3 implements ConversationOrBuilder
Represents a conversation. A conversation is an interaction between an agent, including live agents and Dialogflow agents, and a support customer. Conversations can include phone calls and text-based chat sessions.Protobuf type
google.cloud.dialogflow.v2beta1.Conversation| Modifier and Type | Class and Description |
|---|---|
static class |
Conversation.Builder
Represents a conversation.
|
static class |
Conversation.ConversationStage
Enumeration of the different conversation stages a conversation can be in.
|
static class |
Conversation.LifecycleState
Enumeration of the completion status of the conversation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONVERSATION_PROFILE_FIELD_NUMBER |
static int |
CONVERSATION_STAGE_FIELD_NUMBER |
static int |
END_TIME_FIELD_NUMBER |
static int |
LIFECYCLE_STATE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PHONE_NUMBER_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getConversationProfile()
Required.
|
com.google.protobuf.ByteString |
getConversationProfileBytes()
Required.
|
Conversation.ConversationStage |
getConversationStage()
The stage of a conversation.
|
int |
getConversationStageValue()
The stage of a conversation.
|
static Conversation |
getDefaultInstance() |
Conversation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getEndTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getEndTimeOrBuilder()
Output only.
|
Conversation.LifecycleState |
getLifecycleState()
Output only.
|
int |
getLifecycleStateValue()
Output only.
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<Conversation> |
getParserForType() |
ConversationPhoneNumber |
getPhoneNumber()
Output only.
|
ConversationPhoneNumberOrBuilder |
getPhoneNumberOrBuilder()
Output only.
|
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getStartTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getStartTimeOrBuilder()
Output only.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasEndTime()
Output only.
|
int |
hashCode() |
boolean |
hasPhoneNumber()
Output only.
|
boolean |
hasStartTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Conversation.Builder |
newBuilder() |
static Conversation.Builder |
newBuilder(Conversation prototype) |
Conversation.Builder |
newBuilderForType() |
protected Conversation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Conversation |
parseDelimitedFrom(InputStream input) |
static Conversation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Conversation |
parseFrom(byte[] data) |
static Conversation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Conversation |
parseFrom(ByteBuffer data) |
static Conversation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Conversation |
parseFrom(com.google.protobuf.ByteString data) |
static Conversation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Conversation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Conversation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Conversation |
parseFrom(InputStream input) |
static Conversation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Conversation> |
parser() |
Conversation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int LIFECYCLE_STATE_FIELD_NUMBER
public static final int CONVERSATION_PROFILE_FIELD_NUMBER
public static final int PHONE_NUMBER_FIELD_NUMBER
public static final int CONVERSATION_STAGE_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. The unique identifier of this conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface ConversationOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The unique identifier of this conversation. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>`.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface ConversationOrBuilderpublic int getLifecycleStateValue()
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2beta1.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLifecycleStateValue in interface ConversationOrBuilderpublic Conversation.LifecycleState getLifecycleState()
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2beta1.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLifecycleState in interface ConversationOrBuilderpublic String getConversationProfile()
Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: `projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>`.
string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getConversationProfile in interface ConversationOrBuilderpublic com.google.protobuf.ByteString getConversationProfileBytes()
Required. The Conversation Profile to be used to configure this Conversation. This field cannot be updated. Format: `projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>`.
string conversation_profile = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getConversationProfileBytes in interface ConversationOrBuilderpublic boolean hasPhoneNumber()
Output only. Required if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasPhoneNumber in interface ConversationOrBuilderpublic ConversationPhoneNumber getPhoneNumber()
Output only. Required if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPhoneNumber in interface ConversationOrBuilderpublic ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder()
Output only. Required if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2beta1.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPhoneNumberOrBuilder in interface ConversationOrBuilderpublic int getConversationStageValue()
The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
.google.cloud.dialogflow.v2beta1.Conversation.ConversationStage conversation_stage = 7;
getConversationStageValue in interface ConversationOrBuilderpublic Conversation.ConversationStage getConversationStage()
The stage of a conversation. It indicates whether the virtual agent or a human agent is handling the conversation. If the conversation is created with the conversation profile that has Dialogflow config set, defaults to [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE]; Otherwise, defaults to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE]. If the conversation is created with the conversation profile that has Dialogflow config set but explicitly sets conversation_stage to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE], it skips [ConversationStage.VIRTUAL_AGENT_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.VIRTUAL_AGENT_STAGE] stage and directly goes to [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2beta1.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
.google.cloud.dialogflow.v2beta1.Conversation.ConversationStage conversation_stage = 7;
getConversationStage in interface ConversationOrBuilderpublic boolean hasStartTime()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStartTime in interface ConversationOrBuilderpublic com.google.protobuf.Timestamp getStartTime()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTime in interface ConversationOrBuilderpublic com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStartTimeOrBuilder in interface ConversationOrBuilderpublic boolean hasEndTime()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasEndTime in interface ConversationOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTime in interface ConversationOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEndTimeOrBuilder in interface ConversationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Conversation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Conversation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Conversation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Conversation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Conversation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Conversation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Conversation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Conversation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Conversation.Builder newBuilder()
public static Conversation.Builder newBuilder(Conversation prototype)
public Conversation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Conversation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Conversation getDefaultInstance()
public static com.google.protobuf.Parser<Conversation> parser()
public com.google.protobuf.Parser<Conversation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Conversation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.