skyeye-sdk-js 1.0.8 → 1.1.0

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 (33) hide show
  1. package/dist/src/SkyEyeClient.d.ts +4 -2
  2. package/dist/src/SkyEyeClient.js +50 -16
  3. package/dist/src/proto/dir.bat +37 -0
  4. package/dist/src/proto/protoc.bat +37 -0
  5. package/dist/src/proto/protoc.sh +32 -0
  6. package/dist/src/proto/skyeye_rpc.proto +3 -0
  7. package/dist/src/proto/skyeye_rpc_grpc_pb.js +77 -44
  8. package/dist/src/proto/skyeye_rpc_pb.js +328 -322
  9. package/dist/src/proto/tsconfig.json +118 -0
  10. package/dist/src/proto copy/skyeye_rpc.proto +11 -0
  11. package/dist/src/proto copy/skyeye_rpc_grpc_pb.js +44 -0
  12. package/dist/src/proto copy/skyeye_rpc_pb.d.ts +47 -0
  13. package/dist/src/proto copy/skyeye_rpc_pb.js +322 -0
  14. package/dist/test.js +18 -7
  15. package/package.json +9 -9
  16. package/src/SkyEyeClient.ts +52 -20
  17. package/src/proto/protoc.bat +37 -0
  18. package/src/proto/protoc.sh +32 -0
  19. package/src/proto/skyeye_rpc.proto +3 -0
  20. package/src/proto/skyeye_rpc_grpc_pb.js +77 -44
  21. package/src/proto/skyeye_rpc_pb.js +328 -322
  22. package/src/proto/tsconfig.json +118 -0
  23. package/src/proto_backup/skyeye_rpc.proto +11 -0
  24. package/src/proto_backup/skyeye_rpc_grpc_pb.js +44 -0
  25. package/src/proto_backup/skyeye_rpc_pb.d.ts +47 -0
  26. package/src/proto_backup/skyeye_rpc_pb.js +322 -0
  27. package/test.ts +24 -8
  28. package/dist/SkyEyeClient.d.ts +0 -71
  29. package/dist/SkyEyeClient.js +0 -831
  30. package/dist/SkyEyeClientFactory.d.ts +0 -10
  31. package/dist/SkyEyeClientFactory.js +0 -53
  32. /package/dist/src/{proto → proto copy}/skyeye_rpc_grpc_pb.d.ts +0 -0
  33. /package/src/{proto → proto_backup}/skyeye_rpc_grpc_pb.d.ts +0 -0
