Skip to content

Commit c5a896c

Browse files
1 parent ab7935d commit c5a896c

56 files changed

Lines changed: 3992 additions & 21 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Contactcenterinsights.php

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Contactcenterinsights extends \Google\Service
4848
public $projects_locations_authorizedViewSets_authorizedViews_conversations_assessments_notes;
4949
public $projects_locations_authorizedViewSets_authorizedViews_conversations_feedbackLabels;
5050
public $projects_locations_authorizedViewSets_authorizedViews_operations;
51+
public $projects_locations_autoLabelingRules;
5152
public $projects_locations_conversations;
5253
public $projects_locations_conversations_analyses;
5354
public $projects_locations_conversations_assessments;
@@ -125,6 +126,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
125126
'required' => true,
126127
],
127128
],
129+
],'getCorrelationConfig' => [
130+
'path' => 'v1/{+name}',
131+
'httpMethod' => 'GET',
132+
'parameters' => [
133+
'name' => [
134+
'location' => 'path',
135+
'type' => 'string',
136+
'required' => true,
137+
],
138+
],
128139
],'getEncryptionSpec' => [
129140
'path' => 'v1/{+name}',
130141
'httpMethod' => 'GET',
@@ -187,6 +198,30 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
187198
'required' => true,
188199
],
189200
],
201+
],'testCorrelationConfig' => [
202+
'path' => 'v1/{+location}:testCorrelationConfig',
203+
'httpMethod' => 'POST',
204+
'parameters' => [
205+
'location' => [
206+
'location' => 'path',
207+
'type' => 'string',
208+
'required' => true,
209+
],
210+
],
211+
],'updateCorrelationConfig' => [
212+
'path' => 'v1/{+name}',
213+
'httpMethod' => 'PATCH',
214+
'parameters' => [
215+
'name' => [
216+
'location' => 'path',
217+
'type' => 'string',
218+
'required' => true,
219+
],
220+
'updateMask' => [
221+
'location' => 'query',
222+
'type' => 'string',
223+
],
224+
],
190225
],'updateSettings' => [
191226
'path' => 'v1/{+name}',
192227
'httpMethod' => 'PATCH',
@@ -991,6 +1026,92 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
9911026
]
9921027
]
9931028
);
1029+
$this->projects_locations_autoLabelingRules = new Contactcenterinsights\Resource\ProjectsLocationsAutoLabelingRules(
1030+
$this,
1031+
$this->serviceName,
1032+
'autoLabelingRules',
1033+
[
1034+
'methods' => [
1035+
'create' => [
1036+
'path' => 'v1/{+parent}/autoLabelingRules',
1037+
'httpMethod' => 'POST',
1038+
'parameters' => [
1039+
'parent' => [
1040+
'location' => 'path',
1041+
'type' => 'string',
1042+
'required' => true,
1043+
],
1044+
'autoLabelingRuleId' => [
1045+
'location' => 'query',
1046+
'type' => 'string',
1047+
],
1048+
],
1049+
],'delete' => [
1050+
'path' => 'v1/{+name}',
1051+
'httpMethod' => 'DELETE',
1052+
'parameters' => [
1053+
'name' => [
1054+
'location' => 'path',
1055+
'type' => 'string',
1056+
'required' => true,
1057+
],
1058+
],
1059+
],'get' => [
1060+
'path' => 'v1/{+name}',
1061+
'httpMethod' => 'GET',
1062+
'parameters' => [
1063+
'name' => [
1064+
'location' => 'path',
1065+
'type' => 'string',
1066+
'required' => true,
1067+
],
1068+
],
1069+
],'list' => [
1070+
'path' => 'v1/{+parent}/autoLabelingRules',
1071+
'httpMethod' => 'GET',
1072+
'parameters' => [
1073+
'parent' => [
1074+
'location' => 'path',
1075+
'type' => 'string',
1076+
'required' => true,
1077+
],
1078+
'pageSize' => [
1079+
'location' => 'query',
1080+
'type' => 'integer',
1081+
],
1082+
'pageToken' => [
1083+
'location' => 'query',
1084+
'type' => 'string',
1085+
],
1086+
],
1087+
],'patch' => [
1088+
'path' => 'v1/{+name}',
1089+
'httpMethod' => 'PATCH',
1090+
'parameters' => [
1091+
'name' => [
1092+
'location' => 'path',
1093+
'type' => 'string',
1094+
'required' => true,
1095+
],
1096+
'updateMask' => [
1097+
'location' => 'query',
1098+
'type' => 'string',
1099+
],
1100+
],
1101+
],'test' => [
1102+
'path' => 'v1/{+parent}/autoLabelingRules:test',
1103+
'httpMethod' => 'POST',
1104+
'parameters' => [
1105+
'parent' => [
1106+
'location' => 'path',
1107+
'type' => 'string',
1108+
'required' => true,
1109+
],
1110+
],
1111+
],
1112+
]
1113+
]
1114+
);
9941115
$this->projects_locations_conversations = new Contactcenterinsights\Resource\ProjectsLocationsConversations(
9951116
$this,
9961117
$this->serviceName,
@@ -1136,6 +1257,10 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
11361257
'location' => 'query',
11371258
'type' => 'boolean',
11381259
],
1260+
'conversationAutoLabelingUpdateConfig.allowAutoLabelingUpdate' => [
1261+
'location' => 'query',
1262+
'type' => 'boolean',
1263+
],
11391264
'updateMask' => [
11401265
'location' => 'query',
11411266
'type' => 'string',
Lines changed: 237 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,237 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Contactcenterinsights;
19+
20+
class GoogleCloudContactcenterinsightsV1AutoLabelingRule extends \Google\Collection
21+
{
22+
/**
23+
* Unspecified label key type.
24+
*/
25+
public const LABEL_KEY_TYPE_LABEL_KEY_TYPE_UNSPECIFIED = 'LABEL_KEY_TYPE_UNSPECIFIED';
26+
/**
27+
* The label key is custom defined by the user.
28+
*/
29+
public const LABEL_KEY_TYPE_LABEL_KEY_TYPE_CUSTOM = 'LABEL_KEY_TYPE_CUSTOM';
30+
protected $collection_key = 'conditions';
31+
/**
32+
* Whether the rule is active.
33+
*
34+
* @var bool
35+
*/
36+
public $active;
37+
protected $conditionsType = GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition::class;
38+
protected $conditionsDataType = 'array';
39+
/**
40+
* Output only. The time at which this rule was created.
41+
*
42+
* @var string
43+
*/
44+
public $createTime;
45+
/**
46+
* The description of the rule.
47+
*
48+
* @var string
49+
*/
50+
public $description;
51+
/**
52+
* The user-provided display name of the rule.
53+
*
54+
* @var string
55+
*/
56+
public $displayName;
57+
/**
58+
* The label key. This is also the {auto_labeling_rule} in the resource name.
59+
* Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
60+
*
61+
* @var string
62+
*/
63+
public $labelKey;
64+
/**
65+
* The type of the label key.
66+
*
67+
* @var string
68+
*/
69+
public $labelKeyType;
70+
/**
71+
* Identifier. The resource name of the auto-labeling rule. Format: projects/{
72+
* project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
73+
*
74+
* @var string
75+
*/
76+
public $name;
77+
/**
78+
* Output only. The most recent time at which the rule was updated.
79+
*
80+
* @var string
81+
*/
82+
public $updateTime;
83+
84+
/**
85+
* Whether the rule is active.
86+
*
87+
* @param bool $active
88+
*/
89+
public function setActive($active)
90+
{
91+
$this->active = $active;
92+
}
93+
/**
94+
* @return bool
95+
*/
96+
public function getActive()
97+
{
98+
return $this->active;
99+
}
100+
/**
101+
* Conditions to apply for auto-labeling the label_key. Representing
102+
* sequential block of if .. else if .. else statements. The value of the
103+
* first matching condition will be used.
104+
*
105+
* @param GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition[] $conditions
106+
*/
107+
public function setConditions($conditions)
108+
{
109+
$this->conditions = $conditions;
110+
}
111+
/**
112+
* @return GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition[]
113+
*/
114+
public function getConditions()
115+
{
116+
return $this->conditions;
117+
}
118+
/**
119+
* Output only. The time at which this rule was created.
120+
*
121+
* @param string $createTime
122+
*/
123+
public function setCreateTime($createTime)
124+
{
125+
$this->createTime = $createTime;
126+
}
127+
/**
128+
* @return string
129+
*/
130+
public function getCreateTime()
131+
{
132+
return $this->createTime;
133+
}
134+
/**
135+
* The description of the rule.
136+
*
137+
* @param string $description
138+
*/
139+
public function setDescription($description)
140+
{
141+
$this->description = $description;
142+
}
143+
/**
144+
* @return string
145+
*/
146+
public function getDescription()
147+
{
148+
return $this->description;
149+
}
150+
/**
151+
* The user-provided display name of the rule.
152+
*
153+
* @param string $displayName
154+
*/
155+
public function setDisplayName($displayName)
156+
{
157+
$this->displayName = $displayName;
158+
}
159+
/**
160+
* @return string
161+
*/
162+
public function getDisplayName()
163+
{
164+
return $this->displayName;
165+
}
166+
/**
167+
* The label key. This is also the {auto_labeling_rule} in the resource name.
168+
* Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
169+
*
170+
* @param string $labelKey
171+
*/
172+
public function setLabelKey($labelKey)
173+
{
174+
$this->labelKey = $labelKey;
175+
}
176+
/**
177+
* @return string
178+
*/
179+
public function getLabelKey()
180+
{
181+
return $this->labelKey;
182+
}
183+
/**
184+
* The type of the label key.
185+
*
186+
* Accepted values: LABEL_KEY_TYPE_UNSPECIFIED, LABEL_KEY_TYPE_CUSTOM
187+
*
188+
* @param self::LABEL_KEY_TYPE_* $labelKeyType
189+
*/
190+
public function setLabelKeyType($labelKeyType)
191+
{
192+
$this->labelKeyType = $labelKeyType;
193+
}
194+
/**
195+
* @return self::LABEL_KEY_TYPE_*
196+
*/
197+
public function getLabelKeyType()
198+
{
199+
return $this->labelKeyType;
200+
}
201+
/**
202+
* Identifier. The resource name of the auto-labeling rule. Format: projects/{
203+
* project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
204+
*
205+
* @param string $name
206+
*/
207+
public function setName($name)
208+
{
209+
$this->name = $name;
210+
}
211+
/**
212+
* @return string
213+
*/
214+
public function getName()
215+
{
216+
return $this->name;
217+
}
218+
/**
219+
* Output only. The most recent time at which the rule was updated.
220+
*
221+
* @param string $updateTime
222+
*/
223+
public function setUpdateTime($updateTime)
224+
{
225+
$this->updateTime = $updateTime;
226+
}
227+
/**
228+
* @return string
229+
*/
230+
public function getUpdateTime()
231+
{
232+
return $this->updateTime;
233+
}
234+
}
235+
236+
// Adding a class alias for backwards compatibility with the previous class name.
237+
class_alias(GoogleCloudContactcenterinsightsV1AutoLabelingRule::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1AutoLabelingRule');

0 commit comments

Comments
 (0)