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
Billing.php
98 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/billing.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 | * Billing related configuration of the service. |
| 13 | * The following example shows how to configure monitored resources and metrics |
| 14 | * for billing: |
| 15 | * monitored_resources: |
| 16 | * - type: library.googleapis.com/branch |
| 17 | * labels: |
| 18 | * - key: /city |
| 19 | * description: The city where the library branch is located in. |
| 20 | * - key: /name |
| 21 | * description: The name of the branch. |
| 22 | * metrics: |
| 23 | * - name: library.googleapis.com/book/borrowed_count |
| 24 | * metric_kind: DELTA |
| 25 | * value_type: INT64 |
| 26 | * billing: |
| 27 | * consumer_destinations: |
| 28 | * - monitored_resource: library.googleapis.com/branch |
| 29 | * metrics: |
| 30 | * - library.googleapis.com/book/borrowed_count |
| 31 | * |
| 32 | * Generated from protobuf message <code>google.api.Billing</code> |
| 33 | */ |
| 34 | class Billing extends \Google\Protobuf\Internal\Message |
| 35 | { |
| 36 | /** |
| 37 | * Billing configurations for sending metrics to the consumer project. |
| 38 | * There can be multiple consumer destinations per service, each one must have |
| 39 | * a different monitored resource type. A metric can be used in at most |
| 40 | * one consumer destination. |
| 41 | * |
| 42 | * Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code> |
| 43 | */ |
| 44 | private $consumer_destinations; |
| 45 | |
| 46 | /** |
| 47 | * Constructor. |
| 48 | * |
| 49 | * @param array $data { |
| 50 | * Optional. Data for populating the Message object. |
| 51 | * |
| 52 | * @type \Google\Api\Billing\BillingDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations |
| 53 | * Billing configurations for sending metrics to the consumer project. |
| 54 | * There can be multiple consumer destinations per service, each one must have |
| 55 | * a different monitored resource type. A metric can be used in at most |
| 56 | * one consumer destination. |
| 57 | * } |
| 58 | */ |
| 59 | public function __construct($data = NULL) { |
| 60 | \GPBMetadata\Google\Api\Billing::initOnce(); |
| 61 | parent::__construct($data); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Billing configurations for sending metrics to the consumer project. |
| 66 | * There can be multiple consumer destinations per service, each one must have |
| 67 | * a different monitored resource type. A metric can be used in at most |
| 68 | * one consumer destination. |
| 69 | * |
| 70 | * Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code> |
| 71 | * @return \Google\Protobuf\Internal\RepeatedField |
| 72 | */ |
| 73 | public function getConsumerDestinations() |
| 74 | { |
| 75 | return $this->consumer_destinations; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Billing configurations for sending metrics to the consumer project. |
| 80 | * There can be multiple consumer destinations per service, each one must have |
| 81 | * a different monitored resource type. A metric can be used in at most |
| 82 | * one consumer destination. |
| 83 | * |
| 84 | * Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code> |
| 85 | * @param \Google\Api\Billing\BillingDestination[]|\Google\Protobuf\Internal\RepeatedField $var |
| 86 | * @return $this |
| 87 | */ |
| 88 | public function setConsumerDestinations($var) |
| 89 | { |
| 90 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); |
| 91 | $this->consumer_destinations = $arr; |
| 92 | |
| 93 | return $this; |
| 94 | } |
| 95 | |
| 96 | } |
| 97 | |
| 98 |