@juzi/wechaty-grpc 1.0.103 → 1.0.104
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.
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +63 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +100 -1
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +15 -0
- package/dist/cjs/proto/wechaty/puppet.proto +6 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +638 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +63 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +100 -1
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +15 -0
- package/dist/esm/proto/wechaty/puppet.proto +6 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/message_pb.d.ts +84 -0
- package/out/wechaty/puppet/message_pb.js +638 -0
- package/out/wechaty/puppet.openapi.yaml +63 -1
- package/out/wechaty/puppet.swagger.json +100 -1
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -120,6 +120,10 @@ goog.exportSymbol('proto.wechaty.puppet.MessageSendUrlResponse', null, global);
|
|
|
120
120
|
goog.exportSymbol('proto.wechaty.puppet.MessageType', null, global);
|
|
121
121
|
goog.exportSymbol('proto.wechaty.puppet.MessageUrlRequest', null, global);
|
|
122
122
|
goog.exportSymbol('proto.wechaty.puppet.MessageUrlResponse', null, global);
|
|
123
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageVoiceRequest', null, global);
|
|
124
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageVoiceResponse', null, global);
|
|
125
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageVoiceTextRequest', null, global);
|
|
126
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageVoiceTextResponse', null, global);
|
|
123
127
|
goog.exportSymbol('proto.wechaty.puppet.TextContent', null, global);
|
|
124
128
|
goog.exportSymbol('proto.wechaty.puppet.TextContentData', null, global);
|
|
125
129
|
goog.exportSymbol('proto.wechaty.puppet.TextContentType', null, global);
|
|
@@ -333,6 +337,90 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
333
337
|
*/
|
|
334
338
|
proto.wechaty.puppet.MessageFileResponse.displayName = 'proto.wechaty.puppet.MessageFileResponse';
|
|
335
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* Generated by JsPbCodeGenerator.
|
|
342
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
343
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
344
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
345
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
346
|
+
* valid.
|
|
347
|
+
* @extends {jspb.Message}
|
|
348
|
+
* @constructor
|
|
349
|
+
*/
|
|
350
|
+
proto.wechaty.puppet.MessageVoiceRequest = function(opt_data) {
|
|
351
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
352
|
+
};
|
|
353
|
+
goog.inherits(proto.wechaty.puppet.MessageVoiceRequest, jspb.Message);
|
|
354
|
+
if (goog.DEBUG && !COMPILED) {
|
|
355
|
+
/**
|
|
356
|
+
* @public
|
|
357
|
+
* @override
|
|
358
|
+
*/
|
|
359
|
+
proto.wechaty.puppet.MessageVoiceRequest.displayName = 'proto.wechaty.puppet.MessageVoiceRequest';
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Generated by JsPbCodeGenerator.
|
|
363
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
364
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
365
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
366
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
367
|
+
* valid.
|
|
368
|
+
* @extends {jspb.Message}
|
|
369
|
+
* @constructor
|
|
370
|
+
*/
|
|
371
|
+
proto.wechaty.puppet.MessageVoiceResponse = function(opt_data) {
|
|
372
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
373
|
+
};
|
|
374
|
+
goog.inherits(proto.wechaty.puppet.MessageVoiceResponse, jspb.Message);
|
|
375
|
+
if (goog.DEBUG && !COMPILED) {
|
|
376
|
+
/**
|
|
377
|
+
* @public
|
|
378
|
+
* @override
|
|
379
|
+
*/
|
|
380
|
+
proto.wechaty.puppet.MessageVoiceResponse.displayName = 'proto.wechaty.puppet.MessageVoiceResponse';
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Generated by JsPbCodeGenerator.
|
|
384
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
385
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
386
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
387
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
388
|
+
* valid.
|
|
389
|
+
* @extends {jspb.Message}
|
|
390
|
+
* @constructor
|
|
391
|
+
*/
|
|
392
|
+
proto.wechaty.puppet.MessageVoiceTextRequest = function(opt_data) {
|
|
393
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
394
|
+
};
|
|
395
|
+
goog.inherits(proto.wechaty.puppet.MessageVoiceTextRequest, jspb.Message);
|
|
396
|
+
if (goog.DEBUG && !COMPILED) {
|
|
397
|
+
/**
|
|
398
|
+
* @public
|
|
399
|
+
* @override
|
|
400
|
+
*/
|
|
401
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.displayName = 'proto.wechaty.puppet.MessageVoiceTextRequest';
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Generated by JsPbCodeGenerator.
|
|
405
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
406
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
407
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
408
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
409
|
+
* valid.
|
|
410
|
+
* @extends {jspb.Message}
|
|
411
|
+
* @constructor
|
|
412
|
+
*/
|
|
413
|
+
proto.wechaty.puppet.MessageVoiceTextResponse = function(opt_data) {
|
|
414
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
415
|
+
};
|
|
416
|
+
goog.inherits(proto.wechaty.puppet.MessageVoiceTextResponse, jspb.Message);
|
|
417
|
+
if (goog.DEBUG && !COMPILED) {
|
|
418
|
+
/**
|
|
419
|
+
* @public
|
|
420
|
+
* @override
|
|
421
|
+
*/
|
|
422
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.displayName = 'proto.wechaty.puppet.MessageVoiceTextResponse';
|
|
423
|
+
}
|
|
336
424
|
/**
|
|
337
425
|
* Generated by JsPbCodeGenerator.
|
|
338
426
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3725,6 +3813,556 @@ proto.wechaty.puppet.MessageFileResponse.prototype.setFileBox = function(value)
|
|
|
3725
3813
|
|
|
3726
3814
|
|
|
3727
3815
|
|
|
3816
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3817
|
+
/**
|
|
3818
|
+
* Creates an object representation of this proto.
|
|
3819
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3820
|
+
* Optional fields that are not set will be set to undefined.
|
|
3821
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3822
|
+
* For the list of reserved names please see:
|
|
3823
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3824
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3825
|
+
* JSPB instance for transitional soy proto support:
|
|
3826
|
+
* http://goto/soy-param-migration
|
|
3827
|
+
* @return {!Object}
|
|
3828
|
+
*/
|
|
3829
|
+
proto.wechaty.puppet.MessageVoiceRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3830
|
+
return proto.wechaty.puppet.MessageVoiceRequest.toObject(opt_includeInstance, this);
|
|
3831
|
+
};
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
/**
|
|
3835
|
+
* Static version of the {@see toObject} method.
|
|
3836
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3837
|
+
* the JSPB instance for transitional soy proto support:
|
|
3838
|
+
* http://goto/soy-param-migration
|
|
3839
|
+
* @param {!proto.wechaty.puppet.MessageVoiceRequest} msg The msg instance to transform.
|
|
3840
|
+
* @return {!Object}
|
|
3841
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3842
|
+
*/
|
|
3843
|
+
proto.wechaty.puppet.MessageVoiceRequest.toObject = function(includeInstance, msg) {
|
|
3844
|
+
var f, obj = {
|
|
3845
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3846
|
+
};
|
|
3847
|
+
|
|
3848
|
+
if (includeInstance) {
|
|
3849
|
+
obj.$jspbMessageInstance = msg;
|
|
3850
|
+
}
|
|
3851
|
+
return obj;
|
|
3852
|
+
};
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
|
|
3856
|
+
/**
|
|
3857
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3858
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3859
|
+
* @return {!proto.wechaty.puppet.MessageVoiceRequest}
|
|
3860
|
+
*/
|
|
3861
|
+
proto.wechaty.puppet.MessageVoiceRequest.deserializeBinary = function(bytes) {
|
|
3862
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3863
|
+
var msg = new proto.wechaty.puppet.MessageVoiceRequest;
|
|
3864
|
+
return proto.wechaty.puppet.MessageVoiceRequest.deserializeBinaryFromReader(msg, reader);
|
|
3865
|
+
};
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
/**
|
|
3869
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3870
|
+
* given reader into the given message object.
|
|
3871
|
+
* @param {!proto.wechaty.puppet.MessageVoiceRequest} msg The message object to deserialize into.
|
|
3872
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3873
|
+
* @return {!proto.wechaty.puppet.MessageVoiceRequest}
|
|
3874
|
+
*/
|
|
3875
|
+
proto.wechaty.puppet.MessageVoiceRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3876
|
+
while (reader.nextField()) {
|
|
3877
|
+
if (reader.isEndGroup()) {
|
|
3878
|
+
break;
|
|
3879
|
+
}
|
|
3880
|
+
var field = reader.getFieldNumber();
|
|
3881
|
+
switch (field) {
|
|
3882
|
+
case 1:
|
|
3883
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3884
|
+
msg.setId(value);
|
|
3885
|
+
break;
|
|
3886
|
+
default:
|
|
3887
|
+
reader.skipField();
|
|
3888
|
+
break;
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
return msg;
|
|
3892
|
+
};
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
/**
|
|
3896
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3897
|
+
* @return {!Uint8Array}
|
|
3898
|
+
*/
|
|
3899
|
+
proto.wechaty.puppet.MessageVoiceRequest.prototype.serializeBinary = function() {
|
|
3900
|
+
var writer = new jspb.BinaryWriter();
|
|
3901
|
+
proto.wechaty.puppet.MessageVoiceRequest.serializeBinaryToWriter(this, writer);
|
|
3902
|
+
return writer.getResultBuffer();
|
|
3903
|
+
};
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3908
|
+
* format), writing to the given BinaryWriter.
|
|
3909
|
+
* @param {!proto.wechaty.puppet.MessageVoiceRequest} message
|
|
3910
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3911
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3912
|
+
*/
|
|
3913
|
+
proto.wechaty.puppet.MessageVoiceRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3914
|
+
var f = undefined;
|
|
3915
|
+
f = message.getId();
|
|
3916
|
+
if (f.length > 0) {
|
|
3917
|
+
writer.writeString(
|
|
3918
|
+
1,
|
|
3919
|
+
f
|
|
3920
|
+
);
|
|
3921
|
+
}
|
|
3922
|
+
};
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
/**
|
|
3926
|
+
* optional string id = 1;
|
|
3927
|
+
* @return {string}
|
|
3928
|
+
*/
|
|
3929
|
+
proto.wechaty.puppet.MessageVoiceRequest.prototype.getId = function() {
|
|
3930
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3931
|
+
};
|
|
3932
|
+
|
|
3933
|
+
|
|
3934
|
+
/**
|
|
3935
|
+
* @param {string} value
|
|
3936
|
+
* @return {!proto.wechaty.puppet.MessageVoiceRequest} returns this
|
|
3937
|
+
*/
|
|
3938
|
+
proto.wechaty.puppet.MessageVoiceRequest.prototype.setId = function(value) {
|
|
3939
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3940
|
+
};
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
|
|
3944
|
+
|
|
3945
|
+
|
|
3946
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3947
|
+
/**
|
|
3948
|
+
* Creates an object representation of this proto.
|
|
3949
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3950
|
+
* Optional fields that are not set will be set to undefined.
|
|
3951
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3952
|
+
* For the list of reserved names please see:
|
|
3953
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3954
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3955
|
+
* JSPB instance for transitional soy proto support:
|
|
3956
|
+
* http://goto/soy-param-migration
|
|
3957
|
+
* @return {!Object}
|
|
3958
|
+
*/
|
|
3959
|
+
proto.wechaty.puppet.MessageVoiceResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3960
|
+
return proto.wechaty.puppet.MessageVoiceResponse.toObject(opt_includeInstance, this);
|
|
3961
|
+
};
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* Static version of the {@see toObject} method.
|
|
3966
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3967
|
+
* the JSPB instance for transitional soy proto support:
|
|
3968
|
+
* http://goto/soy-param-migration
|
|
3969
|
+
* @param {!proto.wechaty.puppet.MessageVoiceResponse} msg The msg instance to transform.
|
|
3970
|
+
* @return {!Object}
|
|
3971
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3972
|
+
*/
|
|
3973
|
+
proto.wechaty.puppet.MessageVoiceResponse.toObject = function(includeInstance, msg) {
|
|
3974
|
+
var f, obj = {
|
|
3975
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
if (includeInstance) {
|
|
3979
|
+
obj.$jspbMessageInstance = msg;
|
|
3980
|
+
}
|
|
3981
|
+
return obj;
|
|
3982
|
+
};
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
|
|
3986
|
+
/**
|
|
3987
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3988
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3989
|
+
* @return {!proto.wechaty.puppet.MessageVoiceResponse}
|
|
3990
|
+
*/
|
|
3991
|
+
proto.wechaty.puppet.MessageVoiceResponse.deserializeBinary = function(bytes) {
|
|
3992
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3993
|
+
var msg = new proto.wechaty.puppet.MessageVoiceResponse;
|
|
3994
|
+
return proto.wechaty.puppet.MessageVoiceResponse.deserializeBinaryFromReader(msg, reader);
|
|
3995
|
+
};
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
/**
|
|
3999
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4000
|
+
* given reader into the given message object.
|
|
4001
|
+
* @param {!proto.wechaty.puppet.MessageVoiceResponse} msg The message object to deserialize into.
|
|
4002
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4003
|
+
* @return {!proto.wechaty.puppet.MessageVoiceResponse}
|
|
4004
|
+
*/
|
|
4005
|
+
proto.wechaty.puppet.MessageVoiceResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4006
|
+
while (reader.nextField()) {
|
|
4007
|
+
if (reader.isEndGroup()) {
|
|
4008
|
+
break;
|
|
4009
|
+
}
|
|
4010
|
+
var field = reader.getFieldNumber();
|
|
4011
|
+
switch (field) {
|
|
4012
|
+
case 1:
|
|
4013
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4014
|
+
msg.setFileBox(value);
|
|
4015
|
+
break;
|
|
4016
|
+
default:
|
|
4017
|
+
reader.skipField();
|
|
4018
|
+
break;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
4021
|
+
return msg;
|
|
4022
|
+
};
|
|
4023
|
+
|
|
4024
|
+
|
|
4025
|
+
/**
|
|
4026
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4027
|
+
* @return {!Uint8Array}
|
|
4028
|
+
*/
|
|
4029
|
+
proto.wechaty.puppet.MessageVoiceResponse.prototype.serializeBinary = function() {
|
|
4030
|
+
var writer = new jspb.BinaryWriter();
|
|
4031
|
+
proto.wechaty.puppet.MessageVoiceResponse.serializeBinaryToWriter(this, writer);
|
|
4032
|
+
return writer.getResultBuffer();
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4038
|
+
* format), writing to the given BinaryWriter.
|
|
4039
|
+
* @param {!proto.wechaty.puppet.MessageVoiceResponse} message
|
|
4040
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4042
|
+
*/
|
|
4043
|
+
proto.wechaty.puppet.MessageVoiceResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4044
|
+
var f = undefined;
|
|
4045
|
+
f = message.getFileBox();
|
|
4046
|
+
if (f.length > 0) {
|
|
4047
|
+
writer.writeString(
|
|
4048
|
+
1,
|
|
4049
|
+
f
|
|
4050
|
+
);
|
|
4051
|
+
}
|
|
4052
|
+
};
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
/**
|
|
4056
|
+
* optional string file_box = 1;
|
|
4057
|
+
* @return {string}
|
|
4058
|
+
*/
|
|
4059
|
+
proto.wechaty.puppet.MessageVoiceResponse.prototype.getFileBox = function() {
|
|
4060
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4061
|
+
};
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
/**
|
|
4065
|
+
* @param {string} value
|
|
4066
|
+
* @return {!proto.wechaty.puppet.MessageVoiceResponse} returns this
|
|
4067
|
+
*/
|
|
4068
|
+
proto.wechaty.puppet.MessageVoiceResponse.prototype.setFileBox = function(value) {
|
|
4069
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4070
|
+
};
|
|
4071
|
+
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
|
|
4076
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4077
|
+
/**
|
|
4078
|
+
* Creates an object representation of this proto.
|
|
4079
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4080
|
+
* Optional fields that are not set will be set to undefined.
|
|
4081
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4082
|
+
* For the list of reserved names please see:
|
|
4083
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4084
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4085
|
+
* JSPB instance for transitional soy proto support:
|
|
4086
|
+
* http://goto/soy-param-migration
|
|
4087
|
+
* @return {!Object}
|
|
4088
|
+
*/
|
|
4089
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4090
|
+
return proto.wechaty.puppet.MessageVoiceTextRequest.toObject(opt_includeInstance, this);
|
|
4091
|
+
};
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
/**
|
|
4095
|
+
* Static version of the {@see toObject} method.
|
|
4096
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4097
|
+
* the JSPB instance for transitional soy proto support:
|
|
4098
|
+
* http://goto/soy-param-migration
|
|
4099
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextRequest} msg The msg instance to transform.
|
|
4100
|
+
* @return {!Object}
|
|
4101
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4102
|
+
*/
|
|
4103
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.toObject = function(includeInstance, msg) {
|
|
4104
|
+
var f, obj = {
|
|
4105
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4106
|
+
};
|
|
4107
|
+
|
|
4108
|
+
if (includeInstance) {
|
|
4109
|
+
obj.$jspbMessageInstance = msg;
|
|
4110
|
+
}
|
|
4111
|
+
return obj;
|
|
4112
|
+
};
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
|
|
4116
|
+
/**
|
|
4117
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4118
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4119
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextRequest}
|
|
4120
|
+
*/
|
|
4121
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.deserializeBinary = function(bytes) {
|
|
4122
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4123
|
+
var msg = new proto.wechaty.puppet.MessageVoiceTextRequest;
|
|
4124
|
+
return proto.wechaty.puppet.MessageVoiceTextRequest.deserializeBinaryFromReader(msg, reader);
|
|
4125
|
+
};
|
|
4126
|
+
|
|
4127
|
+
|
|
4128
|
+
/**
|
|
4129
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4130
|
+
* given reader into the given message object.
|
|
4131
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextRequest} msg The message object to deserialize into.
|
|
4132
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4133
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextRequest}
|
|
4134
|
+
*/
|
|
4135
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4136
|
+
while (reader.nextField()) {
|
|
4137
|
+
if (reader.isEndGroup()) {
|
|
4138
|
+
break;
|
|
4139
|
+
}
|
|
4140
|
+
var field = reader.getFieldNumber();
|
|
4141
|
+
switch (field) {
|
|
4142
|
+
case 1:
|
|
4143
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4144
|
+
msg.setId(value);
|
|
4145
|
+
break;
|
|
4146
|
+
default:
|
|
4147
|
+
reader.skipField();
|
|
4148
|
+
break;
|
|
4149
|
+
}
|
|
4150
|
+
}
|
|
4151
|
+
return msg;
|
|
4152
|
+
};
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
/**
|
|
4156
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4157
|
+
* @return {!Uint8Array}
|
|
4158
|
+
*/
|
|
4159
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.prototype.serializeBinary = function() {
|
|
4160
|
+
var writer = new jspb.BinaryWriter();
|
|
4161
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.serializeBinaryToWriter(this, writer);
|
|
4162
|
+
return writer.getResultBuffer();
|
|
4163
|
+
};
|
|
4164
|
+
|
|
4165
|
+
|
|
4166
|
+
/**
|
|
4167
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4168
|
+
* format), writing to the given BinaryWriter.
|
|
4169
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextRequest} message
|
|
4170
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4171
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4172
|
+
*/
|
|
4173
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4174
|
+
var f = undefined;
|
|
4175
|
+
f = message.getId();
|
|
4176
|
+
if (f.length > 0) {
|
|
4177
|
+
writer.writeString(
|
|
4178
|
+
1,
|
|
4179
|
+
f
|
|
4180
|
+
);
|
|
4181
|
+
}
|
|
4182
|
+
};
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
/**
|
|
4186
|
+
* optional string id = 1;
|
|
4187
|
+
* @return {string}
|
|
4188
|
+
*/
|
|
4189
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.prototype.getId = function() {
|
|
4190
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4191
|
+
};
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
/**
|
|
4195
|
+
* @param {string} value
|
|
4196
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextRequest} returns this
|
|
4197
|
+
*/
|
|
4198
|
+
proto.wechaty.puppet.MessageVoiceTextRequest.prototype.setId = function(value) {
|
|
4199
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4200
|
+
};
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
|
|
4206
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4207
|
+
/**
|
|
4208
|
+
* Creates an object representation of this proto.
|
|
4209
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4210
|
+
* Optional fields that are not set will be set to undefined.
|
|
4211
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4212
|
+
* For the list of reserved names please see:
|
|
4213
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4214
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4215
|
+
* JSPB instance for transitional soy proto support:
|
|
4216
|
+
* http://goto/soy-param-migration
|
|
4217
|
+
* @return {!Object}
|
|
4218
|
+
*/
|
|
4219
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4220
|
+
return proto.wechaty.puppet.MessageVoiceTextResponse.toObject(opt_includeInstance, this);
|
|
4221
|
+
};
|
|
4222
|
+
|
|
4223
|
+
|
|
4224
|
+
/**
|
|
4225
|
+
* Static version of the {@see toObject} method.
|
|
4226
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4227
|
+
* the JSPB instance for transitional soy proto support:
|
|
4228
|
+
* http://goto/soy-param-migration
|
|
4229
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextResponse} msg The msg instance to transform.
|
|
4230
|
+
* @return {!Object}
|
|
4231
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4232
|
+
*/
|
|
4233
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.toObject = function(includeInstance, msg) {
|
|
4234
|
+
var f, obj = {
|
|
4235
|
+
text: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4236
|
+
noSpeech: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
4237
|
+
};
|
|
4238
|
+
|
|
4239
|
+
if (includeInstance) {
|
|
4240
|
+
obj.$jspbMessageInstance = msg;
|
|
4241
|
+
}
|
|
4242
|
+
return obj;
|
|
4243
|
+
};
|
|
4244
|
+
}
|
|
4245
|
+
|
|
4246
|
+
|
|
4247
|
+
/**
|
|
4248
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4249
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4250
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextResponse}
|
|
4251
|
+
*/
|
|
4252
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.deserializeBinary = function(bytes) {
|
|
4253
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4254
|
+
var msg = new proto.wechaty.puppet.MessageVoiceTextResponse;
|
|
4255
|
+
return proto.wechaty.puppet.MessageVoiceTextResponse.deserializeBinaryFromReader(msg, reader);
|
|
4256
|
+
};
|
|
4257
|
+
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4261
|
+
* given reader into the given message object.
|
|
4262
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextResponse} msg The message object to deserialize into.
|
|
4263
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4264
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextResponse}
|
|
4265
|
+
*/
|
|
4266
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4267
|
+
while (reader.nextField()) {
|
|
4268
|
+
if (reader.isEndGroup()) {
|
|
4269
|
+
break;
|
|
4270
|
+
}
|
|
4271
|
+
var field = reader.getFieldNumber();
|
|
4272
|
+
switch (field) {
|
|
4273
|
+
case 1:
|
|
4274
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4275
|
+
msg.setText(value);
|
|
4276
|
+
break;
|
|
4277
|
+
case 2:
|
|
4278
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
4279
|
+
msg.setNoSpeech(value);
|
|
4280
|
+
break;
|
|
4281
|
+
default:
|
|
4282
|
+
reader.skipField();
|
|
4283
|
+
break;
|
|
4284
|
+
}
|
|
4285
|
+
}
|
|
4286
|
+
return msg;
|
|
4287
|
+
};
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
/**
|
|
4291
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4292
|
+
* @return {!Uint8Array}
|
|
4293
|
+
*/
|
|
4294
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.serializeBinary = function() {
|
|
4295
|
+
var writer = new jspb.BinaryWriter();
|
|
4296
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.serializeBinaryToWriter(this, writer);
|
|
4297
|
+
return writer.getResultBuffer();
|
|
4298
|
+
};
|
|
4299
|
+
|
|
4300
|
+
|
|
4301
|
+
/**
|
|
4302
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4303
|
+
* format), writing to the given BinaryWriter.
|
|
4304
|
+
* @param {!proto.wechaty.puppet.MessageVoiceTextResponse} message
|
|
4305
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4306
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4307
|
+
*/
|
|
4308
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4309
|
+
var f = undefined;
|
|
4310
|
+
f = message.getText();
|
|
4311
|
+
if (f.length > 0) {
|
|
4312
|
+
writer.writeString(
|
|
4313
|
+
1,
|
|
4314
|
+
f
|
|
4315
|
+
);
|
|
4316
|
+
}
|
|
4317
|
+
f = message.getNoSpeech();
|
|
4318
|
+
if (f) {
|
|
4319
|
+
writer.writeBool(
|
|
4320
|
+
2,
|
|
4321
|
+
f
|
|
4322
|
+
);
|
|
4323
|
+
}
|
|
4324
|
+
};
|
|
4325
|
+
|
|
4326
|
+
|
|
4327
|
+
/**
|
|
4328
|
+
* optional string text = 1;
|
|
4329
|
+
* @return {string}
|
|
4330
|
+
*/
|
|
4331
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.getText = function() {
|
|
4332
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4333
|
+
};
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
/**
|
|
4337
|
+
* @param {string} value
|
|
4338
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextResponse} returns this
|
|
4339
|
+
*/
|
|
4340
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.setText = function(value) {
|
|
4341
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4342
|
+
};
|
|
4343
|
+
|
|
4344
|
+
|
|
4345
|
+
/**
|
|
4346
|
+
* optional bool no_speech = 2;
|
|
4347
|
+
* @return {boolean}
|
|
4348
|
+
*/
|
|
4349
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.getNoSpeech = function() {
|
|
4350
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
4351
|
+
};
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
/**
|
|
4355
|
+
* @param {boolean} value
|
|
4356
|
+
* @return {!proto.wechaty.puppet.MessageVoiceTextResponse} returns this
|
|
4357
|
+
*/
|
|
4358
|
+
proto.wechaty.puppet.MessageVoiceTextResponse.prototype.setNoSpeech = function(value) {
|
|
4359
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
4360
|
+
};
|
|
4361
|
+
|
|
4362
|
+
|
|
4363
|
+
|
|
4364
|
+
|
|
4365
|
+
|
|
3728
4366
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3729
4367
|
/**
|
|
3730
4368
|
* Creates an object representation of this proto.
|