googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
ContextRule.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
ContextRule.php
141 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 | * A context rule provides information about the context for an individual API |
| 13 | * element. |
| 14 | * |
| 15 | * Generated from protobuf message <code>google.api.ContextRule</code> |
| 16 | */ |
| 17 | class ContextRule extends \Google\Protobuf\Internal\Message |
| 18 | { |
| 19 | /** |
| 20 | * Selects the methods to which this rule applies. |
| 21 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. |
| 22 | * |
| 23 | * Generated from protobuf field <code>string selector = 1;</code> |
| 24 | */ |
| 25 | private $selector = ''; |
| 26 | /** |
| 27 | * A list of full type names of requested contexts. |
| 28 | * |
| 29 | * Generated from protobuf field <code>repeated string requested = 2;</code> |
| 30 | */ |
| 31 | private $requested; |
| 32 | /** |
| 33 | * A list of full type names of provided contexts. |
| 34 | * |
| 35 | * Generated from protobuf field <code>repeated string provided = 3;</code> |
| 36 | */ |
| 37 | private $provided; |
| 38 | |
| 39 | /** |
| 40 | * Constructor. |
| 41 | * |
| 42 | * @param array $data { |
| 43 | * Optional. Data for populating the Message object. |
| 44 | * |
| 45 | * @type string $selector |
| 46 | * Selects the methods to which this rule applies. |
| 47 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. |
| 48 | * @type string[]|\Google\Protobuf\Internal\RepeatedField $requested |
| 49 | * A list of full type names of requested contexts. |
| 50 | * @type string[]|\Google\Protobuf\Internal\RepeatedField $provided |
| 51 | * A list of full type names of provided contexts. |
| 52 | * } |
| 53 | */ |
| 54 | public function __construct($data = NULL) { |
| 55 | \GPBMetadata\Google\Api\Context::initOnce(); |
| 56 | parent::__construct($data); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Selects the methods to which this rule applies. |
| 61 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. |
| 62 | * |
| 63 | * Generated from protobuf field <code>string selector = 1;</code> |
| 64 | * @return string |
| 65 | */ |
| 66 | public function getSelector() |
| 67 | { |
| 68 | return $this->selector; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Selects the methods to which this rule applies. |
| 73 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. |
| 74 | * |
| 75 | * Generated from protobuf field <code>string selector = 1;</code> |
| 76 | * @param string $var |
| 77 | * @return $this |
| 78 | */ |
| 79 | public function setSelector($var) |
| 80 | { |
| 81 | GPBUtil::checkString($var, True); |
| 82 | $this->selector = $var; |
| 83 | |
| 84 | return $this; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * A list of full type names of requested contexts. |
| 89 | * |
| 90 | * Generated from protobuf field <code>repeated string requested = 2;</code> |
| 91 | * @return \Google\Protobuf\Internal\RepeatedField |
| 92 | */ |
| 93 | public function getRequested() |
| 94 | { |
| 95 | return $this->requested; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * A list of full type names of requested contexts. |
| 100 | * |
| 101 | * Generated from protobuf field <code>repeated string requested = 2;</code> |
| 102 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 103 | * @return $this |
| 104 | */ |
| 105 | public function setRequested($var) |
| 106 | { |
| 107 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 108 | $this->requested = $arr; |
| 109 | |
| 110 | return $this; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * A list of full type names of provided contexts. |
| 115 | * |
| 116 | * Generated from protobuf field <code>repeated string provided = 3;</code> |
| 117 | * @return \Google\Protobuf\Internal\RepeatedField |
| 118 | */ |
| 119 | public function getProvided() |
| 120 | { |
| 121 | return $this->provided; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * A list of full type names of provided contexts. |
| 126 | * |
| 127 | * Generated from protobuf field <code>repeated string provided = 3;</code> |
| 128 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 129 | * @return $this |
| 130 | */ |
| 131 | public function setProvided($var) |
| 132 | { |
| 133 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 134 | $this->provided = $arr; |
| 135 | |
| 136 | return $this; |
| 137 | } |
| 138 | |
| 139 | } |
| 140 | |
| 141 |