PluginProbe
Media Cloud Sync / 1.2.10
Media Cloud Sync v1.2.10
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
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / ContextRule.php

ContextRule.php in Media Cloud Sync 1.2.10, at includes/sdk/google/google/common-protos/src/Api/ContextRule.php

203 lines 7.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 # source: google/api/context.proto
5 namespace Dudlewebs\WPMCS\Google\Api;
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;
10 /**
11 * A context rule provides information about the context for an individual API
12 * element.
13 *
14 * Generated from protobuf message <code>google.api.ContextRule</code>
15 */
16 class ContextRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
17 {
18 /**
19 * Selects the methods to which this rule applies.
20 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
21 * details.
22 *
23 * Generated from protobuf field <code>string selector = 1;</code>
24 */
25 protected $selector = '';
26 /**
27 * A list of full type names of requested contexts.
28 *
29 * Generated from protobuf field <code>repeated string requested = 2;</code>
30 */
31 private $requested;
32 /**
33 * A list of full type names of provided contexts.
34 *
35 * Generated from protobuf field <code>repeated string provided = 3;</code>
36 */
37 private $provided;
38 /**
39 * A list of full type names or extension IDs of extensions allowed in grpc
40 * side channel from client to backend.
41 *
42 * Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
43 */
44 private $allowed_request_extensions;
45 /**
46 * A list of full type names or extension IDs of extensions allowed in grpc
47 * side channel from backend to client.
48 *
49 * Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
50 */
51 private $allowed_response_extensions;
52 /**
53 * Constructor.
54 *
55 * @param array $data {
56 * Optional. Data for populating the Message object.
57 *
58 * @type string $selector
59 * Selects the methods to which this rule applies.
60 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
61 * details.
62 * @type array<string>|\Google\Protobuf\Internal\RepeatedField $requested
63 * A list of full type names of requested contexts.
64 * @type array<string>|\Google\Protobuf\Internal\RepeatedField $provided
65 * A list of full type names of provided contexts.
66 * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_request_extensions
67 * A list of full type names or extension IDs of extensions allowed in grpc
68 * side channel from client to backend.
69 * @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_response_extensions
70 * A list of full type names or extension IDs of extensions allowed in grpc
71 * side channel from backend to client.
72 * }
73 */
74 public function __construct($data = NULL)
75 {
76 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Context::initOnce();
77 parent::__construct($data);
78 }
79 /**
80 * Selects the methods to which this rule applies.
81 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
82 * details.
83 *
84 * Generated from protobuf field <code>string selector = 1;</code>
85 * @return string
86 */
87 public function getSelector()
88 {
89 return $this->selector;
90 }
91 /**
92 * Selects the methods to which this rule applies.
93 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
94 * details.
95 *
96 * Generated from protobuf field <code>string selector = 1;</code>
97 * @param string $var
98 * @return $this
99 */
100 public function setSelector($var)
101 {
102 GPBUtil::checkString($var, True);
103 $this->selector = $var;
104 return $this;
105 }
106 /**
107 * A list of full type names of requested contexts.
108 *
109 * Generated from protobuf field <code>repeated string requested = 2;</code>
110 * @return \Google\Protobuf\Internal\RepeatedField
111 */
112 public function getRequested()
113 {
114 return $this->requested;
115 }
116 /**
117 * A list of full type names of requested contexts.
118 *
119 * Generated from protobuf field <code>repeated string requested = 2;</code>
120 * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
121 * @return $this
122 */
123 public function setRequested($var)
124 {
125 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
126 $this->requested = $arr;
127 return $this;
128 }
129 /**
130 * A list of full type names of provided contexts.
131 *
132 * Generated from protobuf field <code>repeated string provided = 3;</code>
133 * @return \Google\Protobuf\Internal\RepeatedField
134 */
135 public function getProvided()
136 {
137 return $this->provided;
138 }
139 /**
140 * A list of full type names of provided contexts.
141 *
142 * Generated from protobuf field <code>repeated string provided = 3;</code>
143 * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
144 * @return $this
145 */
146 public function setProvided($var)
147 {
148 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
149 $this->provided = $arr;
150 return $this;
151 }
152 /**
153 * A list of full type names or extension IDs of extensions allowed in grpc
154 * side channel from client to backend.
155 *
156 * Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
157 * @return \Google\Protobuf\Internal\RepeatedField
158 */
159 public function getAllowedRequestExtensions()
160 {
161 return $this->allowed_request_extensions;
162 }
163 /**
164 * A list of full type names or extension IDs of extensions allowed in grpc
165 * side channel from client to backend.
166 *
167 * Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
168 * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
169 * @return $this
170 */
171 public function setAllowedRequestExtensions($var)
172 {
173 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
174 $this->allowed_request_extensions = $arr;
175 return $this;
176 }
177 /**
178 * A list of full type names or extension IDs of extensions allowed in grpc
179 * side channel from backend to client.
180 *
181 * Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
182 * @return \Google\Protobuf\Internal\RepeatedField
183 */
184 public function getAllowedResponseExtensions()
185 {
186 return $this->allowed_response_extensions;
187 }
188 /**
189 * A list of full type names or extension IDs of extensions allowed in grpc
190 * side channel from backend to client.
191 *
192 * Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
193 * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
194 * @return $this
195 */
196 public function setAllowedResponseExtensions($var)
197 {
198 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING);
199 $this->allowed_response_extensions = $arr;
200 return $this;
201 }
202 }
203