@juzi/wechaty-grpc 1.0.105 → 1.0.107

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 (42) hide show
  1. package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +58 -0
  2. package/dist/cjs/out/wechaty/puppet/call_pb.js +451 -1
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +69 -7
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +78 -7
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/call.proto +25 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +6 -0
  11. package/dist/cjs/src/package-json.d.ts.map +1 -1
  12. package/dist/cjs/src/package-json.js +2 -1
  13. package/dist/cjs/src/package-json.js.map +1 -1
  14. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  16. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  17. package/dist/esm/out/wechaty/puppet/call_pb.d.ts +58 -0
  18. package/dist/esm/out/wechaty/puppet/call_pb.js +451 -1
  19. package/dist/esm/out/wechaty/puppet.openapi.yaml +69 -7
  20. package/dist/esm/out/wechaty/puppet.swagger.json +78 -7
  21. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  22. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  23. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  24. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  25. package/dist/esm/proto/wechaty/puppet/call.proto +25 -0
  26. package/dist/esm/proto/wechaty/puppet.proto +6 -0
  27. package/dist/esm/src/package-json.d.ts.map +1 -1
  28. package/dist/esm/src/package-json.js +2 -1
  29. package/dist/esm/src/package-json.js.map +1 -1
  30. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  31. package/dist/esm/tests/puppet-server-impl.js +5 -0
  32. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  33. package/out/wechaty/puppet/call_pb.d.ts +58 -0
  34. package/out/wechaty/puppet/call_pb.js +451 -1
  35. package/out/wechaty/puppet.openapi.yaml +69 -7
  36. package/out/wechaty/puppet.swagger.json +78 -7
  37. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  38. package/out/wechaty/puppet_grpc_pb.js +33 -0
  39. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  40. package/out/wechaty/puppet_pb_service.js +40 -0
  41. package/package.json +2 -1
  42. package/src/package-json.ts +2 -1
@@ -22,6 +22,9 @@ export class CallRecordPayload extends jspb.Message {
22
22
  getStatus(): CallStatusMap[keyof CallStatusMap];
23
23
  setStatus(value: CallStatusMap[keyof CallStatusMap]): void;
24
24
 
25
+ getCallId(): string;
26
+ setCallId(value: string): void;
27
+
25
28
  serializeBinary(): Uint8Array;
26
29
  toObject(includeInstance?: boolean): CallRecordPayload.AsObject;
27
30
  static toObject(includeInstance: boolean, msg: CallRecordPayload): CallRecordPayload.AsObject;
@@ -39,6 +42,7 @@ export namespace CallRecordPayload {
39
42
  length: number,
40
43
  type: CallTypeMap[keyof CallTypeMap],
41
44
  status: CallStatusMap[keyof CallStatusMap],
45
+ callId: string,
42
46
  }
43
47
  }
44
48
 
@@ -88,6 +92,60 @@ export namespace CallInviteResponse {
88
92
  }
89
93
  }
90
94
 
