PluginProbe
Media Cloud Sync / 1.2.10
Media Cloud Sync v1.2.10
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
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / Metric.php

Metric.php in Media Cloud Sync 1.2.10, at includes/sdk/google/google/common-protos/src/Api/Metric.php

106 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 # source: google/api/metric.proto
5 namespace Dudlewebs\WPMCS\Google\Api;
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;
10 /**
11 * A specific metric, identified by specifying values for all of the
12 * labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
13 *
14 * Generated from protobuf message <code>google.api.Metric</code>
15 */
16 class Metric extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
17 {
18 /**
19 * An existing metric type, see
20 * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
21 * `custom.googleapis.com/invoice/paid/amount`.
22 *
23 * Generated from protobuf field <code>string type = 3;</code>
24 */
25 protected $type = '';
26 /**
27 * The set of label values that uniquely identify this metric. All
28 * labels listed in the `MetricDescriptor` must be assigned values.
29 *
30 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
31 */
32 private $labels;
33 /**
34 * Constructor.
35 *
36 * @param array $data {
37 * Optional. Data for populating the Message object.
38 *
39 * @type string $type
40 * An existing metric type, see
41 * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
42 * `custom.googleapis.com/invoice/paid/amount`.
43 * @type array|\Google\Protobuf\Internal\MapField $labels
44 * The set of label values that uniquely identify this metric. All
45 * labels listed in the `MetricDescriptor` must be assigned values.
46 * }
47 */
48 public function __construct($data = NULL)
49 {
50 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Metric::initOnce();
51 parent::__construct($data);
52 }
53 /**
54 * An existing metric type, see
55 * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
56 * `custom.googleapis.com/invoice/paid/amount`.
57 *
58 * Generated from protobuf field <code>string type = 3;</code>
59 * @return string
60 */
61 public function getType()
62 {
63 return $this->type;
64 }
65 /**
66 * An existing metric type, see
67 * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
68 * `custom.googleapis.com/invoice/paid/amount`.
69 *
70 * Generated from protobuf field <code>string type = 3;</code>
71 * @param string $var
72 * @return $this
73 */
74 public function setType($var)
75 {
76 GPBUtil::checkString($var, True);
77 $this->type = $var;
78 return $this;
79 }
80 /**
81 * The set of label values that uniquely identify this metric. All
82 * labels listed in the `MetricDescriptor` must be assigned values.
83 *
84 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
85 * @return \Google\Protobuf\Internal\MapField
86 */
87 public function getLabels()
88 {
89 return $this->labels;
90 }
91 /**
92 * The set of label values that uniquely identify this metric. All
93 * labels listed in the `MetricDescriptor` must be assigned values.
94 *
95 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
96 * @param array|\Google\Protobuf\Internal\MapField $var
97 * @return $this
98 */
99 public function setLabels($var)
100 {
101 $arr = GPBUtil::checkMapField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
102 $this->labels = $arr;
103 return $this;
104 }
105 }
106