PageRenderTime 26ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/google-listings-and-ads/vendor/google/common-protos/src/Api/MonitoredResourceDescriptor.php

https://gitlab.com/remyvianne/krowkaramel
PHP | 262 lines | 67 code | 21 blank | 174 comment | 0 complexity | 8dd23d052aff5641b10deb0b7e299315 MD5 | raw file
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/api/monitored_resource.proto
  4. namespace Google\Api;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
  10. * type name and a set of labels. For example, the monitored resource
  11. * descriptor for Google Compute Engine VM instances has a type of
  12. * `"gce_instance"` and specifies the use of the labels `"instance_id"` and
  13. * `"zone"` to identify particular VM instances.
  14. * Different APIs can support different monitored resource types. APIs generally
  15. * provide a `list` method that returns the monitored resource descriptors used
  16. * by the API.
  17. *
  18. * Generated from protobuf message <code>google.api.MonitoredResourceDescriptor</code>
  19. */
  20. class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message
  21. {
  22. /**
  23. * Optional. The resource name of the monitored resource descriptor:
  24. * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
  25. * {type} is the value of the `type` field in this object and
  26. * {project_id} is a project ID that provides API-specific context for
  27. * accessing the type. APIs that do not use project information can use the
  28. * resource name format `"monitoredResourceDescriptors/{type}"`.
  29. *
  30. * Generated from protobuf field <code>string name = 5;</code>
  31. */
  32. private $name = '';
  33. /**
  34. * Required. The monitored resource type. For example, the type
  35. * `"cloudsql_database"` represents databases in Google Cloud SQL.
  36. * The maximum length of this value is 256 characters.
  37. *
  38. * Generated from protobuf field <code>string type = 1;</code>
  39. */
  40. private $type = '';
  41. /**
  42. * Optional. A concise name for the monitored resource type that might be
  43. * displayed in user interfaces. It should be a Title Cased Noun Phrase,
  44. * without any article or other determiners. For example,
  45. * `"Google Cloud SQL Database"`.
  46. *
  47. * Generated from protobuf field <code>string display_name = 2;</code>
  48. */
  49. private $display_name = '';
  50. /**
  51. * Optional. A detailed description of the monitored resource type that might
  52. * be used in documentation.
  53. *
  54. * Generated from protobuf field <code>string description = 3;</code>
  55. */
  56. private $description = '';
  57. /**
  58. * Required. A set of labels used to describe instances of this monitored
  59. * resource type. For example, an individual Google Cloud SQL database is
  60. * identified by values for the labels `"database_id"` and `"zone"`.
  61. *
  62. * Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
  63. */
  64. private $labels;
  65. /**
  66. * Constructor.
  67. *
  68. * @param array $data {
  69. * Optional. Data for populating the Message object.
  70. *
  71. * @type string $name
  72. * Optional. The resource name of the monitored resource descriptor:
  73. * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
  74. * {type} is the value of the `type` field in this object and
  75. * {project_id} is a project ID that provides API-specific context for
  76. * accessing the type. APIs that do not use project information can use the
  77. * resource name format `"monitoredResourceDescriptors/{type}"`.
  78. * @type string $type
  79. * Required. The monitored resource type. For example, the type
  80. * `"cloudsql_database"` represents databases in Google Cloud SQL.
  81. * The maximum length of this value is 256 characters.
  82. * @type string $display_name
  83. * Optional. A concise name for the monitored resource type that might be
  84. * displayed in user interfaces. It should be a Title Cased Noun Phrase,
  85. * without any article or other determiners. For example,
  86. * `"Google Cloud SQL Database"`.
  87. * @type string $description
  88. * Optional. A detailed description of the monitored resource type that might
  89. * be used in documentation.
  90. * @type \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $labels
  91. * Required. A set of labels used to describe instances of this monitored
  92. * resource type. For example, an individual Google Cloud SQL database is
  93. * identified by values for the labels `"database_id"` and `"zone"`.
  94. * }
  95. */
  96. public function __construct($data = NULL) {
  97. \GPBMetadata\Google\Api\MonitoredResource::initOnce();
  98. parent::__construct($data);
  99. }
  100. /**
  101. * Optional. The resource name of the monitored resource descriptor:
  102. * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
  103. * {type} is the value of the `type` field in this object and
  104. * {project_id} is a project ID that provides API-specific context for
  105. * accessing the type. APIs that do not use project information can use the
  106. * resource name format `"monitoredResourceDescriptors/{type}"`.
  107. *
  108. * Generated from protobuf field <code>string name = 5;</code>
  109. * @return string
  110. */
  111. public function getName()
  112. {
  113. return $this->name;
  114. }
  115. /**
  116. * Optional. The resource name of the monitored resource descriptor:
  117. * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
  118. * {type} is the value of the `type` field in this object and
  119. * {project_id} is a project ID that provides API-specific context for
  120. * accessing the type. APIs that do not use project information can use the
  121. * resource name format `"monitoredResourceDescriptors/{type}"`.
  122. *
  123. * Generated from protobuf field <code>string name = 5;</code>
  124. * @param string $var
  125. * @return $this
  126. */
  127. public function setName($var)
  128. {
  129. GPBUtil::checkString($var, True);
  130. $this->name = $var;
  131. return $this;
  132. }
  133. /**
  134. * Required. The monitored resource type. For example, the type
  135. * `"cloudsql_database"` represents databases in Google Cloud SQL.
  136. * The maximum length of this value is 256 characters.
  137. *
  138. * Generated from protobuf field <code>string type = 1;</code>
  139. * @return string
  140. */
  141. public function getType()
  142. {
  143. return $this->type;
  144. }
  145. /**
  146. * Required. The monitored resource type. For example, the type
  147. * `"cloudsql_database"` represents databases in Google Cloud SQL.
  148. * The maximum length of this value is 256 characters.
  149. *
  150. * Generated from protobuf field <code>string type = 1;</code>
  151. * @param string $var
  152. * @return $this
  153. */
  154. public function setType($var)
  155. {
  156. GPBUtil::checkString($var, True);
  157. $this->type = $var;
  158. return $this;
  159. }
  160. /**
  161. * Optional. A concise name for the monitored resource type that might be
  162. * displayed in user interfaces. It should be a Title Cased Noun Phrase,
  163. * without any article or other determiners. For example,
  164. * `"Google Cloud SQL Database"`.
  165. *
  166. * Generated from protobuf field <code>string display_name = 2;</code>
  167. * @return string
  168. */
  169. public function getDisplayName()
  170. {
  171. return $this->display_name;
  172. }
  173. /**
  174. * Optional. A concise name for the monitored resource type that might be
  175. * displayed in user interfaces. It should be a Title Cased Noun Phrase,
  176. * without any article or other determiners. For example,
  177. * `"Google Cloud SQL Database"`.
  178. *
  179. * Generated from protobuf field <code>string display_name = 2;</code>
  180. * @param string $var
  181. * @return $this
  182. */
  183. public function setDisplayName($var)
  184. {
  185. GPBUtil::checkString($var, True);
  186. $this->display_name = $var;
  187. return $this;
  188. }
  189. /**
  190. * Optional. A detailed description of the monitored resource type that might
  191. * be used in documentation.
  192. *
  193. * Generated from protobuf field <code>string description = 3;</code>
  194. * @return string
  195. */
  196. public function getDescription()
  197. {
  198. return $this->description;
  199. }
  200. /**
  201. * Optional. A detailed description of the monitored resource type that might
  202. * be used in documentation.
  203. *
  204. * Generated from protobuf field <code>string description = 3;</code>
  205. * @param string $var
  206. * @return $this
  207. */
  208. public function setDescription($var)
  209. {
  210. GPBUtil::checkString($var, True);
  211. $this->description = $var;
  212. return $this;
  213. }
  214. /**
  215. * Required. A set of labels used to describe instances of this monitored
  216. * resource type. For example, an individual Google Cloud SQL database is
  217. * identified by values for the labels `"database_id"` and `"zone"`.
  218. *
  219. * Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
  220. * @return \Google\Protobuf\Internal\RepeatedField
  221. */
  222. public function getLabels()
  223. {
  224. return $this->labels;
  225. }
  226. /**
  227. * Required. A set of labels used to describe instances of this monitored
  228. * resource type. For example, an individual Google Cloud SQL database is
  229. * identified by values for the labels `"database_id"` and `"zone"`.
  230. *
  231. * Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
  232. * @param \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var
  233. * @return $this
  234. */
  235. public function setLabels($var)
  236. {
  237. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class);
  238. $this->labels = $arr;
  239. return $this;
  240. }
  241. }