googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
SystemParameters.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
SystemParameters.php
156 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/system_parameter.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 | * ### System parameter configuration |
| 13 | * A system parameter is a special kind of parameter defined by the API |
| 14 | * system, not by an individual API. It is typically mapped to an HTTP header |
| 15 | * and/or a URL query parameter. This configuration specifies which methods |
| 16 | * change the names of the system parameters. |
| 17 | * |
| 18 | * Generated from protobuf message <code>google.api.SystemParameters</code> |
| 19 | */ |
| 20 | class SystemParameters extends \Google\Protobuf\Internal\Message |
| 21 | { |
| 22 | /** |
| 23 | * Define system parameters. |
| 24 | * The parameters defined here will override the default parameters |
| 25 | * implemented by the system. If this field is missing from the service |
| 26 | * config, default system parameters will be used. Default system parameters |
| 27 | * and names is implementation-dependent. |
| 28 | * Example: define api key for all methods |
| 29 | * system_parameters |
| 30 | * rules: |
| 31 | * - selector: "*" |
| 32 | * parameters: |
| 33 | * - name: api_key |
| 34 | * url_query_parameter: api_key |
| 35 | * Example: define 2 api key names for a specific method. |
| 36 | * system_parameters |
| 37 | * rules: |
| 38 | * - selector: "/ListShelves" |
| 39 | * parameters: |
| 40 | * - name: api_key |
| 41 | * http_header: Api-Key1 |
| 42 | * - name: api_key |
| 43 | * http_header: Api-Key2 |
| 44 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 45 | * |
| 46 | * Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code> |
| 47 | */ |
| 48 | private $rules; |
| 49 | |
| 50 | /** |
| 51 | * Constructor. |
| 52 | * |
| 53 | * @param array $data { |
| 54 | * Optional. Data for populating the Message object. |
| 55 | * |
| 56 | * @type \Google\Api\SystemParameterRule[]|\Google\Protobuf\Internal\RepeatedField $rules |
| 57 | * Define system parameters. |
| 58 | * The parameters defined here will override the default parameters |
| 59 | * implemented by the system. If this field is missing from the service |
| 60 | * config, default system parameters will be used. Default system parameters |
| 61 | * and names is implementation-dependent. |
| 62 | * Example: define api key for all methods |
| 63 | * system_parameters |
| 64 | * rules: |
| 65 | * - selector: "*" |
| 66 | * parameters: |
| 67 | * - name: api_key |
| 68 | * url_query_parameter: api_key |
| 69 | * Example: define 2 api key names for a specific method. |
| 70 | * system_parameters |
| 71 | * rules: |
| 72 | * - selector: "/ListShelves" |
| 73 | * parameters: |
| 74 | * - name: api_key |
| 75 | * http_header: Api-Key1 |
| 76 | * - name: api_key |
| 77 | * http_header: Api-Key2 |
| 78 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 79 | * } |
| 80 | */ |
| 81 | public function __construct($data = NULL) { |
| 82 | \GPBMetadata\Google\Api\SystemParameter::initOnce(); |
| 83 | parent::__construct($data); |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * Define system parameters. |
| 88 | * The parameters defined here will override the default parameters |
| 89 | * implemented by the system. If this field is missing from the service |
| 90 | * config, default system parameters will be used. Default system parameters |
| 91 | * and names is implementation-dependent. |
| 92 | * Example: define api key for all methods |
| 93 | * system_parameters |
| 94 | * rules: |
| 95 | * - selector: "*" |
| 96 | * parameters: |
| 97 | * - name: api_key |
| 98 | * url_query_parameter: api_key |
| 99 | * Example: define 2 api key names for a specific method. |
| 100 | * system_parameters |
| 101 | * rules: |
| 102 | * - selector: "/ListShelves" |
| 103 | * parameters: |
| 104 | * - name: api_key |
| 105 | * http_header: Api-Key1 |
| 106 | * - name: api_key |
| 107 | * http_header: Api-Key2 |
| 108 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 109 | * |
| 110 | * Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code> |
| 111 | * @return \Google\Protobuf\Internal\RepeatedField |
| 112 | */ |
| 113 | public function getRules() |
| 114 | { |
| 115 | return $this->rules; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Define system parameters. |
| 120 | * The parameters defined here will override the default parameters |
| 121 | * implemented by the system. If this field is missing from the service |
| 122 | * config, default system parameters will be used. Default system parameters |
| 123 | * and names is implementation-dependent. |
| 124 | * Example: define api key for all methods |
| 125 | * system_parameters |
| 126 | * rules: |
| 127 | * - selector: "*" |
| 128 | * parameters: |
| 129 | * - name: api_key |
| 130 | * url_query_parameter: api_key |
| 131 | * Example: define 2 api key names for a specific method. |
| 132 | * system_parameters |
| 133 | * rules: |
| 134 | * - selector: "/ListShelves" |
| 135 | * parameters: |
| 136 | * - name: api_key |
| 137 | * http_header: Api-Key1 |
| 138 | * - name: api_key |
| 139 | * http_header: Api-Key2 |
| 140 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 141 | * |
| 142 | * Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code> |
| 143 | * @param \Google\Api\SystemParameterRule[]|\Google\Protobuf\Internal\RepeatedField $var |
| 144 | * @return $this |
| 145 | */ |
| 146 | public function setRules($var) |
| 147 | { |
| 148 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); |
| 149 | $this->rules = $arr; |
| 150 | |
| 151 | return $this; |
| 152 | } |
| 153 | |
| 154 | } |
| 155 | |
| 156 |