@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,536 @@
1
+ // source: platform.local_distribution.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 platform_client_pb = require('./platform.client_pb.js');
25
+ goog.object.extend(proto, platform_client_pb);
26
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
+ goog.object.extend(proto, google_api_annotations_pb);
28
+ goog.exportSymbol('proto.Platform.LocalDistributionProto', null, global);
29
+ goog.exportSymbol('proto.Platform.LocalDistributionProto.CheckExistenceRequest', null, global);
30
+ goog.exportSymbol('proto.Platform.LocalDistributionProto.CheckExistenceResponse', null, global);
31
+ /**
32
+ * Generated by JsPbCodeGenerator.
33
+ * @param {Array=} opt_data Optional initial data array, typically from a
34
+ * server response, or constructed directly in Javascript. The array is used
35
+ * in place and becomes part of the constructed object. It is not cloned.
36
+ * If no data is provided, the constructed object will be empty, but still
37
+ * valid.
38
+ * @extends {jspb.Message}
39
+ * @constructor
40
+ */
41
+ proto.Platform.LocalDistributionProto = function(opt_data) {
42
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
43
+ };
44
+ goog.inherits(proto.Platform.LocalDistributionProto, jspb.Message);
45
+ if (goog.DEBUG && !COMPILED) {
46
+ /**
47
+ * @public
48
+ * @override
49
+ */
50
+ proto.Platform.LocalDistributionProto.displayName = 'proto.Platform.LocalDistributionProto';
51
+ }
52
+ /**
53
+ * Generated by JsPbCodeGenerator.
54
+ * @param {Array=} opt_data Optional initial data array, typically from a
55
+ * server response, or constructed directly in Javascript. The array is used
56
+ * in place and becomes part of the constructed object. It is not cloned.
57
+ * If no data is provided, the constructed object will be empty, but still
58
+ * valid.
59
+ * @extends {jspb.Message}
60
+ * @constructor
61
+ */
62
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest = function(opt_data) {
63
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
+ };
65
+ goog.inherits(proto.Platform.LocalDistributionProto.CheckExistenceRequest, jspb.Message);
66
+ if (goog.DEBUG && !COMPILED) {
67
+ /**
68
+ * @public
69
+ * @override
70
+ */
71
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.displayName = 'proto.Platform.LocalDistributionProto.CheckExistenceRequest';
72
+ }
73
+ /**
74
+ * Generated by JsPbCodeGenerator.
75
+ * @param {Array=} opt_data Optional initial data array, typically from a
76
+ * server response, or constructed directly in Javascript. The array is used
77
+ * in place and becomes part of the constructed object. It is not cloned.
78
+ * If no data is provided, the constructed object will be empty, but still
79
+ * valid.
80
+ * @extends {jspb.Message}
81
+ * @constructor
82
+ */
83
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse = function(opt_data) {
84
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
+ };
86
+ goog.inherits(proto.Platform.LocalDistributionProto.CheckExistenceResponse, jspb.Message);
87
+ if (goog.DEBUG && !COMPILED) {
88
+ /**
89
+ * @public
90
+ * @override
91
+ */
92
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.displayName = 'proto.Platform.LocalDistributionProto.CheckExistenceResponse';
93
+ }
94
+
95
+
96
+
97
+ if (jspb.Message.GENERATE_TO_OBJECT) {
98
+ /**
99
+ * Creates an object representation of this proto.
100
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
101
+ * Optional fields that are not set will be set to undefined.
102
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
103
+ * For the list of reserved names please see:
104
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
105
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
106
+ * JSPB instance for transitional soy proto support:
107
+ * http://goto/soy-param-migration
108
+ * @return {!Object}
109
+ */
110
+ proto.Platform.LocalDistributionProto.prototype.toObject = function(opt_includeInstance) {
111
+ return proto.Platform.LocalDistributionProto.toObject(opt_includeInstance, this);
112
+ };
113
+
114
+
115
+ /**
116
+ * Static version of the {@see toObject} method.
117
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
118
+ * the JSPB instance for transitional soy proto support:
119
+ * http://goto/soy-param-migration
120
+ * @param {!proto.Platform.LocalDistributionProto} msg The msg instance to transform.
121
+ * @return {!Object}
122
+ * @suppress {unusedLocalVariables} f is only used for nested messages
123
+ */
124
+ proto.Platform.LocalDistributionProto.toObject = function(includeInstance, msg) {
125
+ var f, obj = {
126
+
127
+ };
128
+
129
+ if (includeInstance) {
130
+ obj.$jspbMessageInstance = msg;
131
+ }
132
+ return obj;
133
+ };
134
+ }
135
+
136
+
137
+ /**
138
+ * Deserializes binary data (in protobuf wire format).
139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
140
+ * @return {!proto.Platform.LocalDistributionProto}
141
+ */
142
+ proto.Platform.LocalDistributionProto.deserializeBinary = function(bytes) {
143
+ var reader = new jspb.BinaryReader(bytes);
144
+ var msg = new proto.Platform.LocalDistributionProto;
145
+ return proto.Platform.LocalDistributionProto.deserializeBinaryFromReader(msg, reader);
146
+ };
147
+
148
+
149
+ /**
150
+ * Deserializes binary data (in protobuf wire format) from the
151
+ * given reader into the given message object.
152
+ * @param {!proto.Platform.LocalDistributionProto} msg The message object to deserialize into.
153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
154
+ * @return {!proto.Platform.LocalDistributionProto}
155
+ */
156
+ proto.Platform.LocalDistributionProto.deserializeBinaryFromReader = function(msg, reader) {
157
+ while (reader.nextField()) {
158
+ if (reader.isEndGroup()) {
159
+ break;
160
+ }
161
+ var field = reader.getFieldNumber();
162
+ switch (field) {
163
+ default:
164
+ reader.skipField();
165
+ break;
166
+ }
167
+ }
168
+ return msg;
169
+ };
170
+
171
+
172
+ /**
173
+ * Serializes the message to binary data (in protobuf wire format).
174
+ * @return {!Uint8Array}
175
+ */
176
+ proto.Platform.LocalDistributionProto.prototype.serializeBinary = function() {
177
+ var writer = new jspb.BinaryWriter();
178
+ proto.Platform.LocalDistributionProto.serializeBinaryToWriter(this, writer);
179
+ return writer.getResultBuffer();
180
+ };
181
+
182
+
183
+ /**
184
+ * Serializes the given message to binary data (in protobuf wire
185
+ * format), writing to the given BinaryWriter.
186
+ * @param {!proto.Platform.LocalDistributionProto} message
187
+ * @param {!jspb.BinaryWriter} writer
188
+ * @suppress {unusedLocalVariables} f is only used for nested messages
189
+ */
190
+ proto.Platform.LocalDistributionProto.serializeBinaryToWriter = function(message, writer) {
191
+ var f = undefined;
192
+ };
193
+
194
+
195
+
196
+
197
+
198
+ if (jspb.Message.GENERATE_TO_OBJECT) {
199
+ /**
200
+ * Creates an object representation of this proto.
201
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
202
+ * Optional fields that are not set will be set to undefined.
203
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
204
+ * For the list of reserved names please see:
205
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
206
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
207
+ * JSPB instance for transitional soy proto support:
208
+ * http://goto/soy-param-migration
209
+ * @return {!Object}
210
+ */
211
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.prototype.toObject = function(opt_includeInstance) {
212
+ return proto.Platform.LocalDistributionProto.CheckExistenceRequest.toObject(opt_includeInstance, this);
213
+ };
214
+
215
+
216
+ /**
217
+ * Static version of the {@see toObject} method.
218
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
219
+ * the JSPB instance for transitional soy proto support:
220
+ * http://goto/soy-param-migration
221
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceRequest} msg The msg instance to transform.
222
+ * @return {!Object}
223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
224
+ */
225
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.toObject = function(includeInstance, msg) {
226
+ var f, obj = {
227
+ uid: jspb.Message.getFieldWithDefault(msg, 1, "")
228
+ };
229
+
230
+ if (includeInstance) {
231
+ obj.$jspbMessageInstance = msg;
232
+ }
233
+ return obj;
234
+ };
235
+ }
236
+
237
+
238
+ /**
239
+ * Deserializes binary data (in protobuf wire format).
240
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
241
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceRequest}
242
+ */
243
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.deserializeBinary = function(bytes) {
244
+ var reader = new jspb.BinaryReader(bytes);
245
+ var msg = new proto.Platform.LocalDistributionProto.CheckExistenceRequest;
246
+ return proto.Platform.LocalDistributionProto.CheckExistenceRequest.deserializeBinaryFromReader(msg, reader);
247
+ };
248
+
249
+
250
+ /**
251
+ * Deserializes binary data (in protobuf wire format) from the
252
+ * given reader into the given message object.
253
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceRequest} msg The message object to deserialize into.
254
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
255
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceRequest}
256
+ */
257
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.deserializeBinaryFromReader = function(msg, reader) {
258
+ while (reader.nextField()) {
259
+ if (reader.isEndGroup()) {
260
+ break;
261
+ }
262
+ var field = reader.getFieldNumber();
263
+ switch (field) {
264
+ case 1:
265
+ var value = /** @type {string} */ (reader.readString());
266
+ msg.setUid(value);
267
+ break;
268
+ default:
269
+ reader.skipField();
270
+ break;
271
+ }
272
+ }
273
+ return msg;
274
+ };
275
+
276
+
277
+ /**
278
+ * Serializes the message to binary data (in protobuf wire format).
279
+ * @return {!Uint8Array}
280
+ */
281
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.prototype.serializeBinary = function() {
282
+ var writer = new jspb.BinaryWriter();
283
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.serializeBinaryToWriter(this, writer);
284
+ return writer.getResultBuffer();
285
+ };
286
+
287
+
288
+ /**
289
+ * Serializes the given message to binary data (in protobuf wire
290
+ * format), writing to the given BinaryWriter.
291
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceRequest} message
292
+ * @param {!jspb.BinaryWriter} writer
293
+ * @suppress {unusedLocalVariables} f is only used for nested messages
294
+ */
295
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.serializeBinaryToWriter = function(message, writer) {
296
+ var f = undefined;
297
+ f = message.getUid();
298
+ if (f.length > 0) {
299
+ writer.writeString(
300
+ 1,
301
+ f
302
+ );
303
+ }
304
+ };
305
+
306
+
307
+ /**
308
+ * optional string uid = 1;
309
+ * @return {string}
310
+ */
311
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.prototype.getUid = function() {
312
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
313
+ };
314
+
315
+
316
+ /**
317
+ * @param {string} value
318
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceRequest} returns this
319
+ */
320
+ proto.Platform.LocalDistributionProto.CheckExistenceRequest.prototype.setUid = function(value) {
321
+ return jspb.Message.setProto3StringField(this, 1, value);
322
+ };
323
+
324
+
325
+
326
+
327
+
328
+ if (jspb.Message.GENERATE_TO_OBJECT) {
329
+ /**
330
+ * Creates an object representation of this proto.
331
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
332
+ * Optional fields that are not set will be set to undefined.
333
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
334
+ * For the list of reserved names please see:
335
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
336
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
337
+ * JSPB instance for transitional soy proto support:
338
+ * http://goto/soy-param-migration
339
+ * @return {!Object}
340
+ */
341
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.toObject = function(opt_includeInstance) {
342
+ return proto.Platform.LocalDistributionProto.CheckExistenceResponse.toObject(opt_includeInstance, this);
343
+ };
344
+
345
+
346
+ /**
347
+ * Static version of the {@see toObject} method.
348
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
349
+ * the JSPB instance for transitional soy proto support:
350
+ * http://goto/soy-param-migration
351
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} msg The msg instance to transform.
352
+ * @return {!Object}
353
+ * @suppress {unusedLocalVariables} f is only used for nested messages
354
+ */
355
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.toObject = function(includeInstance, msg) {
356
+ var f, obj = {
357
+ exist: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
358
+ client: (f = msg.getClient()) && platform_client_pb.ClientProto.toObject(includeInstance, f),
359
+ iotDomainPrefix: jspb.Message.getFieldWithDefault(msg, 3, "")
360
+ };
361
+
362
+ if (includeInstance) {
363
+ obj.$jspbMessageInstance = msg;
364
+ }
365
+ return obj;
366
+ };
367
+ }
368
+
369
+
370
+ /**
371
+ * Deserializes binary data (in protobuf wire format).
372
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
373
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse}
374
+ */
375
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.deserializeBinary = function(bytes) {
376
+ var reader = new jspb.BinaryReader(bytes);
377
+ var msg = new proto.Platform.LocalDistributionProto.CheckExistenceResponse;
378
+ return proto.Platform.LocalDistributionProto.CheckExistenceResponse.deserializeBinaryFromReader(msg, reader);
379
+ };
380
+
381
+
382
+ /**
383
+ * Deserializes binary data (in protobuf wire format) from the
384
+ * given reader into the given message object.
385
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} msg The message object to deserialize into.
386
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
387
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse}
388
+ */
389
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.deserializeBinaryFromReader = function(msg, reader) {
390
+ while (reader.nextField()) {
391
+ if (reader.isEndGroup()) {
392
+ break;
393
+ }
394
+ var field = reader.getFieldNumber();
395
+ switch (field) {
396
+ case 1:
397
+ var value = /** @type {boolean} */ (reader.readBool());
398
+ msg.setExist(value);
399
+ break;
400
+ case 2:
401
+ var value = new platform_client_pb.ClientProto;
402
+ reader.readMessage(value,platform_client_pb.ClientProto.deserializeBinaryFromReader);
403
+ msg.setClient(value);
404
+ break;
405
+ case 3:
406
+ var value = /** @type {string} */ (reader.readString());
407
+ msg.setIotDomainPrefix(value);
408
+ break;
409
+ default:
410
+ reader.skipField();
411
+ break;
412
+ }
413
+ }
414
+ return msg;
415
+ };
416
+
417
+
418
+ /**
419
+ * Serializes the message to binary data (in protobuf wire format).
420
+ * @return {!Uint8Array}
421
+ */
422
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.serializeBinary = function() {
423
+ var writer = new jspb.BinaryWriter();
424
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.serializeBinaryToWriter(this, writer);
425
+ return writer.getResultBuffer();
426
+ };
427
+
428
+
429
+ /**
430
+ * Serializes the given message to binary data (in protobuf wire
431
+ * format), writing to the given BinaryWriter.
432
+ * @param {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} message
433
+ * @param {!jspb.BinaryWriter} writer
434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
435
+ */
436
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.serializeBinaryToWriter = function(message, writer) {
437
+ var f = undefined;
438
+ f = message.getExist();
439
+ if (f) {
440
+ writer.writeBool(
441
+ 1,
442
+ f
443
+ );
444
+ }
445
+ f = message.getClient();
446
+ if (f != null) {
447
+ writer.writeMessage(
448
+ 2,
449
+ f,
450
+ platform_client_pb.ClientProto.serializeBinaryToWriter
451
+ );
452
+ }
453
+ f = message.getIotDomainPrefix();
454
+ if (f.length > 0) {
455
+ writer.writeString(
456
+ 3,
457
+ f
458
+ );
459
+ }
460
+ };
461
+
462
+
463
+ /**
464
+ * optional bool exist = 1;
465
+ * @return {boolean}
466
+ */
467
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.getExist = function() {
468
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
469
+ };
470
+
471
+
472
+ /**
473
+ * @param {boolean} value
474
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} returns this
475
+ */
476
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.setExist = function(value) {
477
+ return jspb.Message.setProto3BooleanField(this, 1, value);
478
+ };
479
+
480
+
481
+ /**
482
+ * optional ClientProto client = 2;
483
+ * @return {?proto.Platform.ClientProto}
484
+ */
485
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.getClient = function() {
486
+ return /** @type{?proto.Platform.ClientProto} */ (
487
+ jspb.Message.getWrapperField(this, platform_client_pb.ClientProto, 2));
488
+ };
489
+
490
+
491
+ /**
492
+ * @param {?proto.Platform.ClientProto|undefined} value
493
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} returns this
494
+ */
495
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.setClient = function(value) {
496
+ return jspb.Message.setWrapperField(this, 2, value);
497
+ };
498
+
499
+
500
+ /**
501
+ * Clears the message field making it undefined.
502
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} returns this
503
+ */
504
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.clearClient = function() {
505
+ return this.setClient(undefined);
506
+ };
507
+
508
+
509
+ /**
510
+ * Returns whether this field is set.
511
+ * @return {boolean}
512
+ */
513
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.hasClient = function() {
514
+ return jspb.Message.getField(this, 2) != null;
515
+ };
516
+
517
+
518
+ /**
519
+ * optional string iot_domain_prefix = 3;
520
+ * @return {string}
521
+ */
522
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.getIotDomainPrefix = function() {
523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
524
+ };
525
+
526
+
527
+ /**
528
+ * @param {string} value
529
+ * @return {!proto.Platform.LocalDistributionProto.CheckExistenceResponse} returns this
530
+ */
531
+ proto.Platform.LocalDistributionProto.CheckExistenceResponse.prototype.setIotDomainPrefix = function(value) {
532
+ return jspb.Message.setProto3StringField(this, 3, value);
533
+ };
534
+
535
+
536
+ goog.object.extend(exports, proto.Platform);
@@ -0,0 +1,63 @@
1
+ // package: Platform
2
+ // file: platform.local_distribution.proto
3
+
4
+ import * as platform_local_distribution_pb from "./platform.local_distribution_pb";
5
+ import {grpc} from "@improbable-eng/grpc-web";
6
+
7
+ type LocalDistributionGRPCCheckExistence = {
8
+ readonly methodName: string;
9
+ readonly service: typeof LocalDistributionGRPC;
10
+ readonly requestStream: false;
11
+ readonly responseStream: false;
12
+ readonly requestType: typeof platform_local_distribution_pb.LocalDistributionProto.CheckExistenceRequest;
13
+ readonly responseType: typeof platform_local_distribution_pb.LocalDistributionProto.CheckExistenceResponse;
14
+ };
15
+
16
+ export class LocalDistributionGRPC {
17
+ static readonly serviceName: string;
18
+ static readonly CheckExistence: LocalDistributionGRPCCheckExistence;
19
+ }
20
+
21
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
22
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
23
+
24
+ interface UnaryResponse {
25
+ cancel(): void;
26
+ }
27
+ interface ResponseStream<T> {
28
+ cancel(): void;
29
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
30
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
31
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
32
+ }
33
+ interface RequestStream<T> {
34
+ write(message: T): RequestStream<T>;
35
+ end(): void;
36
+ cancel(): void;
37
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
38
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
39
+ }
40
+ interface BidirectionalStream<ReqT, ResT> {
41
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
42
+ end(): void;
43
+ cancel(): void;
44
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
45
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
46
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
47
+ }
48
+
49
+ export class LocalDistributionGRPCClient {
50
+ readonly serviceHost: string;
51
+
52
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
53
+ checkExistence(
54
+ requestMessage: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceRequest,
55
+ metadata: grpc.Metadata,
56
+ callback: (error: ServiceError|null, responseMessage: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceResponse|null) => void
57
+ ): UnaryResponse;
58
+ checkExistence(
59
+ requestMessage: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceRequest,
60
+ callback: (error: ServiceError|null, responseMessage: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceResponse|null) => void
61
+ ): UnaryResponse;
62
+ }
63
+
@@ -0,0 +1,61 @@
1
+ // package: Platform
2
+ // file: platform.local_distribution.proto
3
+
4
+ var platform_local_distribution_pb = require("./platform.local_distribution_pb");
5
+ var grpc = require("@improbable-eng/grpc-web").grpc;
6
+
7
+ var LocalDistributionGRPC = (function () {
8
+ function LocalDistributionGRPC() {}
9
+ LocalDistributionGRPC.serviceName = "Platform.LocalDistributionGRPC";
10
+ return LocalDistributionGRPC;
11
+ }());
12
+
13
+ LocalDistributionGRPC.CheckExistence = {
14
+ methodName: "CheckExistence",
15
+ service: LocalDistributionGRPC,
16
+ requestStream: false,
17
+ responseStream: false,
18
+ requestType: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceRequest,
19
+ responseType: platform_local_distribution_pb.LocalDistributionProto.CheckExistenceResponse
20
+ };
21
+
22
+ exports.LocalDistributionGRPC = LocalDistributionGRPC;
23
+
24
+ function LocalDistributionGRPCClient(serviceHost, options) {
25
+ this.serviceHost = serviceHost;
26
+ this.options = options || {};
27
+ }
28
+
29
+ LocalDistributionGRPCClient.prototype.checkExistence = function checkExistence(requestMessage, metadata, callback) {
30
+ if (arguments.length === 2) {
31
+ callback = arguments[1];
32
+ }
33
+ var client = grpc.unary(LocalDistributionGRPC.CheckExistence, {
34
+ request: requestMessage,
35
+ host: this.serviceHost,
36
+ metadata: metadata,
37
+ transport: this.options.transport,
38
+ debug: this.options.debug,
39
+ onEnd: function (response) {
40
+ if (callback) {
41
+ if (response.status !== grpc.Code.OK) {
42
+ var err = new Error(response.statusMessage);
43
+ err.code = response.status;
44
+ err.metadata = response.trailers;
45
+ callback(err, null);
46
+ } else {
47
+ callback(null, response.message);
48
+ }
49
+ }
50
+ }
51
+ });
52
+ return {
53
+ cancel: function () {
54
+ callback = null;
55
+ client.close();
56
+ }
57
+ };
58
+ };
59
+
60
+ exports.LocalDistributionGRPCClient = LocalDistributionGRPCClient;
61
+