PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/google/google/common-protos/src/Api/MetricDescriptor.php +18 -18 1.2.3 → 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/metric.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 * Defines a metric type and its schema. Once a metric descriptor is created,
12 12 * deleting or altering it stops data collection and makes the metric type's
13 13 * existing data unusable.
@@ -13,9 +13,9 @@
13 13 * existing data unusable.
14 14 *
15 15 * Generated from protobuf message <code>google.api.MetricDescriptor</code>
16 16 */
17 -class MetricDescriptor extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
17 +class MetricDescriptor extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
18 18 {
19 19 /**
20 20 * The resource name of the metric descriptor.
21 21 *
@@ -200,9 +200,9 @@
200 200 * use a natural hierarchical grouping. For example:
201 201 * "custom.googleapis.com/invoice/paid/amount"
202 202 * "external.googleapis.com/prometheus/up"
203 203 * "appengine.googleapis.com/http/server/response_latencies"
204 - * @type array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $labels
204 + * @type \Google\Api\LabelDescriptor[] $labels
205 205 * The set of labels that can be used to describe a specific
206 206 * instance of this metric type. For example, the
207 207 * `appengine.googleapis.com/http/server/response_latencies` metric
208 208 * type has a label for the HTTP response code, `response_code`, so
@@ -308,9 +308,9 @@
308 308 * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata
309 309 * Optional. Metadata which can be used to guide usage of the metric.
310 310 * @type int $launch_stage
311 311 * Optional. The launch stage of the metric definition.
312 - * @type array<string>|\Google\Protobuf\Internal\RepeatedField $monitored_resource_types
312 + * @type string[] $monitored_resource_types
313 313 * Read-only. If present, then a [time
314 314 * series][google.monitoring.v3.TimeSeries], which is identified partially by
315 315 * a metric type and a
316 316 * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
@@ -319,9 +319,9 @@
319 319 * }
320 320 */
321 321 public function __construct($data = NULL)
322 322 {
323 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Metric::initOnce();
323 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Metric::initOnce();
324 324 parent::__construct($data);
325 325 }
326 326 /**
327 327 * The resource name of the metric descriptor.
@@ -389,9 +389,9 @@
389 389 * you can look at latencies for successful responses or just
390 390 * for responses that failed.
391 391 *
392 392 * Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
393 - * @return \Google\Protobuf\Internal\RepeatedField
393 + * @return RepeatedField<\Google\Api\LabelDescriptor>
394 394 */
395 395 public function getLabels()
396 396 {
397 397 return $this->labels;
@@ -404,14 +404,14 @@
404 404 * you can look at latencies for successful responses or just
405 405 * for responses that failed.
406 406 *
407 407 * Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
408 - * @param array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $var
408 + * @param \Google\Api\LabelDescriptor[] $var
409 409 * @return $this
410 410 */
411 411 public function setLabels($var)
412 412 {
413 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\LabelDescriptor::class);
413 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\LabelDescriptor::class);
414 414 $this->labels = $arr;
415 415 return $this;
416 416 }
417 417 /**
@@ -434,9 +434,9 @@
434 434 * @return $this
435 435 */
436 436 public function setMetricKind($var)
437 437 {
438 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\MetricDescriptor\MetricKind::class);
438 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\MetricDescriptor\MetricKind::class);
439 439 $this->metric_kind = $var;
440 440 return $this;
441 441 }
442 442 /**
@@ -459,9 +459,9 @@
459 459 * @return $this
460 460 */
461 461 public function setValueType($var)
462 462 {
463 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\MetricDescriptor\ValueType::class);
463 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\MetricDescriptor\ValueType::class);
464 464 $this->value_type = $var;
465 465 return $this;
466 466 }
467 467 /**
@@ -729,9 +729,9 @@
729 729 * @return $this
730 730 */
731 731 public function setMetadata($var)
732 732 {
733 - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Api\MetricDescriptor\MetricDescriptorMetadata::class);
733 + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\MetricDescriptor\MetricDescriptorMetadata::class);
734 734 $this->metadata = $var;
735 735 return $this;
736 736 }
737 737 /**
@@ -752,9 +752,9 @@
752 752 * @return $this
753 753 */
754 754 public function setLaunchStage($var)
755 755 {
756 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\LaunchStage::class);
756 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\LaunchStage::class);
757 757 $this->launch_stage = $var;
758 758 return $this;
759 759 }
760 760 /**
@@ -765,9 +765,9 @@
765 765 * is associated with this metric type can only be associated with one of the
766 766 * monitored resource types listed here.
767 767 *
768 768 * Generated from protobuf field <code>repeated string monitored_resource_types = 13;</code>
769 - * @return \Google\Protobuf\Internal\RepeatedField
769 + * @return RepeatedField<string>
770 770 */
771 771 public function getMonitoredResourceTypes()
772 772 {
773 773 return $this->monitored_resource_types;
@@ -780,14 +780,14 @@
780 780 * is associated with this metric type can only be associated with one of the
781 781 * monitored resource types listed here.
782 782 *
783 783 * Generated from protobuf field <code>repeated string monitored_resource_types = 13;</code>
784 - * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
784 + * @param string[] $var
785 785 * @return $this
786 786 */
787 787 public function setMonitoredResourceTypes($var)
788 788 {
789 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
789 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING);
790 790 $this->monitored_resource_types = $arr;
791 791 return $this;
792 792 }
793 793 }