GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest extends \Google\Model
  19. {
  20. protected $gcsSourceType = GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource::class;
  21. protected $gcsSourceDataType = '';
  22. protected $sheetsSourceType = GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource::class;
  23. protected $sheetsSourceDataType = '';
  24. /**
  25. * Optional. If set, upload will not happen and the labels will be validated.
  26. * If not set, then default behavior will be to upload the labels after
  27. * validation is complete.
  28. *
  29. * @var bool
  30. */
  31. public $validateOnly;
  32. /**
  33. * A cloud storage bucket source.
  34. *
  35. * @param GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource $gcsSource
  36. */
  37. public function setGcsSource(GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource $gcsSource)
  38. {
  39. $this->gcsSource = $gcsSource;
  40. }
  41. /**
  42. * @return GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource
  43. */
  44. public function getGcsSource()
  45. {
  46. return $this->gcsSource;
  47. }
  48. /**
  49. * A sheets document source.
  50. *
  51. * @param GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource $sheetsSource
  52. */
  53. public function setSheetsSource(GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource $sheetsSource)
  54. {
  55. $this->sheetsSource = $sheetsSource;
  56. }
  57. /**
  58. * @return GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource
  59. */
  60. public function getSheetsSource()
  61. {
  62. return $this->sheetsSource;
  63. }
  64. /**
  65. * Optional. If set, upload will not happen and the labels will be validated.
  66. * If not set, then default behavior will be to upload the labels after
  67. * validation is complete.
  68. *
  69. * @param bool $validateOnly
  70. */
  71. public function setValidateOnly($validateOnly)
  72. {
  73. $this->validateOnly = $validateOnly;
  74. }
  75. /**
  76. * @return bool
  77. */
  78. public function getValidateOnly()
  79. {
  80. return $this->validateOnly;
  81. }
  82. }
  83. // Adding a class alias for backwards compatibility with the previous class name.
  84. class_alias(GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest::class, 'Google_Service_Contactcenterinsights_GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest');