From affff875ea49b95ac033bf197ea8bbdb365f2a03 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 3 Aug 2022 12:44:08 -0700 Subject: [PATCH] docs: [ContactCenterInsights] Updating comments (#5413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Updating comments chore:remove LRO to API list PiperOrigin-RevId: 463893258 Source-Link: https://github.com/googleapis/googleapis/commit/e47c0cdef77eb713e9d76adafda26d98d15bd4ac Source-Link: https://github.com/googleapis/googleapis-gen/commit/8df6a6a605ff4032486c8e9a30366a99b4874666 Copy-Tag: eyJwIjoiQ29udGFjdENlbnRlckluc2lnaHRzLy5Pd2xCb3QueWFtbCIsImgiOiI4ZGY2YTZhNjA1ZmY0MDMyNDg2YzhlOWEzMDM2NmE5OWI0ODc0NjY2In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../AnalysisResult/CallAnalysisMetadata.php | 8 +- .../src/V1/ArticleSuggestionData.php | 16 +- .../V1/CalculateStatsResponse/TimeSeries.php | 4 +- ContactCenterInsights/src/V1/Conversation.php | 4 +- .../src/V1/Conversation/Transcript.php | 4 +- .../Transcript/TranscriptSegment.php | 4 +- .../src/V1/ExportInsightsDataMetadata.php | 4 +- .../src/V1/FaqAnswerData.php | 16 +- .../ContactCenterInsightsGapicClient.php | 238 ++++------ .../src/V1/IssueModelResult.php | 4 +- .../src/V1/ListAnalysesResponse.php | 4 +- .../src/V1/ListConversationsResponse.php | 4 +- .../src/V1/ListIssueModelsResponse.php | 4 +- .../src/V1/ListIssuesResponse.php | 4 +- .../src/V1/ListPhraseMatchersResponse.php | 4 +- .../src/V1/ListViewsResponse.php | 4 +- .../src/V1/PhraseMatchRuleGroup.php | 4 +- .../src/V1/PhraseMatcher.php | 4 +- .../src/V1/SmartComposeSuggestionData.php | 16 +- .../src/V1/SmartReplyData.php | 16 +- .../V1/ContactCenterInsightsClientTest.php | 440 +++++++++--------- 21 files changed, 386 insertions(+), 420 deletions(-) diff --git a/ContactCenterInsights/src/V1/AnalysisResult/CallAnalysisMetadata.php b/ContactCenterInsights/src/V1/AnalysisResult/CallAnalysisMetadata.php index f02890048877..b7afe4fdbeec 100644 --- a/ContactCenterInsights/src/V1/AnalysisResult/CallAnalysisMetadata.php +++ b/ContactCenterInsights/src/V1/AnalysisResult/CallAnalysisMetadata.php @@ -58,11 +58,11 @@ class CallAnalysisMetadata extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\CallAnnotation[]|\Google\Protobuf\Internal\RepeatedField $annotations + * @type array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $annotations * A list of call annotations that apply to this call. * @type array|\Google\Protobuf\Internal\MapField $entities * All the entities in the call. - * @type \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment[]|\Google\Protobuf\Internal\RepeatedField $sentiments + * @type array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $sentiments * Overall conversation-level sentiment for each channel of the call. * @type array|\Google\Protobuf\Internal\MapField $intents * All the matched intents in the call. @@ -92,7 +92,7 @@ public function getAnnotations() * A list of call annotations that apply to this call. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CallAnnotation annotations = 2; - * @param \Google\Cloud\ContactCenterInsights\V1\CallAnnotation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\CallAnnotation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAnnotations($var) @@ -144,7 +144,7 @@ public function getSentiments() * Overall conversation-level sentiment for each channel of the call. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.ConversationLevelSentiment sentiments = 4; - * @param \Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\ConversationLevelSentiment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSentiments($var) diff --git a/ContactCenterInsights/src/V1/ArticleSuggestionData.php b/ContactCenterInsights/src/V1/ArticleSuggestionData.php index b26ec91cae99..a0f122bff025 100644 --- a/ContactCenterInsights/src/V1/ArticleSuggestionData.php +++ b/ContactCenterInsights/src/V1/ArticleSuggestionData.php @@ -43,9 +43,9 @@ class ArticleSuggestionData extends \Google\Protobuf\Internal\Message */ private $metadata; /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 5; */ @@ -77,9 +77,9 @@ class ArticleSuggestionData extends \Google\Protobuf\Internal\Message * Map that contains metadata about the Article Suggestion and the document * that it originates from. * @type string $query_record - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * @type string $source * The knowledge document that this answer was extracted from. * Format: @@ -202,9 +202,9 @@ public function setMetadata($var) } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 5; * @return string @@ -215,9 +215,9 @@ public function getQueryRecord() } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 5; * @param string $var diff --git a/ContactCenterInsights/src/V1/CalculateStatsResponse/TimeSeries.php b/ContactCenterInsights/src/V1/CalculateStatsResponse/TimeSeries.php index ef027a0bdeeb..009b7e9dbfe2 100644 --- a/ContactCenterInsights/src/V1/CalculateStatsResponse/TimeSeries.php +++ b/ContactCenterInsights/src/V1/CalculateStatsResponse/TimeSeries.php @@ -38,7 +38,7 @@ class TimeSeries extends \Google\Protobuf\Internal\Message * * @type \Google\Protobuf\Duration $interval_duration * The duration of each interval. - * @type \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval[]|\Google\Protobuf\Internal\RepeatedField $points + * @type array<\Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval>|\Google\Protobuf\Internal\RepeatedField $points * An ordered list of intervals from earliest to latest, where each interval * represents the number of conversations that transpired during the time * window. @@ -104,7 +104,7 @@ public function getPoints() * window. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval points = 2; - * @param \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse\TimeSeries\Interval>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPoints($var) diff --git a/ContactCenterInsights/src/V1/Conversation.php b/ContactCenterInsights/src/V1/Conversation.php index 6c63aa34eee2..fedfa22101eb 100644 --- a/ContactCenterInsights/src/V1/Conversation.php +++ b/ContactCenterInsights/src/V1/Conversation.php @@ -165,7 +165,7 @@ class Conversation extends \Google\Protobuf\Internal\Message * Output only. The number of turns in the conversation. * @type \Google\Cloud\ContactCenterInsights\V1\Analysis $latest_analysis * Output only. The conversation's latest analysis, if one exists. - * @type \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation[]|\Google\Protobuf\Internal\RepeatedField $runtime_annotations + * @type array<\Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation>|\Google\Protobuf\Internal\RepeatedField $runtime_annotations * Output only. The annotations that were generated during the customer and agent * interaction. * @type array|\Google\Protobuf\Internal\MapField $dialogflow_intents @@ -711,7 +711,7 @@ public function getRuntimeAnnotations() * interaction. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.RuntimeAnnotation runtime_annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\RuntimeAnnotation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRuntimeAnnotations($var) diff --git a/ContactCenterInsights/src/V1/Conversation/Transcript.php b/ContactCenterInsights/src/V1/Conversation/Transcript.php index 08704fadc811..4012a896036b 100644 --- a/ContactCenterInsights/src/V1/Conversation/Transcript.php +++ b/ContactCenterInsights/src/V1/Conversation/Transcript.php @@ -28,7 +28,7 @@ class Transcript extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment[]|\Google\Protobuf\Internal\RepeatedField $transcript_segments + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment>|\Google\Protobuf\Internal\RepeatedField $transcript_segments * A list of sequential transcript segments that comprise the conversation. * } */ @@ -52,7 +52,7 @@ public function getTranscriptSegments() * A list of sequential transcript segments that comprise the conversation. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment transcript_segments = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTranscriptSegments($var) diff --git a/ContactCenterInsights/src/V1/Conversation/Transcript/TranscriptSegment.php b/ContactCenterInsights/src/V1/Conversation/Transcript/TranscriptSegment.php index 6089ed2723dd..4b17fdc2910e 100644 --- a/ContactCenterInsights/src/V1/Conversation/Transcript/TranscriptSegment.php +++ b/ContactCenterInsights/src/V1/Conversation/Transcript/TranscriptSegment.php @@ -89,7 +89,7 @@ class TranscriptSegment extends \Google\Protobuf\Internal\Message * @type float $confidence * A confidence estimate between 0.0 and 1.0 of the fidelity of this * segment. A default value of 0.0 indicates that the value is unset. - * @type \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo[]|\Google\Protobuf\Internal\RepeatedField $words + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo>|\Google\Protobuf\Internal\RepeatedField $words * A list of the word-specific information for each word in the segment. * @type string $language_code * The language code of this segment as a @@ -218,7 +218,7 @@ public function getWords() * A list of the word-specific information for each word in the segment. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo words = 3; - * @param \Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation\Transcript\TranscriptSegment\WordInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setWords($var) diff --git a/ContactCenterInsights/src/V1/ExportInsightsDataMetadata.php b/ContactCenterInsights/src/V1/ExportInsightsDataMetadata.php index 9125805793ce..4e031556261e 100644 --- a/ContactCenterInsights/src/V1/ExportInsightsDataMetadata.php +++ b/ContactCenterInsights/src/V1/ExportInsightsDataMetadata.php @@ -53,7 +53,7 @@ class ExportInsightsDataMetadata extends \Google\Protobuf\Internal\Message * Output only. The time the operation finished running. * @type \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest $request * The original request for export. - * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $partial_errors + * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_errors * Partial errors during export operation that might cause the operation * output to be incomplete. * } @@ -188,7 +188,7 @@ public function getPartialErrors() * output to be incomplete. * * Generated from protobuf field repeated .google.rpc.Status partial_errors = 4; - * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPartialErrors($var) diff --git a/ContactCenterInsights/src/V1/FaqAnswerData.php b/ContactCenterInsights/src/V1/FaqAnswerData.php index d80cb5319b93..f5a04a340b45 100644 --- a/ContactCenterInsights/src/V1/FaqAnswerData.php +++ b/ContactCenterInsights/src/V1/FaqAnswerData.php @@ -43,9 +43,9 @@ class FaqAnswerData extends \Google\Protobuf\Internal\Message */ private $metadata; /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record}. * * Generated from protobuf field string query_record = 5; */ @@ -77,9 +77,9 @@ class FaqAnswerData extends \Google\Protobuf\Internal\Message * Map that contains metadata about the FAQ answer and the document that * it originates from. * @type string $query_record - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record}. * @type string $source * The knowledge document that this answer was extracted from. * Format: @@ -202,9 +202,9 @@ public function setMetadata($var) } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record}. * * Generated from protobuf field string query_record = 5; * @return string @@ -215,9 +215,9 @@ public function getQueryRecord() } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record}. * * Generated from protobuf field string query_record = 5; * @param string $var diff --git a/ContactCenterInsights/src/V1/Gapic/ContactCenterInsightsGapicClient.php b/ContactCenterInsights/src/V1/Gapic/ContactCenterInsightsGapicClient.php index 979f28a20315..006090bbacf3 100644 --- a/ContactCenterInsights/src/V1/Gapic/ContactCenterInsightsGapicClient.php +++ b/ContactCenterInsights/src/V1/Gapic/ContactCenterInsightsGapicClient.php @@ -629,10 +629,9 @@ public function __construct(array $options = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\CalculateIssueModelStatsResponse @@ -683,10 +682,9 @@ public function calculateIssueModelStats( * A filter to reduce results to a specific subset. This field is useful for * getting statistics about conversations with specific properties. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\CalculateStatsResponse @@ -764,10 +762,9 @@ public function calculateStats($location, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -823,10 +820,9 @@ public function createAnalysis($parent, $analysis, array $optionalArgs = []) * 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]-` * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Conversation @@ -907,10 +903,9 @@ public function createConversation( * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -965,10 +960,9 @@ public function createIssueModel( * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher @@ -1023,10 +1017,9 @@ public function createPhraseMatcher( * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\View @@ -1073,10 +1066,9 @@ public function createView($parent, $view, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @throws ApiException if the remote call fails @@ -1124,10 +1116,9 @@ public function deleteAnalysis($name, array $optionalArgs = []) * Otherwise, the request will only succeed if the conversation has no * analyses. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @throws ApiException if the remote call fails @@ -1198,10 +1189,9 @@ public function deleteConversation($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1247,10 +1237,9 @@ public function deleteIssueModel($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @throws ApiException if the remote call fails @@ -1294,10 +1283,9 @@ public function deletePhraseMatcher($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @throws ApiException if the remote call fails @@ -1367,10 +1355,9 @@ public function deleteView($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1453,10 +1440,9 @@ public function deployIssueModel($name, array $optionalArgs = []) * Options for what to do if the destination table already exists. * For allowed values, use constants defined on {@see \Google\Cloud\ContactCenterInsights\V1\ExportInsightsDataRequest\WriteDisposition} * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -1520,10 +1506,9 @@ public function exportInsightsData($parent, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Analysis @@ -1572,10 +1557,9 @@ public function getAnalysis($name, array $optionalArgs = []) * The level of details of the conversation. Default is `FULL`. * For allowed values, use constants defined on {@see \Google\Cloud\ContactCenterInsights\V1\ConversationView} * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Conversation @@ -1625,10 +1609,9 @@ public function getConversation($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Issue @@ -1674,10 +1657,9 @@ public function getIssue($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\IssueModel @@ -1723,10 +1705,9 @@ public function getIssueModel($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher @@ -1772,10 +1753,9 @@ public function getPhraseMatcher($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Settings @@ -1821,10 +1801,9 @@ public function getSettings($name, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\View @@ -1894,10 +1873,9 @@ public function getView($name, array $optionalArgs = []) * A filter to reduce results to a specific subset. Useful for querying * conversations with specific properties. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -1982,10 +1960,9 @@ public function listAnalyses($parent, array $optionalArgs = []) * The level of details of the conversation. Default is `BASIC`. * For allowed values, use constants defined on {@see \Google\Cloud\ContactCenterInsights\V1\ConversationView} * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -2047,10 +2024,9 @@ public function listConversations($parent, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\ListIssueModelsResponse @@ -2096,10 +2072,9 @@ public function listIssueModels($parent, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\ListIssuesResponse @@ -2169,10 +2144,9 @@ public function listIssues($parent, array $optionalArgs = []) * A filter to reduce results to a specific subset. Useful for querying * phrase matchers with specific properties. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -2251,10 +2225,9 @@ public function listPhraseMatchers($parent, array $optionalArgs = []) * of values will be returned. Any page token used here must have * been generated by a previous call to the API. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\PagedListResponse @@ -2334,10 +2307,9 @@ public function listViews($parent, array $optionalArgs = []) * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\ApiCore\OperationResponse @@ -2385,10 +2357,9 @@ public function undeployIssueModel($name, array $optionalArgs = []) * @type FieldMask $updateMask * The list of fields to be updated. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Conversation @@ -2440,10 +2411,9 @@ public function updateConversation($conversation, array $optionalArgs = []) * @type FieldMask $updateMask * The list of fields to be updated. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Issue @@ -2495,10 +2465,9 @@ public function updateIssue($issue, array $optionalArgs = []) * @type FieldMask $updateMask * The list of fields to be updated. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\IssueModel @@ -2550,10 +2519,9 @@ public function updateIssueModel($issueModel, array $optionalArgs = []) * @type FieldMask $updateMask * The list of fields to be updated. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher @@ -2607,10 +2575,9 @@ public function updatePhraseMatcher( * Optional. * * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\Settings @@ -2662,10 +2629,9 @@ public function updateSettings( * @type FieldMask $updateMask * The list of fields to be updated. * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a - * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry - * settings parameters. See the documentation on - * {@see Google\ApiCore\RetrySettings} for example usage. + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. * } * * @return \Google\Cloud\ContactCenterInsights\V1\View diff --git a/ContactCenterInsights/src/V1/IssueModelResult.php b/ContactCenterInsights/src/V1/IssueModelResult.php index 056feaf03665..205d95a74ef1 100644 --- a/ContactCenterInsights/src/V1/IssueModelResult.php +++ b/ContactCenterInsights/src/V1/IssueModelResult.php @@ -38,7 +38,7 @@ class IssueModelResult extends \Google\Protobuf\Internal\Message * @type string $issue_model * Issue model that generates the result. * Format: projects/{project}/locations/{location}/issueModels/{issue_model} - * @type \Google\Cloud\ContactCenterInsights\V1\IssueAssignment[]|\Google\Protobuf\Internal\RepeatedField $issues + * @type array<\Google\Cloud\ContactCenterInsights\V1\IssueAssignment>|\Google\Protobuf\Internal\RepeatedField $issues * All the matched issues. * } */ @@ -90,7 +90,7 @@ public function getIssues() * All the matched issues. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueAssignment issues = 2; - * @param \Google\Cloud\ContactCenterInsights\V1\IssueAssignment[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\IssueAssignment>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssues($var) diff --git a/ContactCenterInsights/src/V1/ListAnalysesResponse.php b/ContactCenterInsights/src/V1/ListAnalysesResponse.php index 00e969c053a8..4874f86581d0 100644 --- a/ContactCenterInsights/src/V1/ListAnalysesResponse.php +++ b/ContactCenterInsights/src/V1/ListAnalysesResponse.php @@ -35,7 +35,7 @@ class ListAnalysesResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\Analysis[]|\Google\Protobuf\Internal\RepeatedField $analyses + * @type array<\Google\Cloud\ContactCenterInsights\V1\Analysis>|\Google\Protobuf\Internal\RepeatedField $analyses * The analyses that match the request. * @type string $next_page_token * A token, which can be sent as `page_token` to retrieve the next page. @@ -62,7 +62,7 @@ public function getAnalyses() * The analyses that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Analysis analyses = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\Analysis[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\Analysis>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAnalyses($var) diff --git a/ContactCenterInsights/src/V1/ListConversationsResponse.php b/ContactCenterInsights/src/V1/ListConversationsResponse.php index efd4fb1c89af..11c92fc8aad4 100644 --- a/ContactCenterInsights/src/V1/ListConversationsResponse.php +++ b/ContactCenterInsights/src/V1/ListConversationsResponse.php @@ -36,7 +36,7 @@ class ListConversationsResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\Conversation[]|\Google\Protobuf\Internal\RepeatedField $conversations + * @type array<\Google\Cloud\ContactCenterInsights\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $conversations * The conversations that match the request. * @type string $next_page_token * A token which can be sent as `page_token` to retrieve the next page. If @@ -64,7 +64,7 @@ public function getConversations() * The conversations that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Conversation conversations = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\Conversation[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConversations($var) diff --git a/ContactCenterInsights/src/V1/ListIssueModelsResponse.php b/ContactCenterInsights/src/V1/ListIssueModelsResponse.php index 21d83b1ef855..fd1955c2afaf 100644 --- a/ContactCenterInsights/src/V1/ListIssueModelsResponse.php +++ b/ContactCenterInsights/src/V1/ListIssueModelsResponse.php @@ -28,7 +28,7 @@ class ListIssueModelsResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\IssueModel[]|\Google\Protobuf\Internal\RepeatedField $issue_models + * @type array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $issue_models * The issue models that match the request. * } */ @@ -52,7 +52,7 @@ public function getIssueModels() * The issue models that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.IssueModel issue_models = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\IssueModel[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\IssueModel>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssueModels($var) diff --git a/ContactCenterInsights/src/V1/ListIssuesResponse.php b/ContactCenterInsights/src/V1/ListIssuesResponse.php index 2ddf2f81f122..3bb883650053 100644 --- a/ContactCenterInsights/src/V1/ListIssuesResponse.php +++ b/ContactCenterInsights/src/V1/ListIssuesResponse.php @@ -28,7 +28,7 @@ class ListIssuesResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\Issue[]|\Google\Protobuf\Internal\RepeatedField $issues + * @type array<\Google\Cloud\ContactCenterInsights\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $issues * The issues that match the request. * } */ @@ -52,7 +52,7 @@ public function getIssues() * The issues that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.Issue issues = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\Issue[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\Issue>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssues($var) diff --git a/ContactCenterInsights/src/V1/ListPhraseMatchersResponse.php b/ContactCenterInsights/src/V1/ListPhraseMatchersResponse.php index fd397aa8b4a0..47de3de2e8d8 100644 --- a/ContactCenterInsights/src/V1/ListPhraseMatchersResponse.php +++ b/ContactCenterInsights/src/V1/ListPhraseMatchersResponse.php @@ -35,7 +35,7 @@ class ListPhraseMatchersResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher[]|\Google\Protobuf\Internal\RepeatedField $phrase_matchers + * @type array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatcher>|\Google\Protobuf\Internal\RepeatedField $phrase_matchers * The phrase matchers that match the request. * @type string $next_page_token * A token, which can be sent as `page_token` to retrieve the next page. @@ -62,7 +62,7 @@ public function getPhraseMatchers() * The phrase matchers that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatcher phrase_matchers = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatcher[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatcher>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPhraseMatchers($var) diff --git a/ContactCenterInsights/src/V1/ListViewsResponse.php b/ContactCenterInsights/src/V1/ListViewsResponse.php index 86875d50f19d..dbd458856e51 100644 --- a/ContactCenterInsights/src/V1/ListViewsResponse.php +++ b/ContactCenterInsights/src/V1/ListViewsResponse.php @@ -35,7 +35,7 @@ class ListViewsResponse extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \Google\Cloud\ContactCenterInsights\V1\View[]|\Google\Protobuf\Internal\RepeatedField $views + * @type array<\Google\Cloud\ContactCenterInsights\V1\View>|\Google\Protobuf\Internal\RepeatedField $views * The views that match the request. * @type string $next_page_token * A token, which can be sent as `page_token` to retrieve the next page. @@ -62,7 +62,7 @@ public function getViews() * The views that match the request. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.View views = 1; - * @param \Google\Cloud\ContactCenterInsights\V1\View[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\View>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setViews($var) diff --git a/ContactCenterInsights/src/V1/PhraseMatchRuleGroup.php b/ContactCenterInsights/src/V1/PhraseMatchRuleGroup.php index a4e4bf6d9c04..2c111252773e 100644 --- a/ContactCenterInsights/src/V1/PhraseMatchRuleGroup.php +++ b/ContactCenterInsights/src/V1/PhraseMatchRuleGroup.php @@ -36,7 +36,7 @@ class PhraseMatchRuleGroup extends \Google\Protobuf\Internal\Message * * @type int $type * Required. The type of this phrase match rule group. - * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule[]|\Google\Protobuf\Internal\RepeatedField $phrase_match_rules + * @type array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule>|\Google\Protobuf\Internal\RepeatedField $phrase_match_rules * A list of phase match rules that are included in this group. * } */ @@ -86,7 +86,7 @@ public function getPhraseMatchRules() * A list of phase match rules that are included in this group. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRule phrase_match_rules = 2; - * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPhraseMatchRules($var) diff --git a/ContactCenterInsights/src/V1/PhraseMatcher.php b/ContactCenterInsights/src/V1/PhraseMatcher.php index d6997237e0c8..453a86d23555 100644 --- a/ContactCenterInsights/src/V1/PhraseMatcher.php +++ b/ContactCenterInsights/src/V1/PhraseMatcher.php @@ -118,7 +118,7 @@ class PhraseMatcher extends \Google\Protobuf\Internal\Message * Required. The type of this phrase matcher. * @type bool $active * Applies the phrase matcher only when it is active. - * @type \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup[]|\Google\Protobuf\Internal\RepeatedField $phrase_match_rule_groups + * @type array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup>|\Google\Protobuf\Internal\RepeatedField $phrase_match_rule_groups * A list of phase match rule groups that are included in this matcher. * @type \Google\Protobuf\Timestamp $activation_update_time * Output only. The most recent time at which the activation status was updated. @@ -356,7 +356,7 @@ public function getPhraseMatchRuleGroups() * A list of phase match rule groups that are included in this matcher. * * Generated from protobuf field repeated .google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup phrase_match_rule_groups = 8; - * @param \Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup[]|\Google\Protobuf\Internal\RepeatedField $var + * @param array<\Google\Cloud\ContactCenterInsights\V1\PhraseMatchRuleGroup>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPhraseMatchRuleGroups($var) diff --git a/ContactCenterInsights/src/V1/SmartComposeSuggestionData.php b/ContactCenterInsights/src/V1/SmartComposeSuggestionData.php index a0b9b5d84099..ad87e216a8fc 100644 --- a/ContactCenterInsights/src/V1/SmartComposeSuggestionData.php +++ b/ContactCenterInsights/src/V1/SmartComposeSuggestionData.php @@ -37,9 +37,9 @@ class SmartComposeSuggestionData extends \Google\Protobuf\Internal\Message */ private $metadata; /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; */ @@ -61,9 +61,9 @@ class SmartComposeSuggestionData extends \Google\Protobuf\Internal\Message * Map that contains metadata about the Smart Compose suggestion and the * document from which it originates. * @type string $query_record - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * } */ public function __construct($data = NULL) { @@ -156,9 +156,9 @@ public function setMetadata($var) } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; * @return string @@ -169,9 +169,9 @@ public function getQueryRecord() } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; * @param string $var diff --git a/ContactCenterInsights/src/V1/SmartReplyData.php b/ContactCenterInsights/src/V1/SmartReplyData.php index 806ccb89465d..2c54d3714f18 100644 --- a/ContactCenterInsights/src/V1/SmartReplyData.php +++ b/ContactCenterInsights/src/V1/SmartReplyData.php @@ -37,9 +37,9 @@ class SmartReplyData extends \Google\Protobuf\Internal\Message */ private $metadata; /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; */ @@ -61,9 +61,9 @@ class SmartReplyData extends \Google\Protobuf\Internal\Message * Map that contains metadata about the Smart Reply and the document from * which it originates. * @type string $query_record - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * } */ public function __construct($data = NULL) { @@ -156,9 +156,9 @@ public function setMetadata($var) } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; * @return string @@ -169,9 +169,9 @@ public function getQueryRecord() } /** - * The name of the answer record. + * Name of the query record. * Format: - * projects/{project}/locations/{location}/answerRecords/{answer_record} + * projects/{project}/locations/{location}/queryRecords/{query_record} * * Generated from protobuf field string query_record = 4; * @param string $var diff --git a/ContactCenterInsights/tests/Unit/V1/ContactCenterInsightsClientTest.php b/ContactCenterInsights/tests/Unit/V1/ContactCenterInsightsClientTest.php index 0f0f2925a466..86c26bfb7bd9 100644 --- a/ContactCenterInsights/tests/Unit/V1/ContactCenterInsightsClientTest.php +++ b/ContactCenterInsights/tests/Unit/V1/ContactCenterInsightsClientTest.php @@ -98,7 +98,7 @@ private function createClient(array $options = []) public function calculateIssueModelStatsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -106,8 +106,8 @@ public function calculateIssueModelStatsTest() $expectedResponse = new CalculateIssueModelStatsResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedIssueModel = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->calculateIssueModelStats($formattedIssueModel); + $formattedIssueModel = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->calculateIssueModelStats($formattedIssueModel); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -125,7 +125,7 @@ public function calculateIssueModelStatsTest() public function calculateIssueModelStatsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -140,10 +140,10 @@ public function calculateIssueModelStatsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedIssueModel = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $formattedIssueModel = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); try { - $client->calculateIssueModelStats($formattedIssueModel); - // If the $client method call did not throw, fail the test + $gapicClient->calculateIssueModelStats($formattedIssueModel); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -160,7 +160,7 @@ public function calculateIssueModelStatsExceptionTest() public function calculateStatsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -172,8 +172,8 @@ public function calculateStatsTest() $expectedResponse->setConversationCount($conversationCount); $transport->addResponse($expectedResponse); // Mock request - $formattedLocation = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->calculateStats($formattedLocation); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->calculateStats($formattedLocation); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -191,7 +191,7 @@ public function calculateStatsTest() public function calculateStatsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -206,10 +206,10 @@ public function calculateStatsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedLocation = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); try { - $client->calculateStats($formattedLocation); - // If the $client method call did not throw, fail the test + $gapicClient->calculateStats($formattedLocation); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -232,7 +232,7 @@ public function createAnalysisTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -254,9 +254,9 @@ public function createAnalysisTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedParent = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); $analysis = new Analysis(); - $response = $client->createAnalysis($formattedParent, $analysis); + $response = $gapicClient->createAnalysis($formattedParent, $analysis); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -301,7 +301,7 @@ public function createAnalysisExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -323,9 +323,9 @@ public function createAnalysisExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedParent = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); $analysis = new Analysis(); - $response = $client->createAnalysis($formattedParent, $analysis); + $response = $gapicClient->createAnalysis($formattedParent, $analysis); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -353,7 +353,7 @@ public function createAnalysisExceptionTest() public function createConversationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -371,9 +371,9 @@ public function createConversationTest() $expectedResponse->setObfuscatedUserId($obfuscatedUserId); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $conversation = new Conversation(); - $response = $client->createConversation($formattedParent, $conversation); + $response = $gapicClient->createConversation($formattedParent, $conversation); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -393,7 +393,7 @@ public function createConversationTest() public function createConversationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -408,11 +408,11 @@ public function createConversationExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $conversation = new Conversation(); try { - $client->createConversation($formattedParent, $conversation); - // If the $client method call did not throw, fail the test + $gapicClient->createConversation($formattedParent, $conversation); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -435,7 +435,7 @@ public function createIssueModelTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -459,9 +459,9 @@ public function createIssueModelTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $issueModel = new IssueModel(); - $response = $client->createIssueModel($formattedParent, $issueModel); + $response = $gapicClient->createIssueModel($formattedParent, $issueModel); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -506,7 +506,7 @@ public function createIssueModelExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -528,9 +528,9 @@ public function createIssueModelExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $issueModel = new IssueModel(); - $response = $client->createIssueModel($formattedParent, $issueModel); + $response = $gapicClient->createIssueModel($formattedParent, $issueModel); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -558,7 +558,7 @@ public function createIssueModelExceptionTest() public function createPhraseMatcherTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -576,11 +576,11 @@ public function createPhraseMatcherTest() $expectedResponse->setActive($active); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $phraseMatcher = new PhraseMatcher(); $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; $phraseMatcher->setType($phraseMatcherType); - $response = $client->createPhraseMatcher($formattedParent, $phraseMatcher); + $response = $gapicClient->createPhraseMatcher($formattedParent, $phraseMatcher); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -600,7 +600,7 @@ public function createPhraseMatcherTest() public function createPhraseMatcherExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -615,13 +615,13 @@ public function createPhraseMatcherExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $phraseMatcher = new PhraseMatcher(); $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; $phraseMatcher->setType($phraseMatcherType); try { - $client->createPhraseMatcher($formattedParent, $phraseMatcher); - // If the $client method call did not throw, fail the test + $gapicClient->createPhraseMatcher($formattedParent, $phraseMatcher); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -638,7 +638,7 @@ public function createPhraseMatcherExceptionTest() public function createViewTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -652,9 +652,9 @@ public function createViewTest() $expectedResponse->setValue($value); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $view = new View(); - $response = $client->createView($formattedParent, $view); + $response = $gapicClient->createView($formattedParent, $view); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -674,7 +674,7 @@ public function createViewTest() public function createViewExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -689,11 +689,11 @@ public function createViewExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); $view = new View(); try { - $client->createView($formattedParent, $view); - // If the $client method call did not throw, fail the test + $gapicClient->createView($formattedParent, $view); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -710,7 +710,7 @@ public function createViewExceptionTest() public function deleteAnalysisTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -718,8 +718,8 @@ public function deleteAnalysisTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); - $client->deleteAnalysis($formattedName); + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $gapicClient->deleteAnalysis($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); @@ -736,7 +736,7 @@ public function deleteAnalysisTest() public function deleteAnalysisExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -751,10 +751,10 @@ public function deleteAnalysisExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); try { - $client->deleteAnalysis($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->deleteAnalysis($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -771,7 +771,7 @@ public function deleteAnalysisExceptionTest() public function deleteConversationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -779,8 +779,8 @@ public function deleteConversationTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $client->deleteConversation($formattedName); + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $gapicClient->deleteConversation($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); @@ -797,7 +797,7 @@ public function deleteConversationTest() public function deleteConversationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -812,10 +812,10 @@ public function deleteConversationExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); try { - $client->deleteConversation($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->deleteConversation($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -838,7 +838,7 @@ public function deleteIssueModelTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -858,8 +858,8 @@ public function deleteIssueModelTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->deleteIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->deleteIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -902,7 +902,7 @@ public function deleteIssueModelExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -924,8 +924,8 @@ public function deleteIssueModelExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->deleteIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->deleteIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -953,7 +953,7 @@ public function deleteIssueModelExceptionTest() public function deletePhraseMatcherTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -961,8 +961,8 @@ public function deletePhraseMatcherTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); - $client->deletePhraseMatcher($formattedName); + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $gapicClient->deletePhraseMatcher($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); @@ -979,7 +979,7 @@ public function deletePhraseMatcherTest() public function deletePhraseMatcherExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -994,10 +994,10 @@ public function deletePhraseMatcherExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); try { - $client->deletePhraseMatcher($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->deletePhraseMatcher($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1014,7 +1014,7 @@ public function deletePhraseMatcherExceptionTest() public function deleteViewTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1022,8 +1022,8 @@ public function deleteViewTest() $expectedResponse = new GPBEmpty(); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); - $client->deleteView($formattedName); + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $gapicClient->deleteView($formattedName); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); @@ -1040,7 +1040,7 @@ public function deleteViewTest() public function deleteViewExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1055,10 +1055,10 @@ public function deleteViewExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); try { - $client->deleteView($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->deleteView($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1081,7 +1081,7 @@ public function deployIssueModelTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1101,8 +1101,8 @@ public function deployIssueModelTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->deployIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->deployIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -1145,7 +1145,7 @@ public function deployIssueModelExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1167,8 +1167,8 @@ public function deployIssueModelExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->deployIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->deployIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -1202,7 +1202,7 @@ public function exportInsightsDataTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1222,8 +1222,8 @@ public function exportInsightsDataTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->exportInsightsData($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->exportInsightsData($formattedParent); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -1266,7 +1266,7 @@ public function exportInsightsDataExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -1288,8 +1288,8 @@ public function exportInsightsDataExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->exportInsightsData($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->exportInsightsData($formattedParent); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -1317,7 +1317,7 @@ public function exportInsightsDataExceptionTest() public function getAnalysisTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1327,8 +1327,8 @@ public function getAnalysisTest() $expectedResponse->setName($name2); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); - $response = $client->getAnalysis($formattedName); + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $response = $gapicClient->getAnalysis($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1346,7 +1346,7 @@ public function getAnalysisTest() public function getAnalysisExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1361,10 +1361,10 @@ public function getAnalysisExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); + $formattedName = $gapicClient->analysisName('[PROJECT]', '[LOCATION]', '[CONVERSATION]', '[ANALYSIS]'); try { - $client->getAnalysis($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getAnalysis($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1381,7 +1381,7 @@ public function getAnalysisExceptionTest() public function getConversationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1399,8 +1399,8 @@ public function getConversationTest() $expectedResponse->setObfuscatedUserId($obfuscatedUserId); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $response = $client->getConversation($formattedName); + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $response = $gapicClient->getConversation($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1418,7 +1418,7 @@ public function getConversationTest() public function getConversationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1433,10 +1433,10 @@ public function getConversationExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); try { - $client->getConversation($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getConversation($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1453,7 +1453,7 @@ public function getConversationExceptionTest() public function getIssueTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1465,8 +1465,8 @@ public function getIssueTest() $expectedResponse->setDisplayName($displayName); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); - $response = $client->getIssue($formattedName); + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $response = $gapicClient->getIssue($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1484,7 +1484,7 @@ public function getIssueTest() public function getIssueExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1499,10 +1499,10 @@ public function getIssueExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); + $formattedName = $gapicClient->issueName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]', '[ISSUE]'); try { - $client->getIssue($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getIssue($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1519,7 +1519,7 @@ public function getIssueExceptionTest() public function getIssueModelTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1531,8 +1531,8 @@ public function getIssueModelTest() $expectedResponse->setDisplayName($displayName); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->getIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->getIssueModel($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1550,7 +1550,7 @@ public function getIssueModelTest() public function getIssueModelExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1565,10 +1565,10 @@ public function getIssueModelExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); try { - $client->getIssueModel($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getIssueModel($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1585,7 +1585,7 @@ public function getIssueModelExceptionTest() public function getPhraseMatcherTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1603,8 +1603,8 @@ public function getPhraseMatcherTest() $expectedResponse->setActive($active); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); - $response = $client->getPhraseMatcher($formattedName); + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $response = $gapicClient->getPhraseMatcher($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1622,7 +1622,7 @@ public function getPhraseMatcherTest() public function getPhraseMatcherExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1637,10 +1637,10 @@ public function getPhraseMatcherExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); + $formattedName = $gapicClient->phraseMatcherName('[PROJECT]', '[LOCATION]', '[PHRASE_MATCHER]'); try { - $client->getPhraseMatcher($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getPhraseMatcher($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1657,7 +1657,7 @@ public function getPhraseMatcherExceptionTest() public function getSettingsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1669,8 +1669,8 @@ public function getSettingsTest() $expectedResponse->setLanguageCode($languageCode); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->settingsName('[PROJECT]', '[LOCATION]'); - $response = $client->getSettings($formattedName); + $formattedName = $gapicClient->settingsName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->getSettings($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1688,7 +1688,7 @@ public function getSettingsTest() public function getSettingsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1703,10 +1703,10 @@ public function getSettingsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->settingsName('[PROJECT]', '[LOCATION]'); + $formattedName = $gapicClient->settingsName('[PROJECT]', '[LOCATION]'); try { - $client->getSettings($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getSettings($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1723,7 +1723,7 @@ public function getSettingsExceptionTest() public function getViewTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1737,8 +1737,8 @@ public function getViewTest() $expectedResponse->setValue($value); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $client->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); - $response = $client->getView($formattedName); + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $response = $gapicClient->getView($formattedName); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1756,7 +1756,7 @@ public function getViewTest() public function getViewExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1771,10 +1771,10 @@ public function getViewExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedName = $client->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); + $formattedName = $gapicClient->viewName('[PROJECT]', '[LOCATION]', '[VIEW]'); try { - $client->getView($formattedName); - // If the $client method call did not throw, fail the test + $gapicClient->getView($formattedName); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1791,7 +1791,7 @@ public function getViewExceptionTest() public function listAnalysesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1806,8 +1806,8 @@ public function listAnalysesTest() $expectedResponse->setAnalyses($analyses); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); - $response = $client->listAnalyses($formattedParent); + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $response = $gapicClient->listAnalyses($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1828,7 +1828,7 @@ public function listAnalysesTest() public function listAnalysesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1843,10 +1843,10 @@ public function listAnalysesExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); + $formattedParent = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[CONVERSATION]'); try { - $client->listAnalyses($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listAnalyses($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1863,7 +1863,7 @@ public function listAnalysesExceptionTest() public function listConversationsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1878,8 +1878,8 @@ public function listConversationsTest() $expectedResponse->setConversations($conversations); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->listConversations($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listConversations($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -1900,7 +1900,7 @@ public function listConversationsTest() public function listConversationsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1915,10 +1915,10 @@ public function listConversationsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); try { - $client->listConversations($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listConversations($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1935,7 +1935,7 @@ public function listConversationsExceptionTest() public function listIssueModelsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1943,8 +1943,8 @@ public function listIssueModelsTest() $expectedResponse = new ListIssueModelsResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->listIssueModels($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listIssueModels($formattedParent); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -1962,7 +1962,7 @@ public function listIssueModelsTest() public function listIssueModelsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -1977,10 +1977,10 @@ public function listIssueModelsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); try { - $client->listIssueModels($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listIssueModels($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -1997,7 +1997,7 @@ public function listIssueModelsExceptionTest() public function listIssuesTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2005,8 +2005,8 @@ public function listIssuesTest() $expectedResponse = new ListIssuesResponse(); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->listIssues($formattedParent); + $formattedParent = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->listIssues($formattedParent); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2024,7 +2024,7 @@ public function listIssuesTest() public function listIssuesExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2039,10 +2039,10 @@ public function listIssuesExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $formattedParent = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); try { - $client->listIssues($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listIssues($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2059,7 +2059,7 @@ public function listIssuesExceptionTest() public function listPhraseMatchersTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2074,8 +2074,8 @@ public function listPhraseMatchersTest() $expectedResponse->setPhraseMatchers($phraseMatchers); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->listPhraseMatchers($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listPhraseMatchers($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -2096,7 +2096,7 @@ public function listPhraseMatchersTest() public function listPhraseMatchersExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2111,10 +2111,10 @@ public function listPhraseMatchersExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); try { - $client->listPhraseMatchers($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listPhraseMatchers($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2131,7 +2131,7 @@ public function listPhraseMatchersExceptionTest() public function listViewsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2146,8 +2146,8 @@ public function listViewsTest() $expectedResponse->setViews($views); $transport->addResponse($expectedResponse); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); - $response = $client->listViews($formattedParent); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $response = $gapicClient->listViews($formattedParent); $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); $resources = iterator_to_array($response->iterateAllElements()); $this->assertSame(1, count($resources)); @@ -2168,7 +2168,7 @@ public function listViewsTest() public function listViewsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2183,10 +2183,10 @@ public function listViewsExceptionTest() ], JSON_PRETTY_PRINT); $transport->addResponse(null, $status); // Mock request - $formattedParent = $client->locationName('[PROJECT]', '[LOCATION]'); + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); try { - $client->listViews($formattedParent); - // If the $client method call did not throw, fail the test + $gapicClient->listViews($formattedParent); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2209,7 +2209,7 @@ public function undeployIssueModelTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2229,8 +2229,8 @@ public function undeployIssueModelTest() $completeOperation->setResponse($anyResponse); $operationsTransport->addResponse($completeOperation); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->undeployIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->undeployIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $apiRequests = $transport->popReceivedCalls(); @@ -2273,7 +2273,7 @@ public function undeployIssueModelExceptionTest() 'credentials' => $this->createCredentials(), ]); $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, 'operationsClient' => $operationsClient, ]); @@ -2295,8 +2295,8 @@ public function undeployIssueModelExceptionTest() ], JSON_PRETTY_PRINT); $operationsTransport->addResponse(null, $status); // Mock request - $formattedName = $client->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); - $response = $client->undeployIssueModel($formattedName); + $formattedName = $gapicClient->issueModelName('[PROJECT]', '[LOCATION]', '[ISSUE_MODEL]'); + $response = $gapicClient->undeployIssueModel($formattedName); $this->assertFalse($response->isDone()); $this->assertNull($response->getResult()); $expectedOperationsRequestObject = new GetOperationRequest(); @@ -2324,7 +2324,7 @@ public function undeployIssueModelExceptionTest() public function updateConversationTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2343,7 +2343,7 @@ public function updateConversationTest() $transport->addResponse($expectedResponse); // Mock request $conversation = new Conversation(); - $response = $client->updateConversation($conversation); + $response = $gapicClient->updateConversation($conversation); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2361,7 +2361,7 @@ public function updateConversationTest() public function updateConversationExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2378,8 +2378,8 @@ public function updateConversationExceptionTest() // Mock request $conversation = new Conversation(); try { - $client->updateConversation($conversation); - // If the $client method call did not throw, fail the test + $gapicClient->updateConversation($conversation); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2396,7 +2396,7 @@ public function updateConversationExceptionTest() public function updateIssueTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2409,7 +2409,7 @@ public function updateIssueTest() $transport->addResponse($expectedResponse); // Mock request $issue = new Issue(); - $response = $client->updateIssue($issue); + $response = $gapicClient->updateIssue($issue); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2427,7 +2427,7 @@ public function updateIssueTest() public function updateIssueExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2444,8 +2444,8 @@ public function updateIssueExceptionTest() // Mock request $issue = new Issue(); try { - $client->updateIssue($issue); - // If the $client method call did not throw, fail the test + $gapicClient->updateIssue($issue); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2462,7 +2462,7 @@ public function updateIssueExceptionTest() public function updateIssueModelTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2475,7 +2475,7 @@ public function updateIssueModelTest() $transport->addResponse($expectedResponse); // Mock request $issueModel = new IssueModel(); - $response = $client->updateIssueModel($issueModel); + $response = $gapicClient->updateIssueModel($issueModel); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2493,7 +2493,7 @@ public function updateIssueModelTest() public function updateIssueModelExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2510,8 +2510,8 @@ public function updateIssueModelExceptionTest() // Mock request $issueModel = new IssueModel(); try { - $client->updateIssueModel($issueModel); - // If the $client method call did not throw, fail the test + $gapicClient->updateIssueModel($issueModel); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2528,7 +2528,7 @@ public function updateIssueModelExceptionTest() public function updatePhraseMatcherTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2549,7 +2549,7 @@ public function updatePhraseMatcherTest() $phraseMatcher = new PhraseMatcher(); $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; $phraseMatcher->setType($phraseMatcherType); - $response = $client->updatePhraseMatcher($phraseMatcher); + $response = $gapicClient->updatePhraseMatcher($phraseMatcher); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2567,7 +2567,7 @@ public function updatePhraseMatcherTest() public function updatePhraseMatcherExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2586,8 +2586,8 @@ public function updatePhraseMatcherExceptionTest() $phraseMatcherType = PhraseMatcherType::PHRASE_MATCHER_TYPE_UNSPECIFIED; $phraseMatcher->setType($phraseMatcherType); try { - $client->updatePhraseMatcher($phraseMatcher); - // If the $client method call did not throw, fail the test + $gapicClient->updatePhraseMatcher($phraseMatcher); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2604,7 +2604,7 @@ public function updatePhraseMatcherExceptionTest() public function updateSettingsTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2618,7 +2618,7 @@ public function updateSettingsTest() // Mock request $settings = new Settings(); $updateMask = new FieldMask(); - $response = $client->updateSettings($settings, $updateMask); + $response = $gapicClient->updateSettings($settings, $updateMask); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2638,7 +2638,7 @@ public function updateSettingsTest() public function updateSettingsExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2656,8 +2656,8 @@ public function updateSettingsExceptionTest() $settings = new Settings(); $updateMask = new FieldMask(); try { - $client->updateSettings($settings, $updateMask); - // If the $client method call did not throw, fail the test + $gapicClient->updateSettings($settings, $updateMask); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode()); @@ -2674,7 +2674,7 @@ public function updateSettingsExceptionTest() public function updateViewTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2689,7 +2689,7 @@ public function updateViewTest() $transport->addResponse($expectedResponse); // Mock request $view = new View(); - $response = $client->updateView($view); + $response = $gapicClient->updateView($view); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); @@ -2707,7 +2707,7 @@ public function updateViewTest() public function updateViewExceptionTest() { $transport = $this->createTransport(); - $client = $this->createClient([ + $gapicClient = $this->createClient([ 'transport' => $transport, ]); $this->assertTrue($transport->isExhausted()); @@ -2724,8 +2724,8 @@ public function updateViewExceptionTest() // Mock request $view = new View(); try { - $client->updateView($view); - // If the $client method call did not throw, fail the test + $gapicClient->updateView($view); + // If the $gapicClient method call did not throw, fail the test $this->fail('Expected an ApiException, but no exception was thrown.'); } catch (ApiException $ex) { $this->assertEquals($status->code, $ex->getCode());