googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
OAuthRequirements.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
OAuthRequirements.php
97 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 | * OAuth scopes are a way to define data and permissions on data. For example, |
| 13 | * there are scopes defined for "Read-only access to Google Calendar" and |
| 14 | * "Access to Cloud Platform". Users can consent to a scope for an application, |
| 15 | * giving it permission to access that data on their behalf. |
| 16 | * OAuth scope specifications should be fairly coarse grained; a user will need |
| 17 | * to see and understand the text description of what your scope means. |
| 18 | * In most cases: use one or at most two OAuth scopes for an entire family of |
| 19 | * products. If your product has multiple APIs, you should probably be sharing |
| 20 | * the OAuth scope across all of those APIs. |
| 21 | * When you need finer grained OAuth consent screens: talk with your product |
| 22 | * management about how developers will use them in practice. |
| 23 | * Please note that even though each of the canonical scopes is enough for a |
| 24 | * request to be accepted and passed to the backend, a request can still fail |
| 25 | * due to the backend requiring additional scopes or permissions. |
| 26 | * |
| 27 | * Generated from protobuf message <code>google.api.OAuthRequirements</code> |
| 28 | */ |
| 29 | class OAuthRequirements extends \Google\Protobuf\Internal\Message |
| 30 | { |
| 31 | /** |
| 32 | * The list of publicly documented OAuth scopes that are allowed access. An |
| 33 | * OAuth token containing any of these scopes will be accepted. |
| 34 | * Example: |
| 35 | * canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 36 | * https://www.googleapis.com/auth/calendar.read |
| 37 | * |
| 38 | * Generated from protobuf field <code>string canonical_scopes = 1;</code> |
| 39 | */ |
| 40 | private $canonical_scopes = ''; |
| 41 | |
| 42 | /** |
| 43 | * Constructor. |
| 44 | * |
| 45 | * @param array $data { |
| 46 | * Optional. Data for populating the Message object. |
| 47 | * |
| 48 | * @type string $canonical_scopes |
| 49 | * The list of publicly documented OAuth scopes that are allowed access. An |
| 50 | * OAuth token containing any of these scopes will be accepted. |
| 51 | * Example: |
| 52 | * canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 53 | * https://www.googleapis.com/auth/calendar.read |
| 54 | * } |
| 55 | */ |
| 56 | public function __construct($data = NULL) { |
| 57 | \GPBMetadata\Google\Api\Auth::initOnce(); |
| 58 | parent::__construct($data); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * The list of publicly documented OAuth scopes that are allowed access. An |
| 63 | * OAuth token containing any of these scopes will be accepted. |
| 64 | * Example: |
| 65 | * canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 66 | * https://www.googleapis.com/auth/calendar.read |
| 67 | * |
| 68 | * Generated from protobuf field <code>string canonical_scopes = 1;</code> |
| 69 | * @return string |
| 70 | */ |
| 71 | public function getCanonicalScopes() |
| 72 | { |
| 73 | return $this->canonical_scopes; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * The list of publicly documented OAuth scopes that are allowed access. An |
| 78 | * OAuth token containing any of these scopes will be accepted. |
| 79 | * Example: |
| 80 | * canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 81 | * https://www.googleapis.com/auth/calendar.read |
| 82 | * |
| 83 | * Generated from protobuf field <code>string canonical_scopes = 1;</code> |
| 84 | * @param string $var |
| 85 | * @return $this |
| 86 | */ |
| 87 | public function setCanonicalScopes($var) |
| 88 | { |
| 89 | GPBUtil::checkString($var, True); |
| 90 | $this->canonical_scopes = $var; |
| 91 | |
| 92 | return $this; |
| 93 | } |
| 94 | |
| 95 | } |
| 96 | |
| 97 |