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 / MethodPolicy.php

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

113 lines 4.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/policy.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 * Defines policies applying to an RPC method.
12 *
13 * Generated from protobuf message <code>google.api.MethodPolicy</code>
14 */
15 class MethodPolicy extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
16 {
17 /**
18 * Selects a method to which these policies should be enforced, for example,
19 * "google.pubsub.v1.Subscriber.CreateSubscription".
20 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
21 * details.
22 * NOTE: This field must not be set in the proto annotation. It will be
23 * automatically filled by the service config compiler .
24 *
25 * Generated from protobuf field <code>string selector = 9;</code>
26 */
27 protected $selector = '';
28 /**
29 * Policies that are applicable to the request message.
30 *
31 * Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
32 */
33 private $request_policies;
34 /**
35 * Constructor.
36 *
37 * @param array $data {
38 * Optional. Data for populating the Message object.
39 *
40 * @type string $selector
41 * Selects a method to which these policies should be enforced, for example,
42 * "google.pubsub.v1.Subscriber.CreateSubscription".
43 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
44 * details.
45 * NOTE: This field must not be set in the proto annotation. It will be
46 * automatically filled by the service config compiler .
47 * @type array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $request_policies
48 * Policies that are applicable to the request message.
49 * }
50 */
51 public function __construct($data = NULL)
52 {
53 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Policy::initOnce();
54 parent::__construct($data);
55 }
56 /**
57 * Selects a method to which these policies should be enforced, for example,
58 * "google.pubsub.v1.Subscriber.CreateSubscription".
59 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
60 * details.
61 * NOTE: This field must not be set in the proto annotation. It will be
62 * automatically filled by the service config compiler .
63 *
64 * Generated from protobuf field <code>string selector = 9;</code>
65 * @return string
66 */
67 public function getSelector()
68 {
69 return $this->selector;
70 }
71 /**
72 * Selects a method to which these policies should be enforced, for example,
73 * "google.pubsub.v1.Subscriber.CreateSubscription".
74 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
75 * details.
76 * NOTE: This field must not be set in the proto annotation. It will be
77 * automatically filled by the service config compiler .
78 *
79 * Generated from protobuf field <code>string selector = 9;</code>
80 * @param string $var
81 * @return $this
82 */
83 public function setSelector($var)
84 {
85 GPBUtil::checkString($var, True);
86 $this->selector = $var;
87 return $this;
88 }
89 /**
90 * Policies that are applicable to the request message.
91 *
92 * Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
93 * @return \Google\Protobuf\Internal\RepeatedField
94 */
95 public function getRequestPolicies()
96 {
97 return $this->request_policies;
98 }
99 /**
100 * Policies that are applicable to the request message.
101 *
102 * Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
103 * @param array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $var
104 * @return $this
105 */
106 public function setRequestPolicies($var)
107 {
108 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\FieldPolicy::class);
109 $this->request_policies = $arr;
110 return $this;
111 }
112 }
113