Source.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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\Dataflow;
  18. class Source extends \Google\Collection
  19. {
  20. protected $collection_key = 'baseSpecs';
  21. /**
  22. * @var array[]
  23. */
  24. public $baseSpecs;
  25. /**
  26. * @var array[]
  27. */
  28. public $codec;
  29. /**
  30. * @var bool
  31. */
  32. public $doesNotNeedSplitting;
  33. protected $metadataType = SourceMetadata::class;
  34. protected $metadataDataType = '';
  35. /**
  36. * @var array[]
  37. */
  38. public $spec;
  39. /**
  40. * @param array[]
  41. */
  42. public function setBaseSpecs($baseSpecs)
  43. {
  44. $this->baseSpecs = $baseSpecs;
  45. }
  46. /**
  47. * @return array[]
  48. */
  49. public function getBaseSpecs()
  50. {
  51. return $this->baseSpecs;
  52. }
  53. /**
  54. * @param array[]
  55. */
  56. public function setCodec($codec)
  57. {
  58. $this->codec = $codec;
  59. }
  60. /**
  61. * @return array[]
  62. */
  63. public function getCodec()
  64. {
  65. return $this->codec;
  66. }
  67. /**
  68. * @param bool
  69. */
  70. public function setDoesNotNeedSplitting($doesNotNeedSplitting)
  71. {
  72. $this->doesNotNeedSplitting = $doesNotNeedSplitting;
  73. }
  74. /**
  75. * @return bool
  76. */
  77. public function getDoesNotNeedSplitting()
  78. {
  79. return $this->doesNotNeedSplitting;
  80. }
  81. /**
  82. * @param SourceMetadata
  83. */
  84. public function setMetadata(SourceMetadata $metadata)
  85. {
  86. $this->metadata = $metadata;
  87. }
  88. /**
  89. * @return SourceMetadata
  90. */
  91. public function getMetadata()
  92. {
  93. return $this->metadata;
  94. }
  95. /**
  96. * @param array[]
  97. */
  98. public function setSpec($spec)
  99. {
  100. $this->spec = $spec;
  101. }
  102. /**
  103. * @return array[]
  104. */
  105. public function getSpec()
  106. {
  107. return $this->spec;
  108. }
  109. }
  110. // Adding a class alias for backwards compatibility with the previous class name.
  111. class_alias(Source::class, 'Google_Service_Dataflow_Source');