diff --git a/ContactCenterInsights/metadata/V1/Resources.php b/ContactCenterInsights/metadata/V1/Resources.php index efdf056be1b1..f6fc935d67b7 100644 Binary files a/ContactCenterInsights/metadata/V1/Resources.php and b/ContactCenterInsights/metadata/V1/Resources.php differ diff --git a/ContactCenterInsights/src/V1/Conversation.php b/ContactCenterInsights/src/V1/Conversation.php index 7a793c32ae3e..2908651f732c 100644 --- a/ContactCenterInsights/src/V1/Conversation.php +++ b/ContactCenterInsights/src/V1/Conversation.php @@ -67,6 +67,12 @@ class Conversation extends \Google\Protobuf\Internal\Message * Generated from protobuf field map labels = 6; */ private $labels; + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + */ + private $quality_metadata = null; /** * Output only. The conversation transcript. * @@ -162,6 +168,8 @@ class Conversation extends \Google\Protobuf\Internal\Message * @type array|\Google\Protobuf\Internal\MapField $labels * A map for the user to specify any custom fields. A maximum of 20 labels per * conversation is allowed, with a maximum of 256 characters per entry. + * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata $quality_metadata + * Conversation metadata related to quality management. * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript $transcript * Output only. The conversation transcript. * @type int $medium @@ -544,6 +552,42 @@ public function setLabels($var) return $this; } + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + * @return \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata|null + */ + public function getQualityMetadata() + { + return $this->quality_metadata; + } + + public function hasQualityMetadata() + { + return isset($this->quality_metadata); + } + + public function clearQualityMetadata() + { + unset($this->quality_metadata); + } + + /** + * Conversation metadata related to quality management. + * + * Generated from protobuf field .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata quality_metadata = 24; + * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata $var + * @return $this + */ + public function setQualityMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata::class); + $this->quality_metadata = $var; + + return $this; + } + /** * Output only. The conversation transcript. * diff --git a/ContactCenterInsights/src/V1/Conversation/QualityMetadata.php b/ContactCenterInsights/src/V1/Conversation/QualityMetadata.php new file mode 100644 index 000000000000..db37db1e5315 --- /dev/null +++ b/ContactCenterInsights/src/V1/Conversation/QualityMetadata.php @@ -0,0 +1,180 @@ +google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata + */ +class QualityMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + */ + private $customer_satisfaction_rating = 0; + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + */ + private $wait_duration = null; + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + */ + private $menu_path = ''; + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + */ + private $agent_info; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $customer_satisfaction_rating + * An arbitrary integer value indicating the customer's satisfaction rating. + * @type \Google\Protobuf\Duration $wait_duration + * The amount of time the customer waited to connect with an agent. + * @type string $menu_path + * An arbitrary string value specifying the menu path the customer took. + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo>|\Google\Protobuf\Internal\RepeatedField $agent_info + * Information about agents involved in the call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + * @return int + */ + public function getCustomerSatisfactionRating() + { + return $this->customer_satisfaction_rating; + } + + /** + * An arbitrary integer value indicating the customer's satisfaction rating. + * + * Generated from protobuf field int32 customer_satisfaction_rating = 1; + * @param int $var + * @return $this + */ + public function setCustomerSatisfactionRating($var) + { + GPBUtil::checkInt32($var); + $this->customer_satisfaction_rating = $var; + + return $this; + } + + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + * @return \Google\Protobuf\Duration|null + */ + public function getWaitDuration() + { + return $this->wait_duration; + } + + public function hasWaitDuration() + { + return isset($this->wait_duration); + } + + public function clearWaitDuration() + { + unset($this->wait_duration); + } + + /** + * The amount of time the customer waited to connect with an agent. + * + * Generated from protobuf field .google.protobuf.Duration wait_duration = 2; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setWaitDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->wait_duration = $var; + + return $this; + } + + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + * @return string + */ + public function getMenuPath() + { + return $this->menu_path; + } + + /** + * An arbitrary string value specifying the menu path the customer took. + * + * Generated from protobuf field string menu_path = 3; + * @param string $var + * @return $this + */ + public function setMenuPath($var) + { + GPBUtil::checkString($var, True); + $this->menu_path = $var; + + return $this; + } + + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAgentInfo() + { + return $this->agent_info; + } + + /** + * Information about agents involved in the call. + * + * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo agent_info = 4; + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAgentInfo($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContactCenterInsights\V1\Conversation\QualityMetadata\AgentInfo::class); + $this->agent_info = $arr; + + return $this; + } + +} + + diff --git a/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php b/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php new file mode 100644 index 000000000000..a70b3e0ea4d1 --- /dev/null +++ b/ContactCenterInsights/src/V1/Conversation/QualityMetadata/AgentInfo.php @@ -0,0 +1,174 @@ +google.cloud.contactcenterinsights.v1.Conversation.QualityMetadata.AgentInfo + */ +class AgentInfo extends \Google\Protobuf\Internal\Message +{ + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + */ + private $agent_id = ''; + /** + * The agent's name. + * + * Generated from protobuf field string display_name = 2; + */ + private $display_name = ''; + /** + * A user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + */ + private $team = ''; + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + */ + private $disposition_code = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $agent_id + * A user-specified string representing the agent. + * @type string $display_name + * The agent's name. + * @type string $team + * A user-specified string representing the agent's team. + * @type string $disposition_code + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce(); + parent::__construct($data); + } + + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + * @return string + */ + public function getAgentId() + { + return $this->agent_id; + } + + /** + * A user-specified string representing the agent. + * + * Generated from protobuf field string agent_id = 1; + * @param string $var + * @return $this + */ + public function setAgentId($var) + { + GPBUtil::checkString($var, True); + $this->agent_id = $var; + + return $this; + } + + /** + * The agent's name. + * + * Generated from protobuf field string display_name = 2; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * The agent's name. + * + * Generated from protobuf field string display_name = 2; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * A user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + * @return string + */ + public function getTeam() + { + return $this->team; + } + + /** + * A user-specified string representing the agent's team. + * + * Generated from protobuf field string team = 3; + * @param string $var + * @return $this + */ + public function setTeam($var) + { + GPBUtil::checkString($var, True); + $this->team = $var; + + return $this; + } + + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + * @return string + */ + public function getDispositionCode() + { + return $this->disposition_code; + } + + /** + * A user-provided string indicating the outcome of the agent's segment of + * the call. + * + * Generated from protobuf field string disposition_code = 4; + * @param string $var + * @return $this + */ + public function setDispositionCode($var) + { + GPBUtil::checkString($var, True); + $this->disposition_code = $var; + + return $this; + } + +} + + diff --git a/ContactCenterInsights/src/V1/IngestConversationsRequest/ConversationConfig.php b/ContactCenterInsights/src/V1/IngestConversationsRequest/ConversationConfig.php index 48440262ec28..7ef44795ed89 100644 --- a/ContactCenterInsights/src/V1/IngestConversationsRequest/ConversationConfig.php +++ b/ContactCenterInsights/src/V1/IngestConversationsRequest/ConversationConfig.php @@ -23,17 +23,17 @@ class ConversationConfig extends \Google\Protobuf\Internal\Message */ private $agent_id = ''; /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the agent. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private $agent_channel = 0; /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the customer. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -49,13 +49,13 @@ class ConversationConfig extends \Google\Protobuf\Internal\Message * An opaque, user-specified string representing the human agent who handled * the conversations. * @type int $agent_channel - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the agent. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * @type int $customer_channel - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the customer. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * } */ public function __construct($data = NULL) { @@ -92,9 +92,9 @@ public function setAgentId($var) } /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the agent. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -105,9 +105,9 @@ public function getAgentChannel() } /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the agent. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var @@ -122,9 +122,9 @@ public function setAgentChannel($var) } /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the customer. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return int @@ -135,9 +135,9 @@ public function getCustomerChannel() } /** - * Optional. For audio conversations, this field indicates which of the - * channels, 1 or 2, contains the customer. Note that this must be set for - * audio conversations to be properly displayed and analyzed. + * Optional. Indicates which of the channels, 1 or 2, contains the agent. + * Note that this must be set for conversations to be properly displayed and + * analyzed. * * Generated from protobuf field int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var