← All changes
|
includes/sdk/google/google/common-protos/src/Api/Monitoring.php
+14
-14
1.2.12
→
1.4.2
View file →
| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/monitoring.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Api; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Api; | |
| 6 | 6 | |
| 7 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; | |
| 8 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; | |
| 9 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; | |
| 7 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; | |
| 8 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; | |
| 9 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; | |
| 10 | 10 | /** |
| 11 | 11 | * Monitoring configuration of the service. |
| 12 | 12 | * The example below shows how to configure monitored resources and metrics |
| 13 | 13 | * for monitoring. In the example, a monitored resource and two metrics are |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | * - library.googleapis.com/book/num_overdue |
| 61 | 61 | * |
| 62 | 62 | * Generated from protobuf message <code>google.api.Monitoring</code> |
| 63 | 63 | */ |
| 64 | -class Monitoring extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 64 | +class Monitoring extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 65 | 65 | { |
| 66 | 66 | /** |
| 67 | 67 | * Monitoring configurations for sending metrics to the producer project. |
| 68 | 68 | * There can be multiple producer destinations. A monitored resource type may |
| @@ -90,9 +90,9 @@ | ||
| 90 | 90 | * |
| 91 | 91 | * @param array $data { |
| 92 | 92 | * Optional. Data for populating the Message object. |
| 93 | 93 | * |
| 94 | - * @type array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $producer_destinations | |
| 94 | + * @type \Google\Api\Monitoring\MonitoringDestination[] $producer_destinations | |
| 95 | 95 | * Monitoring configurations for sending metrics to the producer project. |
| 96 | 96 | * There can be multiple producer destinations. A monitored resource type may |
| 97 | 97 | * appear in multiple monitoring destinations if different aggregations are |
| 98 | 98 | * needed for different sets of metrics associated with that monitored |
| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | * appear in multiple monitoring destinations if different aggregations are |
| 98 | 98 | * needed for different sets of metrics associated with that monitored |
| 99 | 99 | * resource type. A monitored resource and metric pair may only be used once |
| 100 | 100 | * in the Monitoring configuration. |
| 101 | - * @type array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $consumer_destinations | |
| 101 | + * @type \Google\Api\Monitoring\MonitoringDestination[] $consumer_destinations | |
| 102 | 102 | * Monitoring configurations for sending metrics to the consumer project. |
| 103 | 103 | * There can be multiple consumer destinations. A monitored resource type may |
| 104 | 104 | * appear in multiple monitoring destinations if different aggregations are |
| 105 | 105 | * needed for different sets of metrics associated with that monitored |
| @@ -108,9 +108,9 @@ | ||
| 108 | 108 | * } |
| 109 | 109 | */ |
| 110 | 110 | public function __construct($data = NULL) |
| 111 | 111 | { |
| 112 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Monitoring::initOnce(); | |
| 112 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Monitoring::initOnce(); | |
| 113 | 113 | parent::__construct($data); |
| 114 | 114 | } |
| 115 | 115 | /** |
| 116 | 116 | * Monitoring configurations for sending metrics to the producer project. |
| @@ -120,9 +120,9 @@ | ||
| 120 | 120 | * resource type. A monitored resource and metric pair may only be used once |
| 121 | 121 | * in the Monitoring configuration. |
| 122 | 122 | * |
| 123 | 123 | * Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;</code> |
| 124 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 124 | + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> | |
| 125 | 125 | */ |
| 126 | 126 | public function getProducerDestinations() |
| 127 | 127 | { |
| 128 | 128 | return $this->producer_destinations; |
| @@ -135,14 +135,14 @@ | ||
| 135 | 135 | * resource type. A monitored resource and metric pair may only be used once |
| 136 | 136 | * in the Monitoring configuration. |
| 137 | 137 | * |
| 138 | 138 | * Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;</code> |
| 139 | - * @param array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $var | |
| 139 | + * @param \Google\Api\Monitoring\MonitoringDestination[] $var | |
| 140 | 140 | * @return $this |
| 141 | 141 | */ |
| 142 | 142 | public function setProducerDestinations($var) |
| 143 | 143 | { |
| 144 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\Monitoring\MonitoringDestination::class); | |
| 144 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\Monitoring\MonitoringDestination::class); | |
| 145 | 145 | $this->producer_destinations = $arr; |
| 146 | 146 | return $this; |
| 147 | 147 | } |
| 148 | 148 | /** |
| @@ -153,9 +153,9 @@ | ||
| 153 | 153 | * resource type. A monitored resource and metric pair may only be used once |
| 154 | 154 | * in the Monitoring configuration. |
| 155 | 155 | * |
| 156 | 156 | * Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;</code> |
| 157 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 157 | + * @return RepeatedField<\Google\Api\Monitoring\MonitoringDestination> | |
| 158 | 158 | */ |
| 159 | 159 | public function getConsumerDestinations() |
| 160 | 160 | { |
| 161 | 161 | return $this->consumer_destinations; |
| @@ -168,14 +168,14 @@ | ||
| 168 | 168 | * resource type. A monitored resource and metric pair may only be used once |
| 169 | 169 | * in the Monitoring configuration. |
| 170 | 170 | * |
| 171 | 171 | * Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;</code> |
| 172 | - * @param array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $var | |
| 172 | + * @param \Google\Api\Monitoring\MonitoringDestination[] $var | |
| 173 | 173 | * @return $this |
| 174 | 174 | */ |
| 175 | 175 | public function setConsumerDestinations($var) |
| 176 | 176 | { |
| 177 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\Monitoring\MonitoringDestination::class); | |
| 177 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\Monitoring\MonitoringDestination::class); | |
| 178 | 178 | $this->consumer_destinations = $arr; |
| 179 | 179 | return $this; |
| 180 | 180 | } |
| 181 | 181 | } |