[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\MigrationCenterAPI;
|
---|
| 19 |
|
---|
| 20 | class ImportRowError extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'errors';
|
---|
| 23 | protected $archiveErrorType = ImportRowErrorArchiveErrorDetails::class;
|
---|
| 24 | protected $archiveErrorDataType = '';
|
---|
| 25 | /**
|
---|
| 26 | * @var string
|
---|
| 27 | */
|
---|
| 28 | public $assetTitle;
|
---|
| 29 | protected $csvErrorType = ImportRowErrorCsvErrorDetails::class;
|
---|
| 30 | protected $csvErrorDataType = '';
|
---|
| 31 | protected $errorsType = ImportError::class;
|
---|
| 32 | protected $errorsDataType = 'array';
|
---|
| 33 | /**
|
---|
| 34 | * @var int
|
---|
| 35 | */
|
---|
| 36 | public $rowNumber;
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $vmName;
|
---|
| 41 | /**
|
---|
| 42 | * @var string
|
---|
| 43 | */
|
---|
| 44 | public $vmUuid;
|
---|
| 45 | protected $xlsxErrorType = ImportRowErrorXlsxErrorDetails::class;
|
---|
| 46 | protected $xlsxErrorDataType = '';
|
---|
| 47 |
|
---|
| 48 | /**
|
---|
| 49 | * @param ImportRowErrorArchiveErrorDetails
|
---|
| 50 | */
|
---|
| 51 | public function setArchiveError(ImportRowErrorArchiveErrorDetails $archiveError)
|
---|
| 52 | {
|
---|
| 53 | $this->archiveError = $archiveError;
|
---|
| 54 | }
|
---|
| 55 | /**
|
---|
| 56 | * @return ImportRowErrorArchiveErrorDetails
|
---|
| 57 | */
|
---|
| 58 | public function getArchiveError()
|
---|
| 59 | {
|
---|
| 60 | return $this->archiveError;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @param string
|
---|
| 64 | */
|
---|
| 65 | public function setAssetTitle($assetTitle)
|
---|
| 66 | {
|
---|
| 67 | $this->assetTitle = $assetTitle;
|
---|
| 68 | }
|
---|
| 69 | /**
|
---|
| 70 | * @return string
|
---|
| 71 | */
|
---|
| 72 | public function getAssetTitle()
|
---|
| 73 | {
|
---|
| 74 | return $this->assetTitle;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param ImportRowErrorCsvErrorDetails
|
---|
| 78 | */
|
---|
| 79 | public function setCsvError(ImportRowErrorCsvErrorDetails $csvError)
|
---|
| 80 | {
|
---|
| 81 | $this->csvError = $csvError;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return ImportRowErrorCsvErrorDetails
|
---|
| 85 | */
|
---|
| 86 | public function getCsvError()
|
---|
| 87 | {
|
---|
| 88 | return $this->csvError;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @param ImportError[]
|
---|
| 92 | */
|
---|
| 93 | public function setErrors($errors)
|
---|
| 94 | {
|
---|
| 95 | $this->errors = $errors;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @return ImportError[]
|
---|
| 99 | */
|
---|
| 100 | public function getErrors()
|
---|
| 101 | {
|
---|
| 102 | return $this->errors;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param int
|
---|
| 106 | */
|
---|
| 107 | public function setRowNumber($rowNumber)
|
---|
| 108 | {
|
---|
| 109 | $this->rowNumber = $rowNumber;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return int
|
---|
| 113 | */
|
---|
| 114 | public function getRowNumber()
|
---|
| 115 | {
|
---|
| 116 | return $this->rowNumber;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param string
|
---|
| 120 | */
|
---|
| 121 | public function setVmName($vmName)
|
---|
| 122 | {
|
---|
| 123 | $this->vmName = $vmName;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return string
|
---|
| 127 | */
|
---|
| 128 | public function getVmName()
|
---|
| 129 | {
|
---|
| 130 | return $this->vmName;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param string
|
---|
| 134 | */
|
---|
| 135 | public function setVmUuid($vmUuid)
|
---|
| 136 | {
|
---|
| 137 | $this->vmUuid = $vmUuid;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return string
|
---|
| 141 | */
|
---|
| 142 | public function getVmUuid()
|
---|
| 143 | {
|
---|
| 144 | return $this->vmUuid;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @param ImportRowErrorXlsxErrorDetails
|
---|
| 148 | */
|
---|
| 149 | public function setXlsxError(ImportRowErrorXlsxErrorDetails $xlsxError)
|
---|
| 150 | {
|
---|
| 151 | $this->xlsxError = $xlsxError;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @return ImportRowErrorXlsxErrorDetails
|
---|
| 155 | */
|
---|
| 156 | public function getXlsxError()
|
---|
| 157 | {
|
---|
| 158 | return $this->xlsxError;
|
---|
| 159 | }
|
---|
| 160 | }
|
---|
| 161 |
|
---|
| 162 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 163 | class_alias(ImportRowError::class, 'Google_Service_MigrationCenterAPI_ImportRowError');
|
---|