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/CommonLanguageSettings.php +53 -12 1.2.10 → 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/client.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 * Required information for every language.
12 12 *
13 13 * Generated from protobuf message <code>google.api.CommonLanguageSettings</code>
14 14 */
15 -class CommonLanguageSettings extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
15 +class CommonLanguageSettings extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 16 {
17 17 /**
18 18 * Link to automatically generated reference documentation. Example:
19 19 * https://cloud.google.com/nodejs/docs/reference/asset/latest
@@ -28,8 +28,14 @@
28 28 * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
29 29 */
30 30 private $destinations;
31 31 /**
32 + * Configuration for which RPCs should be generated in the GAPIC client.
33 + *
34 + * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
35 + */
36 + protected $selective_gapic_generation = null;
37 + /**
32 38 * Constructor.
33 39 *
34 40 * @param array $data {
35 41 * Optional. Data for populating the Message object.
@@ -36,15 +42,17 @@
36 42 *
37 43 * @type string $reference_docs_uri
38 44 * Link to automatically generated reference documentation. Example:
39 45 * https://cloud.google.com/nodejs/docs/reference/asset/latest
40 - * @type array<int>|\Google\Protobuf\Internal\RepeatedField $destinations
46 + * @type int[] $destinations
41 47 * The destination where API teams want this client library to be published.
48 + * @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation
49 + * Configuration for which RPCs should be generated in the GAPIC client.
42 50 * }
43 51 */
44 52 public function __construct($data = NULL)
45 53 {
46 - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Client::initOnce();
54 + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Client::initOnce();
47 55 parent::__construct($data);
48 56 }
49 57 /**
50 58 * Link to automatically generated reference documentation. Example:
@@ -55,9 +63,11 @@
55 63 * @deprecated
56 64 */
57 65 public function getReferenceDocsUri()
58 66 {
59 - @trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
67 + if ($this->reference_docs_uri !== '') {
68 + @\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
69 + }
60 70 return $this->reference_docs_uri;
61 71 }
62 72 /**
63 73 * Link to automatically generated reference documentation. Example:
@@ -69,9 +79,9 @@
69 79 * @deprecated
70 80 */
71 81 public function setReferenceDocsUri($var)
72 82 {
73 - @trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
83 + @\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
74 84 GPBUtil::checkString($var, True);
75 85 $this->reference_docs_uri = $var;
76 86 return $this;
77 87 }
@@ -78,9 +88,9 @@
78 88 /**
79 89 * The destination where API teams want this client library to be published.
80 90 *
81 91 * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
82 - * @return \Google\Protobuf\Internal\RepeatedField
92 + * @return RepeatedField<int>
83 93 */
84 94 public function getDestinations()
85 95 {
86 96 return $this->destinations;
@@ -88,14 +98,45 @@
88 98 /**
89 99 * The destination where API teams want this client library to be published.
90 100 *
91 101 * Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
92 - * @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
102 + * @param int[] $var
93 103 * @return $this
94 104 */
95 105 public function setDestinations($var)
96 106 {
97 - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::ENUM, \Dudlewebs\WPMCS\Google\Api\ClientLibraryDestination::class);
107 + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::ENUM, \Dudlewebs\WPMCS\GCP\Google\Api\ClientLibraryDestination::class);
98 108 $this->destinations = $arr;
109 + return $this;
110 + }
111 + /**
112 + * Configuration for which RPCs should be generated in the GAPIC client.
113 + *
114 + * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
115 + * @return \Google\Api\SelectiveGapicGeneration|null
116 + */
117 + public function getSelectiveGapicGeneration()
118 + {
119 + return $this->selective_gapic_generation;
120 + }
121 + public function hasSelectiveGapicGeneration()
122 + {
123 + return isset($this->selective_gapic_generation);
124 + }
125 + public function clearSelectiveGapicGeneration()
126 + {
127 + unset($this->selective_gapic_generation);
128 + }
129 + /**
130 + * Configuration for which RPCs should be generated in the GAPIC client.
131 + *
132 + * Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
133 + * @param \Google\Api\SelectiveGapicGeneration $var
134 + * @return $this
135 + */
136 + public function setSelectiveGapicGeneration($var)
137 + {
138 + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\SelectiveGapicGeneration::class);
139 + $this->selective_gapic_generation = $var;
99 140 return $this;
100 141 }
101 142 }