PluginProbe
Media Cloud Sync / 1.2.10
Media Cloud Sync v1.2.10
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / MonitoredResourceMetadata.php

MonitoredResourceMetadata.php in Media Cloud Sync 1.2.10, at includes/sdk/google/google/common-protos/src/Api/MonitoredResourceMetadata.php

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