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

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

181 lines 5.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 * Specifies a location to extract JWT from an API request.
12 *
13 * Generated from protobuf message <code>google.api.JwtLocation</code>
14 */
15 class JwtLocation extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
16 {
17 /**
18 * The value prefix. The value format is "value_prefix{token}"
19 * Only applies to "in" header type. Must be empty for "in" query type.
20 * If not empty, the header value has to match (case sensitive) this prefix.
21 * If not matched, JWT will not be extracted. If matched, JWT will be
22 * extracted after the prefix is removed.
23 * For example, for "Authorization: Bearer {JWT}",
24 * value_prefix="Bearer " with a space at the end.
25 *
26 * Generated from protobuf field <code>string value_prefix = 3;</code>
27 */
28 protected $value_prefix = '';
29 protected $in;
30 /**
31 * Constructor.
32 *
33 * @param array $data {
34 * Optional. Data for populating the Message object.
35 *
36 * @type string $header
37 * Specifies HTTP header name to extract JWT token.
38 * @type string $query
39 * Specifies URL query parameter name to extract JWT token.
40 * @type string $cookie
41 * Specifies cookie name to extract JWT token.
42 * @type string $value_prefix
43 * The value prefix. The value format is "value_prefix{token}"
44 * Only applies to "in" header type. Must be empty for "in" query type.
45 * If not empty, the header value has to match (case sensitive) this prefix.
46 * If not matched, JWT will not be extracted. If matched, JWT will be
47 * extracted after the prefix is removed.
48 * For example, for "Authorization: Bearer {JWT}",
49 * value_prefix="Bearer " with a space at the end.
50 * }
51 */
52 public function __construct($data = NULL)
53 {
54 \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Auth::initOnce();
55 parent::__construct($data);
56 }
57 /**
58 * Specifies HTTP header name to extract JWT token.
59 *
60 * Generated from protobuf field <code>string header = 1;</code>
61 * @return string
62 */
63 public function getHeader()
64 {
65 return $this->readOneof(1);
66 }
67 public function hasHeader()
68 {
69 return $this->hasOneof(1);
70 }
71 /**
72 * Specifies HTTP header name to extract JWT token.
73 *
74 * Generated from protobuf field <code>string header = 1;</code>
75 * @param string $var
76 * @return $this
77 */
78 public function setHeader($var)
79 {
80 GPBUtil::checkString($var, True);
81 $this->writeOneof(1, $var);
82 return $this;
83 }
84 /**
85 * Specifies URL query parameter name to extract JWT token.
86 *
87 * Generated from protobuf field <code>string query = 2;</code>
88 * @return string
89 */
90 public function getQuery()
91 {
92 return $this->readOneof(2);
93 }
94 public function hasQuery()
95 {
96 return $this->hasOneof(2);
97 }
98 /**
99 * Specifies URL query parameter name to extract JWT token.
100 *
101 * Generated from protobuf field <code>string query = 2;</code>
102 * @param string $var
103 * @return $this
104 */
105 public function setQuery($var)
106 {
107 GPBUtil::checkString($var, True);
108 $this->writeOneof(2, $var);
109 return $this;
110 }
111 /**
112 * Specifies cookie name to extract JWT token.
113 *
114 * Generated from protobuf field <code>string cookie = 4;</code>
115 * @return string
116 */
117 public function getCookie()
118 {
119 return $this->readOneof(4);
120 }
121 public function hasCookie()
122 {
123 return $this->hasOneof(4);
124 }
125 /**
126 * Specifies cookie name to extract JWT token.
127 *
128 * Generated from protobuf field <code>string cookie = 4;</code>
129 * @param string $var
130 * @return $this
131 */
132 public function setCookie($var)
133 {
134 GPBUtil::checkString($var, True);
135 $this->writeOneof(4, $var);
136 return $this;
137 }
138 /**
139 * The value prefix. The value format is "value_prefix{token}"
140 * Only applies to "in" header type. Must be empty for "in" query type.
141 * If not empty, the header value has to match (case sensitive) this prefix.
142 * If not matched, JWT will not be extracted. If matched, JWT will be
143 * extracted after the prefix is removed.
144 * For example, for "Authorization: Bearer {JWT}",
145 * value_prefix="Bearer " with a space at the end.
146 *
147 * Generated from protobuf field <code>string value_prefix = 3;</code>
148 * @return string
149 */
150 public function getValuePrefix()
151 {
152 return $this->value_prefix;
153 }
154 /**
155 * The value prefix. The value format is "value_prefix{token}"
156 * Only applies to "in" header type. Must be empty for "in" query type.
157 * If not empty, the header value has to match (case sensitive) this prefix.
158 * If not matched, JWT will not be extracted. If matched, JWT will be
159 * extracted after the prefix is removed.
160 * For example, for "Authorization: Bearer {JWT}",
161 * value_prefix="Bearer " with a space at the end.
162 *
163 * Generated from protobuf field <code>string value_prefix = 3;</code>
164 * @param string $var
165 * @return $this
166 */
167 public function setValuePrefix($var)
168 {
169 GPBUtil::checkString($var, True);
170 $this->value_prefix = $var;
171 return $this;
172 }
173 /**
174 * @return string
175 */
176 public function getIn()
177 {
178 return $this->whichOneof("in");
179 }
180 }
181