95
+ export class CallInviteWithMediaRequest extends jspb.Message {
96
+ clearContactIdsList(): void;
97
+ getContactIdsList(): Array<string>;
98
+ setContactIdsList(value: Array<string>): void;
99
+ addContactIds(value: string, index?: number): string;
100
+
101
+ getFileBox(): string;
102
+ setFileBox(value: string): void;
103
+
104
+ getHangupOnFinish(): boolean;
105
+ setHangupOnFinish(value: boolean): void;
106
+
107
+ getHangupDelayMs(): number;
108
+ setHangupDelayMs(value: number): void;
109
+
110
+ serializeBinary(): Uint8Array;
111
+ toObject(includeInstance?: boolean): CallInviteWithMediaRequest.AsObject;
112
+ static toObject(includeInstance: boolean, msg: CallInviteWithMediaRequest): CallInviteWithMediaRequest.AsObject;
113
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
114
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
115
+ static serializeBinaryToWriter(message: CallInviteWithMediaRequest, writer: jspb.BinaryWriter): void;
116
+ static deserializeBinary(bytes: Uint8Array): CallInviteWithMediaRequest;
117
+ static deserializeBinaryFromReader(message: CallInviteWithMediaRequest, reader: jspb.BinaryReader): CallInviteWithMediaRequest;
118
+ }
119
+
120
+ export namespace CallInviteWithMediaRequest {
121
+ export type AsObject = {
122
+ contactIdsList: Array<string>,
123
+ fileBox: string,
124
+ hangupOnFinish: boolean,
125
+ hangupDelayMs: number,
126
+ }
127
+ }
128
+
129
+ export class CallInviteWithMediaResponse extends jspb.Message {
130
+ getCallId(): string;
131
+ setCallId(value: string): void;
132
+
133
+ serializeBinary(): Uint8Array;
134
+ toObject(includeInstance?: boolean): CallInviteWithMediaResponse.AsObject;
135
+ static toObject(includeInstance: boolean, msg: CallInviteWithMediaResponse): CallInviteWithMediaResponse.AsObject;
136
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
137
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
138
+ static serializeBinaryToWriter(message: CallInviteWithMediaResponse, writer: jspb.BinaryWriter): void;
139
+ static deserializeBinary(bytes: Uint8Array): CallInviteWithMediaResponse;
140
+ static deserializeBinaryFromReader(message: CallInviteWithMediaResponse, reader: jspb.BinaryReader): CallInviteWithMediaResponse;
141
+ }
142
+
143
+ export namespace CallInviteWithMediaResponse {
144
+ export type AsObject = {
145
+ callId: string,
146
+ }
147
+ }
148
+
91
149
  export class CallAddRequest extends jspb.Message {
92
150
  getCallId(): string;
93
151
  setCallId(value: string): void;
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.wechaty.puppet.CallHangupRequest', null, global);
27
27
  goog.exportSymbol('proto.wechaty.puppet.CallHangupResponse', null, global);
28
28
  goog.exportSymbol('proto.wechaty.puppet.CallInviteRequest', null, global);
29
29
  goog.exportSymbol('proto.wechaty.puppet.CallInviteResponse', null, global);
30
+ goog.exportSymbol('proto.wechaty.puppet.CallInviteWithMediaRequest', null, global);
31
+ goog.exportSymbol('proto.wechaty.puppet.CallInviteWithMediaResponse', null, global);
30
32
  goog.exportSymbol('proto.wechaty.puppet.CallMediaEndpointRequest', null, global);
31
33
  goog.exportSymbol('proto.wechaty.puppet.CallMediaEndpointResponse', null, global);
32
34
  goog.exportSymbol('proto.wechaty.puppet.CallPayloadRequest', null, global);
@@ -99,6 +101,48 @@ if (goog.DEBUG && !COMPILED) {
99
101
  */
100
102
  proto.wechaty.puppet.CallInviteResponse.displayName = 'proto.wechaty.puppet.CallInviteResponse';
101
103
  }
104
+ /**
105
+ * Generated by JsPbCodeGenerator.
106
+ * @param {Array=} opt_data Optional initial data array, typically from a
107
+ * server response, or constructed directly in Javascript. The array is used
108
+ * in place and becomes part of the constructed object. It is not cloned.
109
+ * If no data is provided, the constructed object will be empty, but still
110
+ * valid.
111
+ * @extends {jspb.Message}
112
+ * @constructor
113
+ */
114
+ proto.wechaty.puppet.CallInviteWithMediaRequest = function(opt_data) {
115
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.CallInviteWithMediaRequest.repeatedFields_, null);
116
+ };
117
+ goog.inherits(proto.wechaty.puppet.CallInviteWithMediaRequest, jspb.Message);
118
+ if (goog.DEBUG && !COMPILED) {
119
+ /**
120
+ * @public
121
+ * @override
122
+ */
123
+ proto.wechaty.puppet.CallInviteWithMediaRequest.displayName = 'proto.wechaty.puppet.CallInviteWithMediaRequest';
124
+ }
125
+ /**
126
+ * Generated by JsPbCodeGenerator.
127
+ * @param {Array=} opt_data Optional initial data array, typically from a
128
+ * server response, or constructed directly in Javascript. The array is used
129
+ * in place and becomes part of the constructed object. It is not cloned.
130
+ * If no data is provided, the constructed object will be empty, but still
131
+ * valid.
132
+ * @extends {jspb.Message}
133
+ * @constructor
134
+ */
135
+ proto.wechaty.puppet.CallInviteWithMediaResponse = function(opt_data) {
136
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
137
+ };
138
+ goog.inherits(proto.wechaty.puppet.CallInviteWithMediaResponse, jspb.Message);
139
+ if (goog.DEBUG && !COMPILED) {
140
+ /**
141
+ * @public
142
+ * @override
143
+ */
144
+ proto.wechaty.puppet.CallInviteWithMediaResponse.displayName = 'proto.wechaty.puppet.CallInviteWithMediaResponse';
145
+ }
102
146
  /**
103
147
  * Generated by JsPbCodeGenerator.
104
148
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -436,7 +480,8 @@ proto.wechaty.puppet.CallRecordPayload.toObject = function(includeInstance, msg)
436
480
  participantIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
437
481
  length: jspb.Message.getFieldWithDefault(msg, 3, 0),
438
482
  type: jspb.Message.getFieldWithDefault(msg, 4, 0),
439
- status: jspb.Message.getFieldWithDefault(msg, 5, 0)
483
+ status: jspb.Message.getFieldWithDefault(msg, 5, 0),
484
+ callId: jspb.Message.getFieldWithDefault(msg, 6, "")
440
485
  };
441
486
 
442
487
  if (includeInstance) {
@@ -493,6 +538,10 @@ proto.wechaty.puppet.CallRecordPayload.deserializeBinaryFromReader = function(ms
493
538
  var value = /** @type {!proto.wechaty.puppet.CallStatus} */ (reader.readEnum());
