googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
MonitoredResourceMetadata.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
MonitoredResourceMetadata.php
143 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/monitored_resource.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 | * Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object. |
| 13 | * [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to |
| 14 | * uniquely identify a monitored resource instance. There is some other useful |
| 15 | * auxiliary metadata. Google Stackdriver Monitoring & Logging uses an ingestion |
| 16 | * pipeline to extract metadata for cloud resources of all types , and stores |
| 17 | * the metadata in this message. |
| 18 | * |
| 19 | * Generated from protobuf message <code>google.api.MonitoredResourceMetadata</code> |
| 20 | */ |
| 21 | class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message |
| 22 | { |
| 23 | /** |
| 24 | * Output only. Values for predefined system metadata labels. |
| 25 | * System labels are a kind of metadata extracted by Google Stackdriver. |
| 26 | * Stackdriver determines what system labels are useful and how to obtain |
| 27 | * their values. Some examples: "machine_image", "vpc", "subnet_id", |
| 28 | * "security_group", "name", etc. |
| 29 | * System label values can be only strings, Boolean values, or a list of |
| 30 | * strings. For example: |
| 31 | * { "name": "my-test-instance", |
| 32 | * "security_group": ["a", "b", "c"], |
| 33 | * "spot_instance": false } |
| 34 | * |
| 35 | * Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code> |
| 36 | */ |
| 37 | private $system_labels = null; |
| 38 | /** |
| 39 | * Output only. A map of user-defined metadata labels. |
| 40 | * |
| 41 | * Generated from protobuf field <code>map<string, string> user_labels = 2;</code> |
| 42 | */ |
| 43 | private $user_labels; |
| 44 | |
| 45 | /** |
| 46 | * Constructor. |
| 47 | * |
| 48 | * @param array $data { |
| 49 | * Optional. Data for populating the Message object. |
| 50 | * |
| 51 | * @type \Google\Protobuf\Struct $system_labels |
| 52 | * Output only. Values for predefined system metadata labels. |
| 53 | * System labels are a kind of metadata extracted by Google Stackdriver. |
| 54 | * Stackdriver determines what system labels are useful and how to obtain |
| 55 | * their values. Some examples: "machine_image", "vpc", "subnet_id", |
| 56 | * "security_group", "name", etc. |
| 57 | * System label values can be only strings, Boolean values, or a list of |
| 58 | * strings. For example: |
| 59 | * { "name": "my-test-instance", |
| 60 | * "security_group": ["a", "b", "c"], |
| 61 | * "spot_instance": false } |
| 62 | * @type array|\Google\Protobuf\Internal\MapField $user_labels |
| 63 | * Output only. A map of user-defined metadata labels. |
| 64 | * } |
| 65 | */ |
| 66 | public function __construct($data = NULL) { |
| 67 | \GPBMetadata\Google\Api\MonitoredResource::initOnce(); |
| 68 | parent::__construct($data); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Output only. Values for predefined system metadata labels. |
| 73 | * System labels are a kind of metadata extracted by Google Stackdriver. |
| 74 | * Stackdriver determines what system labels are useful and how to obtain |
| 75 | * their values. Some examples: "machine_image", "vpc", "subnet_id", |
| 76 | * "security_group", "name", etc. |
| 77 | * System label values can be only strings, Boolean values, or a list of |
| 78 | * strings. For example: |
| 79 | * { "name": "my-test-instance", |
| 80 | * "security_group": ["a", "b", "c"], |
| 81 | * "spot_instance": false } |
| 82 | * |
| 83 | * Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code> |
| 84 | * @return \Google\Protobuf\Struct |
| 85 | */ |
| 86 | public function getSystemLabels() |
| 87 | { |
| 88 | return $this->system_labels; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Output only. Values for predefined system metadata labels. |
| 93 | * System labels are a kind of metadata extracted by Google Stackdriver. |
| 94 | * Stackdriver determines what system labels are useful and how to obtain |
| 95 | * their values. Some examples: "machine_image", "vpc", "subnet_id", |
| 96 | * "security_group", "name", etc. |
| 97 | * System label values can be only strings, Boolean values, or a list of |
| 98 | * strings. For example: |
| 99 | * { "name": "my-test-instance", |
| 100 | * "security_group": ["a", "b", "c"], |
| 101 | * "spot_instance": false } |
| 102 | * |
| 103 | * Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code> |
| 104 | * @param \Google\Protobuf\Struct $var |
| 105 | * @return $this |
| 106 | */ |
| 107 | public function setSystemLabels($var) |
| 108 | { |
| 109 | GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); |
| 110 | $this->system_labels = $var; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Output only. A map of user-defined metadata labels. |
| 117 | * |
| 118 | * Generated from protobuf field <code>map<string, string> user_labels = 2;</code> |
| 119 | * @return \Google\Protobuf\Internal\MapField |
| 120 | */ |
| 121 | public function getUserLabels() |
| 122 | { |
| 123 | return $this->user_labels; |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Output only. A map of user-defined metadata labels. |
| 128 | * |
| 129 | * Generated from protobuf field <code>map<string, string> user_labels = 2;</code> |
| 130 | * @param array|\Google\Protobuf\Internal\MapField $var |
| 131 | * @return $this |
| 132 | */ |
| 133 | public function setUserLabels($var) |
| 134 | { |
| 135 | $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); |
| 136 | $this->user_labels = $arr; |
| 137 | |
| 138 | return $this; |
| 139 | } |
| 140 | |
| 141 | } |
| 142 | |
| 143 |