| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\Contactcenterinsights;
- class GoogleCloudContactcenterinsightsV1Conversation extends \Google\Collection
- {
- /**
- * Default value for unspecified.
- */
- public const MEDIUM_MEDIUM_UNSPECIFIED = 'MEDIUM_UNSPECIFIED';
- /**
- * The format for conversations that took place over the phone.
- */
- public const MEDIUM_PHONE_CALL = 'PHONE_CALL';
- /**
- * The format for conversations that took place over chat.
- */
- public const MEDIUM_CHAT = 'CHAT';
- protected $collection_key = 'runtimeAnnotations';
- /**
- * An opaque, user-specified string representing the human agent who handled
- * the conversation.
- *
- * @var string
- */
- public $agentId;
- protected $callMetadataType = GoogleCloudContactcenterinsightsV1ConversationCallMetadata::class;
- protected $callMetadataDataType = '';
- protected $correlationInfoType = GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo::class;
- protected $correlationInfoDataType = '';
- /**
- * Output only. The time at which the conversation was created.
- *
- * @var string
- */
- public $createTime;
- protected $dataSourceType = GoogleCloudContactcenterinsightsV1ConversationDataSource::class;
- protected $dataSourceDataType = '';
- protected $dialogflowIntentsType = GoogleCloudContactcenterinsightsV1DialogflowIntent::class;
- protected $dialogflowIntentsDataType = 'map';
- /**
- * Output only. The duration of the conversation.
- *
- * @var string
- */
- public $duration;
- /**
- * The time at which this conversation should expire. After this time, the
- * conversation data and any associated analyses will be deleted.
- *
- * @var string
- */
- public $expireTime;
- /**
- * A map for the user to specify any custom fields. A maximum of 100 labels
- * per conversation is allowed, with a maximum of 256 characters per entry.
- *
- * @var string[]
- */
- public $labels;
- /**
- * A user-specified language code for the conversation.
- *
- * @var string
- */
- public $languageCode;
- protected $latestAnalysisType = GoogleCloudContactcenterinsightsV1Analysis::class;
- protected $latestAnalysisDataType = '';
- protected $latestSummaryType = GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData::class;
- protected $latestSummaryDataType = '';
- /**
- * Immutable. The conversation medium.
- *
- * @var string
- */
- public $medium;
- /**
- * Input only. JSON metadata encoded as a string. This field is primarily used
- * by Insights integrations with various telephony systems and must be in one
- * of Insight's supported formats.
- *
- * @var string
- */
- public $metadataJson;
- /**
- * Immutable. The resource name of the conversation. Format:
- * projects/{project}/locations/{location}/conversations/{conversation}
- *
- * @var string
- */
- public $name;
- /**
- * Obfuscated user ID which the customer sent to us.
- *
- * @var string
- */
- public $obfuscatedUserId;
- protected $qualityMetadataType = GoogleCloudContactcenterinsightsV1ConversationQualityMetadata::class;
- protected $qualityMetadataDataType = '';
- protected $runtimeAnnotationsType = GoogleCloudContactcenterinsightsV1RuntimeAnnotation::class;
- protected $runtimeAnnotationsDataType = 'array';
- /**
- * The time at which the conversation started.
- *
- * @var string
- */
- public $startTime;
- protected $transcriptType = GoogleCloudContactcenterinsightsV1ConversationTranscript::class;
- protected $transcriptDataType = '';
- /**
- * Input only. The TTL for this resource. If specified, then this TTL will be
- * used to calculate the expire time.
- *
- * @var string
- */
- public $ttl;
- /**
- * Output only. The number of turns in the conversation.
- *
- * @var int
- */
- public $turnCount;
- /**
- * Output only. The most recent time at which the conversation was updated.
- *
- * @var string
- */
- public $updateTime;
- /**
- * An opaque, user-specified string representing the human agent who handled
- * the conversation.
- *
- * @param string $agentId
- */
- public function setAgentId($agentId)
- {
- $this->agentId = $agentId;
- }
- /**
- * @return string
- */
- public function getAgentId()
- {
- return $this->agentId;
- }
- /**
- * Call-specific metadata.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationCallMetadata $callMetadata
- */
- public function setCallMetadata(GoogleCloudContactcenterinsightsV1ConversationCallMetadata $callMetadata)
- {
- $this->callMetadata = $callMetadata;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationCallMetadata
- */
- public function getCallMetadata()
- {
- return $this->callMetadata;
- }
- /**
- * Output only. Info for correlating across conversations.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo $correlationInfo
- */
- public function setCorrelationInfo(GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo $correlationInfo)
- {
- $this->correlationInfo = $correlationInfo;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationCorrelationInfo
- */
- public function getCorrelationInfo()
- {
- return $this->correlationInfo;
- }
- /**
- * Output only. The time at which the conversation was created.
- *
- * @param string $createTime
- */
- public function setCreateTime($createTime)
- {
- $this->createTime = $createTime;
- }
- /**
- * @return string
- */
- public function getCreateTime()
- {
- return $this->createTime;
- }
- /**
- * The source of the audio and transcription for the conversation.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationDataSource $dataSource
- */
- public function setDataSource(GoogleCloudContactcenterinsightsV1ConversationDataSource $dataSource)
- {
- $this->dataSource = $dataSource;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationDataSource
- */
- public function getDataSource()
- {
- return $this->dataSource;
- }
- /**
- * Output only. All the matched Dialogflow intents in the call. The key
- * corresponds to a Dialogflow intent, format:
- * projects/{project}/agent/{agent}/intents/{intent}
- *
- * @param GoogleCloudContactcenterinsightsV1DialogflowIntent[] $dialogflowIntents
- */
- public function setDialogflowIntents($dialogflowIntents)
- {
- $this->dialogflowIntents = $dialogflowIntents;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1DialogflowIntent[]
- */
- public function getDialogflowIntents()
- {
- return $this->dialogflowIntents;
- }
- /**
- * Output only. The duration of the conversation.
- *
- * @param string $duration
- */
- public function setDuration($duration)
- {
- $this->duration = $duration;
- }
- /**
- * @return string
- */
- public function getDuration()
- {
- return $this->duration;
- }
- /**
- * The time at which this conversation should expire. After this time, the
- * conversation data and any associated analyses will be deleted.
- *
- * @param string $expireTime
- */
- public function setExpireTime($expireTime)
- {
- $this->expireTime = $expireTime;
- }
- /**
- * @return string
- */
- public function getExpireTime()
- {
- return $this->expireTime;
- }
- /**
- * A map for the user to specify any custom fields. A maximum of 100 labels
- * per conversation is allowed, with a maximum of 256 characters per entry.
- *
- * @param string[] $labels
- */
- public function setLabels($labels)
- {
- $this->labels = $labels;
- }
- /**
- * @return string[]
- */
- public function getLabels()
- {
- return $this->labels;
- }
- /**
- * A user-specified language code for the conversation.
- *
- * @param string $languageCode
- */
- public function setLanguageCode($languageCode)
- {
- $this->languageCode = $languageCode;
- }
- /**
- * @return string
- */
- public function getLanguageCode()
- {
- return $this->languageCode;
- }
- /**
- * Output only. The conversation's latest analysis, if one exists.
- *
- * @param GoogleCloudContactcenterinsightsV1Analysis $latestAnalysis
- */
- public function setLatestAnalysis(GoogleCloudContactcenterinsightsV1Analysis $latestAnalysis)
- {
- $this->latestAnalysis = $latestAnalysis;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1Analysis
- */
- public function getLatestAnalysis()
- {
- return $this->latestAnalysis;
- }
- /**
- * Output only. Latest summary of the conversation.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData $latestSummary
- */
- public function setLatestSummary(GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData $latestSummary)
- {
- $this->latestSummary = $latestSummary;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData
- */
- public function getLatestSummary()
- {
- return $this->latestSummary;
- }
- /**
- * Immutable. The conversation medium.
- *
- * Accepted values: MEDIUM_UNSPECIFIED, PHONE_CALL, CHAT
- *
- * @param self::MEDIUM_* $medium
- */
- public function setMedium($medium)
- {
- $this->medium = $medium;
- }
- /**
- * @return self::MEDIUM_*
- */
- public function getMedium()
- {
- return $this->medium;
- }
- /**
- * Input only. JSON metadata encoded as a string. This field is primarily used
- * by Insights integrations with various telephony systems and must be in one
- * of Insight's supported formats.
- *
- * @param string $metadataJson
- */
- public function setMetadataJson($metadataJson)
- {
- $this->metadataJson = $metadataJson;
- }
- /**
- * @return string
- */
- public function getMetadataJson()
- {
- return $this->metadataJson;
- }
- /**
- * Immutable. The resource name of the conversation. Format:
- * projects/{project}/locations/{location}/conversations/{conversation}
- *
- * @param string $name
- */
- public function setName($name)
- {
- $this->name = $name;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Obfuscated user ID which the customer sent to us.
- *
- * @param string $obfuscatedUserId
- */
- public function setObfuscatedUserId($obfuscatedUserId)
- {
- $this->obfuscatedUserId = $obfuscatedUserId;
- }
- /**
- * @return string
- */
- public function getObfuscatedUserId()
- {
- return $this->obfuscatedUserId;
- }
- /**
- * Conversation metadata related to quality management.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationQualityMetadata $qualityMetadata
- */
- public function setQualityMetadata(GoogleCloudContactcenterinsightsV1ConversationQualityMetadata $qualityMetadata)
- {
- $this->qualityMetadata = $qualityMetadata;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationQualityMetadata
- */
- public function getQualityMetadata()
- {
- return $this->qualityMetadata;
- }
- /**
- * Output only. The annotations that were generated during the customer and
- * agent interaction.
- *
- * @param GoogleCloudContactcenterinsightsV1RuntimeAnnotation[] $runtimeAnnotations
- */
- public function setRuntimeAnnotations($runtimeAnnotations)
- {
- $this->runtimeAnnotations = $runtimeAnnotations;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1RuntimeAnnotation[]
- */
- public function getRuntimeAnnotations()
- {
- return $this->runtimeAnnotations;
- }
- /**
- * The time at which the conversation started.
- *
- * @param string $startTime
- */
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- /**
- * @return string
- */
- public function getStartTime()
- {
- return $this->startTime;
- }
- /**
- * Output only. The conversation transcript.
- *
- * @param GoogleCloudContactcenterinsightsV1ConversationTranscript $transcript
- */
- public function setTranscript(GoogleCloudContactcenterinsightsV1ConversationTranscript $transcript)
- {
- $this->transcript = $transcript;
- }
- /**
- * @return GoogleCloudContactcenterinsightsV1ConversationTranscript
- */
- public function getTranscript()
- {
- return $this->transcript;
- }
- /**
- * Input only. The TTL for this resource. If specified, then this TTL will be
- * used to calculate the expire time.
- *
- * @param string $ttl
- */
- public function setTtl($ttl)
- {
- $this->ttl = $ttl;
- }
- /**
- * @return string
- */
- public function getTtl()
- {
- return $this->ttl;
- }
- /**
- * Output only. The number of turns in the conversation.
- *
- * @param int $turnCount
- */
- public function setTurnCount($turnCount)
- {
- $this->turnCount = $turnCount;
- }
- /**
- * @return int
- */
- public function getTurnCount()
- {
- return $this->turnCount;
- }
- /**
- * Output only. The most recent time at which the conversation was updated.
- *
- * @param string $updateTime
- */
- public function setUpdateTime($updateTime)
- {
- $this->updateTime = $updateTime;
- }
- /**
- * @return string
- */
- public function getUpdateTime()
- {
- return $this->updateTime;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(GoogleCloudContactcenterinsightsV1Conversation::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1Conversation');
|