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 / AuthRequirement.php

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

151 lines 6.3 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 * User-defined authentication requirements, including support for
12 * [JSON Web Token
13 * (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
14 *
15 * Generated from protobuf message <code>google.api.AuthRequirement</code>
16 */
17 class AuthRequirement extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
18 {
19 /**
20 * [id][google.api.AuthProvider.id] from authentication provider.
21 * Example:
22 * provider_id: bookstore_auth
23 *
24 * Generated from protobuf field <code>string provider_id = 1;</code>
25 */
26 protected $provider_id = '';
27 /**
28 * NOTE: This will be deprecated soon, once AuthProvider.audiences is
29 * implemented and accepted in all the runtime components.
30 * The list of JWT
31 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
32 * that are allowed to access. A JWT containing any of these audiences will
33 * be accepted. When this setting is absent, only JWTs with audience
34 * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
35 * will be accepted. For example, if no audiences are in the setting,
36 * LibraryService API will only accept JWTs with the following audience
37 * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
38 * Example:
39 * audiences: bookstore_android.apps.googleusercontent.com,
40 * bookstore_web.apps.googleusercontent.com
41 *
42 * Generated from protobuf field <code>string audiences = 2;</code>
43 */
44 protected $audiences = '';
45 /**
46 * Constructor.
47 *
48 * @param array $data {
49 * Optional. Data for populating the Message object.
50 *
51 * @type string $provider_id
52 * [id][google.api.AuthProvider.id] from authentication provider.
53 * Example:
54 * provider_id: bookstore_auth
55 * @type string $audiences
56 * NOTE: This will be deprecated soon, once AuthProvider.audiences is
57 * implemented and accepted in all the runtime components.
58 * The list of JWT
59 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
60 * that are allowed to access. A JWT containing any of these audiences will
61 * be accepted. When this setting is absent, only JWTs with audience
62 * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
63 * will be accepted. For example, if no audiences are in the setting,
64 * LibraryService API will only accept JWTs with the following audience
65 * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
66 * Example:
67 * audiences: bookstore_android.apps.googleusercontent.com,
68 * bookstore_web.apps.googleusercontent.com
69 * }
70 */
71 public function __construct($data = NULL)
72 {
73 \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Auth::initOnce();
74 parent::__construct($data);
75 }
76 /**
77 * [id][google.api.AuthProvider.id] from authentication provider.
78 * Example:
79 * provider_id: bookstore_auth
80 *
81 * Generated from protobuf field <code>string provider_id = 1;</code>
82 * @return string
83 */
84 public function getProviderId()
85 {
86 return $this->provider_id;
87 }
88 /**
89 * [id][google.api.AuthProvider.id] from authentication provider.
90 * Example:
91 * provider_id: bookstore_auth
92 *
93 * Generated from protobuf field <code>string provider_id = 1;</code>
94 * @param string $var
95 * @return $this
96 */
97 public function setProviderId($var)
98 {
99 GPBUtil::checkString($var, True);
100 $this->provider_id = $var;
101 return $this;
102 }
103 /**
104 * NOTE: This will be deprecated soon, once AuthProvider.audiences is
105 * implemented and accepted in all the runtime components.
106 * The list of JWT
107 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
108 * that are allowed to access. A JWT containing any of these audiences will
109 * be accepted. When this setting is absent, only JWTs with audience
110 * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
111 * will be accepted. For example, if no audiences are in the setting,
112 * LibraryService API will only accept JWTs with the following audience
113 * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
114 * Example:
115 * audiences: bookstore_android.apps.googleusercontent.com,
116 * bookstore_web.apps.googleusercontent.com
117 *
118 * Generated from protobuf field <code>string audiences = 2;</code>
119 * @return string
120 */
121 public function getAudiences()
122 {
123 return $this->audiences;
124 }
125 /**
126 * NOTE: This will be deprecated soon, once AuthProvider.audiences is
127 * implemented and accepted in all the runtime components.
128 * The list of JWT
129 * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
130 * that are allowed to access. A JWT containing any of these audiences will
131 * be accepted. When this setting is absent, only JWTs with audience
132 * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
133 * will be accepted. For example, if no audiences are in the setting,
134 * LibraryService API will only accept JWTs with the following audience
135 * "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
136 * Example:
137 * audiences: bookstore_android.apps.googleusercontent.com,
138 * bookstore_web.apps.googleusercontent.com
139 *
140 * Generated from protobuf field <code>string audiences = 2;</code>
141 * @param string $var
142 * @return $this
143 */
144 public function setAudiences($var)
145 {
146 GPBUtil::checkString($var, True);
147 $this->audiences = $var;
148 return $this;
149 }
150 }
151