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

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

170 lines 6.6 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 * Google API Policy Annotation
12 * This message defines a simple API policy annotation that can be used to
13 * annotate API request and response message fields with applicable policies.
14 * One field may have multiple applicable policies that must all be satisfied
15 * before a request can be processed. This policy annotation is used to
16 * generate the overall policy that will be used for automatic runtime
17 * policy enforcement and documentation generation.
18 *
19 * Generated from protobuf message <code>google.api.FieldPolicy</code>
20 */
21 class FieldPolicy extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
22 {
23 /**
24 * Selects one or more request or response message fields to apply this
25 * `FieldPolicy`.
26 * When a `FieldPolicy` is used in proto annotation, the selector must
27 * be left as empty. The service config generator will automatically fill
28 * the correct value.
29 * When a `FieldPolicy` is used in service config, the selector must be a
30 * comma-separated string with valid request or response field paths,
31 * such as "foo.bar" or "foo.bar,foo.baz".
32 *
33 * Generated from protobuf field <code>string selector = 1;</code>
34 */
35 protected $selector = '';
36 /**
37 * Specifies the required permission(s) for the resource referred to by the
38 * field. It requires the field contains a valid resource reference, and
39 * the request must pass the permission checks to proceed. For example,
40 * "resourcemanager.projects.get".
41 *
42 * Generated from protobuf field <code>string resource_permission = 2;</code>
43 */
44 protected $resource_permission = '';
45 /**
46 * Specifies the resource type for the resource referred to by the field.
47 *
48 * Generated from protobuf field <code>string resource_type = 3;</code>
49 */
50 protected $resource_type = '';
51 /**
52 * Constructor.
53 *
54 * @param array $data {
55 * Optional. Data for populating the Message object.
56 *
57 * @type string $selector
58 * Selects one or more request or response message fields to apply this
59 * `FieldPolicy`.
60 * When a `FieldPolicy` is used in proto annotation, the selector must
61 * be left as empty. The service config generator will automatically fill
62 * the correct value.
63 * When a `FieldPolicy` is used in service config, the selector must be a
64 * comma-separated string with valid request or response field paths,
65 * such as "foo.bar" or "foo.bar,foo.baz".
66 * @type string $resource_permission
67 * Specifies the required permission(s) for the resource referred to by the
68 * field. It requires the field contains a valid resource reference, and
69 * the request must pass the permission checks to proceed. For example,
70 * "resourcemanager.projects.get".
71 * @type string $resource_type
72 * Specifies the resource type for the resource referred to by the field.
73 * }
74 */
75 public function __construct($data = NULL)
76 {
77 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Policy::initOnce();
78 parent::__construct($data);
79 }
80 /**
81 * Selects one or more request or response message fields to apply this
82 * `FieldPolicy`.
83 * When a `FieldPolicy` is used in proto annotation, the selector must
84 * be left as empty. The service config generator will automatically fill
85 * the correct value.
86 * When a `FieldPolicy` is used in service config, the selector must be a
87 * comma-separated string with valid request or response field paths,
88 * such as "foo.bar" or "foo.bar,foo.baz".
89 *
90 * Generated from protobuf field <code>string selector = 1;</code>
91 * @return string
92 */
93 public function getSelector()
94 {
95 return $this->selector;
96 }
97 /**
98 * Selects one or more request or response message fields to apply this
99 * `FieldPolicy`.
100 * When a `FieldPolicy` is used in proto annotation, the selector must
101 * be left as empty. The service config generator will automatically fill
102 * the correct value.
103 * When a `FieldPolicy` is used in service config, the selector must be a
104 * comma-separated string with valid request or response field paths,
105 * such as "foo.bar" or "foo.bar,foo.baz".
106 *
107 * Generated from protobuf field <code>string selector = 1;</code>
108 * @param string $var
109 * @return $this
110 */
111 public function setSelector($var)
112 {
113 GPBUtil::checkString($var, True);
114 $this->selector = $var;
115 return $this;
116 }
117 /**
118 * Specifies the required permission(s) for the resource referred to by the
119 * field. It requires the field contains a valid resource reference, and
120 * the request must pass the permission checks to proceed. For example,
121 * "resourcemanager.projects.get".
122 *
123 * Generated from protobuf field <code>string resource_permission = 2;</code>
124 * @return string
125 */
126 public function getResourcePermission()
127 {
128 return $this->resource_permission;
129 }
130 /**
131 * Specifies the required permission(s) for the resource referred to by the
132 * field. It requires the field contains a valid resource reference, and
133 * the request must pass the permission checks to proceed. For example,
134 * "resourcemanager.projects.get".
135 *
136 * Generated from protobuf field <code>string resource_permission = 2;</code>
137 * @param string $var
138 * @return $this
139 */
140 public function setResourcePermission($var)
141 {
142 GPBUtil::checkString($var, True);
143 $this->resource_permission = $var;
144 return $this;
145 }
146 /**
147 * Specifies the resource type for the resource referred to by the field.
148 *
149 * Generated from protobuf field <code>string resource_type = 3;</code>
150 * @return string
151 */
152 public function getResourceType()
153 {
154 return $this->resource_type;
155 }
156 /**
157 * Specifies the resource type for the resource referred to by the field.
158 *
159 * Generated from protobuf field <code>string resource_type = 3;</code>
160 * @param string $var
161 * @return $this
162 */
163 public function setResourceType($var)
164 {
165 GPBUtil::checkString($var, True);
166 $this->resource_type = $var;
167 return $this;
168 }
169 }
170