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 ParallelInstruction extends \Google\Collection 21{ 22 protected $collection_key = 'outputs'; 23 protected $flattenType = FlattenInstruction::class; 24 protected $flattenDataType = ''; 25 /** 26 * @var string 27 */ 28 public $name; 29 /** 30 * @var string 31 */ 32 public $originalName; 33 protected $outputsType = InstructionOutput::class; 34 protected $outputsDataType = 'array'; 35 protected $parDoType = ParDoInstruction::class; 36 protected $parDoDataType = ''; 37 protected $partialGroupByKeyType = PartialGroupByKeyInstruction::class; 38 protected $partialGroupByKeyDataType = ''; 39 protected $readType = ReadInstruction::class; 40 protected $readDataType = ''; 41 /** 42 * @var string 43 */ 44 public $systemName; 45 protected $writeType = WriteInstruction::class; 46 protected $writeDataType = ''; 47 48 /** 49 * @param FlattenInstruction 50 */ 51 public function setFlatten(FlattenInstruction $flatten) 52 { 53 $this->flatten = $flatten; 54 } 55 /** 56 * @return FlattenInstruction 57 */ 58 public function getFlatten() 59 { 60 return $this->flatten; 61 } 62 /** 63 * @param string 64 */ 65 public function setName($name) 66 { 67 $this->name = $name; 68 } 69 /** 70 * @return string 71 */ 72 public function getName() 73 { 74 return $this->name; 75 } 76 /** 77 * @param string 78 */ 79 public function setOriginalName($originalName) 80 { 81 $this->originalName = $originalName; 82 } 83 /** 84 * @return string 85 */ 86 public function getOriginalName() 87 { 88 return $this->originalName; 89 } 90 /** 91 * @param InstructionOutput[] 92 */ 93 public function setOutputs($outputs) 94 { 95 $this->outputs = $outputs; 96 } 97 /** 98 * @return InstructionOutput[] 99 */ 100 public function getOutputs() 101 { 102 return $this->outputs; 103 } 104 /** 105 * @param ParDoInstruction 106 */ 107 public function setParDo(ParDoInstruction $parDo) 108 { 109 $this->parDo = $parDo; 110 } 111 /** 112 * @return ParDoInstruction 113 */ 114 public function getParDo() 115 { 116 return $this->parDo; 117 } 118 /** 119 * @param PartialGroupByKeyInstruction 120 */ 121 public function setPartialGroupByKey(PartialGroupByKeyInstruction $partialGroupByKey) 122 { 123 $this->partialGroupByKey = $partialGroupByKey; 124 } 125 /** 126 * @return PartialGroupByKeyInstruction 127 */ 128 public function getPartialGroupByKey() 129 { 130 return $this->partialGroupByKey; 131 } 132 /** 133 * @param ReadInstruction 134 */ 135 public function setRead(ReadInstruction $read) 136 { 137 $this->read = $read; 138 } 139 /** 140 * @return ReadInstruction 141 */ 142 public function getRead() 143 { 144 return $this->read; 145 } 146 /** 147 * @param string 148 */ 149 public function setSystemName($systemName) 150 { 151 $this->systemName = $systemName; 152 } 153 /** 154 * @return string 155 */ 156 public function getSystemName() 157 { 158 return $this->systemName; 159 } 160 /** 161 * @param WriteInstruction 162 */ 163 public function setWrite(WriteInstruction $write) 164 { 165 $this->write = $write; 166 } 167 /** 168 * @return WriteInstruction 169 */ 170 public function getWrite() 171 { 172 return $this->write; 173 } 174} 175 176// Adding a class alias for backwards compatibility with the previous class name. 177class_alias(ParallelInstruction::class, 'Google_Service_Dataflow_ParallelInstruction'); 178