494
539
  msg.setStatus(value);
495
540
  break;
541
+ case 6:
542
+ var value = /** @type {string} */ (reader.readString());
543
+ msg.setCallId(value);
544
+ break;
496
545
  default:
497
546
  reader.skipField();
498
547
  break;
@@ -557,6 +606,13 @@ proto.wechaty.puppet.CallRecordPayload.serializeBinaryToWriter = function(messag
557
606
  f
558
607
  );
559
608
  }
609
+ f = message.getCallId();
610
+ if (f.length > 0) {
611
+ writer.writeString(
612
+ 6,
613
+ f
614
+ );
615
+ }
560
616
  };
561
617
 
562
618
 
@@ -669,6 +725,24 @@ proto.wechaty.puppet.CallRecordPayload.prototype.setStatus = function(value) {
669
725
  };
670
726
 
671
727
 
728
+ /**
729
+ * optional string call_id = 6;
730
+ * @return {string}
731
+ */
732
+ proto.wechaty.puppet.CallRecordPayload.prototype.getCallId = function() {
733
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
734
+ };
735
+
736
+
737
+ /**
738
+ * @param {string} value
739
+ * @return {!proto.wechaty.puppet.CallRecordPayload} returns this
740
+ */
741
+ proto.wechaty.puppet.CallRecordPayload.prototype.setCallId = function(value) {
742
+ return jspb.Message.setProto3StringField(this, 6, value);
743
+ };
744
+
745
+
672
746
 
