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/ResourceDescriptor.php +39 -23 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/resource.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 * A simple descriptor of a resource type.
12 12 * ResourceDescriptor annotates a resource message (either by means of a
13 13 * protobuf annotation or use in the service config), and associates the
@@ -47,9 +47,9 @@
47 47 * pattern: "billingAccounts/{billing_account}/logs/{log}"
48 48 *
49 49 * Generated from protobuf message <code>google.api.ResourceDescriptor</code>
50 50 */
51 -class ResourceDescriptor extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
51 +class ResourceDescriptor extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
52 52 {
53 53 /**
54 54 * The resource type. It must be in the format of
55 55 * {service_name}/{resource_type_kind}. The `resource_type_kind` must be
@@ -109,10 +109,14 @@
109 109 protected $history = 0;
110 110 /**
111 111 * The plural name used in the resource name and permission names, such as
112 112 * 'projects' for the resource name of 'projects/{project}' and the permission
113 - * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
114 - * concept of the `plural` field in k8s CRD spec
113 + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
114 + * to this is for Nested Collections that have stuttering names, as defined
115 + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the
116 + * collection ID in the resource name pattern does not necessarily directly
117 + * match the `plural` value.
118 + * It is the same concept of the `plural` field in k8s CRD spec
115 119 * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
116 120 * Note: The plural form is required even for singleton resources. See
117 121 * https://aip.dev/156
118 122 *
@@ -149,9 +153,9 @@
149 153 * The value of the resource_type_kind must follow the regular expression
150 154 * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
151 155 * should use PascalCase (UpperCamelCase). The maximum number of
152 156 * characters allowed for the `resource_type_kind` is 100.
153 - * @type array<string>|\Google\Protobuf\Internal\RepeatedField $pattern
157 + * @type string[] $pattern
154 158 * Optional. The relative resource name pattern associated with this resource
155 159 * type. The DNS prefix of the full resource name shouldn't be specified here.
156 160 * The path pattern must follow the syntax, which aligns with HTTP binding
157 161 * syntax:
@@ -184,10 +188,14 @@
184 188 * }
185 189 * @type string $plural
186 190 * The plural name used in the resource name and permission names, such as
187 191 * 'projects' for the resource name of 'projects/{project}' and the permission
188 - * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189 - * concept of the `plural` field in k8s CRD spec
192 + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
193 + * to this is for Nested Collections that have stuttering names, as defined
194 + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the
195 + * collection ID in the resource name pattern does not necessarily directly
196 + * match the `plural` value.
197 + * It is the same concept of the `plural` field in k8s CRD spec
190 198 * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191 199 * Note: The plural form is required even for singleton resources. See
192 200 * https://aip.dev/156
193 201 * @type string $singular
@@ -193,9 +201,9 @@
193 201 * @type string $singular
194 202 * The same concept of the `singular` field in k8s CRD spec
195 203 * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
196 204 * Such as "project" for the `resourcemanager.googleapis.com/Project` type.
197 - * @type array<int>|\Google\Protobuf\Internal\RepeatedField $style
205 + * @type int[] $style
198 206 * Style flag(s) for this resource.
199 207 * These indicate that a resource is expected to conform to a given
200 208 * style. See the specific style flags for additional information.
201 209 * }
@@ -201,9 +209,9 @@
201 209 * }
202 210 */
203 211 public function __construct($data = NULL)
204 212 {
205 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Resource::initOnce();
213 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Resource::initOnce();
206 214 parent::__construct($data);
207 215 }
208 216 /**
209 217 * The resource type. It must be in the format of
@@ -258,9 +266,9 @@
258 266 * the same component name (e.g. "project") refers to IDs of the same
259 267 * type of resource.
260 268 *
261 269 * Generated from protobuf field <code>repeated string pattern = 2;</code>
262 - * @return \Google\Protobuf\Internal\RepeatedField
270 + * @return RepeatedField<string>
263 271 */
264 272 public function getPattern()
265 273 {
266 274 return $this->pattern;
@@ -281,14 +289,14 @@
281 289 * the same component name (e.g. "project") refers to IDs of the same
282 290 * type of resource.
283 291 *
284 292 * Generated from protobuf field <code>repeated string pattern = 2;</code>
285 - * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
293 + * @param string[] $var
286 294 * @return $this
287 295 */
288 296 public function setPattern($var)
289 297 {
290 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
298 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING);
291 299 $this->pattern = $arr;
292 300 return $this;
293 301 }
294 302 /**
@@ -358,9 +366,9 @@
358 366 * @return $this
359 367 */
360 368 public function setHistory($var)
361 369 {
362 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\ResourceDescriptor\History::class);
370 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\ResourceDescriptor\History::class);
363 371 $this->history = $var;
364 372 return $this;
365 373 }
366 374 /**
@@ -365,10 +373,14 @@
365 373 }
366 374 /**
367 375 * The plural name used in the resource name and permission names, such as
368 376 * 'projects' for the resource name of 'projects/{project}' and the permission
369 - * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
370 - * concept of the `plural` field in k8s CRD spec
377 + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
378 + * to this is for Nested Collections that have stuttering names, as defined
379 + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the
380 + * collection ID in the resource name pattern does not necessarily directly
381 + * match the `plural` value.
382 + * It is the same concept of the `plural` field in k8s CRD spec
371 383 * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
372 384 * Note: The plural form is required even for singleton resources. See
373 385 * https://aip.dev/156
374 386 *
@@ -381,10 +393,14 @@
381 393 }
382 394 /**
383 395 * The plural name used in the resource name and permission names, such as
384 396 * 'projects' for the resource name of 'projects/{project}' and the permission
385 - * name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
386 - * concept of the `plural` field in k8s CRD spec
397 + * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
398 + * to this is for Nested Collections that have stuttering names, as defined
399 + * in [AIP-122](https://google.aip.dev/122#nested-collections), where the
400 + * collection ID in the resource name pattern does not necessarily directly
401 + * match the `plural` value.
402 + * It is the same concept of the `plural` field in k8s CRD spec
387 403 * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
388 404 * Note: The plural form is required even for singleton resources. See
389 405 * https://aip.dev/156
390 406 *
@@ -430,9 +446,9 @@
430 446 * These indicate that a resource is expected to conform to a given
431 447 * style. See the specific style flags for additional information.
432 448 *
433 449 * Generated from protobuf field <code>repeated .google.api.ResourceDescriptor.Style style = 10;</code>
434 - * @return \Google\Protobuf\Internal\RepeatedField
450 + * @return RepeatedField<int>
435 451 */
436 452 public function getStyle()
437 453 {
438 454 return $this->style;
@@ -442,14 +458,14 @@
442 458 * These indicate that a resource is expected to conform to a given
443 459 * style. See the specific style flags for additional information.
444 460 *
445 461 * Generated from protobuf field <code>repeated .google.api.ResourceDescriptor.Style style = 10;</code>
446 - * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
462 + * @param int[] $var
447 463 * @return $this
448 464 */
449 465 public function setStyle($var)
450 466 {
451 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::ENUM, \Dudlewebs\WPMCS\Google\Api\ResourceDescriptor\Style::class);
467 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::ENUM, \Dudlewebs\WPMCS\GCP\Google\Api\ResourceDescriptor\Style::class);
452 468 $this->style = $arr;
453 469 return $this;
454 470 }
455 471 }