- 4.59.0 (latest)
- 4.58.0
- 4.57.0
- 4.55.0
- 4.54.0
- 4.53.0
- 4.52.0
- 4.51.0
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.45.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.33.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.1
- 4.8.6
- 4.7.5
- 4.6.0
- 4.5.11
- 4.4.0
- 4.3.1
public static final class Conversation.Builder extends GeneratedMessageV3.Builder<Conversation.Builder> 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.v2.Conversation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Conversation.BuilderImplements
ConversationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Conversation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Conversation.Builder |
build()
public Conversation build()
Type | Description |
Conversation |
buildPartial()
public Conversation buildPartial()
Type | Description |
Conversation |
clear()
public Conversation.Builder clear()
Type | Description |
Conversation.Builder |
clearConversationProfile()
public Conversation.Builder clearConversationProfile()
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) = { ... }
Type | Description |
Conversation.Builder | This builder for chaining. |
clearConversationStage()
public Conversation.Builder clearConversationStage()
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.v2.Conversation.ConversationStage conversation_stage = 7;
Type | Description |
Conversation.Builder | This builder for chaining. |
clearEndTime()
public Conversation.Builder clearEndTime()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Conversation.Builder |
clearField(Descriptors.FieldDescriptor field)
public Conversation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Conversation.Builder |
clearLifecycleState()
public Conversation.Builder clearLifecycleState()
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Conversation.Builder | This builder for chaining. |
clearName()
public Conversation.Builder clearName()
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];
Type | Description |
Conversation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Conversation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Conversation.Builder |
clearPhoneNumber()
public Conversation.Builder clearPhoneNumber()
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Conversation.Builder |
clearStartTime()
public Conversation.Builder clearStartTime()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Conversation.Builder |
clone()
public Conversation.Builder clone()
Type | Description |
Conversation.Builder |
getConversationProfile()
public 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) = { ... }
Type | Description |
String | The conversationProfile. |
getConversationProfileBytes()
public 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) = { ... }
Type | Description |
ByteString | The bytes for conversationProfile. |
getConversationStage()
public 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; 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.v2.Conversation.ConversationStage conversation_stage = 7;
Type | Description |
Conversation.ConversationStage | The conversationStage. |
getConversationStageValue()
public 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; 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.v2.Conversation.ConversationStage conversation_stage = 7;
Type | Description |
int | The enum numeric value on the wire for conversationStage. |
getDefaultInstanceForType()
public Conversation getDefaultInstanceForType()
Type | Description |
Conversation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndTime()
public Timestamp getEndTime()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getLifecycleState()
public Conversation.LifecycleState getLifecycleState()
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Conversation.LifecycleState | The lifecycleState. |
getLifecycleStateValue()
public int getLifecycleStateValue()
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for lifecycleState. |
getName()
public 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];
Type | Description |
String | The name. |
getNameBytes()
public 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];
Type | Description |
ByteString | The bytes for name. |
getPhoneNumber()
public ConversationPhoneNumber getPhoneNumber()
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ConversationPhoneNumber | The phoneNumber. |
getPhoneNumberBuilder()
public ConversationPhoneNumber.Builder getPhoneNumberBuilder()
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ConversationPhoneNumber.Builder |
getPhoneNumberOrBuilder()
public ConversationPhoneNumberOrBuilder getPhoneNumberOrBuilder()
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
ConversationPhoneNumberOrBuilder |
getStartTime()
public Timestamp getStartTime()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
hasEndTime()
public boolean hasEndTime()
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the endTime field is set. |
hasPhoneNumber()
public boolean hasPhoneNumber()
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the phoneNumber field is set. |
hasStartTime()
public boolean hasStartTime()
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the startTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndTime(Timestamp value)
public Conversation.Builder mergeEndTime(Timestamp value)
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Conversation.Builder |
mergeFrom(Conversation other)
public Conversation.Builder mergeFrom(Conversation other)
Name | Description |
other | Conversation |
Type | Description |
Conversation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Conversation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Conversation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Conversation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Conversation.Builder |
mergePhoneNumber(ConversationPhoneNumber value)
public Conversation.Builder mergePhoneNumber(ConversationPhoneNumber value)
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ConversationPhoneNumber |
Type | Description |
Conversation.Builder |
mergeStartTime(Timestamp value)
public Conversation.Builder mergeStartTime(Timestamp value)
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Conversation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Conversation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Conversation.Builder |
setConversationProfile(String value)
public Conversation.Builder setConversationProfile(String value)
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) = { ... }
Name | Description |
value | String The conversationProfile to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setConversationProfileBytes(ByteString value)
public Conversation.Builder setConversationProfileBytes(ByteString value)
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) = { ... }
Name | Description |
value | ByteString The bytes for conversationProfile to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setConversationStage(Conversation.ConversationStage value)
public Conversation.Builder setConversationStage(Conversation.ConversationStage value)
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.v2.Conversation.ConversationStage conversation_stage = 7;
Name | Description |
value | Conversation.ConversationStage The conversationStage to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setConversationStageValue(int value)
public Conversation.Builder setConversationStageValue(int value)
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.v2.Conversation.ConversationStage conversation_stage = 7;
Name | Description |
value | int The enum numeric value on the wire for conversationStage to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setEndTime(Timestamp value)
public Conversation.Builder setEndTime(Timestamp value)
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Conversation.Builder |
setEndTime(Timestamp.Builder builderForValue)
public Conversation.Builder setEndTime(Timestamp.Builder builderForValue)
Output only. The time the conversation was finished.
.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Conversation.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Conversation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Conversation.Builder |
setLifecycleState(Conversation.LifecycleState value)
public Conversation.Builder setLifecycleState(Conversation.LifecycleState value)
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Conversation.LifecycleState The lifecycleState to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setLifecycleStateValue(int value)
public Conversation.Builder setLifecycleStateValue(int value)
Output only. The current state of the Conversation.
.google.cloud.dialogflow.v2.Conversation.LifecycleState lifecycle_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for lifecycleState to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setName(String value)
public Conversation.Builder setName(String value)
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];
Name | Description |
value | String The name to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Conversation.Builder setNameBytes(ByteString value)
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];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Conversation.Builder | This builder for chaining. |
setPhoneNumber(ConversationPhoneNumber value)
public Conversation.Builder setPhoneNumber(ConversationPhoneNumber value)
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | ConversationPhoneNumber |
Type | Description |
Conversation.Builder |
setPhoneNumber(ConversationPhoneNumber.Builder builderForValue)
public Conversation.Builder setPhoneNumber(ConversationPhoneNumber.Builder builderForValue)
Output only. It will not be empty if the conversation is to be connected over telephony.
.google.cloud.dialogflow.v2.ConversationPhoneNumber phone_number = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | ConversationPhoneNumber.Builder |
Type | Description |
Conversation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Conversation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Conversation.Builder |
setStartTime(Timestamp value)
public Conversation.Builder setStartTime(Timestamp value)
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
Conversation.Builder |
setStartTime(Timestamp.Builder builderForValue)
public Conversation.Builder setStartTime(Timestamp.Builder builderForValue)
Output only. The time the conversation was started.
.google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
Conversation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Conversation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Conversation.Builder |