PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
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 / AuthenticationRule.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
AuthenticationRule.php
180 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/api/auth.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 * Authentication rules for the service.
13 * By default, if a method has any authentication requirements, every request
14 * must include a valid credential matching one of the requirements.
15 * It's an error to include more than one kind of credential in a single
16 * request.
17 * If a method doesn't have any auth requirements, request credentials will be
18 * ignored.
19 *
20 * Generated from protobuf message <code>google.api.AuthenticationRule</code>
21 */
22 class AuthenticationRule extends \Google\Protobuf\Internal\Message
23 {
24 /**
25 * Selects the methods to which this rule applies.
26 * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
27 *
28 * Generated from protobuf field <code>string selector = 1;</code>
29 */
30 private $selector = '';
31 /**
32 * The requirements for OAuth credentials.
33 *
34 * Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
35 */
36 private $oauth = null;
37 /**
38 * If true, the service accepts API keys without any other credential.
39 *
40 * Generated from protobuf field <code>bool allow_without_credential = 5;</code>
41 */
42 private $allow_without_credential = false;
43 /**
44 * Requirements for additional authentication providers.
45 *
46 * Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
47 */
48 private $requirements;
49
50 /**
51 * Constructor.
52 *
53 * @param array $data {
54 * Optional. Data for populating the Message object.
55 *
56 * @type string $selector
57 * Selects the methods to which this rule applies.
58 * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
59 * @type \Google\Api\OAuthRequirements $oauth
60 * The requirements for OAuth credentials.
61 * @type bool $allow_without_credential
62 * If true, the service accepts API keys without any other credential.
63 * @type \Google\Api\AuthRequirement[]|\Google\Protobuf\Internal\RepeatedField $requirements
64 * Requirements for additional authentication providers.
65 * }
66 */
67 public function __construct($data = NULL) {
68 \GPBMetadata\Google\Api\Auth::initOnce();
69 parent::__construct($data);
70 }
71
72 /**
73 * Selects the methods to which this rule applies.
74 * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
75 *
76 * Generated from protobuf field <code>string selector = 1;</code>
77 * @return string
78 */
79 public function getSelector()
80 {
81 return $this->selector;
82 }
83
84 /**
85 * Selects the methods to which this rule applies.
86 * Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
87 *
88 * Generated from protobuf field <code>string selector = 1;</code>
89 * @param string $var
90 * @return $this
91 */
92 public function setSelector($var)
93 {
94 GPBUtil::checkString($var, True);
95 $this->selector = $var;
96
97 return $this;
98 }
99
100 /**
101 * The requirements for OAuth credentials.
102 *
103 * Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
104 * @return \Google\Api\OAuthRequirements
105 */
106 public function getOauth()
107 {
108 return $this->oauth;
109 }
110
111 /**
112 * The requirements for OAuth credentials.
113 *
114 * Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
115 * @param \Google\Api\OAuthRequirements $var
116 * @return $this
117 */
118 public function setOauth($var)
119 {
120 GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class);
121 $this->oauth = $var;
122
123 return $this;
124 }
125
126 /**
127 * If true, the service accepts API keys without any other credential.
128 *
129 * Generated from protobuf field <code>bool allow_without_credential = 5;</code>
130 * @return bool
131 */
132 public function getAllowWithoutCredential()
133 {
134 return $this->allow_without_credential;
135 }
136
137 /**
138 * If true, the service accepts API keys without any other credential.
139 *
140 * Generated from protobuf field <code>bool allow_without_credential = 5;</code>
141 * @param bool $var
142 * @return $this
143 */
144 public function setAllowWithoutCredential($var)
145 {
146 GPBUtil::checkBool($var);
147 $this->allow_without_credential = $var;
148
149 return $this;
150 }
151
152 /**
153 * Requirements for additional authentication providers.
154 *
155 * Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
156 * @return \Google\Protobuf\Internal\RepeatedField
157 */
158 public function getRequirements()
159 {
160 return $this->requirements;
161 }
162
163 /**
164 * Requirements for additional authentication providers.
165 *
166 * Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
167 * @param \Google\Api\AuthRequirement[]|\Google\Protobuf\Internal\RepeatedField $var
168 * @return $this
169 */
170 public function setRequirements($var)
171 {
172 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class);
173 $this->requirements = $arr;
174
175 return $this;
176 }
177
178 }
179
180