673
747
  /**
674
748
  * List of repeated fields within this message type.
@@ -986,6 +1060,382 @@ proto.wechaty.puppet.CallInviteResponse.prototype.setCallId = function(value) {
986
1060
 
987
1061
 
988
1062
 
1063
+ /**
1064
+ * List of repeated fields within this message type.
1065
+ * @private {!Array<number>}
1066
+ * @const
1067
+ */
1068
+ proto.wechaty.puppet.CallInviteWithMediaRequest.repeatedFields_ = [1];
1069
+
1070
+
1071
+
1072
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1073
+ /**
1074
+ * Creates an object representation of this proto.
1075
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1076
+ * Optional fields that are not set will be set to undefined.
1077
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1078
+ * For the list of reserved names please see:
1079
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1080
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1081
+ * JSPB instance for transitional soy proto support:
1082
+ * http://goto/soy-param-migration
1083
+ * @return {!Object}
1084
+ */
1085
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.toObject = function(opt_includeInstance) {
1086
+ return proto.wechaty.puppet.CallInviteWithMediaRequest.toObject(opt_includeInstance, this);
1087
+ };
1088
+
1089
+
1090
+ /**
1091
+ * Static version of the {@see toObject} method.
1092
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1093
+ * the JSPB instance for transitional soy proto support:
1094
+ * http://goto/soy-param-migration
1095
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} msg The msg instance to transform.
1096
+ * @return {!Object}
1097
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1098
+ */
1099
+ proto.wechaty.puppet.CallInviteWithMediaRequest.toObject = function(includeInstance, msg) {
1100
+ var f, obj = {
1101
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1102
+ fileBox: jspb.Message.getFieldWithDefault(msg, 2, ""),
1103
+ hangupOnFinish: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1104
+ hangupDelayMs: jspb.Message.getFieldWithDefault(msg, 4, 0)
1105
+ };
1106
+
1107
+ if (includeInstance) {
1108
+ obj.$jspbMessageInstance = msg;
1109
+ }
1110
+ return obj;
1111
+ };
1112
+ }
1113
+
1114
+
1115
+ /**
1116
+ * Deserializes binary data (in protobuf wire format).
1117
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1118
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest}
1119
+ */
1120
+ proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinary = function(bytes) {
1121
+ var reader = new jspb.BinaryReader(bytes);
1122
+ var msg = new proto.wechaty.puppet.CallInviteWithMediaRequest;
1123
+ return proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinaryFromReader(msg, reader);
1124
+ };
1125
+
1126
+
1127
+ /**
1128
+ * Deserializes binary data (in protobuf wire format) from the
1129
+ * given reader into the given message object.
1130
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} msg The message object to deserialize into.
1131
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1132
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest}
1133
+ */
1134
+ proto.wechaty.puppet.CallInviteWithMediaRequest.deserializeBinaryFromReader = function(msg, reader) {
1135
+ while (reader.nextField()) {
1136
+ if (reader.isEndGroup()) {
1137
+ break;
1138
+ }
1139
+ var field = reader.getFieldNumber();
1140
+ switch (field) {
1141
+ case 1:
1142
+ var value = /** @type {string} */ (reader.readString());
1143
+ msg.addContactIds(value);
1144
+ break;
1145
+ case 2:
1146
+ var value = /** @type {string} */ (reader.readString());
1147
+ msg.setFileBox(value);
1148
+ break;
1149
+ case 3:
1150
+ var value = /** @type {boolean} */ (reader.readBool());
1151
+ msg.setHangupOnFinish(value);
1152
+ break;
1153
+ case 4:
1154
+ var value = /** @type {number} */ (reader.readUint32());
1155
+ msg.setHangupDelayMs(value);
1156
+ break;
1157
+ default:
1158
+ reader.skipField();
1159
+ break;
1160
+ }
1161
+ }
1162
+ return msg;
1163
+ };
1164
+
1165
+
1166
+ /**
1167
+ * Serializes the message to binary data (in protobuf wire format).
1168
+ * @return {!Uint8Array}
1169
+ */
1170
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.serializeBinary = function() {
1171
+ var writer = new jspb.BinaryWriter();
1172
+ proto.wechaty.puppet.CallInviteWithMediaRequest.serializeBinaryToWriter(this, writer);
1173
+ return writer.getResultBuffer();
1174
+ };
1175
+
1176
+
1177
+ /**
1178
+ * Serializes the given message to binary data (in protobuf wire
1179
+ * format), writing to the given BinaryWriter.
1180
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaRequest} message
1181
+ * @param {!jspb.BinaryWriter} writer
1182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1183
+ */
1184
+ proto.wechaty.puppet.CallInviteWithMediaRequest.serializeBinaryToWriter = function(message, writer) {
1185
+ var f = undefined;
1186
+ f = message.getContactIdsList();
1187
+ if (f.length > 0) {
1188
+ writer.writeRepeatedString(
1189
+ 1,
1190
+ f
1191
+ );
1192
+ }
1193
+ f = message.getFileBox();
1194
+ if (f.length > 0) {
1195
+ writer.writeString(
1196
+ 2,
1197
+ f
1198
+ );
1199
+ }
1200
+ f = message.getHangupOnFinish();
1201
+ if (f) {
1202
+ writer.writeBool(
1203
+ 3,
1204
+ f
1205
+ );
1206
+ }
1207
+ f = message.getHangupDelayMs();
1208
+ if (f !== 0) {
1209
+ writer.writeUint32(
1210
+ 4,
1211
+ f
1212
+ );
1213
+ }
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * repeated string contact_ids = 1;
1219
+ * @return {!Array<string>}
1220
+ */
1221
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getContactIdsList = function() {
1222
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * @param {!Array<string>} value
1228
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1229
+ */
1230
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setContactIdsList = function(value) {
1231
+ return jspb.Message.setField(this, 1, value || []);
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * @param {string} value
1237
+ * @param {number=} opt_index
1238
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1239
+ */
1240
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.addContactIds = function(value, opt_index) {
1241
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * Clears the list making it empty but non-null.
1247
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1248
+ */
1249
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.clearContactIdsList = function() {
1250
+ return this.setContactIdsList([]);
1251
+ };
1252
+
1253
+
1254
+ /**
1255
+ * optional string file_box = 2;
1256
+ * @return {string}
1257
+ */
1258
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getFileBox = function() {
1259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1260
+ };
1261
+
1262
+
1263
+ /**
1264
+ * @param {string} value
1265
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1266
+ */
1267
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setFileBox = function(value) {
1268
+ return jspb.Message.setProto3StringField(this, 2, value);
1269
+ };
1270
+
1271
+
1272
+ /**
1273
+ * optional bool hangup_on_finish = 3;
1274
+ * @return {boolean}
1275
+ */
1276
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getHangupOnFinish = function() {
1277
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1278
+ };
1279
+
1280
+
1281
+ /**
1282
+ * @param {boolean} value
1283
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1284
+ */
1285
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setHangupOnFinish = function(value) {
1286
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * optional uint32 hangup_delay_ms = 4;
1292
+ * @return {number}
1293
+ */
1294
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.getHangupDelayMs = function() {
1295
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1296
+ };
1297
+
1298
+
1299
+ /**
1300
+ * @param {number} value
1301
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaRequest} returns this
1302
+ */
1303
+ proto.wechaty.puppet.CallInviteWithMediaRequest.prototype.setHangupDelayMs = function(value) {
1304
+ return jspb.Message.setProto3IntField(this, 4, value);
1305
+ };
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1312
+ /**
1313
+ * Creates an object representation of this proto.
1314
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1315
+ * Optional fields that are not set will be set to undefined.
1316
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1317
+ * For the list of reserved names please see:
1318
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1319
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1320
+ * JSPB instance for transitional soy proto support:
1321
+ * http://goto/soy-param-migration
1322
+ * @return {!Object}
1323
+ */
1324
+ proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.toObject = function(opt_includeInstance) {
1325
+ return proto.wechaty.puppet.CallInviteWithMediaResponse.toObject(opt_includeInstance, this);
1326
+ };
1327
+
1328
+
1329
+ /**
1330
+ * Static version of the {@see toObject} method.
1331
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1332
+ * the JSPB instance for transitional soy proto support:
1333
+ * http://goto/soy-param-migration
1334
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} msg The msg instance to transform.
1335
+ * @return {!Object}
1336
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1337
+ */
1338
+ proto.wechaty.puppet.CallInviteWithMediaResponse.toObject = function(includeInstance, msg) {
1339
+ var f, obj = {
1340
+ callId: jspb.Message.getFieldWithDefault(msg, 1, "")
1341
+ };
1342
+
1343
+ if (includeInstance) {
1344
+ obj.$jspbMessageInstance = msg;
1345
+ }
1346
+ return obj;
1347
+ };
1348
+ }
1349
+
1350
+
1351
+ /**
1352
+ * Deserializes binary data (in protobuf wire format).
1353
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1354
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaResponse}
1355
+ */
1356
+ proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinary = function(bytes) {
1357
+ var reader = new jspb.BinaryReader(bytes);
1358
+ var msg = new proto.wechaty.puppet.CallInviteWithMediaResponse;
1359
+ return proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinaryFromReader(msg, reader);
1360
+ };
1361
+
1362
+
1363
+ /**
1364
+ * Deserializes binary data (in protobuf wire format) from the
1365
+ * given reader into the given message object.
1366
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} msg The message object to deserialize into.
1367
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1368
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaResponse}
1369
+ */
1370
+ proto.wechaty.puppet.CallInviteWithMediaResponse.deserializeBinaryFromReader = function(msg, reader) {
1371
+ while (reader.nextField()) {
1372
+ if (reader.isEndGroup()) {
1373
+ break;
1374
+ }
1375
+ var field = reader.getFieldNumber();
1376
+ switch (field) {
1377
+ case 1:
1378
+ var value = /** @type {string} */ (reader.readString());
1379
+ msg.setCallId(value);
1380
+ break;
1381
+ default:
1382
+ reader.skipField();
1383
+ break;
1384
+ }
1385
+ }
1386
+ return msg;
1387
+ };
1388
+
1389
+
1390
+ /**
1391
+ * Serializes the message to binary data (in protobuf wire format).
1392
+ * @return {!Uint8Array}
1393
+ */
1394
+ proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.serializeBinary = function() {
1395
+ var writer = new jspb.BinaryWriter();
1396
+ proto.wechaty.puppet.CallInviteWithMediaResponse.serializeBinaryToWriter(this, writer);
1397
+ return writer.getResultBuffer();
1398
+ };
1399
+
1400
+
1401
+ /**
1402
+ * Serializes the given message to binary data (in protobuf wire
1403
+ * format), writing to the given BinaryWriter.
1404
+ * @param {!proto.wechaty.puppet.CallInviteWithMediaResponse} message
1405
+ * @param {!jspb.BinaryWriter} writer
1406
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1407
+ */
1408
+ proto.wechaty.puppet.CallInviteWithMediaResponse.serializeBinaryToWriter = function(message, writer) {
1409
+ var f = undefined;
1410
+ f = message.getCallId();
1411
+ if (f.length > 0) {
1412
+ writer.writeString(
1413
+ 1,
1414
+ f
1415
+ );
1416
+ }
1417
+ };
1418
+
1419
+
1420
+ /**
1421
+ * optional string call_id = 1;
1422
+ * @return {string}
1423
+ */
1424
+ proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.getCallId = function() {
1425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1426
+ };
1427
+
1428
+
1429
+ /**
1430
+ * @param {string} value
1431
+ * @return {!proto.wechaty.puppet.CallInviteWithMediaResponse} returns this
1432
+ */
1433
+ proto.wechaty.puppet.CallInviteWithMediaResponse.prototype.setCallId = function(value) {
1434
+ return jspb.Message.setProto3StringField(this, 1, value);
1435
+ };
1436
+
1437
+
1438
+
989
1439
  /**
990
1440
  * List of repeated fields within this message type.
991
1441
  * @private {!Array<number>}