Google Cloud Contact Center Insights V1 Client - Class CreateConversationRequest (2.0.0-RC1)

Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class CreateConversationRequest.

Request to create a conversation.

Generated from protobuf message google.cloud.contactcenterinsights.v1.CreateConversationRequest

Namespace

Google \ Cloud \ ContactCenterInsights \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource of the conversation.

↳ conversation Google\Cloud\ContactCenterInsights\V1\Conversation

Required. The conversation resource to create.

↳ conversation_id string

A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are [a-z][0-9]-

getParent

Required. The parent resource of the conversation.

Returns
Type Description
string

setParent

Required. The parent resource of the conversation.

Parameter
Name Description
var string
Returns
Type Description
$this

getConversation

Required. The conversation resource to create.

Returns
Type Description
Google\Cloud\ContactCenterInsights\V1\Conversation|null

hasConversation

clearConversation

setConversation

Required. The conversation resource to create.

Parameter
Name Description
var Google\Cloud\ContactCenterInsights\V1\Conversation
Returns
Type Description
$this

getConversationId

A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are [a-z][0-9]-

Returns
Type Description
string

setConversationId

A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are [a-z][0-9]-

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource of the conversation. Please see Google\Cloud\ContactCenterInsights\V1\ContactCenterInsightsClient::locationName() for help formatting this field.

conversation Google\Cloud\ContactCenterInsights\V1\Conversation

Required. The conversation resource to create.

conversationId string

A unique ID for the new conversation. This ID will become the final component of the conversation's resource name. If no ID is specified, a server-generated ID will be used.

This value should be 4-64 characters and must match the regular expression ^[a-z0-9-]{4,64}$. Valid characters are [a-z][0-9]-

Returns
Type Description
Google\Cloud\ContactCenterInsights\V1\CreateConversationRequest