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/RoutingRule.php +28 -28 1.2.6 → 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/routing.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 * Specifies the routing information that should be sent along with the request
12 12 * in the form of routing header.
13 13 * **NOTE:** All service configuration rules follow the "last one wins" order.
@@ -33,9 +33,9 @@
33 33 * }
34 34 * The routing header consists of one or multiple key-value pairs. Every key
35 35 * and value must be percent-encoded, and joined together in the format of
36 36 * `key1=value1&key2=value2`.
37 - * In the examples below I am skipping the percent-encoding for readablity.
37 + * The examples below skip the percent-encoding for readability.
38 38 * Example 1
39 39 * Extracting a field from the request to put into the routing header
40 40 * unchanged, with the key equal to the field name.
41 41 * annotation:
@@ -72,9 +72,9 @@
72 72 * // Take the `table_name`, if it's well-formed (with project-based
73 73 * // syntax).
74 74 * routing_parameters {
75 75 * field: "table_name"
76 - * path_template: "{table_name=projects/&#42;&#47;instances/&#42;&#47;&#42;*}"
76 + * path_template: "{table_name=projects/{@*}instances/{@*}**}"
77 77 * }
78 78 * };
79 79 * result:
80 80 * x-goog-request-params:
@@ -86,9 +86,9 @@
86 86 * // Take the `table_name`, if it's well-formed (with region-based
87 87 * // syntax).
88 88 * routing_parameters {
89 89 * field: "table_name"
90 - * path_template: "{table_name=regions/&#42;&#47;zones/&#42;&#47;&#42;*}"
90 + * path_template: "{table_name=regions/{@*}zones/{@*}**}"
91 91 * }
92 92 * };
93 93 * result:
94 94 * <no routing header will be sent>
@@ -100,13 +100,13 @@
100 100 * // Take the `table_name`, if it's well-formed, whether
101 101 * // using the region- or projects-based syntax.
102 102 * routing_parameters {
103 103 * field: "table_name"
104 - * path_template: "{table_name=regions/&#42;&#47;zones/&#42;&#47;&#42;*}"
104 + * path_template: "{table_name=regions/{@*}zones/{@*}**}"
105 105 * }
106 106 * routing_parameters {
107 107 * field: "table_name"
108 - * path_template: "{table_name=projects/&#42;&#47;instances/&#42;&#47;&#42;*}"
108 + * path_template: "{table_name=projects/{@*}instances/{@*}**}"
109 109 * }
110 110 * };
111 111 * result:
112 112 * x-goog-request-params:
@@ -118,9 +118,9 @@
118 118 * option (google.api.routing) = {
119 119 * // Take just the project id from the `table_name` field.
120 120 * routing_parameters {
121 121 * field: "table_name"
122 - * path_template: "{routing_id=projects/&#42;}/&#42;*"
122 + * path_template: "{routing_id=projects/*}/**"
123 123 * }
124 124 * };
125 125 * result:
126 126 * x-goog-request-params: routing_id=projects/proj_foo
@@ -134,13 +134,13 @@
134 134 * // take just the project id for routing.
135 135 * // Otherwise take project + instance.
136 136 * routing_parameters {
137 137 * field: "table_name"
138 - * path_template: "{routing_id=projects/&#42;}/&#42;*"
138 + * path_template: "{routing_id=projects/*}/**"
139 139 * }
140 140 * routing_parameters {
141 141 * field: "table_name"
142 - * path_template: "{routing_id=projects/&#42;&#47;instances/&#42;}/&#42;*"
142 + * path_template: "{routing_id=projects/{@*}instances/*}/**"
143 143 * }
144 144 * };
145 145 * result:
146 146 * x-goog-request-params:
@@ -157,13 +157,13 @@
157 157 * // but works only for the tables with the "project-instance" name
158 158 * // syntax.
159 159 * routing_parameters {
160 160 * field: "table_name"
161 - * path_template: "{project_id=projects/&#42;}/instances/&#42;&#47;&#42;*"
161 + * path_template: "{project_id=projects/*}/instances/{@*}**"
162 162 * }
163 163 * routing_parameters {
164 164 * field: "table_name"
165 - * path_template: "projects/&#42;&#47;{instance_id=instances/&#42;}/&#42;*"
165 + * path_template: "projects/{@*}{instance_id=instances/*}/**"
166 166 * }
167 167 * };
168 168 * result:
169 169 * x-goog-request-params:
@@ -177,13 +177,13 @@
177 177 * // but will work with just the `project_id` for tables without
178 178 * // an instance in the `table_name`.
179 179 * routing_parameters {
180 180 * field: "table_name"
181 - * path_template: "{project_id=projects/&#42;}/&#42;*"
181 + * path_template: "{project_id=projects/*}/**"
182 182 * }
183 183 * routing_parameters {
184 184 * field: "table_name"
185 - * path_template: "projects/&#42;&#47;{instance_id=instances/&#42;}/&#42;*"
185 + * path_template: "projects/{@*}{instance_id=instances/*}/**"
186 186 * }
187 187 * };
188 188 * result (is the same as 6a for our example message because it has the instance
189 189 * information):
@@ -202,9 +202,9 @@
202 202 * // The routing needs both `project_id` and `routing_id`
203 203 * // (from the `app_profile_id` field) for routing.
204 204 * routing_parameters {
205 205 * field: "table_name"
206 - * path_template: "{project_id=projects/&#42;}/&#42;*"
206 + * path_template: "{project_id=projects/*}/**"
207 207 * }
208 208 * routing_parameters {
209 209 * field: "app_profile_id"
210 210 * path_template: "{routing_id=**}"
@@ -223,13 +223,13 @@
223 223 * // the table name format, but only if the `app_profile_id` is not set.
224 224 * // If `app_profile_id` is set it should be used instead.
225 225 * routing_parameters {
226 226 * field: "table_name"
227 - * path_template: "{routing_id=projects/&#42;}/&#42;*"
227 + * path_template: "{routing_id=projects/*}/**"
228 228 * }
229 229 * routing_parameters {
230 230 * field: "table_name"
231 - * path_template: "{routing_id=regions/&#42;}/&#42;*"
231 + * path_template: "{routing_id=regions/*}/**"
232 232 * }
233 233 * routing_parameters {
234 234 * field: "app_profile_id"
235 235 * path_template: "{routing_id=**}"
@@ -252,17 +252,17 @@
252 252 * // If the `app_profile_id` is empty, and the `table_name` starts with
253 253 * // the project_id, send that instead.
254 254 * routing_parameters {
255 255 * field: "table_name"
256 - * path_template: "projects/&#42;&#47;{table_location=instances/&#42;}/tables/&#42;"
256 + * path_template: "projects/{@*}{table_location=instances/*}/tables/*"
257 257 * }
258 258 * routing_parameters {
259 259 * field: "table_name"
260 - * path_template: "{table_location=regions/&#42;&#47;zones/&#42;}/tables/&#42;"
260 + * path_template: "{table_location=regions/{@*}zones/*}/tables/*"
261 261 * }
262 262 * routing_parameters {
263 263 * field: "table_name"
264 - * path_template: "{routing_id=projects/&#42;}/&#42;*"
264 + * path_template: "{routing_id=projects/*}/**"
265 265 * }
266 266 * routing_parameters {
267 267 * field: "app_profile_id"
268 268 * path_template: "{routing_id=**}"
@@ -277,9 +277,9 @@
277 277 * table_location=instances/instance_bar&routing_id=prof_qux
278 278 *
279 279 * Generated from protobuf message <code>google.api.RoutingRule</code>
280 280 */
281 -class RoutingRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
281 +class RoutingRule extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
282 282 {
283 283 /**
284 284 * A collection of Routing Parameter specifications.
285 285 * **NOTE:** If multiple Routing Parameters describe the same key
@@ -296,9 +296,9 @@
296 296 *
297 297 * @param array $data {
298 298 * Optional. Data for populating the Message object.
299 299 *
300 - * @type array<\Google\Api\RoutingParameter>|\Google\Protobuf\Internal\RepeatedField $routing_parameters
300 + * @type \Google\Api\RoutingParameter[] $routing_parameters
301 301 * A collection of Routing Parameter specifications.
302 302 * **NOTE:** If multiple Routing Parameters describe the same key
303 303 * (via the `path_template` field or via the `field` field when
304 304 * `path_template` is not provided), "last one wins" rule
@@ -307,9 +307,9 @@
307 307 * }
308 308 */
309 309 public function __construct($data = NULL)
310 310 {
311 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Routing::initOnce();
311 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Routing::initOnce();
312 312 parent::__construct($data);
313 313 }
314 314 /**
315 315 * A collection of Routing Parameter specifications.
@@ -319,9 +319,9 @@
319 319 * determines which Parameter gets used.
320 320 * See the examples for more details.
321 321 *
322 322 * Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code>
323 - * @return \Google\Protobuf\Internal\RepeatedField
323 + * @return RepeatedField<\Google\Api\RoutingParameter>
324 324 */
325 325 public function getRoutingParameters()
326 326 {
327 327 return $this->routing_parameters;
@@ -334,14 +334,14 @@
334 334 * determines which Parameter gets used.
335 335 * See the examples for more details.
336 336 *
337 337 * Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code>
338 - * @param array<\Google\Api\RoutingParameter>|\Google\Protobuf\Internal\RepeatedField $var
338 + * @param \Google\Api\RoutingParameter[] $var
339 339 * @return $this
340 340 */
341 341 public function setRoutingParameters($var)
342 342 {
343 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\RoutingParameter::class);
343 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\RoutingParameter::class);
344 344 $this->routing_parameters = $arr;
345 345 return $this;
346 346 }
347 347 }