media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
Authentication.php
Authentication.php in Media Cloud Sync 1.2.11, at includes/sdk/google/google/common-protos/src/Api/Authentication.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/auth.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 | * `Authentication` defines the authentication configuration for API methods |
| 12 | * provided by an API service. |
| 13 | * Example: |
| 14 | * name: calendar.googleapis.com |
| 15 | * authentication: |
| 16 | * providers: |
| 17 | * - id: google_calendar_auth |
| 18 | * jwks_uri: https://www.googleapis.com/oauth2/v1/certs |
| 19 | * issuer: https://securetoken.google.com |
| 20 | * rules: |
| 21 | * - selector: "*" |
| 22 | * requirements: |
| 23 | * provider_id: google_calendar_auth |
| 24 | * - selector: google.calendar.Delegate |
| 25 | * oauth: |
| 26 | * canonical_scopes: https://www.googleapis.com/auth/calendar.read |
| 27 | * |
| 28 | * Generated from protobuf message <code>google.api.Authentication</code> |
| 29 | */ |
| 30 | class Authentication extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 31 | { |
| 32 | /** |
| 33 | * A list of authentication rules that apply to individual API methods. |
| 34 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 35 | * |
| 36 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 37 | */ |
| 38 | private $rules; |
| 39 | /** |
| 40 | * Defines a set of authentication providers that a service supports. |
| 41 | * |
| 42 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 43 | */ |
| 44 | private $providers; |
| 45 | /** |
| 46 | * Constructor. |
| 47 | * |
| 48 | * @param array $data { |
| 49 | * Optional. Data for populating the Message object. |
| 50 | * |
| 51 | * @type array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $rules |
| 52 | * A list of authentication rules that apply to individual API methods. |
| 53 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 54 | * @type array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $providers |
| 55 | * Defines a set of authentication providers that a service supports. |
| 56 | * } |
| 57 | */ |
| 58 | public function __construct($data = NULL) |
| 59 | { |
| 60 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Auth::initOnce(); |
| 61 | parent::__construct($data); |
| 62 | } |
| 63 | /** |
| 64 | * A list of authentication rules that apply to individual API methods. |
| 65 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 66 | * |
| 67 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 68 | * @return \Google\Protobuf\Internal\RepeatedField |
| 69 | */ |
| 70 | public function getRules() |
| 71 | { |
| 72 | return $this->rules; |
| 73 | } |
| 74 | /** |
| 75 | * A list of authentication rules that apply to individual API methods. |
| 76 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 77 | * |
| 78 | * Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code> |
| 79 | * @param array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $var |
| 80 | * @return $this |
| 81 | */ |
| 82 | public function setRules($var) |
| 83 | { |
| 84 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\AuthenticationRule::class); |
| 85 | $this->rules = $arr; |
| 86 | return $this; |
| 87 | } |
| 88 | /** |
| 89 | * Defines a set of authentication providers that a service supports. |
| 90 | * |
| 91 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 92 | * @return \Google\Protobuf\Internal\RepeatedField |
| 93 | */ |
| 94 | public function getProviders() |
| 95 | { |
| 96 | return $this->providers; |
| 97 | } |
| 98 | /** |
| 99 | * Defines a set of authentication providers that a service supports. |
| 100 | * |
| 101 | * Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code> |
| 102 | * @param array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $var |
| 103 | * @return $this |
| 104 | */ |
| 105 | public function setProviders($var) |
| 106 | { |
| 107 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\AuthProvider::class); |
| 108 | $this->providers = $arr; |
| 109 | return $this; |
| 110 | } |
| 111 | } |
| 112 |