@@ -1,322 +1,328 @@
1
- // source: src/proto/skyeye_rpc.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 = Function('return this')();
17
-
18
- goog.exportSymbol('proto.JSONRequest', null, global);
19
- goog.exportSymbol('proto.JSONResponse', null, global);
20
- /**
21
- * Generated by JsPbCodeGenerator.
22
- * @param {Array=} opt_data Optional initial data array, typically from a
23
- * server response, or constructed directly in Javascript. The array is used
24
- * in place and becomes part of the constructed object. It is not cloned.
25
- * If no data is provided, the constructed object will be empty, but still
26
- * valid.
27
- * @extends {jspb.Message}
28
- * @constructor
29
- */
30
- proto.JSONRequest = function(opt_data) {
31
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
32
- };
33
- goog.inherits(proto.JSONRequest, jspb.Message);
34
- if (goog.DEBUG && !COMPILED) {
35
- /**
36
- * @public
37
- * @override
38
- */
39
- proto.JSONRequest.displayName = 'proto.JSONRequest';
40
- }
41
- /**
42
- * Generated by JsPbCodeGenerator.
43
- * @param {Array=} opt_data Optional initial data array, typically from a
44
- * server response, or constructed directly in Javascript. The array is used
45
- * in place and becomes part of the constructed object. It is not cloned.
46
- * If no data is provided, the constructed object will be empty, but still
47
- * valid.
48
- * @extends {jspb.Message}
49
- * @constructor
50
- */
51
- proto.JSONResponse = function(opt_data) {
52
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
53
- };
54
- goog.inherits(proto.JSONResponse, jspb.Message);
55
- if (goog.DEBUG && !COMPILED) {
56
- /**
57
- * @public
58
- * @override
59
- */
60
- proto.JSONResponse.displayName = 'proto.JSONResponse';
61
- }
62
-
63
-
64
-
65
- if (jspb.Message.GENERATE_TO_OBJECT) {
66
- /**
67
- * Creates an object representation of this proto.
68
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
69
- * Optional fields that are not set will be set to undefined.
70
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
71
- * For the list of reserved names please see:
72
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
73
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
74
- * JSPB instance for transitional soy proto support:
75
- * http://goto/soy-param-migration
76
- * @return {!Object}
77
- */
78
- proto.JSONRequest.prototype.toObject = function(opt_includeInstance) {
79
- return proto.JSONRequest.toObject(opt_includeInstance, this);
80
- };
81
-
82
-
83
- /**
84
- * Static version of the {@see toObject} method.
85
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
86
- * the JSPB instance for transitional soy proto support:
87
- * http://goto/soy-param-migration
88
- * @param {!proto.JSONRequest} msg The msg instance to transform.
89
- * @return {!Object}
90
- * @suppress {unusedLocalVariables} f is only used for nested messages
91
- */
92
- proto.JSONRequest.toObject = function(includeInstance, msg) {
93
- var f, obj = {
94
- request: jspb.Message.getFieldWithDefault(msg, 1, "")
95
- };
96
-
97
- if (includeInstance) {
98
- obj.$jspbMessageInstance = msg;
99
- }
100
- return obj;
101
- };
102
- }
103
-
104
-
105
- /**
106
- * Deserializes binary data (in protobuf wire format).
107
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
108
- * @return {!proto.JSONRequest}
109
- */
110
- proto.JSONRequest.deserializeBinary = function(bytes) {
111
- var reader = new jspb.BinaryReader(bytes);
112
- var msg = new proto.JSONRequest;
113
- return proto.JSONRequest.deserializeBinaryFromReader(msg, reader);
114
- };
115
-
116
-
117
- /**
118
- * Deserializes binary data (in protobuf wire format) from the
119
- * given reader into the given message object.
120
- * @param {!proto.JSONRequest} msg The message object to deserialize into.
121
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
122
- * @return {!proto.JSONRequest}
123
- */
124
- proto.JSONRequest.deserializeBinaryFromReader = function(msg, reader) {
125
- while (reader.nextField()) {
126
- if (reader.isEndGroup()) {
127
- break;
128
- }
129
- var field = reader.getFieldNumber();
130
- switch (field) {
131
- case 1:
132
- var value = /** @type {string} */ (reader.readString());
133
- msg.setRequest(value);
134
- break;
135
- default:
136
- reader.skipField();
137
- break;
138
- }
139
- }
140
- return msg;
141
- };
142
-
143
-
144
- /**
145
- * Serializes the message to binary data (in protobuf wire format).
146
- * @return {!Uint8Array}
147
- */
148
- proto.JSONRequest.prototype.serializeBinary = function() {
149
- var writer = new jspb.BinaryWriter();
150
- proto.JSONRequest.serializeBinaryToWriter(this, writer);
151
- return writer.getResultBuffer();
152
- };
153
-
154
-
155
- /**
156
- * Serializes the given message to binary data (in protobuf wire
157
- * format), writing to the given BinaryWriter.
158
- * @param {!proto.JSONRequest} message
159
- * @param {!jspb.BinaryWriter} writer
160
- * @suppress {unusedLocalVariables} f is only used for nested messages
161
- */
162
- proto.JSONRequest.serializeBinaryToWriter = function(message, writer) {
163
- var f = undefined;
164
- f = message.getRequest();
165
- if (f.length > 0) {
166
- writer.writeString(
167
- 1,
168
- f
169
- );
170
- }
171
- };
172
-
173
-
174
- /**
175
- * optional string request = 1;
176
- * @return {string}
177
- */
178
- proto.JSONRequest.prototype.getRequest = function() {
179
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
180
- };
181
-
182
-
183
- /**
184
- * @param {string} value
185
- * @return {!proto.JSONRequest} returns this
186
- */
187
- proto.JSONRequest.prototype.setRequest = function(value) {
188
- return jspb.Message.setProto3StringField(this, 1, value);
189
- };
190
-
191
-
192
-
193
-
194
-
195
- if (jspb.Message.GENERATE_TO_OBJECT) {
196
- /**
197
- * Creates an object representation of this proto.
198
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
199
- * Optional fields that are not set will be set to undefined.
200
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
201
- * For the list of reserved names please see:
202
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
203
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
204
- * JSPB instance for transitional soy proto support:
205
- * http://goto/soy-param-migration
206
- * @return {!Object}
207
- */
208
- proto.JSONResponse.prototype.toObject = function(opt_includeInstance) {
209
- return proto.JSONResponse.toObject(opt_includeInstance, this);
210
- };
211
-
212
-
213
- /**
214
- * Static version of the {@see toObject} method.
215
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
216
- * the JSPB instance for transitional soy proto support:
217
- * http://goto/soy-param-migration
218
- * @param {!proto.JSONResponse} msg The msg instance to transform.
219
- * @return {!Object}
220
- * @suppress {unusedLocalVariables} f is only used for nested messages
221
- */
222
- proto.JSONResponse.toObject = function(includeInstance, msg) {
223
- var f, obj = {
224
- response: jspb.Message.getFieldWithDefault(msg, 1, "")
225
- };
226
-
227
- if (includeInstance) {
228
- obj.$jspbMessageInstance = msg;
229
- }
230
- return obj;
231
- };
232
- }
233
-
234
-
235
- /**
236
- * Deserializes binary data (in protobuf wire format).
237
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
238
- * @return {!proto.JSONResponse}
239
- */
240
- proto.JSONResponse.deserializeBinary = function(bytes) {
241
- var reader = new jspb.BinaryReader(bytes);
242
- var msg = new proto.JSONResponse;
243
- return proto.JSONResponse.deserializeBinaryFromReader(msg, reader);
244
- };
245
-
246
-
247
- /**
248
- * Deserializes binary data (in protobuf wire format) from the
249
- * given reader into the given message object.
250
- * @param {!proto.JSONResponse} msg The message object to deserialize into.
251
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
252
- * @return {!proto.JSONResponse}
253
- */
254
- proto.JSONResponse.deserializeBinaryFromReader = function(msg, reader) {
255
- while (reader.nextField()) {
256
- if (reader.isEndGroup()) {
257
- break;
258
- }
259
- var field = reader.getFieldNumber();
260
- switch (field) {
261
- case 1:
262
- var value = /** @type {string} */ (reader.readString());
263
- msg.setResponse(value);
264
- break;
265
- default:
266
- reader.skipField();
267
- break;
268
- }
269
- }
270
- return msg;
271
- };
272
-
273
-
274
- /**
275
- * Serializes the message to binary data (in protobuf wire format).
276
- * @return {!Uint8Array}
277
- */
278
- proto.JSONResponse.prototype.serializeBinary = function() {
279
- var writer = new jspb.BinaryWriter();
280
- proto.JSONResponse.serializeBinaryToWriter(this, writer);
281
- return writer.getResultBuffer();
282
- };
283
-
284
-
285
- /**
286
- * Serializes the given message to binary data (in protobuf wire
287
- * format), writing to the given BinaryWriter.
288
- * @param {!proto.JSONResponse} message
289
- * @param {!jspb.BinaryWriter} writer
290
- * @suppress {unusedLocalVariables} f is only used for nested messages
291
- */
292
- proto.JSONResponse.serializeBinaryToWriter = function(message, writer) {
293
- var f = undefined;
294
- f = message.getResponse();
295
- if (f.length > 0) {
296
- writer.writeString(
297
- 1,
298
- f
299
- );
300
- }
301
- };
302
-
303
-
304
- /**
305
- * optional string response = 1;
306
- * @return {string}
307
- */
308
- proto.JSONResponse.prototype.getResponse = function() {
309
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
310
- };
311
-
312
-
313
- /**
314
- * @param {string} value
315
- * @return {!proto.JSONResponse} returns this
316
- */
317
- proto.JSONResponse.prototype.setResponse = function(value) {
318
- return jspb.Message.setProto3StringField(this, 1, value);
319
- };
320
-
321
-
322
- goog.object.extend(exports, proto);
1
+ // source: skyeye_rpc.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 = (function() {
17
+ if (this) { return this; }
18
+ if (typeof window !== 'undefined') { return window; }
19
+ if (typeof global !== 'undefined') { return global; }
20
+ if (typeof self !== 'undefined') { return self; }
21
+ return Function('return this')();
22
+ }.call(null));
23
+
24
+ goog.exportSymbol('proto.JSONRequest', null, global);
25
+ goog.exportSymbol('proto.JSONResponse', null, global);
26
+ /**
27
+ * Generated by JsPbCodeGenerator.
28
+ * @param {Array=} opt_data Optional initial data array, typically from a
29
+ * server response, or constructed directly in Javascript. The array is used
30
+ * in place and becomes part of the constructed object. It is not cloned.
31
+ * If no data is provided, the constructed object will be empty, but still
32
+ * valid.
33
+ * @extends {jspb.Message}
34
+ * @constructor
35
+ */
36
+ proto.JSONRequest = function(opt_data) {
37
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
38
+ };
39
+ goog.inherits(proto.JSONRequest, jspb.Message);
40
+ if (goog.DEBUG && !COMPILED) {
41
+ /**
42
+ * @public
43
+ * @override
44
+ */
45
+ proto.JSONRequest.displayName = 'proto.JSONRequest';
46
+ }
47
+ /**
48
+ * Generated by JsPbCodeGenerator.
49
+ * @param {Array=} opt_data Optional initial data array, typically from a
50
+ * server response, or constructed directly in Javascript. The array is used
51
+ * in place and becomes part of the constructed object. It is not cloned.
52
+ * If no data is provided, the constructed object will be empty, but still
53
+ * valid.
54
+ * @extends {jspb.Message}
55
+ * @constructor
56
+ */
57
+ proto.JSONResponse = function(opt_data) {
58
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ };
60
+ goog.inherits(proto.JSONResponse, jspb.Message);
61
+ if (goog.DEBUG && !COMPILED) {
62
+ /**
63
+ * @public
64
+ * @override
65
+ */
66
+ proto.JSONResponse.displayName = 'proto.JSONResponse';
67
+ }
68
+
69
+
70
+
71
+ if (jspb.Message.GENERATE_TO_OBJECT) {
72
+ /**
73
+ * Creates an object representation of this proto.
74
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
75
+ * Optional fields that are not set will be set to undefined.
76
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77
+ * For the list of reserved names please see:
78
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
79
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
80
+ * JSPB instance for transitional soy proto support:
81
+ * http://goto/soy-param-migration
82
+ * @return {!Object}
83
+ */
84
+ proto.JSONRequest.prototype.toObject = function(opt_includeInstance) {
85
+ return proto.JSONRequest.toObject(opt_includeInstance, this);
86
+ };
87
+
88
+
89
+ /**
90
+ * Static version of the {@see toObject} method.
91
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
92
+ * the JSPB instance for transitional soy proto support:
93
+ * http://goto/soy-param-migration
94
+ * @param {!proto.JSONRequest} msg The msg instance to transform.
95
+ * @return {!Object}
96
+ * @suppress {unusedLocalVariables} f is only used for nested messages
97
+ */
98
+ proto.JSONRequest.toObject = function(includeInstance, msg) {
99
+ var f, obj = {
100
+ request: jspb.Message.getFieldWithDefault(msg, 1, "")
101
+ };
102
+
103
+ if (includeInstance) {
104
+ obj.$jspbMessageInstance = msg;
105
+ }
106
+ return obj;
107
+ };
108
+ }
109
+
110
+
111
+ /**
112
+ * Deserializes binary data (in protobuf wire format).
113
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
114
+ * @return {!proto.JSONRequest}
115
+ */
116
+ proto.JSONRequest.deserializeBinary = function(bytes) {
117
+ var reader = new jspb.BinaryReader(bytes);
118
+ var msg = new proto.JSONRequest;
119
+ return proto.JSONRequest.deserializeBinaryFromReader(msg, reader);
120
+ };
121
+
122
+
123
+ /**
124
+ * Deserializes binary data (in protobuf wire format) from the
125
+ * given reader into the given message object.
126
+ * @param {!proto.JSONRequest} msg The message object to deserialize into.
127
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
128
+ * @return {!proto.JSONRequest}
129
+ */
130
+ proto.JSONRequest.deserializeBinaryFromReader = function(msg, reader) {
131
+ while (reader.nextField()) {
132
+ if (reader.isEndGroup()) {
133
+ break;
134
+ }
135
+ var field = reader.getFieldNumber();
136
+ switch (field) {
137
+ case 1:
138
+ var value = /** @type {string} */ (reader.readString());
139
+ msg.setRequest(value);
140
+ break;
141
+ default:
142
+ reader.skipField();
143
+ break;
144
+ }
145
+ }
146
+ return msg;
147
+ };
148
+
149
+
150
+ /**
151
+ * Serializes the message to binary data (in protobuf wire format).
152
+ * @return {!Uint8Array}
153
+ */
154
+ proto.JSONRequest.prototype.serializeBinary = function() {
155
+ var writer = new jspb.BinaryWriter();
156
+ proto.JSONRequest.serializeBinaryToWriter(this, writer);
157
+ return writer.getResultBuffer();
158
+ };
159
+
160
+
161
+ /**
162
+ * Serializes the given message to binary data (in protobuf wire
163
+ * format), writing to the given BinaryWriter.
164
+ * @param {!proto.JSONRequest} message
165
+ * @param {!jspb.BinaryWriter} writer
166
+ * @suppress {unusedLocalVariables} f is only used for nested messages
167
+ */
168
+ proto.JSONRequest.serializeBinaryToWriter = function(message, writer) {
169
+ var f = undefined;
170
+ f = message.getRequest();
171
+ if (f.length > 0) {
172
+ writer.writeString(
173
+ 1,
174
+ f
175
+ );
176
+ }
177
+ };
178
+
179
+
180
+ /**
181
+ * optional string request = 1;
182
+ * @return {string}
183
+ */
184
+ proto.JSONRequest.prototype.getRequest = function() {
185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
186
+ };
187
+
188
+
189
+ /**
190
+ * @param {string} value
191
+ * @return {!proto.JSONRequest} returns this
192
+ */
193
+ proto.JSONRequest.prototype.setRequest = function(value) {
194
+ return jspb.Message.setProto3StringField(this, 1, value);
195
+ };
196
+
197
+
198
+
199
+
200
+
201
+ if (jspb.Message.GENERATE_TO_OBJECT) {
202
+ /**
203
+ * Creates an object representation of this proto.
204
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
205
+ * Optional fields that are not set will be set to undefined.
206
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
207
+ * For the list of reserved names please see:
208
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
209
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
210
+ * JSPB instance for transitional soy proto support:
211
+ * http://goto/soy-param-migration
212
+ * @return {!Object}
213
+ */
214
+ proto.JSONResponse.prototype.toObject = function(opt_includeInstance) {
215
+ return proto.JSONResponse.toObject(opt_includeInstance, this);
216
+ };
217
+
218
+
219
+ /**
220
+ * Static version of the {@see toObject} method.
221
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
222
+ * the JSPB instance for transitional soy proto support:
223
+ * http://goto/soy-param-migration
224
+ * @param {!proto.JSONResponse} msg The msg instance to transform.
225
+ * @return {!Object}
226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
227
+ */
228
+ proto.JSONResponse.toObject = function(includeInstance, msg) {
229
+ var f, obj = {
230
+ response: jspb.Message.getFieldWithDefault(msg, 1, "")
231
+ };
232
+
233
+ if (includeInstance) {
234
+ obj.$jspbMessageInstance = msg;
235
+ }
236
+ return obj;
237
+ };
238
+ }
239
+
240
+
241
+ /**
242
+ * Deserializes binary data (in protobuf wire format).
243
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
244
+ * @return {!proto.JSONResponse}
245
+ */
246
+ proto.JSONResponse.deserializeBinary = function(bytes) {
247
+ var reader = new jspb.BinaryReader(bytes);
248
+ var msg = new proto.JSONResponse;
249
+ return proto.JSONResponse.deserializeBinaryFromReader(msg, reader);
250
+ };
251
+
252
+
253
+ /**
254
+ * Deserializes binary data (in protobuf wire format) from the
255
+ * given reader into the given message object.
256
+ * @param {!proto.JSONResponse} msg The message object to deserialize into.
257
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
258
+ * @return {!proto.JSONResponse}
259
+ */
260
+ proto.JSONResponse.deserializeBinaryFromReader = function(msg, reader) {
261
+ while (reader.nextField()) {
262
+ if (reader.isEndGroup()) {
263
+ break;
264
+ }
265
+ var field = reader.getFieldNumber();
266
+ switch (field) {
267
+ case 1:
268
+ var value = /** @type {string} */ (reader.readString());
269
+ msg.setResponse(value);
270
+ break;
271
+ default:
272
+ reader.skipField();
273
+ break;
274
+ }
275
+ }
276
+ return msg;
277
+ };
278
+
279
+
280
+ /**
281
+ * Serializes the message to binary data (in protobuf wire format).
282
+ * @return {!Uint8Array}
283
+ */
284
+ proto.JSONResponse.prototype.serializeBinary = function() {
285
+ var writer = new jspb.BinaryWriter();
286
+ proto.JSONResponse.serializeBinaryToWriter(this, writer);
287
+ return writer.getResultBuffer();
288
+ };
289
+
290
+
291
+ /**
292
+ * Serializes the given message to binary data (in protobuf wire
293
+ * format), writing to the given BinaryWriter.
294
+ * @param {!proto.JSONResponse} message
295
+ * @param {!jspb.BinaryWriter} writer
296
+ * @suppress {unusedLocalVariables} f is only used for nested messages
297
+ */
298
+ proto.JSONResponse.serializeBinaryToWriter = function(message, writer) {
299
+ var f = undefined;
300
+ f = message.getResponse();
301
+ if (f.length > 0) {
302
+ writer.writeString(
303
+ 1,
304
+ f
305
+ );
306
+ }
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string response = 1;
312
+ * @return {string}
313
+ */
314
+ proto.JSONResponse.prototype.getResponse = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.JSONResponse} returns this
322
+ */
323
+ proto.JSONResponse.prototype.setResponse = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 1, value);
325
+ };
326
+
327
+
328
+ goog.object.extend(exports, proto);