1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Contactcenterinsights;
19
20class GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment extends \Google\Collection
21{
22  protected $collection_key = 'words';
23  /**
24   * @var int
25   */
26  public $channelTag;
27  /**
28   * @var float
29   */
30  public $confidence;
31  protected $dialogflowSegmentMetadataType = GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata::class;
32  protected $dialogflowSegmentMetadataDataType = '';
33  /**
34   * @var string
35   */
36  public $languageCode;
37  /**
38   * @var string
39   */
40  public $messageTime;
41  protected $segmentParticipantType = GoogleCloudContactcenterinsightsV1ConversationParticipant::class;
42  protected $segmentParticipantDataType = '';
43  protected $sentimentType = GoogleCloudContactcenterinsightsV1SentimentData::class;
44  protected $sentimentDataType = '';
45  /**
46   * @var string
47   */
48  public $text;
49  protected $wordsType = GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo::class;
50  protected $wordsDataType = 'array';
51
52  /**
53   * @param int
54   */
55  public function setChannelTag($channelTag)
56  {
57    $this->channelTag = $channelTag;
58  }
59  /**
60   * @return int
61   */
62  public function getChannelTag()
63  {
64    return $this->channelTag;
65  }
66  /**
67   * @param float
68   */
69  public function setConfidence($confidence)
70  {
71    $this->confidence = $confidence;
72  }
73  /**
74   * @return float
75   */
76  public function getConfidence()
77  {
78    return $this->confidence;
79  }
80  /**
81   * @param GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
82   */
83  public function setDialogflowSegmentMetadata(GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata $dialogflowSegmentMetadata)
84  {
85    $this->dialogflowSegmentMetadata = $dialogflowSegmentMetadata;
86  }
87  /**
88   * @return GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
89   */
90  public function getDialogflowSegmentMetadata()
91  {
92    return $this->dialogflowSegmentMetadata;
93  }
94  /**
95   * @param string
96   */
97  public function setLanguageCode($languageCode)
98  {
99    $this->languageCode = $languageCode;
100  }
101  /**
102   * @return string
103   */
104  public function getLanguageCode()
105  {
106    return $this->languageCode;
107  }
108  /**
109   * @param string
110   */
111  public function setMessageTime($messageTime)
112  {
113    $this->messageTime = $messageTime;
114  }
115  /**
116   * @return string
117   */
118  public function getMessageTime()
119  {
120    return $this->messageTime;
121  }
122  /**
123   * @param GoogleCloudContactcenterinsightsV1ConversationParticipant
124   */
125  public function setSegmentParticipant(GoogleCloudContactcenterinsightsV1ConversationParticipant $segmentParticipant)
126  {
127    $this->segmentParticipant = $segmentParticipant;
128  }
129  /**
130   * @return GoogleCloudContactcenterinsightsV1ConversationParticipant
131   */
132  public function getSegmentParticipant()
133  {
134    return $this->segmentParticipant;
135  }
136  /**
137   * @param GoogleCloudContactcenterinsightsV1SentimentData
138   */
139  public function setSentiment(GoogleCloudContactcenterinsightsV1SentimentData $sentiment)
140  {
141    $this->sentiment = $sentiment;
142  }
143  /**
144   * @return GoogleCloudContactcenterinsightsV1SentimentData
145   */
146  public function getSentiment()
147  {
148    return $this->sentiment;
149  }
150  /**
151   * @param string
152   */
153  public function setText($text)
154  {
155    $this->text = $text;
156  }
157  /**
158   * @return string
159   */
160  public function getText()
161  {
162    return $this->text;
163  }
164  /**
165   * @param GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo[]
166   */
167  public function setWords($words)
168  {
169    $this->words = $words;
170  }
171  /**
172   * @return GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo[]
173   */
174  public function getWords()
175  {
176    return $this->words;
177  }
178}
179
180// Adding a class alias for backwards compatibility with the previous class name.
181class_alias(GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment');
182