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
Context.php
84 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/context.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 | * `Context` defines which contexts an API requests. |
| 13 | * Example: |
| 14 | * context: |
| 15 | * rules: |
| 16 | * - selector: "*" |
| 17 | * requested: |
| 18 | * - google.rpc.context.ProjectContext |
| 19 | * - google.rpc.context.OriginContext |
| 20 | * The above specifies that all methods in the API request |
| 21 | * `google.rpc.context.ProjectContext` and |
| 22 | * `google.rpc.context.OriginContext`. |
| 23 | * Available context types are defined in package |
| 24 | * `google.rpc.context`. |
| 25 | * |
| 26 | * Generated from protobuf message <code>google.api.Context</code> |
| 27 | */ |
| 28 | class Context extends \Google\Protobuf\Internal\Message |
| 29 | { |
| 30 | /** |
| 31 | * A list of RPC context rules that apply to individual API methods. |
| 32 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 33 | * |
| 34 | * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code> |
| 35 | */ |
| 36 | private $rules; |
| 37 | |
| 38 | /** |
| 39 | * Constructor. |
| 40 | * |
| 41 | * @param array $data { |
| 42 | * Optional. Data for populating the Message object. |
| 43 | * |
| 44 | * @type \Google\Api\ContextRule[]|\Google\Protobuf\Internal\RepeatedField $rules |
| 45 | * A list of RPC context rules that apply to individual API methods. |
| 46 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 47 | * } |
| 48 | */ |
| 49 | public function __construct($data = NULL) { |
| 50 | \GPBMetadata\Google\Api\Context::initOnce(); |
| 51 | parent::__construct($data); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * A list of RPC context rules that apply to individual API methods. |
| 56 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 57 | * |
| 58 | * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code> |
| 59 | * @return \Google\Protobuf\Internal\RepeatedField |
| 60 | */ |
| 61 | public function getRules() |
| 62 | { |
| 63 | return $this->rules; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * A list of RPC context rules that apply to individual API methods. |
| 68 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 69 | * |
| 70 | * Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code> |
| 71 | * @param \Google\Api\ContextRule[]|\Google\Protobuf\Internal\RepeatedField $var |
| 72 | * @return $this |
| 73 | */ |
| 74 | public function setRules($var) |
| 75 | { |
| 76 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); |
| 77 | $this->rules = $arr; |
| 78 | |
| 79 | return $this; |
| 80 | } |
| 81 | |
| 82 | } |
| 83 | |
| 84 |