GoogleCloudContactcenterinsightsV1IngestConversationsRequest.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. namespace Google\Service\Contactcenterinsights;
  18. class GoogleCloudContactcenterinsightsV1IngestConversationsRequest extends \Google\Model
  19. {
  20. protected $conversationConfigType = GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig::class;
  21. protected $conversationConfigDataType = '';
  22. protected $gcsSourceType = GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource::class;
  23. protected $gcsSourceDataType = '';
  24. /**
  25. * Required. The parent resource for new conversations.
  26. *
  27. * @var string
  28. */
  29. public $parent;
  30. protected $redactionConfigType = GoogleCloudContactcenterinsightsV1RedactionConfig::class;
  31. protected $redactionConfigDataType = '';
  32. /**
  33. * Optional. If set, this fields indicates the number of objects to ingest
  34. * from the Cloud Storage bucket. If empty, the entire bucket will be
  35. * ingested. Unless they are first deleted, conversations produced through
  36. * sampling won't be ingested by subsequent ingest requests.
  37. *
  38. * @var int
  39. */
  40. public $sampleSize;
  41. protected $speechConfigType = GoogleCloudContactcenterinsightsV1SpeechConfig::class;
  42. protected $speechConfigDataType = '';
  43. protected $transcriptObjectConfigType = GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig::class;
  44. protected $transcriptObjectConfigDataType = '';
  45. /**
  46. * Configuration that applies to all conversations.
  47. *
  48. * @param GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig $conversationConfig
  49. */
  50. public function setConversationConfig(GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig $conversationConfig)
  51. {
  52. $this->conversationConfig = $conversationConfig;
  53. }
  54. /**
  55. * @return GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig
  56. */
  57. public function getConversationConfig()
  58. {
  59. return $this->conversationConfig;
  60. }
  61. /**
  62. * A cloud storage bucket source. Note that any previously ingested objects
  63. * from the source will be skipped to avoid duplication.
  64. *
  65. * @param GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource $gcsSource
  66. */
  67. public function setGcsSource(GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource $gcsSource)
  68. {
  69. $this->gcsSource = $gcsSource;
  70. }
  71. /**
  72. * @return GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource
  73. */
  74. public function getGcsSource()
  75. {
  76. return $this->gcsSource;
  77. }
  78. /**
  79. * Required. The parent resource for new conversations.
  80. *
  81. * @param string $parent
  82. */
  83. public function setParent($parent)
  84. {
  85. $this->parent = $parent;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getParent()
  91. {
  92. return $this->parent;
  93. }
  94. /**
  95. * Optional. DLP settings for transcript redaction. Optional, will default to
  96. * the config specified in Settings.
  97. *
  98. * @param GoogleCloudContactcenterinsightsV1RedactionConfig $redactionConfig
  99. */
  100. public function setRedactionConfig(GoogleCloudContactcenterinsightsV1RedactionConfig $redactionConfig)
  101. {
  102. $this->redactionConfig = $redactionConfig;
  103. }
  104. /**
  105. * @return GoogleCloudContactcenterinsightsV1RedactionConfig
  106. */
  107. public function getRedactionConfig()
  108. {
  109. return $this->redactionConfig;
  110. }
  111. /**
  112. * Optional. If set, this fields indicates the number of objects to ingest
  113. * from the Cloud Storage bucket. If empty, the entire bucket will be
  114. * ingested. Unless they are first deleted, conversations produced through
  115. * sampling won't be ingested by subsequent ingest requests.
  116. *
  117. * @param int $sampleSize
  118. */
  119. public function setSampleSize($sampleSize)
  120. {
  121. $this->sampleSize = $sampleSize;
  122. }
  123. /**
  124. * @return int
  125. */
  126. public function getSampleSize()
  127. {
  128. return $this->sampleSize;
  129. }
  130. /**
  131. * Optional. Default Speech-to-Text configuration. Optional, will default to
  132. * the config specified in Settings.
  133. *
  134. * @param GoogleCloudContactcenterinsightsV1SpeechConfig $speechConfig
  135. */
  136. public function setSpeechConfig(GoogleCloudContactcenterinsightsV1SpeechConfig $speechConfig)
  137. {
  138. $this->speechConfig = $speechConfig;
  139. }
  140. /**
  141. * @return GoogleCloudContactcenterinsightsV1SpeechConfig
  142. */
  143. public function getSpeechConfig()
  144. {
  145. return $this->speechConfig;
  146. }
  147. /**
  148. * Configuration for when `source` contains conversation transcripts.
  149. *
  150. * @param GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig $transcriptObjectConfig
  151. */
  152. public function setTranscriptObjectConfig(GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig $transcriptObjectConfig)
  153. {
  154. $this->transcriptObjectConfig = $transcriptObjectConfig;
  155. }
  156. /**
  157. * @return GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig
  158. */
  159. public function getTranscriptObjectConfig()
  160. {
  161. return $this->transcriptObjectConfig;
  162. }
  163. }
  164. // Adding a class alias for backwards compatibility with the previous class name.
  165. class_alias(GoogleCloudContactcenterinsightsV1IngestConversationsRequest::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1IngestConversationsRequest');