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\Networkconnectivity; 19 20class Operation extends \Google\Collection 21{ 22 protected $collection_key = 'traceSpans'; 23 public $consumerId; 24 public $endTime; 25 public $extensions; 26 public $importance; 27 public $labels; 28 protected $logEntriesType = LogEntry::class; 29 protected $logEntriesDataType = 'array'; 30 protected $metricValueSetsType = MetricValueSet::class; 31 protected $metricValueSetsDataType = 'array'; 32 public $operationId; 33 public $operationName; 34 protected $quotaPropertiesType = QuotaProperties::class; 35 protected $quotaPropertiesDataType = ''; 36 protected $resourcesType = ResourceInfo::class; 37 protected $resourcesDataType = 'array'; 38 public $startTime; 39 protected $traceSpansType = TraceSpan::class; 40 protected $traceSpansDataType = 'array'; 41 public $userLabels; 42 43 public function setConsumerId($consumerId) 44 { 45 $this->consumerId = $consumerId; 46 } 47 public function getConsumerId() 48 { 49 return $this->consumerId; 50 } 51 public function setEndTime($endTime) 52 { 53 $this->endTime = $endTime; 54 } 55 public function getEndTime() 56 { 57 return $this->endTime; 58 } 59 public function setExtensions($extensions) 60 { 61 $this->extensions = $extensions; 62 } 63 public function getExtensions() 64 { 65 return $this->extensions; 66 } 67 public function setImportance($importance) 68 { 69 $this->importance = $importance; 70 } 71 public function getImportance() 72 { 73 return $this->importance; 74 } 75 public function setLabels($labels) 76 { 77 $this->labels = $labels; 78 } 79 public function getLabels() 80 { 81 return $this->labels; 82 } 83 /** 84 * @param LogEntry[] 85 */ 86 public function setLogEntries($logEntries) 87 { 88 $this->logEntries = $logEntries; 89 } 90 /** 91 * @return LogEntry[] 92 */ 93 public function getLogEntries() 94 { 95 return $this->logEntries; 96 } 97 /** 98 * @param MetricValueSet[] 99 */ 100 public function setMetricValueSets($metricValueSets) 101 { 102 $this->metricValueSets = $metricValueSets; 103 } 104 /** 105 * @return MetricValueSet[] 106 */ 107 public function getMetricValueSets() 108 { 109 return $this->metricValueSets; 110 } 111 public function setOperationId($operationId) 112 { 113 $this->operationId = $operationId; 114 } 115 public function getOperationId() 116 { 117 return $this->operationId; 118 } 119 public function setOperationName($operationName) 120 { 121 $this->operationName = $operationName; 122 } 123 public function getOperationName() 124 { 125 return $this->operationName; 126 } 127 /** 128 * @param QuotaProperties 129 */ 130 public function setQuotaProperties(QuotaProperties $quotaProperties) 131 { 132 $this->quotaProperties = $quotaProperties; 133 } 134 /** 135 * @return QuotaProperties 136 */ 137 public function getQuotaProperties() 138 { 139 return $this->quotaProperties; 140 } 141 /** 142 * @param ResourceInfo[] 143 */ 144 public function setResources($resources) 145 { 146 $this->resources = $resources; 147 } 148 /** 149 * @return ResourceInfo[] 150 */ 151 public function getResources() 152 { 153 return $this->resources; 154 } 155 public function setStartTime($startTime) 156 { 157 $this->startTime = $startTime; 158 } 159 public function getStartTime() 160 { 161 return $this->startTime; 162 } 163 /** 164 * @param TraceSpan[] 165 */ 166 public function setTraceSpans($traceSpans) 167 { 168 $this->traceSpans = $traceSpans; 169 } 170 /** 171 * @return TraceSpan[] 172 */ 173 public function getTraceSpans() 174 { 175 return $this->traceSpans; 176 } 177 public function setUserLabels($userLabels) 178 { 179 $this->userLabels = $userLabels; 180 } 181 public function getUserLabels() 182 { 183 return $this->userLabels; 184 } 185} 186 187// Adding a class alias for backwards compatibility with the previous class name. 188class_alias(Operation::class, 'Google_Service_Networkconnectivity_Operation'); 189