PluginProbe
Media Cloud Sync / 1.2.13
Media Cloud Sync v1.2.13
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 / UsageRule.php

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

169 lines 6.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/usage.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 * Usage configuration rules for the service.
12 * NOTE: Under development.
13 * Use this rule to configure unregistered calls for the service. Unregistered
14 * calls are calls that do not contain consumer project identity.
15 * (Example: calls that do not contain an API key).
16 * By default, API methods do not allow unregistered calls, and each method call
17 * must be identified by a consumer project identity. Use this rule to
18 * allow/disallow unregistered calls.
19 * Example of an API that wants to allow unregistered calls for entire service.
20 * usage:
21 * rules:
22 * - selector: "*"
23 * allow_unregistered_calls: true
24 * Example of a method that wants to allow unregistered calls.
25 * usage:
26 * rules:
27 * - selector: "google.example.library.v1.LibraryService.CreateBook"
28 * allow_unregistered_calls: true
29 *
30 * Generated from protobuf message <code>google.api.UsageRule</code>
31 */
32 class UsageRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message
33 {
34 /**
35 * Selects the methods to which this rule applies. Use '*' to indicate all
36 * methods in all APIs.
37 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
38 * details.
39 *
40 * Generated from protobuf field <code>string selector = 1;</code>
41 */
42 protected $selector = '';
43 /**
44 * If true, the selected method allows unregistered calls, e.g. calls
45 * that don't identify any user or application.
46 *
47 * Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
48 */
49 protected $allow_unregistered_calls = \false;
50 /**
51 * If true, the selected method should skip service control and the control
52 * plane features, such as quota and billing, will not be available.
53 * This flag is used by Google Cloud Endpoints to bypass checks for internal
54 * methods, such as service health check methods.
55 *
56 * Generated from protobuf field <code>bool skip_service_control = 3;</code>
57 */
58 protected $skip_service_control = \false;
59 /**
60 * Constructor.
61 *
62 * @param array $data {
63 * Optional. Data for populating the Message object.
64 *
65 * @type string $selector
66 * Selects the methods to which this rule applies. Use '*' to indicate all
67 * methods in all APIs.
68 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
69 * details.
70 * @type bool $allow_unregistered_calls
71 * If true, the selected method allows unregistered calls, e.g. calls
72 * that don't identify any user or application.
73 * @type bool $skip_service_control
74 * If true, the selected method should skip service control and the control
75 * plane features, such as quota and billing, will not be available.
76 * This flag is used by Google Cloud Endpoints to bypass checks for internal
77 * methods, such as service health check methods.
78 * }
79 */
80 public function __construct($data = NULL)
81 {
82 \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Usage::initOnce();
83 parent::__construct($data);
84 }
85 /**
86 * Selects the methods to which this rule applies. Use '*' to indicate all
87 * methods in all APIs.
88 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
89 * details.
90 *
91 * Generated from protobuf field <code>string selector = 1;</code>
92 * @return string
93 */
94 public function getSelector()
95 {
96 return $this->selector;
97 }
98 /**
99 * Selects the methods to which this rule applies. Use '*' to indicate all
100 * methods in all APIs.
101 * Refer to [selector][google.api.DocumentationRule.selector] for syntax
102 * details.
103 *
104 * Generated from protobuf field <code>string selector = 1;</code>
105 * @param string $var
106 * @return $this
107 */
108 public function setSelector($var)
109 {
110 GPBUtil::checkString($var, True);
111 $this->selector = $var;
112 return $this;
113 }
114 /**
115 * If true, the selected method allows unregistered calls, e.g. calls
116 * that don't identify any user or application.
117 *
118 * Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
119 * @return bool
120 */
121 public function getAllowUnregisteredCalls()
122 {
123 return $this->allow_unregistered_calls;
124 }
125 /**
126 * If true, the selected method allows unregistered calls, e.g. calls
127 * that don't identify any user or application.
128 *
129 * Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
130 * @param bool $var
131 * @return $this
132 */
133 public function setAllowUnregisteredCalls($var)
134 {
135 GPBUtil::checkBool($var);
136 $this->allow_unregistered_calls = $var;
137 return $this;
138 }
139 /**
140 * If true, the selected method should skip service control and the control
141 * plane features, such as quota and billing, will not be available.
142 * This flag is used by Google Cloud Endpoints to bypass checks for internal
143 * methods, such as service health check methods.
144 *
145 * Generated from protobuf field <code>bool skip_service_control = 3;</code>
146 * @return bool
147 */
148 public function getSkipServiceControl()
149 {
150 return $this->skip_service_control;
151 }
152 /**
153 * If true, the selected method should skip service control and the control
154 * plane features, such as quota and billing, will not be available.
155 * This flag is used by Google Cloud Endpoints to bypass checks for internal
156 * methods, such as service health check methods.
157 *
158 * Generated from protobuf field <code>bool skip_service_control = 3;</code>
159 * @param bool $var
160 * @return $this
161 */
162 public function setSkipServiceControl($var)
163 {
164 GPBUtil::checkBool($var);
165 $this->skip_service_control = $var;
166 return $this;
167 }
168 }
169