| 1 |
<?php |
| 2 |
|
| 3 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 |
# source: google/api/endpoint.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 |
* `Endpoint` describes a network address of a service that serves a set of |
| 12 |
* APIs. It is commonly known as a service endpoint. A service may expose |
| 13 |
* any number of service endpoints, and all service endpoints share the same |
| 14 |
* service definition, such as quota limits and monitoring metrics. |
| 15 |
* Example: |
| 16 |
* type: google.api.Service |
| 17 |
* name: library-example.googleapis.com |
| 18 |
* endpoints: |
| 19 |
* # Declares network address `https://library-example.googleapis.com` |
| 20 |
* # for service `library-example.googleapis.com`. The `https` scheme |
| 21 |
* # is implicit for all service endpoints. Other schemes may be |
| 22 |
* # supported in the future. |
| 23 |
* - name: library-example.googleapis.com |
| 24 |
* allow_cors: false |
| 25 |
* - name: content-staging-library-example.googleapis.com |
| 26 |
* # Allows HTTP OPTIONS calls to be passed to the API frontend, for it |
| 27 |
* # to decide whether the subsequent cross-origin request is allowed |
| 28 |
* # to proceed. |
| 29 |
* allow_cors: true |
| 30 |
* |
| 31 |
* Generated from protobuf message <code>google.api.Endpoint</code> |
| 32 |
*/ |
| 33 |
class Endpoint extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 34 |
{ |
| 35 |
/** |
| 36 |
* The canonical name of this endpoint. |
| 37 |
* |
| 38 |
* Generated from protobuf field <code>string name = 1;</code> |
| 39 |
*/ |
| 40 |
protected $name = ''; |
| 41 |
/** |
| 42 |
* Unimplemented. Dot not use. |
| 43 |
* DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 44 |
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each |
| 45 |
* of the intended aliases. |
| 46 |
* Additional names that this endpoint will be hosted on. |
| 47 |
* |
| 48 |
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code> |
| 49 |
* @deprecated |
| 50 |
*/ |
| 51 |
private $aliases; |
| 52 |
/** |
| 53 |
* The specification of an Internet routable address of API frontend that will |
| 54 |
* handle requests to this [API |
| 55 |
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 56 |
* either a valid IPv4 address or a fully-qualified domain name. For example, |
| 57 |
* "8.8.8.8" or "myservice.appspot.com". |
| 58 |
* |
| 59 |
* Generated from protobuf field <code>string target = 101;</code> |
| 60 |
*/ |
| 61 |
protected $target = ''; |
| 62 |
/** |
| 63 |
* Allowing |
| 64 |
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 65 |
* cross-domain traffic, would allow the backends served from this endpoint to |
| 66 |
* receive and respond to HTTP OPTIONS requests. The response will be used by |
| 67 |
* the browser to determine whether the subsequent cross-origin request is |
| 68 |
* allowed to proceed. |
| 69 |
* |
| 70 |
* Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 71 |
*/ |
| 72 |
protected $allow_cors = \false; |
| 73 |
/** |
| 74 |
* Constructor. |
| 75 |
* |
| 76 |
* @param array $data { |
| 77 |
* Optional. Data for populating the Message object. |
| 78 |
* |
| 79 |
* @type string $name |
| 80 |
* The canonical name of this endpoint. |
| 81 |
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $aliases |
| 82 |
* Unimplemented. Dot not use. |
| 83 |
* DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 84 |
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each |
| 85 |
* of the intended aliases. |
| 86 |
* Additional names that this endpoint will be hosted on. |
| 87 |
* @type string $target |
| 88 |
* The specification of an Internet routable address of API frontend that will |
| 89 |
* handle requests to this [API |
| 90 |
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 91 |
* either a valid IPv4 address or a fully-qualified domain name. For example, |
| 92 |
* "8.8.8.8" or "myservice.appspot.com". |
| 93 |
* @type bool $allow_cors |
| 94 |
* Allowing |
| 95 |
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 96 |
* cross-domain traffic, would allow the backends served from this endpoint to |
| 97 |
* receive and respond to HTTP OPTIONS requests. The response will be used by |
| 98 |
* the browser to determine whether the subsequent cross-origin request is |
| 99 |
* allowed to proceed. |
| 100 |
* } |
| 101 |
*/ |
| 102 |
public function __construct($data = NULL) |
| 103 |
{ |
| 104 |
\Dudlewebs\WPMCS\GPBMetadata\Google\Api\Endpoint::initOnce(); |
| 105 |
parent::__construct($data); |
| 106 |
} |
| 107 |
/** |
| 108 |
* The canonical name of this endpoint. |
| 109 |
* |
| 110 |
* Generated from protobuf field <code>string name = 1;</code> |
| 111 |
* @return string |
| 112 |
*/ |
| 113 |
public function getName() |
| 114 |
{ |
| 115 |
return $this->name; |
| 116 |
} |
| 117 |
/** |
| 118 |
* The canonical name of this endpoint. |
| 119 |
* |
| 120 |
* Generated from protobuf field <code>string name = 1;</code> |
| 121 |
* @param string $var |
| 122 |
* @return $this |
| 123 |
*/ |
| 124 |
public function setName($var) |
| 125 |
{ |
| 126 |
GPBUtil::checkString($var, True); |
| 127 |
$this->name = $var; |
| 128 |
return $this; |
| 129 |
} |
| 130 |
/** |
| 131 |
* Unimplemented. Dot not use. |
| 132 |
* DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 133 |
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each |
| 134 |
* of the intended aliases. |
| 135 |
* Additional names that this endpoint will be hosted on. |
| 136 |
* |
| 137 |
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code> |
| 138 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 139 |
* @deprecated |
| 140 |
*/ |
| 141 |
public function getAliases() |
| 142 |
{ |
| 143 |
@trigger_error('aliases is deprecated.', \E_USER_DEPRECATED); |
| 144 |
return $this->aliases; |
| 145 |
} |
| 146 |
/** |
| 147 |
* Unimplemented. Dot not use. |
| 148 |
* DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 149 |
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each |
| 150 |
* of the intended aliases. |
| 151 |
* Additional names that this endpoint will be hosted on. |
| 152 |
* |
| 153 |
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code> |
| 154 |
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var |
| 155 |
* @return $this |
| 156 |
* @deprecated |
| 157 |
*/ |
| 158 |
public function setAliases($var) |
| 159 |
{ |
| 160 |
@trigger_error('aliases is deprecated.', \E_USER_DEPRECATED); |
| 161 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING); |
| 162 |
$this->aliases = $arr; |
| 163 |
return $this; |
| 164 |
} |
| 165 |
/** |
| 166 |
* The specification of an Internet routable address of API frontend that will |
| 167 |
* handle requests to this [API |
| 168 |
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 169 |
* either a valid IPv4 address or a fully-qualified domain name. For example, |
| 170 |
* "8.8.8.8" or "myservice.appspot.com". |
| 171 |
* |
| 172 |
* Generated from protobuf field <code>string target = 101;</code> |
| 173 |
* @return string |
| 174 |
*/ |
| 175 |
public function getTarget() |
| 176 |
{ |
| 177 |
return $this->target; |
| 178 |
} |
| 179 |
/** |
| 180 |
* The specification of an Internet routable address of API frontend that will |
| 181 |
* handle requests to this [API |
| 182 |
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 183 |
* either a valid IPv4 address or a fully-qualified domain name. For example, |
| 184 |
* "8.8.8.8" or "myservice.appspot.com". |
| 185 |
* |
| 186 |
* Generated from protobuf field <code>string target = 101;</code> |
| 187 |
* @param string $var |
| 188 |
* @return $this |
| 189 |
*/ |
| 190 |
public function setTarget($var) |
| 191 |
{ |
| 192 |
GPBUtil::checkString($var, True); |
| 193 |
$this->target = $var; |
| 194 |
return $this; |
| 195 |
} |
| 196 |
/** |
| 197 |
* Allowing |
| 198 |
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 199 |
* cross-domain traffic, would allow the backends served from this endpoint to |
| 200 |
* receive and respond to HTTP OPTIONS requests. The response will be used by |
| 201 |
* the browser to determine whether the subsequent cross-origin request is |
| 202 |
* allowed to proceed. |
| 203 |
* |
| 204 |
* Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 205 |
* @return bool |
| 206 |
*/ |
| 207 |
public function getAllowCors() |
| 208 |
{ |
| 209 |
return $this->allow_cors; |
| 210 |
} |
| 211 |
/** |
| 212 |
* Allowing |
| 213 |
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 214 |
* cross-domain traffic, would allow the backends served from this endpoint to |
| 215 |
* receive and respond to HTTP OPTIONS requests. The response will be used by |
| 216 |
* the browser to determine whether the subsequent cross-origin request is |
| 217 |
* allowed to proceed. |
| 218 |
* |
| 219 |
* Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 220 |
* @param bool $var |
| 221 |
* @return $this |
| 222 |
*/ |
| 223 |
public function setAllowCors($var) |
| 224 |
{ |
| 225 |
GPBUtil::checkBool($var); |
| 226 |
$this->allow_cors = $var; |
| 227 |
return $this; |
| 228 |
} |
| 229 |
} |
| 230 |
|