@aceplus/smartace-api 3.6.0-alpha.17 → 3.6.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/auth.account_pb.d.ts +582 -0
  2. package/auth.account_pb.js +4287 -0
  3. package/auth.account_pb_service.d.ts +340 -0
  4. package/auth.account_pb_service.js +637 -0
  5. package/auth.account_two_factor_pb.d.ts +159 -0
  6. package/auth.account_two_factor_pb.js +1184 -0
  7. package/auth.account_two_factor_pb_service.d.ts +121 -0
  8. package/auth.account_two_factor_pb_service.js +182 -0
  9. package/auth.app_account_pb.d.ts +156 -0
  10. package/auth.app_account_pb.js +1153 -0
  11. package/auth.app_account_pb_service.d.ts +160 -0
  12. package/auth.app_account_pb_service.js +263 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +174 -0
  18. package/auth.app_distribution_pb.js +1338 -0
  19. package/auth.app_distribution_pb_service.d.ts +120 -0
  20. package/auth.app_distribution_pb_service.js +181 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.push_notification_pb.d.ts +69 -0
  42. package/auth.push_notification_pb.js +411 -0
  43. package/auth.push_notification_pb_service.d.ts +64 -0
  44. package/auth.push_notification_pb_service.js +62 -0
  45. package/auth.sms_pb.d.ts +79 -0
  46. package/auth.sms_pb.js +575 -0
  47. package/auth.sms_pb_service.d.ts +83 -0
  48. package/auth.sms_pb_service.js +102 -0
  49. package/google/api/annotations_pb.d.ts +9 -0
  50. package/google/api/annotations_pb.js +54 -0
  51. package/google/api/annotations_pb_service.d.ts +3 -0
  52. package/google/api/annotations_pb_service.js +3 -0
  53. package/google/api/auth_pb.d.ts +150 -0
  54. package/google/api/auth_pb.js +1160 -0
  55. package/google/api/auth_pb_service.d.ts +3 -0
  56. package/google/api/auth_pb_service.js +3 -0
  57. package/google/api/backend_pb.d.ts +59 -0
  58. package/google/api/backend_pb.js +448 -0
  59. package/google/api/backend_pb_service.d.ts +3 -0
  60. package/google/api/backend_pb_service.js +3 -0
  61. package/google/api/billing_pb.d.ts +54 -0
  62. package/google/api/billing_pb.js +416 -0
  63. package/google/api/billing_pb_service.d.ts +3 -0
  64. package/google/api/billing_pb_service.js +3 -0
  65. package/google/api/client_pb.d.ts +12 -0
  66. package/google/api/client_pb.js +104 -0
  67. package/google/api/client_pb_service.d.ts +3 -0
  68. package/google/api/client_pb_service.js +3 -0
  69. package/google/api/config_change_pb.d.ts +72 -0
  70. package/google/api/config_change_pb.js +489 -0
  71. package/google/api/config_change_pb_service.d.ts +3 -0
  72. package/google/api/config_change_pb_service.js +3 -0
  73. package/google/api/consumer_pb.d.ts +65 -0
  74. package/google/api/consumer_pb.js +430 -0
  75. package/google/api/consumer_pb_service.d.ts +3 -0
  76. package/google/api/consumer_pb_service.js +3 -0
  77. package/google/api/context_pb.d.ts +59 -0
  78. package/google/api/context_pb.js +463 -0
  79. package/google/api/context_pb_service.d.ts +3 -0
  80. package/google/api/context_pb_service.js +3 -0
  81. package/google/api/control_pb.d.ts +25 -0
  82. package/google/api/control_pb.js +176 -0
  83. package/google/api/control_pb_service.d.ts +3 -0
  84. package/google/api/control_pb_service.js +3 -0
  85. package/google/api/distribution_pb.d.ts +235 -0
  86. package/google/api/distribution_pb.js +1805 -0
  87. package/google/api/distribution_pb_service.d.ts +3 -0
  88. package/google/api/distribution_pb_service.js +3 -0
  89. package/google/api/documentation_pb.d.ts +103 -0
  90. package/google/api/documentation_pb.js +803 -0
  91. package/google/api/documentation_pb_service.d.ts +3 -0
  92. package/google/api/documentation_pb_service.js +3 -0
  93. package/google/api/endpoint_pb.d.ts +46 -0
  94. package/google/api/endpoint_pb.js +343 -0
  95. package/google/api/endpoint_pb_service.d.ts +3 -0
  96. package/google/api/endpoint_pb_service.js +3 -0
  97. package/google/api/error_reason_pb.d.ts +40 -0
  98. package/google/api/error_reason_pb.js +61 -0
  99. package/google/api/error_reason_pb_service.d.ts +3 -0
  100. package/google/api/error_reason_pb_service.js +3 -0
  101. package/google/api/field_behavior_pb.d.ts +20 -0
  102. package/google/api/field_behavior_pb.js +66 -0
  103. package/google/api/field_behavior_pb_service.d.ts +3 -0
  104. package/google/api/field_behavior_pb_service.js +3 -0
  105. package/google/api/http_pb.d.ts +136 -0
  106. package/google/api/http_pb.js +1012 -0
  107. package/google/api/http_pb_service.d.ts +3 -0
  108. package/google/api/http_pb_service.js +3 -0
  109. package/google/api/httpbody_pb.d.ts +38 -0
  110. package/google/api/httpbody_pb.js +292 -0
  111. package/google/api/httpbody_pb_service.d.ts +3 -0
  112. package/google/api/httpbody_pb_service.js +3 -0
  113. package/google/api/label_pb.d.ts +41 -0
  114. package/google/api/label_pb.js +246 -0
  115. package/google/api/label_pb_service.d.ts +3 -0
  116. package/google/api/label_pb_service.js +3 -0
  117. package/google/api/launch_stage_pb.d.ts +16 -0
  118. package/google/api/launch_stage_pb.js +37 -0
  119. package/google/api/launch_stage_pb_service.d.ts +3 -0
  120. package/google/api/launch_stage_pb_service.js +3 -0
  121. package/google/api/log_pb.d.ts +40 -0
  122. package/google/api/log_pb.js +298 -0
  123. package/google/api/log_pb_service.d.ts +3 -0
  124. package/google/api/log_pb_service.js +3 -0
  125. package/google/api/logging_pb.d.ts +60 -0
  126. package/google/api/logging_pb.js +469 -0
  127. package/google/api/logging_pb_service.d.ts +3 -0
  128. package/google/api/logging_pb_service.js +3 -0
  129. package/google/api/metric_pb.d.ts +100 -0
  130. package/google/api/metric_pb.js +629 -0
  131. package/google/api/metric_pb_service.d.ts +3 -0
  132. package/google/api/metric_pb_service.js +3 -0
  133. package/google/api/monitored_resource_pb.d.ts +93 -0
  134. package/google/api/monitored_resource_pb.js +723 -0
  135. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  136. package/google/api/monitored_resource_pb_service.js +3 -0
  137. package/google/api/monitoring_pb.d.ts +60 -0
  138. package/google/api/monitoring_pb.js +469 -0
  139. package/google/api/monitoring_pb_service.d.ts +3 -0
  140. package/google/api/monitoring_pb_service.js +3 -0
  141. package/google/api/policy_pb.d.ts +64 -0
  142. package/google/api/policy_pb.js +502 -0
  143. package/google/api/policy_pb_service.d.ts +3 -0
  144. package/google/api/policy_pb_service.js +3 -0
  145. package/google/api/quota_pb.d.ts +112 -0
  146. package/google/api/quota_pb.js +873 -0
  147. package/google/api/quota_pb_service.d.ts +3 -0
  148. package/google/api/quota_pb_service.js +3 -0
  149. package/google/api/resource_pb.d.ts +99 -0
  150. package/google/api/resource_pb.js +684 -0
  151. package/google/api/resource_pb_service.d.ts +3 -0
  152. package/google/api/resource_pb_service.js +3 -0
  153. package/google/api/routing_pb.d.ts +54 -0
  154. package/google/api/routing_pb.js +416 -0
  155. package/google/api/routing_pb_service.d.ts +3 -0
  156. package/google/api/routing_pb_service.js +3 -0
  157. package/google/api/service_pb.d.ts +184 -0
  158. package/google/api/service_pb.js +1400 -0
  159. package/google/api/service_pb_service.d.ts +3 -0
  160. package/google/api/service_pb_service.js +3 -0
  161. package/google/api/source_info_pb.d.ts +28 -0
  162. package/google/api/source_info_pb.js +208 -0
  163. package/google/api/source_info_pb_service.d.ts +3 -0
  164. package/google/api/source_info_pb_service.js +3 -0
  165. package/google/api/system_parameter_pb.d.ts +81 -0
  166. package/google/api/system_parameter_pb.js +630 -0
  167. package/google/api/system_parameter_pb_service.d.ts +3 -0
  168. package/google/api/system_parameter_pb_service.js +3 -0
  169. package/google/api/usage_pb.d.ts +66 -0
  170. package/google/api/usage_pb.js +499 -0
  171. package/google/api/usage_pb_service.d.ts +3 -0
  172. package/google/api/usage_pb_service.js +3 -0
  173. package/google/api/visibility_pb.d.ts +64 -0
  174. package/google/api/visibility_pb.js +546 -0
  175. package/google/api/visibility_pb_service.d.ts +3 -0
  176. package/google/api/visibility_pb_service.js +3 -0
  177. package/meta.client_pb.d.ts +167 -0
  178. package/meta.client_pb.js +1266 -0
  179. package/meta.client_pb_service.d.ts +122 -0
  180. package/meta.client_pb_service.js +183 -0
  181. package/meta.spic_config_pb.d.ts +184 -0
  182. package/meta.spic_config_pb.js +1382 -0
  183. package/meta.spic_config_pb_service.d.ts +122 -0
  184. package/meta.spic_config_pb_service.js +183 -0
  185. package/package.json +1 -1
  186. package/platform.activity_log_pb.d.ts +177 -0
  187. package/platform.activity_log_pb.js +1294 -0
  188. package/platform.activity_log_pb_service.d.ts +82 -0
  189. package/platform.activity_log_pb_service.js +101 -0
  190. package/platform.client_pb.d.ts +350 -0
  191. package/platform.client_pb.js +2663 -0
  192. package/platform.client_pb_service.d.ts +158 -0
  193. package/platform.client_pb_service.js +261 -0
  194. package/platform.group_pb.d.ts +195 -0
  195. package/platform.group_pb.js +1476 -0
  196. package/platform.group_pb_service.d.ts +139 -0
  197. package/platform.group_pb_service.js +221 -0
  198. package/platform.local_account_internal_pb.d.ts +125 -0
  199. package/platform.local_account_internal_pb.js +933 -0
  200. package/platform.local_account_internal_pb_service.d.ts +121 -0
  201. package/platform.local_account_internal_pb_service.js +182 -0
  202. package/platform.local_account_pb.d.ts +446 -0
  203. package/platform.local_account_pb.js +3337 -0
  204. package/platform.local_account_pb_service.d.ts +331 -0
  205. package/platform.local_account_pb_service.js +623 -0
  206. package/platform.local_distribution_pb.d.ts +73 -0
  207. package/platform.local_distribution_pb.js +536 -0
  208. package/platform.local_distribution_pb_service.d.ts +63 -0
  209. package/platform.local_distribution_pb_service.js +61 -0
  210. package/platform.location_pb.d.ts +271 -0
  211. package/platform.location_pb.js +2046 -0
  212. package/platform.location_pb_service.d.ts +139 -0
  213. package/platform.location_pb_service.js +221 -0
  214. package/platform.pagination_pb.d.ts +45 -0
  215. package/platform.pagination_pb.js +276 -0
  216. package/platform.pagination_pb_service.d.ts +3 -0
  217. package/platform.pagination_pb_service.js +3 -0
  218. package/spic.admin_alert_pb.d.ts +91 -0
  219. package/spic.admin_alert_pb.js +666 -0
  220. package/spic.admin_alert_pb_service.d.ts +102 -0
  221. package/spic.admin_alert_pb_service.js +142 -0
  222. package/spic.alarm_pb.d.ts +344 -0
  223. package/spic.alarm_pb.js +2622 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +652 -0
  227. package/spic.asset_pb.js +4669 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +951 -0
  231. package/spic.cabinet_pb.js +6875 -0
  232. package/spic.cabinet_pb_service.d.ts +177 -0
  233. package/spic.cabinet_pb_service.js +301 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,629 @@
