PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api / MonitoredResource.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
MonitoredResource.php
129 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 * An object representing a resource that can be used for monitoring, logging,
13 * billing, or other purposes. Examples include virtual machine instances,
14 * databases, and storage devices such as disks. The `type` field identifies a
15 * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's
16 * schema. Information in the `labels` field identifies the actual resource and
17 * its attributes according to the schema. For example, a particular Compute
18 * Engine VM instance could be represented by the following object, because the
19 * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels
20 * `"instance_id"` and `"zone"`:
21 * { "type": "gce_instance",
22 * "labels": { "instance_id": "12345678901234",
23 * "zone": "us-central1-a" }}
24 *
25 * Generated from protobuf message <code>google.api.MonitoredResource</code>
26 */
27 class MonitoredResource extends \Google\Protobuf\Internal\Message
28 {
29 /**
30 * Required. The monitored resource type. This field must match
31 * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
32 * example, the type of a Compute Engine VM instance is `gce_instance`.
33 *
34 * Generated from protobuf field <code>string type = 1;</code>
35 */
36 private $type = '';
37 /**
38 * Required. Values for all of the labels listed in the associated monitored
39 * resource descriptor. For example, Compute Engine VM instances use the
40 * labels `"project_id"`, `"instance_id"`, and `"zone"`.
41 *
42 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
43 */
44 private $labels;
45
46 /**
47 * Constructor.
48 *
49 * @param array $data {
50 * Optional. Data for populating the Message object.
51 *
52 * @type string $type
53 * Required. The monitored resource type. This field must match
54 * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
55 * example, the type of a Compute Engine VM instance is `gce_instance`.
56 * @type array|\Google\Protobuf\Internal\MapField $labels
57 * Required. Values for all of the labels listed in the associated monitored
58 * resource descriptor. For example, Compute Engine VM instances use the
59 * labels `"project_id"`, `"instance_id"`, and `"zone"`.
60 * }
61 */
62 public function __construct($data = NULL) {
63 \GPBMetadata\Google\Api\MonitoredResource::initOnce();
64 parent::__construct($data);
65 }
66
67 /**
68 * Required. The monitored resource type. This field must match
69 * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
70 * example, the type of a Compute Engine VM instance is `gce_instance`.
71 *
72 * Generated from protobuf field <code>string type = 1;</code>
73 * @return string
74 */
75 public function getType()
76 {
77 return $this->type;
78 }
79
80 /**
81 * Required. The monitored resource type. This field must match
82 * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
83 * example, the type of a Compute Engine VM instance is `gce_instance`.
84 *
85 * Generated from protobuf field <code>string type = 1;</code>
86 * @param string $var
87 * @return $this
88 */
89 public function setType($var)
90 {
91 GPBUtil::checkString($var, True);
92 $this->type = $var;
93
94 return $this;
95 }
96
97 /**
98 * Required. Values for all of the labels listed in the associated monitored
99 * resource descriptor. For example, Compute Engine VM instances use the
100 * labels `"project_id"`, `"instance_id"`, and `"zone"`.
101 *
102 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
103 * @return \Google\Protobuf\Internal\MapField
104 */
105 public function getLabels()
106 {
107 return $this->labels;
108 }
109
110 /**
111 * Required. Values for all of the labels listed in the associated monitored
112 * resource descriptor. For example, Compute Engine VM instances use the
113 * labels `"project_id"`, `"instance_id"`, and `"zone"`.
114 *
115 * Generated from protobuf field <code>map<string, string> labels = 2;</code>
116 * @param array|\Google\Protobuf\Internal\MapField $var
117 * @return $this
118 */
119 public function setLabels($var)
120 {
121 $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
122 $this->labels = $arr;
123
124 return $this;
125 }
126
127 }
128
129