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