@@ -25325,6 +25325,164 @@ export module UpdatePictureRequest {
25325
25325
}
25326
25326
}
25327
25327
25328
+ /**
25329
+ * Message implementation for goautowp.SetPictureCopyrightsRequest
25330
+ */
25331
+ export class SetPictureCopyrightsRequest implements GrpcMessage {
25332
+ static id = 'goautowp.SetPictureCopyrightsRequest';
25333
+
25334
+ /**
25335
+ * Deserialize binary data to message
25336
+ * @param instance message instance
25337
+ */
25338
+ static deserializeBinary(bytes: ByteSource) {
25339
+ const instance = new SetPictureCopyrightsRequest();
25340
+ SetPictureCopyrightsRequest.deserializeBinaryFromReader(
25341
+ instance,
25342
+ new BinaryReader(bytes)
25343
+ );
25344
+ return instance;
25345
+ }
25346
+
25347
+ /**
25348
+ * Check all the properties and set default protobuf values if necessary
25349
+ * @param _instance message instance
25350
+ */
25351
+ static refineValues(_instance: SetPictureCopyrightsRequest) {
25352
+ _instance.id = _instance.id || '0';
25353
+ _instance.copyrights = _instance.copyrights || '';
25354
+ }
25355
+
25356
+ /**
25357
+ * Deserializes / reads binary message into message instance using provided binary reader
25358
+ * @param _instance message instance
25359
+ * @param _reader binary reader instance
25360
+ */
25361
+ static deserializeBinaryFromReader(
25362
+ _instance: SetPictureCopyrightsRequest,
25363
+ _reader: BinaryReader
25364
+ ) {
25365
+ while (_reader.nextField()) {
25366
+ if (_reader.isEndGroup()) break;
25367
+
25368
+ switch (_reader.getFieldNumber()) {
25369
+ case 1:
25370
+ _instance.id = _reader.readInt64String();
25371
+ break;
25372
+ case 2:
25373
+ _instance.copyrights = _reader.readString();
25374
+ break;
25375
+ default:
25376
+ _reader.skipField();
25377
+ }
25378
+ }
25379
+
25380
+ SetPictureCopyrightsRequest.refineValues(_instance);
25381
+ }
25382
+
25383
+ /**
25384
+ * Serializes a message to binary format using provided binary reader
25385
+ * @param _instance message instance
25386
+ * @param _writer binary writer instance
25387
+ */
25388
+ static serializeBinaryToWriter(
25389
+ _instance: SetPictureCopyrightsRequest,
25390
+ _writer: BinaryWriter
25391
+ ) {
25392
+ if (_instance.id) {
25393
+ _writer.writeInt64String(1, _instance.id);
25394
+ }
25395
+ if (_instance.copyrights) {
25396
+ _writer.writeString(2, _instance.copyrights);
25397
+ }
25398
+ }
25399
+
25400
+ private _id: string;
25401
+ private _copyrights: string;
25402
+
25403
+ /**
25404
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
25405
+ * @param _value initial values object or instance of SetPictureCopyrightsRequest to deeply clone from
25406
+ */
25407
+ constructor(_value?: RecursivePartial<SetPictureCopyrightsRequest.AsObject>) {
25408
+ _value = _value || {};
25409
+ this.id = _value.id;
25410
+ this.copyrights = _value.copyrights;
25411
+ SetPictureCopyrightsRequest.refineValues(this);
25412
+ }
25413
+ get id(): string {
25414
+ return this._id;
25415
+ }
25416
+ set id(value: string) {
25417
+ this._id = value;
25418
+ }
25419
+ get copyrights(): string {
25420
+ return this._copyrights;
25421
+ }
25422
+ set copyrights(value: string) {
25423
+ this._copyrights = value;
25424
+ }
25425
+
25426
+ /**
25427
+ * Serialize message to binary data
25428
+ * @param instance message instance
25429
+ */
25430
+ serializeBinary() {
25431
+ const writer = new BinaryWriter();
25432
+ SetPictureCopyrightsRequest.serializeBinaryToWriter(this, writer);
25433
+ return writer.getResultBuffer();
25434
+ }
25435
+
25436
+ /**
25437
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
25438
+ */
25439
+ toObject(): SetPictureCopyrightsRequest.AsObject {
25440
+ return {
25441
+ id: this.id,
25442
+ copyrights: this.copyrights
25443
+ };
25444
+ }
25445
+
25446
+ /**
25447
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
25448
+ */
25449
+ toJSON() {
25450
+ return this.toObject();
25451
+ }
25452
+
25453
+ /**
25454
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
25455
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
25456
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
25457
+ */
25458
+ toProtobufJSON(
25459
+ // @ts-ignore
25460
+ options?: ToProtobufJSONOptions
25461
+ ): SetPictureCopyrightsRequest.AsProtobufJSON {
25462
+ return {
25463
+ id: this.id,
25464
+ copyrights: this.copyrights
25465
+ };
25466
+ }
25467
+ }
25468
+ export module SetPictureCopyrightsRequest {
25469
+ /**
25470
+ * Standard JavaScript object representation for SetPictureCopyrightsRequest
25471
+ */
25472
+ export interface AsObject {
25473
+ id: string;
25474
+ copyrights: string;
25475
+ }
25476
+
25477
+ /**
25478
+ * Protobuf JSON representation for SetPictureCopyrightsRequest
25479
+ */
25480
+ export interface AsProtobufJSON {
25481
+ id: string;
25482
+ copyrights: string;
25483
+ }
25484
+ }
25485
+
25328
25486
/**
25329
25487
* Message implementation for goautowp.DeleteSimilarRequest
25330
25488
*/
@@ -32522,9 +32680,9 @@ export class ItemLanguage implements GrpcMessage {
32522
32680
_instance.itemId = _instance.itemId || '0';
32523
32681
_instance.language = _instance.language || '';
32524
32682
_instance.name = _instance.name || '';
32525
- _instance.textId = _instance.textId || '0' ;
32683
+ _instance.textId = _instance.textId || 0 ;
32526
32684
_instance.text = _instance.text || '';
32527
- _instance.fullTextId = _instance.fullTextId || '0' ;
32685
+ _instance.fullTextId = _instance.fullTextId || 0 ;
32528
32686
_instance.fullText = _instance.fullText || '';
32529
32687
}
32530
32688
@@ -32551,13 +32709,13 @@ export class ItemLanguage implements GrpcMessage {
32551
32709
_instance.name = _reader.readString();
32552
32710
break;
32553
32711
case 4:
32554
- _instance.textId = _reader.readInt64String ();
32712
+ _instance.textId = _reader.readInt32 ();
32555
32713
break;
32556
32714
case 5:
32557
32715
_instance.text = _reader.readString();
32558
32716
break;
32559
32717
case 6:
32560
- _instance.fullTextId = _reader.readInt64String ();
32718
+ _instance.fullTextId = _reader.readInt32 ();
32561
32719
break;
32562
32720
case 7:
32563
32721
_instance.fullText = _reader.readString();
@@ -32589,13 +32747,13 @@ export class ItemLanguage implements GrpcMessage {
32589
32747
_writer.writeString(3, _instance.name);
32590
32748
}
32591
32749
if (_instance.textId) {
32592
- _writer.writeInt64String (4, _instance.textId);
32750
+ _writer.writeInt32 (4, _instance.textId);
32593
32751
}
32594
32752
if (_instance.text) {
32595
32753
_writer.writeString(5, _instance.text);
32596
32754
}
32597
32755
if (_instance.fullTextId) {
32598
- _writer.writeInt64String (6, _instance.fullTextId);
32756
+ _writer.writeInt32 (6, _instance.fullTextId);
32599
32757
}
32600
32758
if (_instance.fullText) {
32601
32759
_writer.writeString(7, _instance.fullText);
@@ -32605,9 +32763,9 @@ export class ItemLanguage implements GrpcMessage {
32605
32763
private _itemId: string;
32606
32764
private _language: string;
32607
32765
private _name: string;
32608
- private _textId: string ;
32766
+ private _textId: number ;
32609
32767
private _text: string;
32610
- private _fullTextId: string ;
32768
+ private _fullTextId: number ;
32611
32769
private _fullText: string;
32612
32770
32613
32771
/**
@@ -32643,10 +32801,10 @@ export class ItemLanguage implements GrpcMessage {
32643
32801
set name(value: string) {
32644
32802
this._name = value;
32645
32803
}
32646
- get textId(): string {
32804
+ get textId(): number {
32647
32805
return this._textId;
32648
32806
}
32649
- set textId(value: string ) {
32807
+ set textId(value: number ) {
32650
32808
this._textId = value;
32651
32809
}
32652
32810
get text(): string {
@@ -32655,10 +32813,10 @@ export class ItemLanguage implements GrpcMessage {
32655
32813
set text(value: string) {
32656
32814
this._text = value;
32657
32815
}
32658
- get fullTextId(): string {
32816
+ get fullTextId(): number {
32659
32817
return this._fullTextId;
32660
32818
}
32661
- set fullTextId(value: string ) {
32819
+ set fullTextId(value: number ) {
32662
32820
this._fullTextId = value;
32663
32821
}
32664
32822
get fullText(): string {
@@ -32728,9 +32886,9 @@ export module ItemLanguage {
32728
32886
itemId: string;
32729
32887
language: string;
32730
32888
name: string;
32731
- textId: string ;
32889
+ textId: number ;
32732
32890
text: string;
32733
- fullTextId: string ;
32891
+ fullTextId: number ;
32734
32892
fullText: string;
32735
32893
}
32736
32894
@@ -32741,9 +32899,9 @@ export module ItemLanguage {
32741
32899
itemId: string;
32742
32900
language: string;
32743
32901
name: string;
32744
- textId: string ;
32902
+ textId: number ;
32745
32903
text: string;
32746
- fullTextId: string ;
32904
+ fullTextId: number ;
32747
32905
fullText: string;
32748
32906
}
32749
32907
}
0 commit comments