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/Quota.php +14 -14 1.2.2 → 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/quota.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 * Quota configuration helps to achieve fairness and budgeting in service
12 12 * usage.
13 13 * The metric based quota configuration works this way:
@@ -50,9 +50,9 @@
50 50 * value_type: INT64
51 51 *
52 52 * Generated from protobuf message <code>google.api.Quota</code>
53 53 */
54 -class Quota extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
54 +class Quota extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
55 55 {
56 56 /**
57 57 * List of QuotaLimit definitions for the service.
58 58 *
@@ -71,11 +71,11 @@
71 71 *
72 72 * @param array $data {
73 73 * Optional. Data for populating the Message object.
74 74 *
75 - * @type array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $limits
75 + * @type \Google\Api\QuotaLimit[] $limits
76 76 * List of QuotaLimit definitions for the service.
77 - * @type array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $metric_rules
77 + * @type \Google\Api\MetricRule[] $metric_rules
78 78 * List of MetricRule definitions, each one mapping a selected method to one
79 79 * or more metrics.
80 80 * }
81 81 */
@@ -80,9 +80,9 @@
80 80 * }
81 81 */
82 82 public function __construct($data = NULL)
83 83 {
84 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Quota::initOnce();
84 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Quota::initOnce();
85 85 parent::__construct($data);
86 86 }
87 87 /**
88 88 * List of QuotaLimit definitions for the service.
@@ -87,9 +87,9 @@
87 87 /**
88 88 * List of QuotaLimit definitions for the service.
89 89 *
90 90 * Generated from protobuf field <code>repeated .google.api.QuotaLimit limits = 3;</code>
91 - * @return \Google\Protobuf\Internal\RepeatedField
91 + * @return RepeatedField<\Google\Api\QuotaLimit>
92 92 */
93 93 public function getLimits()
94 94 {
95 95 return $this->limits;
@@ -97,14 +97,14 @@
97 97 /**
98 98 * List of QuotaLimit definitions for the service.
99 99 *
100 100 * Generated from protobuf field <code>repeated .google.api.QuotaLimit limits = 3;</code>
101 - * @param array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $var
101 + * @param \Google\Api\QuotaLimit[] $var
102 102 * @return $this
103 103 */
104 104 public function setLimits($var)
105 105 {
106 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\QuotaLimit::class);
106 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\QuotaLimit::class);
107 107 $this->limits = $arr;
108 108 return $this;
109 109 }
110 110 /**
@@ -111,9 +111,9 @@
111 111 * List of MetricRule definitions, each one mapping a selected method to one
112 112 * or more metrics.
113 113 *
114 114 * Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
115 - * @return \Google\Protobuf\Internal\RepeatedField
115 + * @return RepeatedField<\Google\Api\MetricRule>
116 116 */
117 117 public function getMetricRules()
118 118 {
119 119 return $this->metric_rules;
@@ -122,14 +122,14 @@
122 122 * List of MetricRule definitions, each one mapping a selected method to one
123 123 * or more metrics.
124 124 *
125 125 * Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
126 - * @param array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $var
126 + * @param \Google\Api\MetricRule[] $var
127 127 * @return $this
128 128 */
129 129 public function setMetricRules($var)
130 130 {
131 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\MetricRule::class);
131 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\MetricRule::class);
132 132 $this->metric_rules = $arr;
133 133 return $this;
134 134 }
135 135 }