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\Monitoring; 19 20class CollectdPayload extends \Google\Collection 21{ 22 protected $collection_key = 'values'; 23 /** 24 * @var string 25 */ 26 public $endTime; 27 protected $metadataType = TypedValue::class; 28 protected $metadataDataType = 'map'; 29 /** 30 * @var string 31 */ 32 public $plugin; 33 /** 34 * @var string 35 */ 36 public $pluginInstance; 37 /** 38 * @var string 39 */ 40 public $startTime; 41 /** 42 * @var string 43 */ 44 public $type; 45 /** 46 * @var string 47 */ 48 public $typeInstance; 49 protected $valuesType = CollectdValue::class; 50 protected $valuesDataType = 'array'; 51 52 /** 53 * @param string 54 */ 55 public function setEndTime($endTime) 56 { 57 $this->endTime = $endTime; 58 } 59 /** 60 * @return string 61 */ 62 public function getEndTime() 63 { 64 return $this->endTime; 65 } 66 /** 67 * @param TypedValue[] 68 */ 69 public function setMetadata($metadata) 70 { 71 $this->metadata = $metadata; 72 } 73 /** 74 * @return TypedValue[] 75 */ 76 public function getMetadata() 77 { 78 return $this->metadata; 79 } 80 /** 81 * @param string 82 */ 83 public function setPlugin($plugin) 84 { 85 $this->plugin = $plugin; 86 } 87 /** 88 * @return string 89 */ 90 public function getPlugin() 91 { 92 return $this->plugin; 93 } 94 /** 95 * @param string 96 */ 97 public function setPluginInstance($pluginInstance) 98 { 99 $this->pluginInstance = $pluginInstance; 100 } 101 /** 102 * @return string 103 */ 104 public function getPluginInstance() 105 { 106 return $this->pluginInstance; 107 } 108 /** 109 * @param string 110 */ 111 public function setStartTime($startTime) 112 { 113 $this->startTime = $startTime; 114 } 115 /** 116 * @return string 117 */ 118 public function getStartTime() 119 { 120 return $this->startTime; 121 } 122 /** 123 * @param string 124 */ 125 public function setType($type) 126 { 127 $this->type = $type; 128 } 129 /** 130 * @return string 131 */ 132 public function getType() 133 { 134 return $this->type; 135 } 136 /** 137 * @param string 138 */ 139 public function setTypeInstance($typeInstance) 140 { 141 $this->typeInstance = $typeInstance; 142 } 143 /** 144 * @return string 145 */ 146 public function getTypeInstance() 147 { 148 return $this->typeInstance; 149 } 150 /** 151 * @param CollectdValue[] 152 */ 153 public function setValues($values) 154 { 155 $this->values = $values; 156 } 157 /** 158 * @return CollectdValue[] 159 */ 160 public function getValues() 161 { 162 return $this->values; 163 } 164} 165 166// Adding a class alias for backwards compatibility with the previous class name. 167class_alias(CollectdPayload::class, 'Google_Service_Monitoring_CollectdPayload'); 168