PluginProbe
Media Cloud Sync / 1.2.6
Media Cloud Sync v1.2.6
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 / Context.php

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

93 lines 3.4 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 * `Context` defines which contexts an API requests.
12 * Example:
13 * context:
14 * rules:
15 * - selector: "*"
16 * requested:
17 * - google.rpc.context.ProjectContext
18 * - google.rpc.context.OriginContext
19 * The above specifies that all methods in the API request
20 * `google.rpc.context.ProjectContext` and
21 * `google.rpc.context.OriginContext`.
22 * Available context types are defined in package
23 * `google.rpc.context`.
24 * This also provides mechanism to allowlist any protobuf message extension that
25 * can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
26 * “x-goog-ext-<extension_id>-jspb” format. For example, list any service
27 * specific protobuf types that can appear in grpc metadata as follows in your
28 * yaml file:
29 * Example:
30 * context:
31 * rules:
32 * - selector: "google.example.library.v1.LibraryService.CreateBook"
33 * allowed_request_extensions:
34 * - google.foo.v1.NewExtension
35 * allowed_response_extensions:
36 * - google.foo.v1.NewExtension
37 * You can also specify extension ID instead of fully qualified extension name
38 * here.
39 *
40 * Generated from protobuf message <code>google.api.Context</code>
41 */
42 class Context extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
43 {
44 /**
45 * A list of RPC context rules that apply to individual API methods.
46 * **NOTE:** All service configuration rules follow "last one wins" order.
47 *
48 * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
49 */
50 private $rules;
51 /**
52 * Constructor.
53 *
54 * @param array $data {
55 * Optional. Data for populating the Message object.
56 *
57 * @type array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $rules
58 * A list of RPC context rules that apply to individual API methods.
59 * **NOTE:** All service configuration rules follow "last one wins" order.
60 * }
61 */
62 public function __construct($data = NULL)
63 {
64 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Context::initOnce();
65 parent::__construct($data);
66 }
67 /**
68 * A list of RPC context rules that apply to individual API methods.
69 * **NOTE:** All service configuration rules follow "last one wins" order.
70 *
71 * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
72 * @return \Google\Protobuf\Internal\RepeatedField
73 */
74 public function getRules()
75 {
76 return $this->rules;
77 }
78 /**
79 * A list of RPC context rules that apply to individual API methods.
80 * **NOTE:** All service configuration rules follow "last one wins" order.
81 *
82 * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
83 * @param array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $var
84 * @return $this
85 */
86 public function setRules($var)
87 {
88 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\ContextRule::class);
89 $this->rules = $arr;
90 return $this;
91 }
92 }
93