PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
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 / OAuthRequirements.php

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

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