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 Position extends \Google\Model 21{ 22 /** 23 * @var string 24 */ 25 public $byteOffset; 26 protected $concatPositionType = ConcatPosition::class; 27 protected $concatPositionDataType = ''; 28 /** 29 * @var bool 30 */ 31 public $end; 32 /** 33 * @var string 34 */ 35 public $key; 36 /** 37 * @var string 38 */ 39 public $recordIndex; 40 /** 41 * @var string 42 */ 43 public $shufflePosition; 44 45 /** 46 * @param string 47 */ 48 public function setByteOffset($byteOffset) 49 { 50 $this->byteOffset = $byteOffset; 51 } 52 /** 53 * @return string 54 */ 55 public function getByteOffset() 56 { 57 return $this->byteOffset; 58 } 59 /** 60 * @param ConcatPosition 61 */ 62 public function setConcatPosition(ConcatPosition $concatPosition) 63 { 64 $this->concatPosition = $concatPosition; 65 } 66 /** 67 * @return ConcatPosition 68 */ 69 public function getConcatPosition() 70 { 71 return $this->concatPosition; 72 } 73 /** 74 * @param bool 75 */ 76 public function setEnd($end) 77 { 78 $this->end = $end; 79 } 80 /** 81 * @return bool 82 */ 83 public function getEnd() 84 { 85 return $this->end; 86 } 87 /** 88 * @param string 89 */ 90 public function setKey($key) 91 { 92 $this->key = $key; 93 } 94 /** 95 * @return string 96 */ 97 public function getKey() 98 { 99 return $this->key; 100 } 101 /** 102 * @param string 103 */ 104 public function setRecordIndex($recordIndex) 105 { 106 $this->recordIndex = $recordIndex; 107 } 108 /** 109 * @return string 110 */ 111 public function getRecordIndex() 112 { 113 return $this->recordIndex; 114 } 115 /** 116 * @param string 117 */ 118 public function setShufflePosition($shufflePosition) 119 { 120 $this->shufflePosition = $shufflePosition; 121 } 122 /** 123 * @return string 124 */ 125 public function getShufflePosition() 126 { 127 return $this->shufflePosition; 128 } 129} 130 131// Adding a class alias for backwards compatibility with the previous class name. 132class_alias(Position::class, 'Google_Service_Dataflow_Position'); 133