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

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 +791 -0
  231. package/spic.cabinet_pb.js +5733 -0
  232. package/spic.cabinet_pb_service.d.ts +158 -0
  233. package/spic.cabinet_pb_service.js +261 -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,873 @@
1
+ // source: google/api/quota.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_annotations_pb = require('../../google/api/annotations_pb.js');
25
+ goog.object.extend(proto, google_api_annotations_pb);
26
+ goog.exportSymbol('proto.google.api.MetricRule', null, global);
27
+ goog.exportSymbol('proto.google.api.Quota', null, global);
28
+ goog.exportSymbol('proto.google.api.QuotaLimit', null, global);
29
+ /**
30
+ * Generated by JsPbCodeGenerator.
31
+ * @param {Array=} opt_data Optional initial data array, typically from a
32
+ * server response, or constructed directly in Javascript. The array is used
33
+ * in place and becomes part of the constructed object. It is not cloned.
34
+ * If no data is provided, the constructed object will be empty, but still
35
+ * valid.
36
+ * @extends {jspb.Message}
37
+ * @constructor
38
+ */
39
+ proto.google.api.Quota = function(opt_data) {
40
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Quota.repeatedFields_, null);
41
+ };
42
+ goog.inherits(proto.google.api.Quota, jspb.Message);
43
+ if (goog.DEBUG && !COMPILED) {
44
+ /**
45
+ * @public
46
+ * @override
47
+ */
48
+ proto.google.api.Quota.displayName = 'proto.google.api.Quota';
49
+ }
50
+ /**
51
+ * Generated by JsPbCodeGenerator.
52
+ * @param {Array=} opt_data Optional initial data array, typically from a
53
+ * server response, or constructed directly in Javascript. The array is used
54
+ * in place and becomes part of the constructed object. It is not cloned.
55
+ * If no data is provided, the constructed object will be empty, but still
56
+ * valid.
57
+ * @extends {jspb.Message}
58
+ * @constructor
59
+ */
60
+ proto.google.api.MetricRule = function(opt_data) {
61
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
62
+ };
63
+ goog.inherits(proto.google.api.MetricRule, jspb.Message);
64
+ if (goog.DEBUG && !COMPILED) {
65
+ /**
66
+ * @public
67
+ * @override
68
+ */
69
+ proto.google.api.MetricRule.displayName = 'proto.google.api.MetricRule';
70
+ }
71
+ /**
72
+ * Generated by JsPbCodeGenerator.
73
+ * @param {Array=} opt_data Optional initial data array, typically from a
74
+ * server response, or constructed directly in Javascript. The array is used
75
+ * in place and becomes part of the constructed object. It is not cloned.
76
+ * If no data is provided, the constructed object will be empty, but still
77
+ * valid.
78
+ * @extends {jspb.Message}
79
+ * @constructor
80
+ */
81
+ proto.google.api.QuotaLimit = function(opt_data) {
82
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
83
+ };
84
+ goog.inherits(proto.google.api.QuotaLimit, jspb.Message);
85
+ if (goog.DEBUG && !COMPILED) {
86
+ /**
87
+ * @public
88
+ * @override
89
+ */
90
+ proto.google.api.QuotaLimit.displayName = 'proto.google.api.QuotaLimit';
91
+ }
92
+
93
+ /**
94
+ * List of repeated fields within this message type.
95
+ * @private {!Array<number>}
96
+ * @const
97
+ */
98
+ proto.google.api.Quota.repeatedFields_ = [3,4];
99
+
100
+
101
+
102
+ if (jspb.Message.GENERATE_TO_OBJECT) {
103
+ /**
104
+ * Creates an object representation of this proto.
105
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
106
+ * Optional fields that are not set will be set to undefined.
107
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
108
+ * For the list of reserved names please see:
109
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
110
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
111
+ * JSPB instance for transitional soy proto support:
112
+ * http://goto/soy-param-migration
113
+ * @return {!Object}
114
+ */
115
+ proto.google.api.Quota.prototype.toObject = function(opt_includeInstance) {
116
+ return proto.google.api.Quota.toObject(opt_includeInstance, this);
117
+ };
118
+
119
+
120
+ /**
121
+ * Static version of the {@see toObject} method.
122
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
123
+ * the JSPB instance for transitional soy proto support:
124
+ * http://goto/soy-param-migration
125
+ * @param {!proto.google.api.Quota} msg The msg instance to transform.
126
+ * @return {!Object}
127
+ * @suppress {unusedLocalVariables} f is only used for nested messages
128
+ */
129
+ proto.google.api.Quota.toObject = function(includeInstance, msg) {
130
+ var f, obj = {
131
+ limitsList: jspb.Message.toObjectList(msg.getLimitsList(),
132
+ proto.google.api.QuotaLimit.toObject, includeInstance),
133
+ metricRulesList: jspb.Message.toObjectList(msg.getMetricRulesList(),
134
+ proto.google.api.MetricRule.toObject, includeInstance)
135
+ };
136
+
137
+ if (includeInstance) {
138
+ obj.$jspbMessageInstance = msg;
139
+ }
140
+ return obj;
141
+ };
142
+ }
143
+
144
+
145
+ /**
146
+ * Deserializes binary data (in protobuf wire format).
147
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
148
+ * @return {!proto.google.api.Quota}
149
+ */
150
+ proto.google.api.Quota.deserializeBinary = function(bytes) {
151
+ var reader = new jspb.BinaryReader(bytes);
152
+ var msg = new proto.google.api.Quota;
153
+ return proto.google.api.Quota.deserializeBinaryFromReader(msg, reader);
154
+ };
155
+
156
+
157
+ /**
158
+ * Deserializes binary data (in protobuf wire format) from the
159
+ * given reader into the given message object.
160
+ * @param {!proto.google.api.Quota} msg The message object to deserialize into.
161
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
162
+ * @return {!proto.google.api.Quota}
163
+ */
164
+ proto.google.api.Quota.deserializeBinaryFromReader = function(msg, reader) {
165
+ while (reader.nextField()) {
166
+ if (reader.isEndGroup()) {
167
+ break;
168
+ }
169
+ var field = reader.getFieldNumber();
170
+ switch (field) {
171
+ case 3:
172
+ var value = new proto.google.api.QuotaLimit;
173
+ reader.readMessage(value,proto.google.api.QuotaLimit.deserializeBinaryFromReader);
174
+ msg.addLimits(value);
175
+ break;
176
+ case 4:
177
+ var value = new proto.google.api.MetricRule;
178
+ reader.readMessage(value,proto.google.api.MetricRule.deserializeBinaryFromReader);
179
+ msg.addMetricRules(value);
180
+ break;
181
+ default:
182
+ reader.skipField();
183
+ break;
184
+ }
185
+ }
186
+ return msg;
187
+ };
188
+
189
+
190
+ /**
191
+ * Serializes the message to binary data (in protobuf wire format).
192
+ * @return {!Uint8Array}
193
+ */
194
+ proto.google.api.Quota.prototype.serializeBinary = function() {
195
+ var writer = new jspb.BinaryWriter();
196
+ proto.google.api.Quota.serializeBinaryToWriter(this, writer);
197
+ return writer.getResultBuffer();
198
+ };
199
+
200
+
201
+ /**
202
+ * Serializes the given message to binary data (in protobuf wire
203
+ * format), writing to the given BinaryWriter.
204
+ * @param {!proto.google.api.Quota} message
205
+ * @param {!jspb.BinaryWriter} writer
206
+ * @suppress {unusedLocalVariables} f is only used for nested messages
207
+ */
208
+ proto.google.api.Quota.serializeBinaryToWriter = function(message, writer) {
209
+ var f = undefined;
210
+ f = message.getLimitsList();
211
+ if (f.length > 0) {
212
+ writer.writeRepeatedMessage(
213
+ 3,
214
+ f,
215
+ proto.google.api.QuotaLimit.serializeBinaryToWriter
216
+ );
217
+ }
218
+ f = message.getMetricRulesList();
219
+ if (f.length > 0) {
220
+ writer.writeRepeatedMessage(
221
+ 4,
222
+ f,
223
+ proto.google.api.MetricRule.serializeBinaryToWriter
224
+ );
225
+ }
226
+ };
227
+
228
+
229
+ /**
230
+ * repeated QuotaLimit limits = 3;
231
+ * @return {!Array<!proto.google.api.QuotaLimit>}
232
+ */
233
+ proto.google.api.Quota.prototype.getLimitsList = function() {
234
+ return /** @type{!Array<!proto.google.api.QuotaLimit>} */ (
235
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.QuotaLimit, 3));
236
+ };
237
+
238
+
239
+ /**
240
+ * @param {!Array<!proto.google.api.QuotaLimit>} value
241
+ * @return {!proto.google.api.Quota} returns this
242
+ */
243
+ proto.google.api.Quota.prototype.setLimitsList = function(value) {
244
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
245
+ };
246
+
247
+
248
+ /**
249
+ * @param {!proto.google.api.QuotaLimit=} opt_value
250
+ * @param {number=} opt_index
251
+ * @return {!proto.google.api.QuotaLimit}
252
+ */
253
+ proto.google.api.Quota.prototype.addLimits = function(opt_value, opt_index) {
254
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.api.QuotaLimit, opt_index);
255
+ };
256
+
257
+
258
+ /**
259
+ * Clears the list making it empty but non-null.
260
+ * @return {!proto.google.api.Quota} returns this
261
+ */
262
+ proto.google.api.Quota.prototype.clearLimitsList = function() {
263
+ return this.setLimitsList([]);
264
+ };
265
+
266
+
267
+ /**
268
+ * repeated MetricRule metric_rules = 4;
269
+ * @return {!Array<!proto.google.api.MetricRule>}
270
+ */
271
+ proto.google.api.Quota.prototype.getMetricRulesList = function() {
272
+ return /** @type{!Array<!proto.google.api.MetricRule>} */ (
273
+ jspb.Message.getRepeatedWrapperField(this, proto.google.api.MetricRule, 4));
274
+ };
275
+
276
+
277
+ /**
278
+ * @param {!Array<!proto.google.api.MetricRule>} value
279
+ * @return {!proto.google.api.Quota} returns this
280
+ */
281
+ proto.google.api.Quota.prototype.setMetricRulesList = function(value) {
282
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
283
+ };
284
+
285
+
286
+ /**
287
+ * @param {!proto.google.api.MetricRule=} opt_value
288
+ * @param {number=} opt_index
289
+ * @return {!proto.google.api.MetricRule}
290
+ */
291
+ proto.google.api.Quota.prototype.addMetricRules = function(opt_value, opt_index) {
292
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.api.MetricRule, opt_index);
293
+ };
294
+
295
+
296
+ /**
297
+ * Clears the list making it empty but non-null.
298
+ * @return {!proto.google.api.Quota} returns this
299
+ */
300
+ proto.google.api.Quota.prototype.clearMetricRulesList = function() {
301
+ return this.setMetricRulesList([]);
302
+ };
303
+
304
+
305
+
306
+
307
+
308
+ if (jspb.Message.GENERATE_TO_OBJECT) {
309
+ /**
310
+ * Creates an object representation of this proto.
311
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
312
+ * Optional fields that are not set will be set to undefined.
313
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
314
+ * For the list of reserved names please see:
315
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
316
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
317
+ * JSPB instance for transitional soy proto support:
318
+ * http://goto/soy-param-migration
319
+ * @return {!Object}
320
+ */
321
+ proto.google.api.MetricRule.prototype.toObject = function(opt_includeInstance) {
322
+ return proto.google.api.MetricRule.toObject(opt_includeInstance, this);
323
+ };
324
+
325
+
326
+ /**
327
+ * Static version of the {@see toObject} method.
328
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
329
+ * the JSPB instance for transitional soy proto support:
330
+ * http://goto/soy-param-migration
331
+ * @param {!proto.google.api.MetricRule} msg The msg instance to transform.
332
+ * @return {!Object}
333
+ * @suppress {unusedLocalVariables} f is only used for nested messages
334
+ */
335
+ proto.google.api.MetricRule.toObject = function(includeInstance, msg) {
336
+ var f, obj = {
337
+ selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
338
+ metricCostsMap: (f = msg.getMetricCostsMap()) ? f.toObject(includeInstance, undefined) : []
339
+ };
340
+
341
+ if (includeInstance) {
342
+ obj.$jspbMessageInstance = msg;
343
+ }
344
+ return obj;
345
+ };
346
+ }
347
+
348
+
349
+ /**
350
+ * Deserializes binary data (in protobuf wire format).
351
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
352
+ * @return {!proto.google.api.MetricRule}
353
+ */
354
+ proto.google.api.MetricRule.deserializeBinary = function(bytes) {
355
+ var reader = new jspb.BinaryReader(bytes);
356
+ var msg = new proto.google.api.MetricRule;
357
+ return proto.google.api.MetricRule.deserializeBinaryFromReader(msg, reader);
358
+ };
359
+
360
+
361
+ /**
362
+ * Deserializes binary data (in protobuf wire format) from the
363
+ * given reader into the given message object.
364
+ * @param {!proto.google.api.MetricRule} msg The message object to deserialize into.
365
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
366
+ * @return {!proto.google.api.MetricRule}
367
+ */
368
+ proto.google.api.MetricRule.deserializeBinaryFromReader = function(msg, reader) {
369
+ while (reader.nextField()) {
370
+ if (reader.isEndGroup()) {
371
+ break;
372
+ }
373
+ var field = reader.getFieldNumber();
374
+ switch (field) {
375
+ case 1:
376
+ var value = /** @type {string} */ (reader.readString());
377
+ msg.setSelector(value);
378
+ break;
379
+ case 2:
380
+ var value = msg.getMetricCostsMap();
381
+ reader.readMessage(value, function(message, reader) {
382
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0);
383
+ });
384
+ break;
385
+ default:
386
+ reader.skipField();
387
+ break;
388
+ }
389
+ }
390
+ return msg;
391
+ };
392
+
393
+
394
+ /**
395
+ * Serializes the message to binary data (in protobuf wire format).
396
+ * @return {!Uint8Array}
397
+ */
398
+ proto.google.api.MetricRule.prototype.serializeBinary = function() {
399
+ var writer = new jspb.BinaryWriter();
400
+ proto.google.api.MetricRule.serializeBinaryToWriter(this, writer);
401
+ return writer.getResultBuffer();
402
+ };
403
+
404
+
405
+ /**
406
+ * Serializes the given message to binary data (in protobuf wire
407
+ * format), writing to the given BinaryWriter.
408
+ * @param {!proto.google.api.MetricRule} message
409
+ * @param {!jspb.BinaryWriter} writer
410
+ * @suppress {unusedLocalVariables} f is only used for nested messages
411
+ */
412
+ proto.google.api.MetricRule.serializeBinaryToWriter = function(message, writer) {
413
+ var f = undefined;
414
+ f = message.getSelector();
415
+ if (f.length > 0) {
416
+ writer.writeString(
417
+ 1,
418
+ f
419
+ );
420
+ }
421
+ f = message.getMetricCostsMap(true);
422
+ if (f && f.getLength() > 0) {
423
+ f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64);
424
+ }
425
+ };
426
+
427
+
428
+ /**
429
+ * optional string selector = 1;
430
+ * @return {string}
431
+ */
432
+ proto.google.api.MetricRule.prototype.getSelector = function() {
433
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
434
+ };
435
+
436
+
437
+ /**
438
+ * @param {string} value
439
+ * @return {!proto.google.api.MetricRule} returns this
440
+ */
441
+ proto.google.api.MetricRule.prototype.setSelector = function(value) {
442
+ return jspb.Message.setProto3StringField(this, 1, value);
443
+ };
444
+
445
+
446
+ /**
447
+ * map<string, int64> metric_costs = 2;
448
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
449
+ * empty, instead returning `undefined`
450
+ * @return {!jspb.Map<string,number>}
451
+ */
452
+ proto.google.api.MetricRule.prototype.getMetricCostsMap = function(opt_noLazyCreate) {
453
+ return /** @type {!jspb.Map<string,number>} */ (
454
+ jspb.Message.getMapField(this, 2, opt_noLazyCreate,
455
+ null));
456
+ };
457
+
458
+
459
+ /**
460
+ * Clears values from the map. The map will be non-null.
461
+ * @return {!proto.google.api.MetricRule} returns this
462
+ */
463
+ proto.google.api.MetricRule.prototype.clearMetricCostsMap = function() {
464
+ this.getMetricCostsMap().clear();
465
+ return this;
466
+ };
467
+
468
+
469
+
470
+
471
+
472
+ if (jspb.Message.GENERATE_TO_OBJECT) {
473
+ /**
474
+ * Creates an object representation of this proto.
475
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
476
+ * Optional fields that are not set will be set to undefined.
477
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
478
+ * For the list of reserved names please see:
479
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
480
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
481
+ * JSPB instance for transitional soy proto support:
482
+ * http://goto/soy-param-migration
483
+ * @return {!Object}
484
+ */
485
+ proto.google.api.QuotaLimit.prototype.toObject = function(opt_includeInstance) {
486
+ return proto.google.api.QuotaLimit.toObject(opt_includeInstance, this);
487
+ };
488
+
489
+
490
+ /**
491
+ * Static version of the {@see toObject} method.
492
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
493
+ * the JSPB instance for transitional soy proto support:
494
+ * http://goto/soy-param-migration
495
+ * @param {!proto.google.api.QuotaLimit} msg The msg instance to transform.
496
+ * @return {!Object}
497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
498
+ */
499
+ proto.google.api.QuotaLimit.toObject = function(includeInstance, msg) {
500
+ var f, obj = {
501
+ name: jspb.Message.getFieldWithDefault(msg, 6, ""),
502
+ description: jspb.Message.getFieldWithDefault(msg, 2, ""),
503
+ defaultLimit: jspb.Message.getFieldWithDefault(msg, 3, 0),
504
+ maxLimit: jspb.Message.getFieldWithDefault(msg, 4, 0),
505
+ freeTier: jspb.Message.getFieldWithDefault(msg, 7, 0),
506
+ duration: jspb.Message.getFieldWithDefault(msg, 5, ""),
507
+ metric: jspb.Message.getFieldWithDefault(msg, 8, ""),
508
+ unit: jspb.Message.getFieldWithDefault(msg, 9, ""),
509
+ valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, undefined) : [],
510
+ displayName: jspb.Message.getFieldWithDefault(msg, 12, "")
511
+ };
512
+
513
+ if (includeInstance) {
514
+ obj.$jspbMessageInstance = msg;
515
+ }
516
+ return obj;
517
+ };
518
+ }
519
+
520
+
521
+ /**
522
+ * Deserializes binary data (in protobuf wire format).
523
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
524
+ * @return {!proto.google.api.QuotaLimit}
525
+ */
526
+ proto.google.api.QuotaLimit.deserializeBinary = function(bytes) {
527
+ var reader = new jspb.BinaryReader(bytes);
528
+ var msg = new proto.google.api.QuotaLimit;
529
+ return proto.google.api.QuotaLimit.deserializeBinaryFromReader(msg, reader);
530
+ };
531
+
532
+
533
+ /**
534
+ * Deserializes binary data (in protobuf wire format) from the
535
+ * given reader into the given message object.
536
+ * @param {!proto.google.api.QuotaLimit} msg The message object to deserialize into.
537
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
538
+ * @return {!proto.google.api.QuotaLimit}
539
+ */
540
+ proto.google.api.QuotaLimit.deserializeBinaryFromReader = function(msg, reader) {
541
+ while (reader.nextField()) {
542
+ if (reader.isEndGroup()) {
543
+ break;
544
+ }
545
+ var field = reader.getFieldNumber();
546
+ switch (field) {
547
+ case 6:
548
+ var value = /** @type {string} */ (reader.readString());
549
+ msg.setName(value);
550
+ break;
551
+ case 2:
552
+ var value = /** @type {string} */ (reader.readString());
553
+ msg.setDescription(value);
554
+ break;
555
+ case 3:
556
+ var value = /** @type {number} */ (reader.readInt64());
557
+ msg.setDefaultLimit(value);
558
+ break;
559
+ case 4:
560
+ var value = /** @type {number} */ (reader.readInt64());
561
+ msg.setMaxLimit(value);
562
+ break;
563
+ case 7:
564
+ var value = /** @type {number} */ (reader.readInt64());
565
+ msg.setFreeTier(value);
566
+ break;
567
+ case 5:
568
+ var value = /** @type {string} */ (reader.readString());
569
+ msg.setDuration(value);
570
+ break;
571
+ case 8:
572
+ var value = /** @type {string} */ (reader.readString());
573
+ msg.setMetric(value);
574
+ break;
575
+ case 9:
576
+ var value = /** @type {string} */ (reader.readString());
577
+ msg.setUnit(value);
578
+ break;
579
+ case 10:
580
+ var value = msg.getValuesMap();
581
+ reader.readMessage(value, function(message, reader) {
582
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readInt64, null, "", 0);
583
+ });
584
+ break;
585
+ case 12:
586
+ var value = /** @type {string} */ (reader.readString());
587
+ msg.setDisplayName(value);
588
+ break;
589
+ default:
590
+ reader.skipField();
591
+ break;
592
+ }
593
+ }
594
+ return msg;
595
+ };
596
+
597
+
598
+ /**
599
+ * Serializes the message to binary data (in protobuf wire format).
600
+ * @return {!Uint8Array}
601
+ */
602
+ proto.google.api.QuotaLimit.prototype.serializeBinary = function() {
603
+ var writer = new jspb.BinaryWriter();
604
+ proto.google.api.QuotaLimit.serializeBinaryToWriter(this, writer);
605
+ return writer.getResultBuffer();
606
+ };
607
+
608
+
609
+ /**
610
+ * Serializes the given message to binary data (in protobuf wire
611
+ * format), writing to the given BinaryWriter.
612
+ * @param {!proto.google.api.QuotaLimit} message
613
+ * @param {!jspb.BinaryWriter} writer
614
+ * @suppress {unusedLocalVariables} f is only used for nested messages
615
+ */
616
+ proto.google.api.QuotaLimit.serializeBinaryToWriter = function(message, writer) {
617
+ var f = undefined;
618
+ f = message.getName();
619
+ if (f.length > 0) {
620
+ writer.writeString(
621
+ 6,
622
+ f
623
+ );
624
+ }
625
+ f = message.getDescription();
626
+ if (f.length > 0) {
627
+ writer.writeString(
628
+ 2,
629
+ f
630
+ );
631
+ }
632
+ f = message.getDefaultLimit();
633
+ if (f !== 0) {
634
+ writer.writeInt64(
635
+ 3,
636
+ f
637
+ );
638
+ }
639
+ f = message.getMaxLimit();
640
+ if (f !== 0) {
641
+ writer.writeInt64(
642
+ 4,
643
+ f
644
+ );
645
+ }
646
+ f = message.getFreeTier();
647
+ if (f !== 0) {
648
+ writer.writeInt64(
649
+ 7,
650
+ f
651
+ );
652
+ }
653
+ f = message.getDuration();
654
+ if (f.length > 0) {
655
+ writer.writeString(
656
+ 5,
657
+ f
658
+ );
659
+ }
660
+ f = message.getMetric();
661
+ if (f.length > 0) {
662
+ writer.writeString(
663
+ 8,
664
+ f
665
+ );
666
+ }
667
+ f = message.getUnit();
668
+ if (f.length > 0) {
669
+ writer.writeString(
670
+ 9,
671
+ f
672
+ );
673
+ }
674
+ f = message.getValuesMap(true);
675
+ if (f && f.getLength() > 0) {
676
+ f.serializeBinary(10, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeInt64);
677
+ }
678
+ f = message.getDisplayName();
679
+ if (f.length > 0) {
680
+ writer.writeString(
681
+ 12,
682
+ f
683
+ );
684
+ }
685
+ };
686
+
687
+
688
+ /**
689
+ * optional string name = 6;
690
+ * @return {string}
691
+ */
692
+ proto.google.api.QuotaLimit.prototype.getName = function() {
693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
694
+ };
695
+
696
+
697
+ /**
698
+ * @param {string} value
699
+ * @return {!proto.google.api.QuotaLimit} returns this
700
+ */
701
+ proto.google.api.QuotaLimit.prototype.setName = function(value) {
702
+ return jspb.Message.setProto3StringField(this, 6, value);
703
+ };
704
+
705
+
706
+ /**
707
+ * optional string description = 2;
708
+ * @return {string}
709
+ */
710
+ proto.google.api.QuotaLimit.prototype.getDescription = function() {
711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
712
+ };
713
+
714
+
715
+ /**
716
+ * @param {string} value
717
+ * @return {!proto.google.api.QuotaLimit} returns this
718
+ */
719
+ proto.google.api.QuotaLimit.prototype.setDescription = function(value) {
720
+ return jspb.Message.setProto3StringField(this, 2, value);
721
+ };
722
+
723
+
724
+ /**
725
+ * optional int64 default_limit = 3;
726
+ * @return {number}
727
+ */
728
+ proto.google.api.QuotaLimit.prototype.getDefaultLimit = function() {
729
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
730
+ };
731
+
732
+
733
+ /**
734
+ * @param {number} value
735
+ * @return {!proto.google.api.QuotaLimit} returns this
736
+ */
737
+ proto.google.api.QuotaLimit.prototype.setDefaultLimit = function(value) {
738
+ return jspb.Message.setProto3IntField(this, 3, value);
739
+ };
740
+
741
+
742
+ /**
743
+ * optional int64 max_limit = 4;
744
+ * @return {number}
745
+ */
746
+ proto.google.api.QuotaLimit.prototype.getMaxLimit = function() {
747
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
748
+ };
749
+
750
+
751
+ /**
752
+ * @param {number} value
753
+ * @return {!proto.google.api.QuotaLimit} returns this
754
+ */
755
+ proto.google.api.QuotaLimit.prototype.setMaxLimit = function(value) {
756
+ return jspb.Message.setProto3IntField(this, 4, value);
757
+ };
758
+
759
+
760
+ /**
761
+ * optional int64 free_tier = 7;
762
+ * @return {number}
763
+ */
764
+ proto.google.api.QuotaLimit.prototype.getFreeTier = function() {
765
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
766
+ };
767
+
768
+
769
+ /**
770
+ * @param {number} value
771
+ * @return {!proto.google.api.QuotaLimit} returns this
772
+ */
773
+ proto.google.api.QuotaLimit.prototype.setFreeTier = function(value) {
774
+ return jspb.Message.setProto3IntField(this, 7, value);
775
+ };
776
+
777
+
778
+ /**
779
+ * optional string duration = 5;
780
+ * @return {string}
781
+ */
782
+ proto.google.api.QuotaLimit.prototype.getDuration = function() {
783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
784
+ };
785
+
786
+
787
+ /**
788
+ * @param {string} value
789
+ * @return {!proto.google.api.QuotaLimit} returns this
790
+ */
791
+ proto.google.api.QuotaLimit.prototype.setDuration = function(value) {
792
+ return jspb.Message.setProto3StringField(this, 5, value);
793
+ };
794
+
795
+
796
+ /**
797
+ * optional string metric = 8;
798
+ * @return {string}
799
+ */
800
+ proto.google.api.QuotaLimit.prototype.getMetric = function() {
801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
802
+ };
803
+
804
+
805
+ /**
806
+ * @param {string} value
807
+ * @return {!proto.google.api.QuotaLimit} returns this
808
+ */
809
+ proto.google.api.QuotaLimit.prototype.setMetric = function(value) {
810
+ return jspb.Message.setProto3StringField(this, 8, value);
811
+ };
812
+
813
+
814
+ /**
815
+ * optional string unit = 9;
816
+ * @return {string}
817
+ */
818
+ proto.google.api.QuotaLimit.prototype.getUnit = function() {
819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
820
+ };
821
+
822
+
823
+ /**
824
+ * @param {string} value
825
+ * @return {!proto.google.api.QuotaLimit} returns this
826
+ */
827
+ proto.google.api.QuotaLimit.prototype.setUnit = function(value) {
828
+ return jspb.Message.setProto3StringField(this, 9, value);
829
+ };
830
+
831
+
832
+ /**
833
+ * map<string, int64> values = 10;
834
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
835
+ * empty, instead returning `undefined`
836
+ * @return {!jspb.Map<string,number>}
837
+ */
838
+ proto.google.api.QuotaLimit.prototype.getValuesMap = function(opt_noLazyCreate) {
839
+ return /** @type {!jspb.Map<string,number>} */ (
840
+ jspb.Message.getMapField(this, 10, opt_noLazyCreate,
841
+ null));
842
+ };
843
+
844
+
845
+ /**
846
+ * Clears values from the map. The map will be non-null.
847
+ * @return {!proto.google.api.QuotaLimit} returns this
848
+ */
849
+ proto.google.api.QuotaLimit.prototype.clearValuesMap = function() {
850
+ this.getValuesMap().clear();
851
+ return this;
852
+ };
853
+
854
+
855
+ /**
856
+ * optional string display_name = 12;
857
+ * @return {string}
858
+ */
859
+ proto.google.api.QuotaLimit.prototype.getDisplayName = function() {
860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
861
+ };
862
+
863
+
864
+ /**
865
+ * @param {string} value
866
+ * @return {!proto.google.api.QuotaLimit} returns this
867
+ */
868
+ proto.google.api.QuotaLimit.prototype.setDisplayName = function(value) {
869
+ return jspb.Message.setProto3StringField(this, 12, value);
870
+ };
871
+
872
+
873
+ goog.object.extend(exports, proto.google.api);