PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.2.4
ShareThis Dashboard for Google Analytics v3.2.4
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api / UsageRule.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api Last commit date
BackendRule 3 years ago Billing 3 years ago Distribution 3 years ago Expr 3 years ago LabelDescriptor 3 years ago Logging 3 years ago MetricDescriptor 3 years ago Monitoring 3 years ago Property 3 years ago ResourceDescriptor 3 years ago Advice.php 3 years ago AuthProvider.php 3 years ago AuthRequirement.php 3 years ago Authentication.php 3 years ago AuthenticationRule.php 3 years ago Backend.php 3 years ago BackendRule.php 3 years ago BackendRule_PathTranslation.php 3 years ago Billing.php 3 years ago Billing_BillingDestination.php 3 years ago ChangeType.php 3 years ago ConfigChange.php 3 years ago Context.php 3 years ago ContextRule.php 3 years ago Control.php 3 years ago CustomHttpPattern.php 3 years ago Distribution.php 3 years ago Distribution_BucketOptions.php 3 years ago Distribution_BucketOptions_Explicit.php 3 years ago Distribution_BucketOptions_Exponential.php 3 years ago Distribution_BucketOptions_Linear.php 3 years ago Distribution_Exemplar.php 3 years ago Distribution_Range.php 3 years ago Documentation.php 3 years ago DocumentationRule.php 3 years ago Endpoint.php 3 years ago FieldBehavior.php 3 years ago Http.php 3 years ago HttpBody.php 3 years ago HttpRule.php 3 years ago LabelDescriptor.php 3 years ago LabelDescriptor_ValueType.php 3 years ago LaunchStage.php 3 years ago LogDescriptor.php 3 years ago Logging.php 3 years ago Logging_LoggingDestination.php 3 years ago Metric.php 3 years ago MetricDescriptor.php 3 years ago MetricDescriptor_MetricDescriptorMetadata.php 3 years ago MetricDescriptor_MetricKind.php 3 years ago MetricDescriptor_ValueType.php 3 years ago MetricRule.php 3 years ago MonitoredResource.php 3 years ago MonitoredResourceDescriptor.php 3 years ago MonitoredResourceMetadata.php 3 years ago Monitoring.php 3 years ago Monitoring_MonitoringDestination.php 3 years ago OAuthRequirements.php 3 years ago Page.php 3 years ago ProjectProperties.php 3 years ago Property.php 3 years ago Property_PropertyType.php 3 years ago Quota.php 3 years ago QuotaLimit.php 3 years ago ResourceDescriptor.php 3 years ago ResourceDescriptor_History.php 3 years ago ResourceReference.php 3 years ago RoutingParameter.php 3 years ago RoutingRule.php 3 years ago Service.php 3 years ago SourceInfo.php 3 years ago SystemParameter.php 3 years ago SystemParameterRule.php 3 years ago SystemParameters.php 3 years ago Usage.php 3 years ago UsageRule.php 3 years ago
UsageRule.php
177 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/api/usage.proto
4
5 namespace Google\Api;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * Usage configuration rules for the service.
13 * NOTE: Under development.
14 * Use this rule to configure unregistered calls for the service. Unregistered
15 * calls are calls that do not contain consumer project identity.
16 * (Example: calls that do not contain an API key).
17 * By default, API methods do not allow unregistered calls, and each method call
18 * must be identified by a consumer project identity. Use this rule to
19 * allow/disallow unregistered calls.
20 * Example of an API that wants to allow unregistered calls for entire service.
21 * usage:
22 * rules:
23 * - selector: "*"
24 * allow_unregistered_calls: true
25 * Example of a method that wants to allow unregistered calls.
26 * usage:
27 * rules:
28 * - selector: "google.example.library.v1.LibraryService.CreateBook"
29 * allow_unregistered_calls: true
30 *
31 * Generated from protobuf message <code>google.api.UsageRule</code>
32 */
33 class UsageRule extends \Google\Protobuf\Internal\Message
34 {
35 /**
36 * Selects the methods to which this rule applies. Use '*' to indicate all
37 * methods in all APIs.
38 * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
39 *
40 * Generated from protobuf field <code>string selector = 1;</code>
41 */
42 private $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 private $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 private $skip_service_control = false;
59
60 /**
61 * Constructor.
62 *
63 * @param array $data {
64 * Optional. Data for populating the Message object.
65 *
66 * @type string $selector
67 * Selects the methods to which this rule applies. Use '*' to indicate all
68 * methods in all APIs.
69 * Refer to [selector][google.api.DocumentationRule.selector] for syntax 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 \GPBMetadata\Google\Api\Usage::initOnce();
82 parent::__construct($data);
83 }
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 details.
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 /**
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 details.
102 *
103 * Generated from protobuf field <code>string selector = 1;</code>
104 * @param string $var
105 * @return $this
106 */
107 public function setSelector($var)
108 {
109 GPBUtil::checkString($var, True);
110 $this->selector = $var;
111
112 return $this;
113 }
114
115 /**
116 * If true, the selected method allows unregistered calls, e.g. calls
117 * that don't identify any user or application.
118 *
119 * Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
120 * @return bool
121 */
122 public function getAllowUnregisteredCalls()
123 {
124 return $this->allow_unregistered_calls;
125 }
126
127 /**
128 * If true, the selected method allows unregistered calls, e.g. calls
129 * that don't identify any user or application.
130 *
131 * Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
132 * @param bool $var
133 * @return $this
134 */
135 public function setAllowUnregisteredCalls($var)
136 {
137 GPBUtil::checkBool($var);
138 $this->allow_unregistered_calls = $var;
139
140 return $this;
141 }
142
143 /**
144 * If true, the selected method should skip service control and the control
145 * plane features, such as quota and billing, will not be available.
146 * This flag is used by Google Cloud Endpoints to bypass checks for internal
147 * methods, such as service health check methods.
148 *
149 * Generated from protobuf field <code>bool skip_service_control = 3;</code>
150 * @return bool
151 */
152 public function getSkipServiceControl()
153 {
154 return $this->skip_service_control;
155 }
156
157 /**
158 * If true, the selected method should skip service control and the control
159 * plane features, such as quota and billing, will not be available.
160 * This flag is used by Google Cloud Endpoints to bypass checks for internal
161 * methods, such as service health check methods.
162 *
163 * Generated from protobuf field <code>bool skip_service_control = 3;</code>
164 * @param bool $var
165 * @return $this
166 */
167 public function setSkipServiceControl($var)
168 {
169 GPBUtil::checkBool($var);
170 $this->skip_service_control = $var;
171
172 return $this;
173 }
174
175 }
176
177