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/FieldInfo.php +46 -7 1.2.4 → 1.4.2 View file →
@@ -1,19 +1,19 @@
1 1 <?php
2 2
3 3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 4 # source: google/api/field_info.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 * Rich semantic information of an API field beyond basic typing.
12 12 *
13 13 * Generated from protobuf message <code>google.api.FieldInfo</code>
14 14 */
15 -class FieldInfo extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
15 +class FieldInfo extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 16 {
17 17 /**
18 18 * The standard format of a field value. This does not explicitly configure
19 19 * any API consumer, just documents the API's format for the field it is
@@ -22,8 +22,16 @@
22 22 * Generated from protobuf field <code>.google.api.FieldInfo.Format format = 1;</code>
23 23 */
24 24 protected $format = 0;
25 25 /**
26 + * The type(s) that the annotated, generic field may represent.
27 + * Currently, this must only be used on fields of type `google.protobuf.Any`.
28 + * Supporting other generic types may be considered in the future.
29 + *
30 + * Generated from protobuf field <code>repeated .google.api.TypeReference referenced_types = 2;</code>
31 + */
32 + private $referenced_types;
33 + /**
26 34 * Constructor.
27 35 *
28 36 * @param array $data {
29 37 * Optional. Data for populating the Message object.
@@ -31,13 +39,17 @@
31 39 * @type int $format
32 40 * The standard format of a field value. This does not explicitly configure
33 41 * any API consumer, just documents the API's format for the field it is
34 42 * applied to.
43 + * @type \Google\Api\TypeReference[] $referenced_types
44 + * The type(s) that the annotated, generic field may represent.
45 + * Currently, this must only be used on fields of type `google.protobuf.Any`.
46 + * Supporting other generic types may be considered in the future.
35 47 * }
36 48 */
37 49 public function __construct($data = NULL)
38 50 {
39 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\FieldInfo::initOnce();
51 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\FieldInfo::initOnce();
40 52 parent::__construct($data);
41 53 }
42 54 /**
43 55 * The standard format of a field value. This does not explicitly configure
@@ -61,9 +73,36 @@
61 73 * @return $this
62 74 */
63 75 public function setFormat($var)
64 76 {
65 - GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\FieldInfo\Format::class);
77 + GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Api\FieldInfo\Format::class);
66 78 $this->format = $var;
79 + return $this;
80 + }
81 + /**
82 + * The type(s) that the annotated, generic field may represent.
83 + * Currently, this must only be used on fields of type `google.protobuf.Any`.
84 + * Supporting other generic types may be considered in the future.
85 + *
86 + * Generated from protobuf field <code>repeated .google.api.TypeReference referenced_types = 2;</code>
87 + * @return RepeatedField<\Google\Api\TypeReference>
88 + */
89 + public function getReferencedTypes()
90 + {
91 + return $this->referenced_types;
92 + }
93 + /**
94 + * The type(s) that the annotated, generic field may represent.
95 + * Currently, this must only be used on fields of type `google.protobuf.Any`.
96 + * Supporting other generic types may be considered in the future.
97 + *
98 + * Generated from protobuf field <code>repeated .google.api.TypeReference referenced_types = 2;</code>
99 + * @param \Google\Api\TypeReference[] $var
100 + * @return $this
101 + */
102 + public function setReferencedTypes($var)
103 + {
104 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\TypeReference::class);
105 + $this->referenced_types = $arr;
67 106 return $this;
68 107 }
69 108 }