googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
Endpoint.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
Last commit date
BackendRule
3 years ago
Billing
3 years ago
Distribution
3 years ago
Expr
3 years ago
LabelDescriptor
3 years ago
Logging
3 years ago
MetricDescriptor
3 years ago
Monitoring
3 years ago
Property
3 years ago
ResourceDescriptor
3 years ago
Advice.php
3 years ago
AuthProvider.php
3 years ago
AuthRequirement.php
3 years ago
Authentication.php
3 years ago
AuthenticationRule.php
3 years ago
Backend.php
3 years ago
BackendRule.php
3 years ago
BackendRule_PathTranslation.php
3 years ago
Billing.php
3 years ago
Billing_BillingDestination.php
3 years ago
ChangeType.php
3 years ago
ConfigChange.php
3 years ago
Context.php
3 years ago
ContextRule.php
3 years ago
Control.php
3 years ago
CustomHttpPattern.php
3 years ago
Distribution.php
3 years ago
Distribution_BucketOptions.php
3 years ago
Distribution_BucketOptions_Explicit.php
3 years ago
Distribution_BucketOptions_Exponential.php
3 years ago
Distribution_BucketOptions_Linear.php
3 years ago
Distribution_Exemplar.php
3 years ago
Distribution_Range.php
3 years ago
Documentation.php
3 years ago
DocumentationRule.php
3 years ago
Endpoint.php
3 years ago
FieldBehavior.php
3 years ago
Http.php
3 years ago
HttpBody.php
3 years ago
HttpRule.php
3 years ago
LabelDescriptor.php
3 years ago
LabelDescriptor_ValueType.php
3 years ago
LaunchStage.php
3 years ago
LogDescriptor.php
3 years ago
Logging.php
3 years ago
Logging_LoggingDestination.php
3 years ago
Metric.php
3 years ago
MetricDescriptor.php
3 years ago
MetricDescriptor_MetricDescriptorMetadata.php
3 years ago
MetricDescriptor_MetricKind.php
3 years ago
MetricDescriptor_ValueType.php
3 years ago
MetricRule.php
3 years ago
MonitoredResource.php
3 years ago
MonitoredResourceDescriptor.php
3 years ago
MonitoredResourceMetadata.php
3 years ago
Monitoring.php
3 years ago
Monitoring_MonitoringDestination.php
3 years ago
OAuthRequirements.php
3 years ago
Page.php
3 years ago
ProjectProperties.php
3 years ago
Property.php
3 years ago
Property_PropertyType.php
3 years ago
Quota.php
3 years ago
QuotaLimit.php
3 years ago
ResourceDescriptor.php
3 years ago
ResourceDescriptor_History.php
3 years ago
ResourceReference.php
3 years ago
RoutingParameter.php
3 years ago
RoutingRule.php
3 years ago
Service.php
3 years ago
SourceInfo.php
3 years ago
SystemParameter.php
3 years ago
SystemParameterRule.php
3 years ago
SystemParameters.php
3 years ago
Usage.php
3 years ago
UsageRule.php
3 years ago
Endpoint.php
261 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/endpoint.proto |
| 4 | |
| 5 | namespace Google\Api; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * `Endpoint` describes a network endpoint that serves a set of APIs. |
| 13 | * A service may expose any number of endpoints, and all endpoints share the |
| 14 | * same service configuration, such as quota configuration and monitoring |
| 15 | * configuration. |
| 16 | * Example service configuration: |
| 17 | * name: library-example.googleapis.com |
| 18 | * endpoints: |
| 19 | * # Below entry makes 'google.example.library.v1.Library' |
| 20 | * # API be served from endpoint address library-example.googleapis.com. |
| 21 | * # It also allows HTTP OPTIONS calls to be passed to the backend, for |
| 22 | * # it to decide whether the subsequent cross-origin request is |
| 23 | * # allowed to proceed. |
| 24 | * - name: library-example.googleapis.com |
| 25 | * allow_cors: true |
| 26 | * |
| 27 | * Generated from protobuf message <code>google.api.Endpoint</code> |
| 28 | */ |
| 29 | class Endpoint extends \Google\Protobuf\Internal\Message |
| 30 | { |
| 31 | /** |
| 32 | * The canonical name of this endpoint. |
| 33 | * |
| 34 | * Generated from protobuf field <code>string name = 1;</code> |
| 35 | */ |
| 36 | private $name = ''; |
| 37 | /** |
| 38 | * DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 39 | * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended |
| 40 | * aliases. |
| 41 | * Additional names that this endpoint will be hosted on. |
| 42 | * |
| 43 | * Generated from protobuf field <code>repeated string aliases = 2;</code> |
| 44 | */ |
| 45 | private $aliases; |
| 46 | /** |
| 47 | * The list of features enabled on this endpoint. |
| 48 | * |
| 49 | * Generated from protobuf field <code>repeated string features = 4;</code> |
| 50 | */ |
| 51 | private $features; |
| 52 | /** |
| 53 | * The specification of an Internet routable address of API frontend that will |
| 54 | * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). |
| 55 | * It should be either a valid IPv4 address or a fully-qualified domain name. |
| 56 | * For example, "8.8.8.8" or "myservice.appspot.com". |
| 57 | * |
| 58 | * Generated from protobuf field <code>string target = 101;</code> |
| 59 | */ |
| 60 | private $target = ''; |
| 61 | /** |
| 62 | * Allowing |
| 63 | * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 64 | * cross-domain traffic, would allow the backends served from this endpoint to |
| 65 | * receive and respond to HTTP OPTIONS requests. The response will be used by |
| 66 | * the browser to determine whether the subsequent cross-origin request is |
| 67 | * allowed to proceed. |
| 68 | * |
| 69 | * Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 70 | */ |
| 71 | private $allow_cors = false; |
| 72 | |
| 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 string[]|\Google\Protobuf\Internal\RepeatedField $aliases |
| 82 | * DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 83 | * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended |
| 84 | * aliases. |
| 85 | * Additional names that this endpoint will be hosted on. |
| 86 | * @type string[]|\Google\Protobuf\Internal\RepeatedField $features |
| 87 | * The list of features enabled on this endpoint. |
| 88 | * @type string $target |
| 89 | * The specification of an Internet routable address of API frontend that will |
| 90 | * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). |
| 91 | * It should be either a valid IPv4 address or a fully-qualified domain name. |
| 92 | * For example, "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 | \GPBMetadata\Google\Api\Endpoint::initOnce(); |
| 104 | parent::__construct($data); |
| 105 | } |
| 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 | /** |
| 119 | * The canonical name of this endpoint. |
| 120 | * |
| 121 | * Generated from protobuf field <code>string name = 1;</code> |
| 122 | * @param string $var |
| 123 | * @return $this |
| 124 | */ |
| 125 | public function setName($var) |
| 126 | { |
| 127 | GPBUtil::checkString($var, True); |
| 128 | $this->name = $var; |
| 129 | |
| 130 | return $this; |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 135 | * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended |
| 136 | * aliases. |
| 137 | * Additional names that this endpoint will be hosted on. |
| 138 | * |
| 139 | * Generated from protobuf field <code>repeated string aliases = 2;</code> |
| 140 | * @return \Google\Protobuf\Internal\RepeatedField |
| 141 | */ |
| 142 | public function getAliases() |
| 143 | { |
| 144 | return $this->aliases; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 149 | * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended |
| 150 | * aliases. |
| 151 | * Additional names that this endpoint will be hosted on. |
| 152 | * |
| 153 | * Generated from protobuf field <code>repeated string aliases = 2;</code> |
| 154 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 155 | * @return $this |
| 156 | */ |
| 157 | public function setAliases($var) |
| 158 | { |
| 159 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 160 | $this->aliases = $arr; |
| 161 | |
| 162 | return $this; |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * The list of features enabled on this endpoint. |
| 167 | * |
| 168 | * Generated from protobuf field <code>repeated string features = 4;</code> |
| 169 | * @return \Google\Protobuf\Internal\RepeatedField |
| 170 | */ |
| 171 | public function getFeatures() |
| 172 | { |
| 173 | return $this->features; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * The list of features enabled on this endpoint. |
| 178 | * |
| 179 | * Generated from protobuf field <code>repeated string features = 4;</code> |
| 180 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 181 | * @return $this |
| 182 | */ |
| 183 | public function setFeatures($var) |
| 184 | { |
| 185 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 186 | $this->features = $arr; |
| 187 | |
| 188 | return $this; |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * The specification of an Internet routable address of API frontend that will |
| 193 | * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). |
| 194 | * It should be either a valid IPv4 address or a fully-qualified domain name. |
| 195 | * For example, "8.8.8.8" or "myservice.appspot.com". |
| 196 | * |
| 197 | * Generated from protobuf field <code>string target = 101;</code> |
| 198 | * @return string |
| 199 | */ |
| 200 | public function getTarget() |
| 201 | { |
| 202 | return $this->target; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * The specification of an Internet routable address of API frontend that will |
| 207 | * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). |
| 208 | * It should be either a valid IPv4 address or a fully-qualified domain name. |
| 209 | * For example, "8.8.8.8" or "myservice.appspot.com". |
| 210 | * |
| 211 | * Generated from protobuf field <code>string target = 101;</code> |
| 212 | * @param string $var |
| 213 | * @return $this |
| 214 | */ |
| 215 | public function setTarget($var) |
| 216 | { |
| 217 | GPBUtil::checkString($var, True); |
| 218 | $this->target = $var; |
| 219 | |
| 220 | return $this; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Allowing |
| 225 | * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 226 | * cross-domain traffic, would allow the backends served from this endpoint to |
| 227 | * receive and respond to HTTP OPTIONS requests. The response will be used by |
| 228 | * the browser to determine whether the subsequent cross-origin request is |
| 229 | * allowed to proceed. |
| 230 | * |
| 231 | * Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 232 | * @return bool |
| 233 | */ |
| 234 | public function getAllowCors() |
| 235 | { |
| 236 | return $this->allow_cors; |
| 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Allowing |
| 241 | * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 242 | * cross-domain traffic, would allow the backends served from this endpoint to |
| 243 | * receive and respond to HTTP OPTIONS requests. The response will be used by |
| 244 | * the browser to determine whether the subsequent cross-origin request is |
| 245 | * allowed to proceed. |
| 246 | * |
| 247 | * Generated from protobuf field <code>bool allow_cors = 5;</code> |
| 248 | * @param bool $var |
| 249 | * @return $this |
| 250 | */ |
| 251 | public function setAllowCors($var) |
| 252 | { |
| 253 | GPBUtil::checkBool($var); |
| 254 | $this->allow_cors = $var; |
| 255 | |
| 256 | return $this; |
| 257 | } |
| 258 | |
| 259 | } |
| 260 | |
| 261 |