1
+ // source: google/api/metric.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_api_label_pb = require('../../google/api/label_pb.js');
25
+ goog.object.extend(proto, google_api_label_pb);
26
+ goog.exportSymbol('proto.google.api.Metric', null, global);
27
+ goog.exportSymbol('proto.google.api.MetricDescriptor', null, global);
28
+ goog.exportSymbol('proto.google.api.MetricDescriptor.MetricKind', null, global);
29
+ goog.exportSymbol('proto.google.api.MetricDescriptor.ValueType', null, global);
30
+ /**
31
+ * Generated by JsPbCodeGenerator.
32
+ * @param {Array=} opt_data Optional initial data array, typically from a
33
+ * server response, or constructed directly in Javascript. The array is used
34
+ * in place and becomes part of the constructed object. It is not cloned.
35
+ * If no data is provided, the constructed object will be empty, but still
36
+ * valid.
37
+ * @extends {jspb.Message}
38
+ * @constructor
39
+ */
40
+ proto.google.api.MetricDescriptor = function(opt_data) {
41
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MetricDescriptor.repeatedFields_, null);
42
+ };
43
+ goog.inherits(proto.google.api.MetricDescriptor, jspb.Message);
44
+ if (goog.DEBUG && !COMPILED) {
45
+ /**
46
+ * @public
47
+ * @override
48
+ */
49
+ proto.google.api.MetricDescriptor.displayName = 'proto.google.api.MetricDescriptor';
50
+ }
51
+ /**
52
+ * Generated by JsPbCodeGenerator.
53
+ * @param {Array=} opt_data Optional initial data array, typically from a
54
+ * server response, or constructed directly in Javascript. The array is used
55
+ * in place and becomes part of the constructed object. It is not cloned.
56
+ * If no data is provided, the constructed object will be empty, but still
57
+ * valid.
58
+ * @extends {jspb.Message}
59
+ * @constructor
60
+ */
61
+ proto.google.api.Metric = function(opt_data) {
62
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
63
+ };
64
+ goog.inherits(proto.google.api.Metric, jspb.Message);
65
+ if (goog.DEBUG && !COMPILED) {
66
+ /**
67
+ * @public
68
+ * @override
69
+ */
70
+ proto.google.api.Metric.displayName = 'proto.google.api.Metric';
71
+ }
72
+
73
+ /**
74
+ * List of repeated fields within this message type.
75
+ * @private {!Array<number>}
76
+ * @const
77
+ */
78
+ proto.google.api.MetricDescriptor.repeatedFields_ = [2];
79
+
80
+
81
+
82
+ if (jspb.Message.GENERATE_TO_OBJECT) {
83
+ /**
84
+ * Creates an object representation of this proto.
85
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
86
+ * Optional fields that are not set will be set to undefined.
87
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
88
+ * For the list of reserved names please see:
89
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
90
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
91
+ * JSPB instance for transitional soy proto support:
92
+ * http://goto/soy-param-migration
93
+ * @return {!Object}
94
+ */
95
+ proto.google.api.MetricDescriptor.prototype.toObject = function(opt_includeInstance) {
96
+ return proto.google.api.MetricDescriptor.toObject(opt_includeInstance, this);
97
+ };
98
+
99
+
100
+ /**
101
+ * Static version of the {@see toObject} method.
102
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
103
+ * the JSPB instance for transitional soy proto support:
104
+ * http://goto/soy-param-migration
105
+ * @param {!proto.google.api.MetricDescriptor} msg The msg instance to transform.
106
+ * @return {!Object}
107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
108
+ */
109
+ proto.google.api.MetricDescriptor.toObject = function(includeInstance, msg) {
110
+ var f, obj = {
111
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
112
+ type: jspb.Message.getFieldWithDefault(msg, 8, ""),
113
+ labelsList: jspb.Message.toObjectList(msg.getLabelsList(),
114
+ google_api_label_pb.LabelDescriptor.toObject, includeInstance),
115
+ metricKind: jspb.Message.getFieldWithDefault(msg, 3, 0),
116
+ valueType: jspb.Message.getFieldWithDefault(msg, 4, 0),
117
+ unit: jspb.Message.getFieldWithDefault(msg, 5, ""),
118
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
119
+ displayName: jspb.Message.getFieldWithDefault(msg, 7, "")
120
+ };
121
+
122
+ if (includeInstance) {
123
+ obj.$jspbMessageInstance = msg;
124
+ }
125
+ return obj;
126
+ };
127
+ }
128
+
129
+
130
+ /**
131
+ * Deserializes binary data (in protobuf wire format).
132
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
133
+ * @return {!proto.google.api.MetricDescriptor}
134
+ */
135
+ proto.google.api.MetricDescriptor.deserializeBinary = function(bytes) {
136
+ var reader = new jspb.BinaryReader(bytes);
137
+ var msg = new proto.google.api.MetricDescriptor;
138
+ return proto.google.api.MetricDescriptor.deserializeBinaryFromReader(msg, reader);
139
+ };
140
+
141
+
142
+ /**
143
+ * Deserializes binary data (in protobuf wire format) from the
144
+ * given reader into the given message object.
145
+ * @param {!proto.google.api.MetricDescriptor} msg The message object to deserialize into.
146
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
147
+ * @return {!proto.google.api.MetricDescriptor}
148
+ */
149
+ proto.google.api.MetricDescriptor.deserializeBinaryFromReader = function(msg, reader) {
150
+ while (reader.nextField()) {
151
+ if (reader.isEndGroup()) {
152
+ break;
153
+ }
154
+ var field = reader.getFieldNumber();
155
+ switch (field) {
156
+ case 1:
157
+ var value = /** @type {string} */ (reader.readString());
158
+ msg.setName(value);
159
+ break;
160
+ case 8:
161
+ var value = /** @type {string} */ (reader.readString());
162
+ msg.setType(value);
163
+ break;
164
+ case 2:
165
+ var value = new google_api_label_pb.LabelDescriptor;
166
+ reader.readMessage(value,google_api_label_pb.LabelDescriptor.deserializeBinaryFromReader);
167
+ msg.addLabels(value);
168
+ break;
169
+ case 3:
170
+ var value = /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (reader.readEnum());
171
+ msg.setMetricKind(value);
172
+ break;
173
+ case 4:
174
+ var value = /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (reader.readEnum());
175
+ msg.setValueType(value);
176
+ break;
177
+ case 5:
178
+ var value = /** @type {string} */ (reader.readString());
179
+ msg.setUnit(value);
180
+ break;
181
+ case 6:
182
+ var value = /** @type {string} */ (reader.readString());
183
+ msg.setDescription(value);
184
+ break;
185
+ case 7:
186
+ var value = /** @type {string} */ (reader.readString());
187
+ msg.setDisplayName(value);
188
+ break;
189
+ default:
190
+ reader.skipField();
191
+ break;
192
+ }
193
+ }
194
+ return msg;
195
+ };
196
+
197
+
198
+ /**
199
+ * Serializes the message to binary data (in protobuf wire format).
200
+ * @return {!Uint8Array}
201
+ */
202
+ proto.google.api.MetricDescriptor.prototype.serializeBinary = function() {
203
+ var writer = new jspb.BinaryWriter();
204
+ proto.google.api.MetricDescriptor.serializeBinaryToWriter(this, writer);
205
+ return writer.getResultBuffer();
206
+ };
207
+
208
+
209
+ /**
210
+ * Serializes the given message to binary data (in protobuf wire
211
+ * format), writing to the given BinaryWriter.
212
+ * @param {!proto.google.api.MetricDescriptor} message
213
+ * @param {!jspb.BinaryWriter} writer
214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
215
+ */
216
+ proto.google.api.MetricDescriptor.serializeBinaryToWriter = function(message, writer) {
217
+ var f = undefined;
218
+ f = message.getName();
219
+ if (f.length > 0) {
220
+ writer.writeString(
221
+ 1,
222
+ f
223
+ );
224
+ }
225
+ f = message.getType();
226
+ if (f.length > 0) {
227
+ writer.writeString(
228
+ 8,
229
+ f
230
+ );
231
+ }
232
+ f = message.getLabelsList();
233
+ if (f.length > 0) {
234
+ writer.writeRepeatedMessage(
235
+ 2,
236
+ f,
237
+ google_api_label_pb.LabelDescriptor.serializeBinaryToWriter
238
+ );
239
+ }
240
+ f = message.getMetricKind();
241
+ if (f !== 0.0) {
242
+ writer.writeEnum(
243
+ 3,
244
+ f
245
+ );
246
+ }
247
+ f = message.getValueType();
248
+ if (f !== 0.0) {
249
+ writer.writeEnum(
250
+ 4,
251
+ f
252
+ );
253
+ }
254
+ f = message.getUnit();
255
+ if (f.length > 0) {
256
+ writer.writeString(
257
+ 5,
258
+ f
259
+ );
260
+ }
261
+ f = message.getDescription();
262
+ if (f.length > 0) {
263
+ writer.writeString(
264
+ 6,
265
+ f
266
+ );
267
+ }
268
+ f = message.getDisplayName();
269
+ if (f.length > 0) {
270
+ writer.writeString(
271
+ 7,
272
+ f
273
+ );
274
+ }
275
+ };
276
+
277
+
278
+ /**
279
+ * @enum {number}
280
+ */
281
+ proto.google.api.MetricDescriptor.MetricKind = {
282
+ METRIC_KIND_UNSPECIFIED: 0,
283
+ GAUGE: 1,
284
+ DELTA: 2,
285
+ CUMULATIVE: 3
286
+ };
287
+
288
+ /**
289
+ * @enum {number}
290
+ */
291
+ proto.google.api.MetricDescriptor.ValueType = {
292
+ VALUE_TYPE_UNSPECIFIED: 0,
293
+ BOOL: 1,
294
+ INT64: 2,
295
+ DOUBLE: 3,
296
+ STRING: 4,
297
+ DISTRIBUTION: 5,
298
+ MONEY: 6
299
+ };
300
+
301
+ /**
302
+ * optional string name = 1;
303
+ * @return {string}
304
+ */
305
+ proto.google.api.MetricDescriptor.prototype.getName = function() {
306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
307
+ };
308
+
309
+
310
+ /**
311
+ * @param {string} value
312
+ * @return {!proto.google.api.MetricDescriptor} returns this
313
+ */
314
+ proto.google.api.MetricDescriptor.prototype.setName = function(value) {
315
+ return jspb.Message.setProto3StringField(this, 1, value);
316
+ };
317
+
318
+
319
+ /**
320
+ * optional string type = 8;
321
+ * @return {string}
322
+ */
323
+ proto.google.api.MetricDescriptor.prototype.getType = function() {
324
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
325
+ };
326
+
327
+
328
+ /**
329
+ * @param {string} value
330
+ * @return {!proto.google.api.MetricDescriptor} returns this
331
+ */
332
+ proto.google.api.MetricDescriptor.prototype.setType = function(value) {
333
+ return jspb.Message.setProto3StringField(this, 8, value);
334
+ };
335
+
336
+
337
+ /**
338
+ * repeated LabelDescriptor labels = 2;
339
+ * @return {!Array<!proto.google.api.LabelDescriptor>}
340
+ */
341
+ proto.google.api.MetricDescriptor.prototype.getLabelsList = function() {
342
+ return /** @type{!Array<!proto.google.api.LabelDescriptor>} */ (
343
+ jspb.Message.getRepeatedWrapperField(this, google_api_label_pb.LabelDescriptor, 2));
344
+ };
345
+
346
+
347
+ /**
348
+ * @param {!Array<!proto.google.api.LabelDescriptor>} value
349
+ * @return {!proto.google.api.MetricDescriptor} returns this
350
+ */
351
+ proto.google.api.MetricDescriptor.prototype.setLabelsList = function(value) {
352
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
353
+ };
354
+
355
+
356
+ /**
357
+ * @param {!proto.google.api.LabelDescriptor=} opt_value
358
+ * @param {number=} opt_index
359
+ * @return {!proto.google.api.LabelDescriptor}
360
+ */
361
+ proto.google.api.MetricDescriptor.prototype.addLabels = function(opt_value, opt_index) {
362
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.LabelDescriptor, opt_index);
363
+ };
364
+
365
+
366
+ /**
367
+ * Clears the list making it empty but non-null.
368
+ * @return {!proto.google.api.MetricDescriptor} returns this
369
+ */
370
+ proto.google.api.MetricDescriptor.prototype.clearLabelsList = function() {
371
+ return this.setLabelsList([]);
372
+ };
373
+
374
+
375
+ /**
376
+ * optional MetricKind metric_kind = 3;
377
+ * @return {!proto.google.api.MetricDescriptor.MetricKind}
378
+ */
379
+ proto.google.api.MetricDescriptor.prototype.getMetricKind = function() {
380
+ return /** @type {!proto.google.api.MetricDescriptor.MetricKind} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
381
+ };
382
+
383
+
384
+ /**
385
+ * @param {!proto.google.api.MetricDescriptor.MetricKind} value
386
+ * @return {!proto.google.api.MetricDescriptor} returns this
387
+ */
388
+ proto.google.api.MetricDescriptor.prototype.setMetricKind = function(value) {
389
+ return jspb.Message.setProto3EnumField(this, 3, value);
390
+ };
391
+
392
+
393
+ /**
394
+ * optional ValueType value_type = 4;
395
+ * @return {!proto.google.api.MetricDescriptor.ValueType}
396
+ */
397
+ proto.google.api.MetricDescriptor.prototype.getValueType = function() {
398
+ return /** @type {!proto.google.api.MetricDescriptor.ValueType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
399
+ };
400
+
401
+
402
+ /**
403
+ * @param {!proto.google.api.MetricDescriptor.ValueType} value
404
+ * @return {!proto.google.api.MetricDescriptor} returns this
405
+ */
406
+ proto.google.api.MetricDescriptor.prototype.setValueType = function(value) {
407
+ return jspb.Message.setProto3EnumField(this, 4, value);
408
+ };
409
+
410
+
411
+ /**
412
+ * optional string unit = 5;
413
+ * @return {string}
414
+ */
415
+ proto.google.api.MetricDescriptor.prototype.getUnit = function() {
416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
417
+ };
418
+
419
+
420
+ /**
421
+ * @param {string} value
422
+ * @return {!proto.google.api.MetricDescriptor} returns this
423
+ */
424
+ proto.google.api.MetricDescriptor.prototype.setUnit = function(value) {
425
+ return jspb.Message.setProto3StringField(this, 5, value);
426
+ };
427
+
428
+
429
+ /**
430
+ * optional string description = 6;
431
+ * @return {string}
432
+ */
433
+ proto.google.api.MetricDescriptor.prototype.getDescription = function() {
434
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
435
+ };
436
+
437
+
438
+ /**
439
+ * @param {string} value
440
+ * @return {!proto.google.api.MetricDescriptor} returns this
441
+ */
442
+ proto.google.api.MetricDescriptor.prototype.setDescription = function(value) {
443
+ return jspb.Message.setProto3StringField(this, 6, value);
444
+ };
445
+
446
+
447
+ /**
448
+ * optional string display_name = 7;
449
+ * @return {string}
450
+ */
451
+ proto.google.api.MetricDescriptor.prototype.getDisplayName = function() {
452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
453
+ };
454
+
455
+
456
+ /**
457
+ * @param {string} value
458
+ * @return {!proto.google.api.MetricDescriptor} returns this
459
+ */
460
+ proto.google.api.MetricDescriptor.prototype.setDisplayName = function(value) {
461
+ return jspb.Message.setProto3StringField(this, 7, value);
462
+ };
463
+
464
+
465
+
466
+
467
+
468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
469
+ /**
470
+ * Creates an object representation of this proto.
471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
472
+ * Optional fields that are not set will be set to undefined.
473
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
474
+ * For the list of reserved names please see:
475
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
476
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
477
+ * JSPB instance for transitional soy proto support:
478
+ * http://goto/soy-param-migration
479
+ * @return {!Object}
480
+ */
481
+ proto.google.api.Metric.prototype.toObject = function(opt_includeInstance) {
482
+ return proto.google.api.Metric.toObject(opt_includeInstance, this);
483
+ };
484
+
485
+
486
+ /**
487
+ * Static version of the {@see toObject} method.
488
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
489
+ * the JSPB instance for transitional soy proto support:
490
+ * http://goto/soy-param-migration
491
+ * @param {!proto.google.api.Metric} msg The msg instance to transform.
492
+ * @return {!Object}
493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
494
+ */
495
+ proto.google.api.Metric.toObject = function(includeInstance, msg) {
496
+ var f, obj = {
497
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
498
+ labelsMap: (f = msg.getLabelsMap()) ? f.toObject(includeInstance, undefined) : []
499
+ };
500
+
501
+ if (includeInstance) {
502
+ obj.$jspbMessageInstance = msg;
503
+ }
504
+ return obj;
505
+ };
506
+ }
507
+
508
+
509
+ /**
510
+ * Deserializes binary data (in protobuf wire format).
511
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
512
+ * @return {!proto.google.api.Metric}
513
+ */
514
+ proto.google.api.Metric.deserializeBinary = function(bytes) {
515
+ var reader = new jspb.BinaryReader(bytes);
516
+ var msg = new proto.google.api.Metric;
517
+ return proto.google.api.Metric.deserializeBinaryFromReader(msg, reader);
518
+ };
519
+
520
+
521
+ /**
522
+ * Deserializes binary data (in protobuf wire format) from the
523
+ * given reader into the given message object.
524
+ * @param {!proto.google.api.Metric} msg The message object to deserialize into.
525
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
526
+ * @return {!proto.google.api.Metric}
527
+ */
528
+ proto.google.api.Metric.deserializeBinaryFromReader = function(msg, reader) {
529
+ while (reader.nextField()) {
530
+ if (reader.isEndGroup()) {
531
+ break;
532
+ }
533
+ var field = reader.getFieldNumber();
534
+ switch (field) {
535
+ case 3:
536
+ var value = /** @type {string} */ (reader.readString());
537
+ msg.setType(value);
538
+ break;
539
+ case 2:
540
+ var value = msg.getLabelsMap();
541
+ reader.readMessage(value, function(message, reader) {
542
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
543
+ });
544
+ break;
545
+ default:
546
+ reader.skipField();
547
+ break;
548
+ }
549
+ }
550
+ return msg;
551
+ };
552
+
553
+
554
+ /**
555
+ * Serializes the message to binary data (in protobuf wire format).
556
+ * @return {!Uint8Array}
557
+ */
558
+ proto.google.api.Metric.prototype.serializeBinary = function() {
559
+ var writer = new jspb.BinaryWriter();
560
+ proto.google.api.Metric.serializeBinaryToWriter(this, writer);
561
+ return writer.getResultBuffer();
562
+ };
563
+
564
+
565
+ /**
566
+ * Serializes the given message to binary data (in protobuf wire
567
+ * format), writing to the given BinaryWriter.
568
+ * @param {!proto.google.api.Metric} message
569
+ * @param {!jspb.BinaryWriter} writer
570
+ * @suppress {unusedLocalVariables} f is only used for nested messages
571
+ */
572
+ proto.google.api.Metric.serializeBinaryToWriter = function(message, writer) {
573
+ var f = undefined;
574
+ f = message.getType();
575
+ if (f.length > 0) {
576
+ writer.writeString(
577
+ 3,
578
+ f
579
+ );
580
+ }
581
+ f = message.getLabelsMap(true);
582
+ if (f && f.getLength() > 0) {
583
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
584
+ }
585
+ };
586
+
587
+
588
+ /**
589
+ * optional string type = 3;
590
+ * @return {string}
591
+ */
592
+ proto.google.api.Metric.prototype.getType = function() {
593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
594
+ };
595
+
596
+
597
+ /**
598
+ * @param {string} value
599
+ * @return {!proto.google.api.Metric} returns this
600
+ */
601
+ proto.google.api.Metric.prototype.setType = function(value) {
602
+ return jspb.Message.setProto3StringField(this, 3, value);
603
+ };
604
+
605
+
606
+ /**
607
+ * map<string, string> labels = 2;
608
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
609
+ * empty, instead returning `undefined`
610
+ * @return {!jspb.Map<string,string>}
611
+ */
612
+ proto.google.api.Metric.prototype.getLabelsMap = function(opt_noLazyCreate) {
613
+ return /** @type {!jspb.Map<string,string>} */ (
614
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
615
+ null));
616
+ };
617
+
618
+
619
+ /**
620
+ * Clears values from the map. The map will be non-null.
621
+ * @return {!proto.google.api.Metric} returns this
622
+ */
623
+ proto.google.api.Metric.prototype.clearLabelsMap = function() {
624
+ this.getLabelsMap().clear();
625
+ return this;
626
+ };
627
+
628
+
629
+ goog.object.extend(exports, proto.google.api);
@@ -0,0 +1,3 @@
1
+ // package: google.api
2
+ // file: google/api/metric.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: google.api
2
+ // file: google/api/metric.proto
3
+