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
Usage.php
172 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/usage.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 | * Configuration controlling usage of a service. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.api.Usage</code> |
| 15 | */ |
| 16 | class Usage extends \Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | /** |
| 19 | * Requirements that must be satisfied before a consumer project can use the |
| 20 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| 21 | * for example 'serviceusage.googleapis.com/billing-enabled'. |
| 22 | * |
| 23 | * Generated from protobuf field <code>repeated string requirements = 1;</code> |
| 24 | */ |
| 25 | private $requirements; |
| 26 | /** |
| 27 | * A list of usage rules that apply to individual API methods. |
| 28 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 29 | * |
| 30 | * Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code> |
| 31 | */ |
| 32 | private $rules; |
| 33 | /** |
| 34 | * The full resource name of a channel used for sending notifications to the |
| 35 | * service producer. |
| 36 | * Google Service Management currently only supports |
| 37 | * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 38 | * channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 39 | * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 40 | * documented in https://cloud.google.com/pubsub/docs/overview. |
| 41 | * |
| 42 | * Generated from protobuf field <code>string producer_notification_channel = 7;</code> |
| 43 | */ |
| 44 | private $producer_notification_channel = ''; |
| 45 | |
| 46 | /** |
| 47 | * Constructor. |
| 48 | * |
| 49 | * @param array $data { |
| 50 | * Optional. Data for populating the Message object. |
| 51 | * |
| 52 | * @type string[]|\Google\Protobuf\Internal\RepeatedField $requirements |
| 53 | * Requirements that must be satisfied before a consumer project can use the |
| 54 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| 55 | * for example 'serviceusage.googleapis.com/billing-enabled'. |
| 56 | * @type \Google\Api\UsageRule[]|\Google\Protobuf\Internal\RepeatedField $rules |
| 57 | * A list of usage rules that apply to individual API methods. |
| 58 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 59 | * @type string $producer_notification_channel |
| 60 | * The full resource name of a channel used for sending notifications to the |
| 61 | * service producer. |
| 62 | * Google Service Management currently only supports |
| 63 | * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 64 | * channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 65 | * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 66 | * documented in https://cloud.google.com/pubsub/docs/overview. |
| 67 | * } |
| 68 | */ |
| 69 | public function __construct($data = NULL) { |
| 70 | \GPBMetadata\Google\Api\Usage::initOnce(); |
| 71 | parent::__construct($data); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Requirements that must be satisfied before a consumer project can use the |
| 76 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| 77 | * for example 'serviceusage.googleapis.com/billing-enabled'. |
| 78 | * |
| 79 | * Generated from protobuf field <code>repeated string requirements = 1;</code> |
| 80 | * @return \Google\Protobuf\Internal\RepeatedField |
| 81 | */ |
| 82 | public function getRequirements() |
| 83 | { |
| 84 | return $this->requirements; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Requirements that must be satisfied before a consumer project can use the |
| 89 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| 90 | * for example 'serviceusage.googleapis.com/billing-enabled'. |
| 91 | * |
| 92 | * Generated from protobuf field <code>repeated string requirements = 1;</code> |
| 93 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 94 | * @return $this |
| 95 | */ |
| 96 | public function setRequirements($var) |
| 97 | { |
| 98 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 99 | $this->requirements = $arr; |
| 100 | |
| 101 | return $this; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * A list of usage rules that apply to individual API methods. |
| 106 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 107 | * |
| 108 | * Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code> |
| 109 | * @return \Google\Protobuf\Internal\RepeatedField |
| 110 | */ |
| 111 | public function getRules() |
| 112 | { |
| 113 | return $this->rules; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * A list of usage rules that apply to individual API methods. |
| 118 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 119 | * |
| 120 | * Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code> |
| 121 | * @param \Google\Api\UsageRule[]|\Google\Protobuf\Internal\RepeatedField $var |
| 122 | * @return $this |
| 123 | */ |
| 124 | public function setRules($var) |
| 125 | { |
| 126 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); |
| 127 | $this->rules = $arr; |
| 128 | |
| 129 | return $this; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * The full resource name of a channel used for sending notifications to the |
| 134 | * service producer. |
| 135 | * Google Service Management currently only supports |
| 136 | * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 137 | * channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 138 | * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 139 | * documented in https://cloud.google.com/pubsub/docs/overview. |
| 140 | * |
| 141 | * Generated from protobuf field <code>string producer_notification_channel = 7;</code> |
| 142 | * @return string |
| 143 | */ |
| 144 | public function getProducerNotificationChannel() |
| 145 | { |
| 146 | return $this->producer_notification_channel; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * The full resource name of a channel used for sending notifications to the |
| 151 | * service producer. |
| 152 | * Google Service Management currently only supports |
| 153 | * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 154 | * channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 155 | * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 156 | * documented in https://cloud.google.com/pubsub/docs/overview. |
| 157 | * |
| 158 | * Generated from protobuf field <code>string producer_notification_channel = 7;</code> |
| 159 | * @param string $var |
| 160 | * @return $this |
| 161 | */ |
| 162 | public function setProducerNotificationChannel($var) |
| 163 | { |
| 164 | GPBUtil::checkString($var, True); |
| 165 | $this->producer_notification_channel = $var; |
| 166 | |
| 167 | return $this; |
| 168 | } |
| 169 | |
| 170 | } |
| 171 | |
| 172 |