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
Metric.php
111 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/metric.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 specific metric, identified by specifying values for all of the |
| 13 | * labels of a [`MetricDescriptor`][google.api.MetricDescriptor]. |
| 14 | * |
| 15 | * Generated from protobuf message <code>google.api.Metric</code> |
| 16 | */ |
| 17 | class Metric extends \Google\Protobuf\Internal\Message |
| 18 | { |
| 19 | /** |
| 20 | * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. |
| 21 | * For example, `custom.googleapis.com/invoice/paid/amount`. |
| 22 | * |
| 23 | * Generated from protobuf field <code>string type = 3;</code> |
| 24 | */ |
| 25 | private $type = ''; |
| 26 | /** |
| 27 | * The set of label values that uniquely identify this metric. All |
| 28 | * labels listed in the `MetricDescriptor` must be assigned values. |
| 29 | * |
| 30 | * Generated from protobuf field <code>map<string, string> labels = 2;</code> |
| 31 | */ |
| 32 | private $labels; |
| 33 | |
| 34 | /** |
| 35 | * Constructor. |
| 36 | * |
| 37 | * @param array $data { |
| 38 | * Optional. Data for populating the Message object. |
| 39 | * |
| 40 | * @type string $type |
| 41 | * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. |
| 42 | * For example, `custom.googleapis.com/invoice/paid/amount`. |
| 43 | * @type array|\Google\Protobuf\Internal\MapField $labels |
| 44 | * The set of label values that uniquely identify this metric. All |
| 45 | * labels listed in the `MetricDescriptor` must be assigned values. |
| 46 | * } |
| 47 | */ |
| 48 | public function __construct($data = NULL) { |
| 49 | \GPBMetadata\Google\Api\Metric::initOnce(); |
| 50 | parent::__construct($data); |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. |
| 55 | * For example, `custom.googleapis.com/invoice/paid/amount`. |
| 56 | * |
| 57 | * Generated from protobuf field <code>string type = 3;</code> |
| 58 | * @return string |
| 59 | */ |
| 60 | public function getType() |
| 61 | { |
| 62 | return $this->type; |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. |
| 67 | * For example, `custom.googleapis.com/invoice/paid/amount`. |
| 68 | * |
| 69 | * Generated from protobuf field <code>string type = 3;</code> |
| 70 | * @param string $var |
| 71 | * @return $this |
| 72 | */ |
| 73 | public function setType($var) |
| 74 | { |
| 75 | GPBUtil::checkString($var, True); |
| 76 | $this->type = $var; |
| 77 | |
| 78 | return $this; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * The set of label values that uniquely identify this metric. All |
| 83 | * labels listed in the `MetricDescriptor` must be assigned values. |
| 84 | * |
| 85 | * Generated from protobuf field <code>map<string, string> labels = 2;</code> |
| 86 | * @return \Google\Protobuf\Internal\MapField |
| 87 | */ |
| 88 | public function getLabels() |
| 89 | { |
| 90 | return $this->labels; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * The set of label values that uniquely identify this metric. All |
| 95 | * labels listed in the `MetricDescriptor` must be assigned values. |
| 96 | * |
| 97 | * Generated from protobuf field <code>map<string, string> labels = 2;</code> |
| 98 | * @param array|\Google\Protobuf\Internal\MapField $var |
| 99 | * @return $this |
| 100 | */ |
| 101 | public function setLabels($var) |
| 102 | { |
| 103 | $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); |
| 104 | $this->labels = $arr; |
| 105 | |
| 106 | return $this; |
| 107 | } |
| 108 | |
| 109 | } |
| 110 | |
| 111 |