Interface ConversationOrBuilder (4.97.0)

public interface ConversationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsIngestedContextReferences(String key)

public abstract boolean containsIngestedContextReferences(String key)

Output only. The context reference updates provided by external systems.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsInitialGeneratorContexts(String key)

public abstract boolean containsInitialGeneratorContexts(String key)

Output only. A map with generator name as key and generator context as value.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getConversationProfile()

public abstract 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) = { ... }

Returns
Type Description
String

The conversationProfile.

getConversationProfileBytes()

public abstract 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) = { ... }

Returns
Type Description
ByteString

The bytes for conversationProfile.

getConversationStage()

public abstract Conversation.ConversationStage getConversationStage()

Optional. 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; Otherwise, defaults to 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, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE.

.google.cloud.dialogflow.v2beta1.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Conversation.ConversationStage

The conversationStage.

getConversationStageValue()

public abstract int getConversationStageValue()

Optional. 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; Otherwise, defaults to 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, it skips ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to ConversationStage.HUMAN_ASSIST_STAGE.

.google.cloud.dialogflow.v2beta1.Conversation.ConversationStage conversation_stage = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for conversationStage.

getEndTime()

public abstract Timestamp getEndTime()

Output only. The time the conversation was finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public abstract TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time the conversation was finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getIngestedContextReferences() (deprecated)

public abstract Map<String,Conversation.ContextReference> getIngestedContextReferences()
Returns
Type Description
Map<String,ContextReference>

getIngestedContextReferencesCount()

public abstract int getIngestedContextReferencesCount()

Output only. The context reference updates provided by external systems.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getIngestedContextReferencesMap()

public abstract Map<String,Conversation.ContextReference> getIngestedContextReferencesMap()

Output only. The context reference updates provided by external systems.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ContextReference>

getIngestedContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)

public abstract Conversation.ContextReference getIngestedContextReferencesOrDefault(String key, Conversation.ContextReference defaultValue)

Output only. The context reference updates provided by external systems.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue Conversation.ContextReference
Returns
Type Description
Conversation.ContextReference

getIngestedContextReferencesOrThrow(String key)

public abstract Conversation.ContextReference getIngestedContextReferencesOrThrow(String key)

Output only. The context reference updates provided by external systems.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.ContextReference> ingested_context_references = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Conversation.ContextReference

getInitialConversationProfile()

public abstract ConversationProfile getInitialConversationProfile()

Optional. Output only. The initial conversation profile to be used to configure this conversation, which is a copy of the conversation profile config read at conversation creation time.

.google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationProfile

The initialConversationProfile.

getInitialConversationProfileOrBuilder()

public abstract ConversationProfileOrBuilder getInitialConversationProfileOrBuilder()

Optional. Output only. The initial conversation profile to be used to configure this conversation, which is a copy of the conversation profile config read at conversation creation time.

.google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConversationProfileOrBuilder

getInitialGeneratorContexts() (deprecated)

public abstract Map<String,Conversation.GeneratorContext> getInitialGeneratorContexts()
Returns
Type Description
Map<String,GeneratorContext>

getInitialGeneratorContextsCount()

public abstract int getInitialGeneratorContextsCount()

Output only. A map with generator name as key and generator context as value.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getInitialGeneratorContextsMap()

public abstract Map<String,Conversation.GeneratorContext> getInitialGeneratorContextsMap()

Output only. A map with generator name as key and generator context as value.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,GeneratorContext>

getInitialGeneratorContextsOrDefault(String key, Conversation.GeneratorContext defaultValue)

public abstract Conversation.GeneratorContext getInitialGeneratorContextsOrDefault(String key, Conversation.GeneratorContext defaultValue)

Output only. A map with generator name as key and generator context as value.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue Conversation.GeneratorContext
Returns
Type Description
Conversation.GeneratorContext

getInitialGeneratorContextsOrThrow(String key)

public abstract Conversation.GeneratorContext getInitialGeneratorContextsOrThrow(String key)

Output only. A map with generator name as key and generator context as value.

map<string, .google.cloud.dialogflow.v2beta1.Conversation.GeneratorContext> initial_generator_contexts = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
Conversation.GeneratorContext

getLifecycleState()

public abstract 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];

Returns
Type Description
Conversation.LifecycleState

The lifecycleState.

getLifecycleStateValue()

public abstract 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];

Returns
Type Description
int

The enum numeric value on the wire for lifecycleState.

getName()

public abstract String getName()

Output only. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPhoneNumber()

public abstract 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];

Returns
Type Description
ConversationPhoneNumber

The phoneNumber.

getPhoneNumberOrBuilder()

public abstract 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];

Returns
Type Description
ConversationPhoneNumberOrBuilder

getStartTime()

public abstract Timestamp getStartTime()

Output only. The time the conversation was started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public abstract TimestampOrBuilder getStartTimeOrBuilder()

Output only. The time the conversation was started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getTelephonyConnectionInfo()

public abstract Conversation.TelephonyConnectionInfo getTelephonyConnectionInfo()

Output only. The telephony connection information.

.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Conversation.TelephonyConnectionInfo

The telephonyConnectionInfo.

getTelephonyConnectionInfoOrBuilder()

public abstract Conversation.TelephonyConnectionInfoOrBuilder getTelephonyConnectionInfoOrBuilder()

Output only. The telephony connection information.

.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Conversation.TelephonyConnectionInfoOrBuilder

hasEndTime()

public abstract boolean hasEndTime()

Output only. The time the conversation was finished.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasInitialConversationProfile()

public abstract boolean hasInitialConversationProfile()

Optional. Output only. The initial conversation profile to be used to configure this conversation, which is a copy of the conversation profile config read at conversation creation time.

.google.cloud.dialogflow.v2beta1.ConversationProfile initial_conversation_profile = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the initialConversationProfile field is set.

hasPhoneNumber()

public abstract 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];

Returns
Type Description
boolean

Whether the phoneNumber field is set.

hasStartTime()

public abstract boolean hasStartTime()

Output only. The time the conversation was started.

.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hasTelephonyConnectionInfo()

public abstract boolean hasTelephonyConnectionInfo()

Output only. The telephony connection information.

.google.cloud.dialogflow.v2beta1.Conversation.TelephonyConnectionInfo telephony_connection_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the telephonyConnectionInfo field is set.