compiled.d.ts
1 import * as $protobuf from "protobufjs"; 2 import Long = require("long"); 3 /** Namespace market. */ 4 export namespace market { 5 6 /** Namespace mass. */ 7 namespace mass { 8 9 /** Properties of an AuthenticateRequest. */ 10 interface IAuthenticateRequest { 11 12 /** AuthenticateRequest publicKey */ 13 publicKey?: (market.mass.IPublicKey|null); 14 } 15 16 /** Represents an AuthenticateRequest. */ 17 class AuthenticateRequest implements IAuthenticateRequest { 18 19 /** 20 * Constructs a new AuthenticateRequest. 21 * @param [properties] Properties to set 22 */ 23 constructor(properties?: market.mass.IAuthenticateRequest); 24 25 /** AuthenticateRequest publicKey. */ 26 public publicKey?: (market.mass.IPublicKey|null); 27 28 /** 29 * Creates a new AuthenticateRequest instance using the specified properties. 30 * @param [properties] Properties to set 31 * @returns AuthenticateRequest instance 32 */ 33 public static create(properties?: market.mass.IAuthenticateRequest): market.mass.AuthenticateRequest; 34 35 /** 36 * Encodes the specified AuthenticateRequest message. Does not implicitly {@link market.mass.AuthenticateRequest.verify|verify} messages. 37 * @param message AuthenticateRequest message or plain object to encode 38 * @param [writer] Writer to encode to 39 * @returns Writer 40 */ 41 public static encode(message: market.mass.IAuthenticateRequest, writer?: $protobuf.Writer): $protobuf.Writer; 42 43 /** 44 * Encodes the specified AuthenticateRequest message, length delimited. Does not implicitly {@link market.mass.AuthenticateRequest.verify|verify} messages. 45 * @param message AuthenticateRequest message or plain object to encode 46 * @param [writer] Writer to encode to 47 * @returns Writer 48 */ 49 public static encodeDelimited(message: market.mass.IAuthenticateRequest, writer?: $protobuf.Writer): $protobuf.Writer; 50 51 /** 52 * Decodes an AuthenticateRequest message from the specified reader or buffer. 53 * @param reader Reader or buffer to decode from 54 * @param [length] Message length if known beforehand 55 * @returns AuthenticateRequest 56 * @throws {Error} If the payload is not a reader or valid buffer 57 * @throws {$protobuf.util.ProtocolError} If required fields are missing 58 */ 59 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.AuthenticateRequest; 60 61 /** 62 * Decodes an AuthenticateRequest message from the specified reader or buffer, length delimited. 63 * @param reader Reader or buffer to decode from 64 * @returns AuthenticateRequest 65 * @throws {Error} If the payload is not a reader or valid buffer 66 * @throws {$protobuf.util.ProtocolError} If required fields are missing 67 */ 68 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.AuthenticateRequest; 69 70 /** 71 * Verifies an AuthenticateRequest message. 72 * @param message Plain object to verify 73 * @returns `null` if valid, otherwise the reason why it is not 74 */ 75 public static verify(message: { [k: string]: any }): (string|null); 76 77 /** 78 * Creates an AuthenticateRequest message from a plain object. Also converts values to their respective internal types. 79 * @param object Plain object 80 * @returns AuthenticateRequest 81 */ 82 public static fromObject(object: { [k: string]: any }): market.mass.AuthenticateRequest; 83 84 /** 85 * Creates a plain object from an AuthenticateRequest message. Also converts values to other types if specified. 86 * @param message AuthenticateRequest 87 * @param [options] Conversion options 88 * @returns Plain object 89 */ 90 public static toObject(message: market.mass.AuthenticateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 91 92 /** 93 * Converts this AuthenticateRequest to JSON. 94 * @returns JSON object 95 */ 96 public toJSON(): { [k: string]: any }; 97 98 /** 99 * Gets the default type url for AuthenticateRequest 100 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 101 * @returns The default type url 102 */ 103 public static getTypeUrl(typeUrlPrefix?: string): string; 104 } 105 106 /** Properties of a ChallengeSolvedRequest. */ 107 interface IChallengeSolvedRequest { 108 109 /** ChallengeSolvedRequest signature */ 110 signature?: (market.mass.ISignature|null); 111 } 112 113 /** Represents a ChallengeSolvedRequest. */ 114 class ChallengeSolvedRequest implements IChallengeSolvedRequest { 115 116 /** 117 * Constructs a new ChallengeSolvedRequest. 118 * @param [properties] Properties to set 119 */ 120 constructor(properties?: market.mass.IChallengeSolvedRequest); 121 122 /** ChallengeSolvedRequest signature. */ 123 public signature?: (market.mass.ISignature|null); 124 125 /** 126 * Creates a new ChallengeSolvedRequest instance using the specified properties. 127 * @param [properties] Properties to set 128 * @returns ChallengeSolvedRequest instance 129 */ 130 public static create(properties?: market.mass.IChallengeSolvedRequest): market.mass.ChallengeSolvedRequest; 131 132 /** 133 * Encodes the specified ChallengeSolvedRequest message. Does not implicitly {@link market.mass.ChallengeSolvedRequest.verify|verify} messages. 134 * @param message ChallengeSolvedRequest message or plain object to encode 135 * @param [writer] Writer to encode to 136 * @returns Writer 137 */ 138 public static encode(message: market.mass.IChallengeSolvedRequest, writer?: $protobuf.Writer): $protobuf.Writer; 139 140 /** 141 * Encodes the specified ChallengeSolvedRequest message, length delimited. Does not implicitly {@link market.mass.ChallengeSolvedRequest.verify|verify} messages. 142 * @param message ChallengeSolvedRequest message or plain object to encode 143 * @param [writer] Writer to encode to 144 * @returns Writer 145 */ 146 public static encodeDelimited(message: market.mass.IChallengeSolvedRequest, writer?: $protobuf.Writer): $protobuf.Writer; 147 148 /** 149 * Decodes a ChallengeSolvedRequest message from the specified reader or buffer. 150 * @param reader Reader or buffer to decode from 151 * @param [length] Message length if known beforehand 152 * @returns ChallengeSolvedRequest 153 * @throws {Error} If the payload is not a reader or valid buffer 154 * @throws {$protobuf.util.ProtocolError} If required fields are missing 155 */ 156 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.ChallengeSolvedRequest; 157 158 /** 159 * Decodes a ChallengeSolvedRequest message from the specified reader or buffer, length delimited. 160 * @param reader Reader or buffer to decode from 161 * @returns ChallengeSolvedRequest 162 * @throws {Error} If the payload is not a reader or valid buffer 163 * @throws {$protobuf.util.ProtocolError} If required fields are missing 164 */ 165 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.ChallengeSolvedRequest; 166 167 /** 168 * Verifies a ChallengeSolvedRequest message. 169 * @param message Plain object to verify 170 * @returns `null` if valid, otherwise the reason why it is not 171 */ 172 public static verify(message: { [k: string]: any }): (string|null); 173 174 /** 175 * Creates a ChallengeSolvedRequest message from a plain object. Also converts values to their respective internal types. 176 * @param object Plain object 177 * @returns ChallengeSolvedRequest 178 */ 179 public static fromObject(object: { [k: string]: any }): market.mass.ChallengeSolvedRequest; 180 181 /** 182 * Creates a plain object from a ChallengeSolvedRequest message. Also converts values to other types if specified. 183 * @param message ChallengeSolvedRequest 184 * @param [options] Conversion options 185 * @returns Plain object 186 */ 187 public static toObject(message: market.mass.ChallengeSolvedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 188 189 /** 190 * Converts this ChallengeSolvedRequest to JSON. 191 * @returns JSON object 192 */ 193 public toJSON(): { [k: string]: any }; 194 195 /** 196 * Gets the default type url for ChallengeSolvedRequest 197 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 198 * @returns The default type url 199 */ 200 public static getTypeUrl(typeUrlPrefix?: string): string; 201 } 202 203 /** Properties of a RequestId. */ 204 interface IRequestId { 205 206 /** RequestId raw */ 207 raw?: (number|Long|null); 208 } 209 210 /** Represents a RequestId. */ 211 class RequestId implements IRequestId { 212 213 /** 214 * Constructs a new RequestId. 215 * @param [properties] Properties to set 216 */ 217 constructor(properties?: market.mass.IRequestId); 218 219 /** RequestId raw. */ 220 public raw: (number|Long); 221 222 /** 223 * Creates a new RequestId instance using the specified properties. 224 * @param [properties] Properties to set 225 * @returns RequestId instance 226 */ 227 public static create(properties?: market.mass.IRequestId): market.mass.RequestId; 228 229 /** 230 * Encodes the specified RequestId message. Does not implicitly {@link market.mass.RequestId.verify|verify} messages. 231 * @param message RequestId message or plain object to encode 232 * @param [writer] Writer to encode to 233 * @returns Writer 234 */ 235 public static encode(message: market.mass.IRequestId, writer?: $protobuf.Writer): $protobuf.Writer; 236 237 /** 238 * Encodes the specified RequestId message, length delimited. Does not implicitly {@link market.mass.RequestId.verify|verify} messages. 239 * @param message RequestId message or plain object to encode 240 * @param [writer] Writer to encode to 241 * @returns Writer 242 */ 243 public static encodeDelimited(message: market.mass.IRequestId, writer?: $protobuf.Writer): $protobuf.Writer; 244 245 /** 246 * Decodes a RequestId message from the specified reader or buffer. 247 * @param reader Reader or buffer to decode from 248 * @param [length] Message length if known beforehand 249 * @returns RequestId 250 * @throws {Error} If the payload is not a reader or valid buffer 251 * @throws {$protobuf.util.ProtocolError} If required fields are missing 252 */ 253 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.RequestId; 254 255 /** 256 * Decodes a RequestId message from the specified reader or buffer, length delimited. 257 * @param reader Reader or buffer to decode from 258 * @returns RequestId 259 * @throws {Error} If the payload is not a reader or valid buffer 260 * @throws {$protobuf.util.ProtocolError} If required fields are missing 261 */ 262 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.RequestId; 263 264 /** 265 * Verifies a RequestId message. 266 * @param message Plain object to verify 267 * @returns `null` if valid, otherwise the reason why it is not 268 */ 269 public static verify(message: { [k: string]: any }): (string|null); 270 271 /** 272 * Creates a RequestId message from a plain object. Also converts values to their respective internal types. 273 * @param object Plain object 274 * @returns RequestId 275 */ 276 public static fromObject(object: { [k: string]: any }): market.mass.RequestId; 277 278 /** 279 * Creates a plain object from a RequestId message. Also converts values to other types if specified. 280 * @param message RequestId 281 * @param [options] Conversion options 282 * @returns Plain object 283 */ 284 public static toObject(message: market.mass.RequestId, options?: $protobuf.IConversionOptions): { [k: string]: any }; 285 286 /** 287 * Converts this RequestId to JSON. 288 * @returns JSON object 289 */ 290 public toJSON(): { [k: string]: any }; 291 292 /** 293 * Gets the default type url for RequestId 294 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 295 * @returns The default type url 296 */ 297 public static getTypeUrl(typeUrlPrefix?: string): string; 298 } 299 300 /** Properties of a Signature. */ 301 interface ISignature { 302 303 /** Signature raw */ 304 raw?: (Uint8Array|null); 305 } 306 307 /** Represents a Signature. */ 308 class Signature implements ISignature { 309 310 /** 311 * Constructs a new Signature. 312 * @param [properties] Properties to set 313 */ 314 constructor(properties?: market.mass.ISignature); 315 316 /** Signature raw. */ 317 public raw: Uint8Array; 318 319 /** 320 * Creates a new Signature instance using the specified properties. 321 * @param [properties] Properties to set 322 * @returns Signature instance 323 */ 324 public static create(properties?: market.mass.ISignature): market.mass.Signature; 325 326 /** 327 * Encodes the specified Signature message. Does not implicitly {@link market.mass.Signature.verify|verify} messages. 328 * @param message Signature message or plain object to encode 329 * @param [writer] Writer to encode to 330 * @returns Writer 331 */ 332 public static encode(message: market.mass.ISignature, writer?: $protobuf.Writer): $protobuf.Writer; 333 334 /** 335 * Encodes the specified Signature message, length delimited. Does not implicitly {@link market.mass.Signature.verify|verify} messages. 336 * @param message Signature message or plain object to encode 337 * @param [writer] Writer to encode to 338 * @returns Writer 339 */ 340 public static encodeDelimited(message: market.mass.ISignature, writer?: $protobuf.Writer): $protobuf.Writer; 341 342 /** 343 * Decodes a Signature message from the specified reader or buffer. 344 * @param reader Reader or buffer to decode from 345 * @param [length] Message length if known beforehand 346 * @returns Signature 347 * @throws {Error} If the payload is not a reader or valid buffer 348 * @throws {$protobuf.util.ProtocolError} If required fields are missing 349 */ 350 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Signature; 351 352 /** 353 * Decodes a Signature message from the specified reader or buffer, length delimited. 354 * @param reader Reader or buffer to decode from 355 * @returns Signature 356 * @throws {Error} If the payload is not a reader or valid buffer 357 * @throws {$protobuf.util.ProtocolError} If required fields are missing 358 */ 359 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Signature; 360 361 /** 362 * Verifies a Signature message. 363 * @param message Plain object to verify 364 * @returns `null` if valid, otherwise the reason why it is not 365 */ 366 public static verify(message: { [k: string]: any }): (string|null); 367 368 /** 369 * Creates a Signature message from a plain object. Also converts values to their respective internal types. 370 * @param object Plain object 371 * @returns Signature 372 */ 373 public static fromObject(object: { [k: string]: any }): market.mass.Signature; 374 375 /** 376 * Creates a plain object from a Signature message. Also converts values to other types if specified. 377 * @param message Signature 378 * @param [options] Conversion options 379 * @returns Plain object 380 */ 381 public static toObject(message: market.mass.Signature, options?: $protobuf.IConversionOptions): { [k: string]: any }; 382 383 /** 384 * Converts this Signature to JSON. 385 * @returns JSON object 386 */ 387 public toJSON(): { [k: string]: any }; 388 389 /** 390 * Gets the default type url for Signature 391 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 392 * @returns The default type url 393 */ 394 public static getTypeUrl(typeUrlPrefix?: string): string; 395 } 396 397 /** Properties of a PublicKey. */ 398 interface IPublicKey { 399 400 /** PublicKey raw */ 401 raw?: (Uint8Array|null); 402 } 403 404 /** Represents a PublicKey. */ 405 class PublicKey implements IPublicKey { 406 407 /** 408 * Constructs a new PublicKey. 409 * @param [properties] Properties to set 410 */ 411 constructor(properties?: market.mass.IPublicKey); 412 413 /** PublicKey raw. */ 414 public raw: Uint8Array; 415 416 /** 417 * Creates a new PublicKey instance using the specified properties. 418 * @param [properties] Properties to set 419 * @returns PublicKey instance 420 */ 421 public static create(properties?: market.mass.IPublicKey): market.mass.PublicKey; 422 423 /** 424 * Encodes the specified PublicKey message. Does not implicitly {@link market.mass.PublicKey.verify|verify} messages. 425 * @param message PublicKey message or plain object to encode 426 * @param [writer] Writer to encode to 427 * @returns Writer 428 */ 429 public static encode(message: market.mass.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; 430 431 /** 432 * Encodes the specified PublicKey message, length delimited. Does not implicitly {@link market.mass.PublicKey.verify|verify} messages. 433 * @param message PublicKey message or plain object to encode 434 * @param [writer] Writer to encode to 435 * @returns Writer 436 */ 437 public static encodeDelimited(message: market.mass.IPublicKey, writer?: $protobuf.Writer): $protobuf.Writer; 438 439 /** 440 * Decodes a PublicKey message from the specified reader or buffer. 441 * @param reader Reader or buffer to decode from 442 * @param [length] Message length if known beforehand 443 * @returns PublicKey 444 * @throws {Error} If the payload is not a reader or valid buffer 445 * @throws {$protobuf.util.ProtocolError} If required fields are missing 446 */ 447 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.PublicKey; 448 449 /** 450 * Decodes a PublicKey message from the specified reader or buffer, length delimited. 451 * @param reader Reader or buffer to decode from 452 * @returns PublicKey 453 * @throws {Error} If the payload is not a reader or valid buffer 454 * @throws {$protobuf.util.ProtocolError} If required fields are missing 455 */ 456 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.PublicKey; 457 458 /** 459 * Verifies a PublicKey message. 460 * @param message Plain object to verify 461 * @returns `null` if valid, otherwise the reason why it is not 462 */ 463 public static verify(message: { [k: string]: any }): (string|null); 464 465 /** 466 * Creates a PublicKey message from a plain object. Also converts values to their respective internal types. 467 * @param object Plain object 468 * @returns PublicKey 469 */ 470 public static fromObject(object: { [k: string]: any }): market.mass.PublicKey; 471 472 /** 473 * Creates a plain object from a PublicKey message. Also converts values to other types if specified. 474 * @param message PublicKey 475 * @param [options] Conversion options 476 * @returns Plain object 477 */ 478 public static toObject(message: market.mass.PublicKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; 479 480 /** 481 * Converts this PublicKey to JSON. 482 * @returns JSON object 483 */ 484 public toJSON(): { [k: string]: any }; 485 486 /** 487 * Gets the default type url for PublicKey 488 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 489 * @returns The default type url 490 */ 491 public static getTypeUrl(typeUrlPrefix?: string): string; 492 } 493 494 /** Properties of an Uint256. */ 495 interface IUint256 { 496 497 /** Uint256 raw */ 498 raw?: (Uint8Array|null); 499 } 500 501 /** Represents an Uint256. */ 502 class Uint256 implements IUint256 { 503 504 /** 505 * Constructs a new Uint256. 506 * @param [properties] Properties to set 507 */ 508 constructor(properties?: market.mass.IUint256); 509 510 /** Uint256 raw. */ 511 public raw: Uint8Array; 512 513 /** 514 * Creates a new Uint256 instance using the specified properties. 515 * @param [properties] Properties to set 516 * @returns Uint256 instance 517 */ 518 public static create(properties?: market.mass.IUint256): market.mass.Uint256; 519 520 /** 521 * Encodes the specified Uint256 message. Does not implicitly {@link market.mass.Uint256.verify|verify} messages. 522 * @param message Uint256 message or plain object to encode 523 * @param [writer] Writer to encode to 524 * @returns Writer 525 */ 526 public static encode(message: market.mass.IUint256, writer?: $protobuf.Writer): $protobuf.Writer; 527 528 /** 529 * Encodes the specified Uint256 message, length delimited. Does not implicitly {@link market.mass.Uint256.verify|verify} messages. 530 * @param message Uint256 message or plain object to encode 531 * @param [writer] Writer to encode to 532 * @returns Writer 533 */ 534 public static encodeDelimited(message: market.mass.IUint256, writer?: $protobuf.Writer): $protobuf.Writer; 535 536 /** 537 * Decodes an Uint256 message from the specified reader or buffer. 538 * @param reader Reader or buffer to decode from 539 * @param [length] Message length if known beforehand 540 * @returns Uint256 541 * @throws {Error} If the payload is not a reader or valid buffer 542 * @throws {$protobuf.util.ProtocolError} If required fields are missing 543 */ 544 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Uint256; 545 546 /** 547 * Decodes an Uint256 message from the specified reader or buffer, length delimited. 548 * @param reader Reader or buffer to decode from 549 * @returns Uint256 550 * @throws {Error} If the payload is not a reader or valid buffer 551 * @throws {$protobuf.util.ProtocolError} If required fields are missing 552 */ 553 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Uint256; 554 555 /** 556 * Verifies an Uint256 message. 557 * @param message Plain object to verify 558 * @returns `null` if valid, otherwise the reason why it is not 559 */ 560 public static verify(message: { [k: string]: any }): (string|null); 561 562 /** 563 * Creates an Uint256 message from a plain object. Also converts values to their respective internal types. 564 * @param object Plain object 565 * @returns Uint256 566 */ 567 public static fromObject(object: { [k: string]: any }): market.mass.Uint256; 568 569 /** 570 * Creates a plain object from an Uint256 message. Also converts values to other types if specified. 571 * @param message Uint256 572 * @param [options] Conversion options 573 * @returns Plain object 574 */ 575 public static toObject(message: market.mass.Uint256, options?: $protobuf.IConversionOptions): { [k: string]: any }; 576 577 /** 578 * Converts this Uint256 to JSON. 579 * @returns JSON object 580 */ 581 public toJSON(): { [k: string]: any }; 582 583 /** 584 * Gets the default type url for Uint256 585 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 586 * @returns The default type url 587 */ 588 public static getTypeUrl(typeUrlPrefix?: string): string; 589 } 590 591 /** Properties of an ObjectId. */ 592 interface IObjectId { 593 594 /** ObjectId raw */ 595 raw?: (Uint8Array|null); 596 } 597 598 /** Represents an ObjectId. */ 599 class ObjectId implements IObjectId { 600 601 /** 602 * Constructs a new ObjectId. 603 * @param [properties] Properties to set 604 */ 605 constructor(properties?: market.mass.IObjectId); 606 607 /** ObjectId raw. */ 608 public raw: Uint8Array; 609 610 /** 611 * Creates a new ObjectId instance using the specified properties. 612 * @param [properties] Properties to set 613 * @returns ObjectId instance 614 */ 615 public static create(properties?: market.mass.IObjectId): market.mass.ObjectId; 616 617 /** 618 * Encodes the specified ObjectId message. Does not implicitly {@link market.mass.ObjectId.verify|verify} messages. 619 * @param message ObjectId message or plain object to encode 620 * @param [writer] Writer to encode to 621 * @returns Writer 622 */ 623 public static encode(message: market.mass.IObjectId, writer?: $protobuf.Writer): $protobuf.Writer; 624 625 /** 626 * Encodes the specified ObjectId message, length delimited. Does not implicitly {@link market.mass.ObjectId.verify|verify} messages. 627 * @param message ObjectId message or plain object to encode 628 * @param [writer] Writer to encode to 629 * @returns Writer 630 */ 631 public static encodeDelimited(message: market.mass.IObjectId, writer?: $protobuf.Writer): $protobuf.Writer; 632 633 /** 634 * Decodes an ObjectId message from the specified reader or buffer. 635 * @param reader Reader or buffer to decode from 636 * @param [length] Message length if known beforehand 637 * @returns ObjectId 638 * @throws {Error} If the payload is not a reader or valid buffer 639 * @throws {$protobuf.util.ProtocolError} If required fields are missing 640 */ 641 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.ObjectId; 642 643 /** 644 * Decodes an ObjectId message from the specified reader or buffer, length delimited. 645 * @param reader Reader or buffer to decode from 646 * @returns ObjectId 647 * @throws {Error} If the payload is not a reader or valid buffer 648 * @throws {$protobuf.util.ProtocolError} If required fields are missing 649 */ 650 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.ObjectId; 651 652 /** 653 * Verifies an ObjectId message. 654 * @param message Plain object to verify 655 * @returns `null` if valid, otherwise the reason why it is not 656 */ 657 public static verify(message: { [k: string]: any }): (string|null); 658 659 /** 660 * Creates an ObjectId message from a plain object. Also converts values to their respective internal types. 661 * @param object Plain object 662 * @returns ObjectId 663 */ 664 public static fromObject(object: { [k: string]: any }): market.mass.ObjectId; 665 666 /** 667 * Creates a plain object from an ObjectId message. Also converts values to other types if specified. 668 * @param message ObjectId 669 * @param [options] Conversion options 670 * @returns Plain object 671 */ 672 public static toObject(message: market.mass.ObjectId, options?: $protobuf.IConversionOptions): { [k: string]: any }; 673 674 /** 675 * Converts this ObjectId to JSON. 676 * @returns JSON object 677 */ 678 public toJSON(): { [k: string]: any }; 679 680 /** 681 * Gets the default type url for ObjectId 682 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 683 * @returns The default type url 684 */ 685 public static getTypeUrl(typeUrlPrefix?: string): string; 686 } 687 688 /** Properties of an Envelope. */ 689 interface IEnvelope { 690 691 /** Envelope requestId */ 692 requestId?: (market.mass.IRequestId|null); 693 694 /** Envelope response */ 695 response?: (market.mass.Envelope.IGenericResponse|null); 696 697 /** Envelope patchSetWriteRequest */ 698 patchSetWriteRequest?: (market.mass.IPatchSetWriteRequest|null); 699 700 /** Envelope subscriptionRequest */ 701 subscriptionRequest?: (market.mass.ISubscriptionRequest|null); 702 703 /** Envelope subscriptionCancelRequest */ 704 subscriptionCancelRequest?: (market.mass.ISubscriptionCancelRequest|null); 705 706 /** Envelope subscriptionPushRequest */ 707 subscriptionPushRequest?: (market.mass.ISubscriptionPushRequest|null); 708 709 /** Envelope syncStatusRequest */ 710 syncStatusRequest?: (market.mass.ISyncStatusRequest|null); 711 712 /** Envelope pingRequest */ 713 pingRequest?: (market.mass.IPingRequest|null); 714 715 /** Envelope getBlobUploadUrlRequest */ 716 getBlobUploadUrlRequest?: (market.mass.IGetBlobUploadURLRequest|null); 717 718 /** Envelope authRequest */ 719 authRequest?: (market.mass.IAuthenticateRequest|null); 720 721 /** Envelope challengeSolutionRequest */ 722 challengeSolutionRequest?: (market.mass.IChallengeSolvedRequest|null); 723 } 724 725 /** Represents an Envelope. */ 726 class Envelope implements IEnvelope { 727 728 /** 729 * Constructs a new Envelope. 730 * @param [properties] Properties to set 731 */ 732 constructor(properties?: market.mass.IEnvelope); 733 734 /** Envelope requestId. */ 735 public requestId?: (market.mass.IRequestId|null); 736 737 /** Envelope response. */ 738 public response?: (market.mass.Envelope.IGenericResponse|null); 739 740 /** Envelope patchSetWriteRequest. */ 741 public patchSetWriteRequest?: (market.mass.IPatchSetWriteRequest|null); 742 743 /** Envelope subscriptionRequest. */ 744 public subscriptionRequest?: (market.mass.ISubscriptionRequest|null); 745 746 /** Envelope subscriptionCancelRequest. */ 747 public subscriptionCancelRequest?: (market.mass.ISubscriptionCancelRequest|null); 748 749 /** Envelope subscriptionPushRequest. */ 750 public subscriptionPushRequest?: (market.mass.ISubscriptionPushRequest|null); 751 752 /** Envelope syncStatusRequest. */ 753 public syncStatusRequest?: (market.mass.ISyncStatusRequest|null); 754 755 /** Envelope pingRequest. */ 756 public pingRequest?: (market.mass.IPingRequest|null); 757 758 /** Envelope getBlobUploadUrlRequest. */ 759 public getBlobUploadUrlRequest?: (market.mass.IGetBlobUploadURLRequest|null); 760 761 /** Envelope authRequest. */ 762 public authRequest?: (market.mass.IAuthenticateRequest|null); 763 764 /** Envelope challengeSolutionRequest. */ 765 public challengeSolutionRequest?: (market.mass.IChallengeSolvedRequest|null); 766 767 /** Envelope message. */ 768 public message?: ("response"|"patchSetWriteRequest"|"subscriptionRequest"|"subscriptionCancelRequest"|"subscriptionPushRequest"|"syncStatusRequest"|"pingRequest"|"getBlobUploadUrlRequest"|"authRequest"|"challengeSolutionRequest"); 769 770 /** 771 * Creates a new Envelope instance using the specified properties. 772 * @param [properties] Properties to set 773 * @returns Envelope instance 774 */ 775 public static create(properties?: market.mass.IEnvelope): market.mass.Envelope; 776 777 /** 778 * Encodes the specified Envelope message. Does not implicitly {@link market.mass.Envelope.verify|verify} messages. 779 * @param message Envelope message or plain object to encode 780 * @param [writer] Writer to encode to 781 * @returns Writer 782 */ 783 public static encode(message: market.mass.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer; 784 785 /** 786 * Encodes the specified Envelope message, length delimited. Does not implicitly {@link market.mass.Envelope.verify|verify} messages. 787 * @param message Envelope message or plain object to encode 788 * @param [writer] Writer to encode to 789 * @returns Writer 790 */ 791 public static encodeDelimited(message: market.mass.IEnvelope, writer?: $protobuf.Writer): $protobuf.Writer; 792 793 /** 794 * Decodes an Envelope message from the specified reader or buffer. 795 * @param reader Reader or buffer to decode from 796 * @param [length] Message length if known beforehand 797 * @returns Envelope 798 * @throws {Error} If the payload is not a reader or valid buffer 799 * @throws {$protobuf.util.ProtocolError} If required fields are missing 800 */ 801 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Envelope; 802 803 /** 804 * Decodes an Envelope message from the specified reader or buffer, length delimited. 805 * @param reader Reader or buffer to decode from 806 * @returns Envelope 807 * @throws {Error} If the payload is not a reader or valid buffer 808 * @throws {$protobuf.util.ProtocolError} If required fields are missing 809 */ 810 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Envelope; 811 812 /** 813 * Verifies an Envelope message. 814 * @param message Plain object to verify 815 * @returns `null` if valid, otherwise the reason why it is not 816 */ 817 public static verify(message: { [k: string]: any }): (string|null); 818 819 /** 820 * Creates an Envelope message from a plain object. Also converts values to their respective internal types. 821 * @param object Plain object 822 * @returns Envelope 823 */ 824 public static fromObject(object: { [k: string]: any }): market.mass.Envelope; 825 826 /** 827 * Creates a plain object from an Envelope message. Also converts values to other types if specified. 828 * @param message Envelope 829 * @param [options] Conversion options 830 * @returns Plain object 831 */ 832 public static toObject(message: market.mass.Envelope, options?: $protobuf.IConversionOptions): { [k: string]: any }; 833 834 /** 835 * Converts this Envelope to JSON. 836 * @returns JSON object 837 */ 838 public toJSON(): { [k: string]: any }; 839 840 /** 841 * Gets the default type url for Envelope 842 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 843 * @returns The default type url 844 */ 845 public static getTypeUrl(typeUrlPrefix?: string): string; 846 } 847 848 namespace Envelope { 849 850 /** Properties of a GenericResponse. */ 851 interface IGenericResponse { 852 853 /** GenericResponse error */ 854 error?: (market.mass.IError|null); 855 856 /** GenericResponse payload */ 857 payload?: (Uint8Array|null); 858 } 859 860 /** Represents a GenericResponse. */ 861 class GenericResponse implements IGenericResponse { 862 863 /** 864 * Constructs a new GenericResponse. 865 * @param [properties] Properties to set 866 */ 867 constructor(properties?: market.mass.Envelope.IGenericResponse); 868 869 /** GenericResponse error. */ 870 public error?: (market.mass.IError|null); 871 872 /** GenericResponse payload. */ 873 public payload?: (Uint8Array|null); 874 875 /** GenericResponse response. */ 876 public response?: ("error"|"payload"); 877 878 /** 879 * Creates a new GenericResponse instance using the specified properties. 880 * @param [properties] Properties to set 881 * @returns GenericResponse instance 882 */ 883 public static create(properties?: market.mass.Envelope.IGenericResponse): market.mass.Envelope.GenericResponse; 884 885 /** 886 * Encodes the specified GenericResponse message. Does not implicitly {@link market.mass.Envelope.GenericResponse.verify|verify} messages. 887 * @param message GenericResponse message or plain object to encode 888 * @param [writer] Writer to encode to 889 * @returns Writer 890 */ 891 public static encode(message: market.mass.Envelope.IGenericResponse, writer?: $protobuf.Writer): $protobuf.Writer; 892 893 /** 894 * Encodes the specified GenericResponse message, length delimited. Does not implicitly {@link market.mass.Envelope.GenericResponse.verify|verify} messages. 895 * @param message GenericResponse message or plain object to encode 896 * @param [writer] Writer to encode to 897 * @returns Writer 898 */ 899 public static encodeDelimited(message: market.mass.Envelope.IGenericResponse, writer?: $protobuf.Writer): $protobuf.Writer; 900 901 /** 902 * Decodes a GenericResponse message from the specified reader or buffer. 903 * @param reader Reader or buffer to decode from 904 * @param [length] Message length if known beforehand 905 * @returns GenericResponse 906 * @throws {Error} If the payload is not a reader or valid buffer 907 * @throws {$protobuf.util.ProtocolError} If required fields are missing 908 */ 909 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Envelope.GenericResponse; 910 911 /** 912 * Decodes a GenericResponse message from the specified reader or buffer, length delimited. 913 * @param reader Reader or buffer to decode from 914 * @returns GenericResponse 915 * @throws {Error} If the payload is not a reader or valid buffer 916 * @throws {$protobuf.util.ProtocolError} If required fields are missing 917 */ 918 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Envelope.GenericResponse; 919 920 /** 921 * Verifies a GenericResponse message. 922 * @param message Plain object to verify 923 * @returns `null` if valid, otherwise the reason why it is not 924 */ 925 public static verify(message: { [k: string]: any }): (string|null); 926 927 /** 928 * Creates a GenericResponse message from a plain object. Also converts values to their respective internal types. 929 * @param object Plain object 930 * @returns GenericResponse 931 */ 932 public static fromObject(object: { [k: string]: any }): market.mass.Envelope.GenericResponse; 933 934 /** 935 * Creates a plain object from a GenericResponse message. Also converts values to other types if specified. 936 * @param message GenericResponse 937 * @param [options] Conversion options 938 * @returns Plain object 939 */ 940 public static toObject(message: market.mass.Envelope.GenericResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; 941 942 /** 943 * Converts this GenericResponse to JSON. 944 * @returns JSON object 945 */ 946 public toJSON(): { [k: string]: any }; 947 948 /** 949 * Gets the default type url for GenericResponse 950 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 951 * @returns The default type url 952 */ 953 public static getTypeUrl(typeUrlPrefix?: string): string; 954 } 955 } 956 957 /** Properties of an Error. */ 958 interface IError { 959 960 /** Error code */ 961 code?: (market.mass.ErrorCodes|null); 962 963 /** Error message */ 964 message?: (string|null); 965 966 /** Error additionalInfo */ 967 additionalInfo?: (market.mass.Error.IAdditionalInfo|null); 968 } 969 970 /** Represents an Error. */ 971 class Error implements IError { 972 973 /** 974 * Constructs a new Error. 975 * @param [properties] Properties to set 976 */ 977 constructor(properties?: market.mass.IError); 978 979 /** Error code. */ 980 public code: market.mass.ErrorCodes; 981 982 /** Error message. */ 983 public message: string; 984 985 /** Error additionalInfo. */ 986 public additionalInfo?: (market.mass.Error.IAdditionalInfo|null); 987 988 /** 989 * Creates a new Error instance using the specified properties. 990 * @param [properties] Properties to set 991 * @returns Error instance 992 */ 993 public static create(properties?: market.mass.IError): market.mass.Error; 994 995 /** 996 * Encodes the specified Error message. Does not implicitly {@link market.mass.Error.verify|verify} messages. 997 * @param message Error message or plain object to encode 998 * @param [writer] Writer to encode to 999 * @returns Writer 1000 */ 1001 public static encode(message: market.mass.IError, writer?: $protobuf.Writer): $protobuf.Writer; 1002 1003 /** 1004 * Encodes the specified Error message, length delimited. Does not implicitly {@link market.mass.Error.verify|verify} messages. 1005 * @param message Error message or plain object to encode 1006 * @param [writer] Writer to encode to 1007 * @returns Writer 1008 */ 1009 public static encodeDelimited(message: market.mass.IError, writer?: $protobuf.Writer): $protobuf.Writer; 1010 1011 /** 1012 * Decodes an Error message from the specified reader or buffer. 1013 * @param reader Reader or buffer to decode from 1014 * @param [length] Message length if known beforehand 1015 * @returns Error 1016 * @throws {Error} If the payload is not a reader or valid buffer 1017 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1018 */ 1019 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Error; 1020 1021 /** 1022 * Decodes an Error message from the specified reader or buffer, length delimited. 1023 * @param reader Reader or buffer to decode from 1024 * @returns Error 1025 * @throws {Error} If the payload is not a reader or valid buffer 1026 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1027 */ 1028 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Error; 1029 1030 /** 1031 * Verifies an Error message. 1032 * @param message Plain object to verify 1033 * @returns `null` if valid, otherwise the reason why it is not 1034 */ 1035 public static verify(message: { [k: string]: any }): (string|null); 1036 1037 /** 1038 * Creates an Error message from a plain object. Also converts values to their respective internal types. 1039 * @param object Plain object 1040 * @returns Error 1041 */ 1042 public static fromObject(object: { [k: string]: any }): market.mass.Error; 1043 1044 /** 1045 * Creates a plain object from an Error message. Also converts values to other types if specified. 1046 * @param message Error 1047 * @param [options] Conversion options 1048 * @returns Plain object 1049 */ 1050 public static toObject(message: market.mass.Error, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1051 1052 /** 1053 * Converts this Error to JSON. 1054 * @returns JSON object 1055 */ 1056 public toJSON(): { [k: string]: any }; 1057 1058 /** 1059 * Gets the default type url for Error 1060 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1061 * @returns The default type url 1062 */ 1063 public static getTypeUrl(typeUrlPrefix?: string): string; 1064 } 1065 1066 namespace Error { 1067 1068 /** Properties of an AdditionalInfo. */ 1069 interface IAdditionalInfo { 1070 1071 /** AdditionalInfo objectId */ 1072 objectId?: (number|Long|null); 1073 } 1074 1075 /** Represents an AdditionalInfo. */ 1076 class AdditionalInfo implements IAdditionalInfo { 1077 1078 /** 1079 * Constructs a new AdditionalInfo. 1080 * @param [properties] Properties to set 1081 */ 1082 constructor(properties?: market.mass.Error.IAdditionalInfo); 1083 1084 /** AdditionalInfo objectId. */ 1085 public objectId: (number|Long); 1086 1087 /** 1088 * Creates a new AdditionalInfo instance using the specified properties. 1089 * @param [properties] Properties to set 1090 * @returns AdditionalInfo instance 1091 */ 1092 public static create(properties?: market.mass.Error.IAdditionalInfo): market.mass.Error.AdditionalInfo; 1093 1094 /** 1095 * Encodes the specified AdditionalInfo message. Does not implicitly {@link market.mass.Error.AdditionalInfo.verify|verify} messages. 1096 * @param message AdditionalInfo message or plain object to encode 1097 * @param [writer] Writer to encode to 1098 * @returns Writer 1099 */ 1100 public static encode(message: market.mass.Error.IAdditionalInfo, writer?: $protobuf.Writer): $protobuf.Writer; 1101 1102 /** 1103 * Encodes the specified AdditionalInfo message, length delimited. Does not implicitly {@link market.mass.Error.AdditionalInfo.verify|verify} messages. 1104 * @param message AdditionalInfo message or plain object to encode 1105 * @param [writer] Writer to encode to 1106 * @returns Writer 1107 */ 1108 public static encodeDelimited(message: market.mass.Error.IAdditionalInfo, writer?: $protobuf.Writer): $protobuf.Writer; 1109 1110 /** 1111 * Decodes an AdditionalInfo message from the specified reader or buffer. 1112 * @param reader Reader or buffer to decode from 1113 * @param [length] Message length if known beforehand 1114 * @returns AdditionalInfo 1115 * @throws {Error} If the payload is not a reader or valid buffer 1116 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1117 */ 1118 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.Error.AdditionalInfo; 1119 1120 /** 1121 * Decodes an AdditionalInfo message from the specified reader or buffer, length delimited. 1122 * @param reader Reader or buffer to decode from 1123 * @returns AdditionalInfo 1124 * @throws {Error} If the payload is not a reader or valid buffer 1125 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1126 */ 1127 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.Error.AdditionalInfo; 1128 1129 /** 1130 * Verifies an AdditionalInfo message. 1131 * @param message Plain object to verify 1132 * @returns `null` if valid, otherwise the reason why it is not 1133 */ 1134 public static verify(message: { [k: string]: any }): (string|null); 1135 1136 /** 1137 * Creates an AdditionalInfo message from a plain object. Also converts values to their respective internal types. 1138 * @param object Plain object 1139 * @returns AdditionalInfo 1140 */ 1141 public static fromObject(object: { [k: string]: any }): market.mass.Error.AdditionalInfo; 1142 1143 /** 1144 * Creates a plain object from an AdditionalInfo message. Also converts values to other types if specified. 1145 * @param message AdditionalInfo 1146 * @param [options] Conversion options 1147 * @returns Plain object 1148 */ 1149 public static toObject(message: market.mass.Error.AdditionalInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1150 1151 /** 1152 * Converts this AdditionalInfo to JSON. 1153 * @returns JSON object 1154 */ 1155 public toJSON(): { [k: string]: any }; 1156 1157 /** 1158 * Gets the default type url for AdditionalInfo 1159 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1160 * @returns The default type url 1161 */ 1162 public static getTypeUrl(typeUrlPrefix?: string): string; 1163 } 1164 } 1165 1166 /** ErrorCodes enum. */ 1167 enum ErrorCodes { 1168 ERROR_CODES_UNSPECIFIED = 0, 1169 ERROR_CODES_NOT_FOUND = 1, 1170 ERROR_CODES_INVALID = 2, 1171 ERROR_CODES_NOT_AUTHENTICATED = 3, 1172 ERROR_CODES_ALREADY_AUTHENTICATED = 4, 1173 ERROR_CODES_ALREADY_CONNECTED = 5, 1174 ERROR_CODES_TOO_MANY_CONCURRENT_REQUESTS = 6, 1175 ERROR_CODES_UNLINKED_KEYCARD = 7, 1176 ERROR_CODES_MINIMUM_VERSION_NOT_REACHED = 8, 1177 ERROR_CODES_OUT_OF_STOCK = 9, 1178 ERROR_CODES_SIMULATED = 10, 1179 ERROR_CODES_CLOSE_SUBSCRIPTION = 11 1180 } 1181 1182 /** Properties of a GetBlobUploadURLRequest. */ 1183 interface IGetBlobUploadURLRequest { 1184 } 1185 1186 /** Represents a GetBlobUploadURLRequest. */ 1187 class GetBlobUploadURLRequest implements IGetBlobUploadURLRequest { 1188 1189 /** 1190 * Constructs a new GetBlobUploadURLRequest. 1191 * @param [properties] Properties to set 1192 */ 1193 constructor(properties?: market.mass.IGetBlobUploadURLRequest); 1194 1195 /** 1196 * Creates a new GetBlobUploadURLRequest instance using the specified properties. 1197 * @param [properties] Properties to set 1198 * @returns GetBlobUploadURLRequest instance 1199 */ 1200 public static create(properties?: market.mass.IGetBlobUploadURLRequest): market.mass.GetBlobUploadURLRequest; 1201 1202 /** 1203 * Encodes the specified GetBlobUploadURLRequest message. Does not implicitly {@link market.mass.GetBlobUploadURLRequest.verify|verify} messages. 1204 * @param message GetBlobUploadURLRequest message or plain object to encode 1205 * @param [writer] Writer to encode to 1206 * @returns Writer 1207 */ 1208 public static encode(message: market.mass.IGetBlobUploadURLRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1209 1210 /** 1211 * Encodes the specified GetBlobUploadURLRequest message, length delimited. Does not implicitly {@link market.mass.GetBlobUploadURLRequest.verify|verify} messages. 1212 * @param message GetBlobUploadURLRequest message or plain object to encode 1213 * @param [writer] Writer to encode to 1214 * @returns Writer 1215 */ 1216 public static encodeDelimited(message: market.mass.IGetBlobUploadURLRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1217 1218 /** 1219 * Decodes a GetBlobUploadURLRequest message from the specified reader or buffer. 1220 * @param reader Reader or buffer to decode from 1221 * @param [length] Message length if known beforehand 1222 * @returns GetBlobUploadURLRequest 1223 * @throws {Error} If the payload is not a reader or valid buffer 1224 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1225 */ 1226 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.GetBlobUploadURLRequest; 1227 1228 /** 1229 * Decodes a GetBlobUploadURLRequest message from the specified reader or buffer, length delimited. 1230 * @param reader Reader or buffer to decode from 1231 * @returns GetBlobUploadURLRequest 1232 * @throws {Error} If the payload is not a reader or valid buffer 1233 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1234 */ 1235 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.GetBlobUploadURLRequest; 1236 1237 /** 1238 * Verifies a GetBlobUploadURLRequest message. 1239 * @param message Plain object to verify 1240 * @returns `null` if valid, otherwise the reason why it is not 1241 */ 1242 public static verify(message: { [k: string]: any }): (string|null); 1243 1244 /** 1245 * Creates a GetBlobUploadURLRequest message from a plain object. Also converts values to their respective internal types. 1246 * @param object Plain object 1247 * @returns GetBlobUploadURLRequest 1248 */ 1249 public static fromObject(object: { [k: string]: any }): market.mass.GetBlobUploadURLRequest; 1250 1251 /** 1252 * Creates a plain object from a GetBlobUploadURLRequest message. Also converts values to other types if specified. 1253 * @param message GetBlobUploadURLRequest 1254 * @param [options] Conversion options 1255 * @returns Plain object 1256 */ 1257 public static toObject(message: market.mass.GetBlobUploadURLRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1258 1259 /** 1260 * Converts this GetBlobUploadURLRequest to JSON. 1261 * @returns JSON object 1262 */ 1263 public toJSON(): { [k: string]: any }; 1264 1265 /** 1266 * Gets the default type url for GetBlobUploadURLRequest 1267 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1268 * @returns The default type url 1269 */ 1270 public static getTypeUrl(typeUrlPrefix?: string): string; 1271 } 1272 1273 /** ObjectType enum. */ 1274 enum ObjectType { 1275 OBJECT_TYPE_UNSPECIFIED = 0, 1276 OBJECT_TYPE_LISTING = 1, 1277 OBJECT_TYPE_TAG = 2, 1278 OBJECT_TYPE_ORDER = 3, 1279 OBJECT_TYPE_ACCOUNT = 4, 1280 OBJECT_TYPE_MANIFEST = 5, 1281 OBJECT_TYPE_INVENTORY = 6 1282 } 1283 1284 /** Properties of a SubscriptionRequest. */ 1285 interface ISubscriptionRequest { 1286 1287 /** SubscriptionRequest startShopSeqNo */ 1288 startShopSeqNo?: (number|Long|null); 1289 1290 /** SubscriptionRequest shopId */ 1291 shopId?: (market.mass.IUint256|null); 1292 1293 /** SubscriptionRequest filters */ 1294 filters?: (market.mass.SubscriptionRequest.IFilter[]|null); 1295 } 1296 1297 /** Represents a SubscriptionRequest. */ 1298 class SubscriptionRequest implements ISubscriptionRequest { 1299 1300 /** 1301 * Constructs a new SubscriptionRequest. 1302 * @param [properties] Properties to set 1303 */ 1304 constructor(properties?: market.mass.ISubscriptionRequest); 1305 1306 /** SubscriptionRequest startShopSeqNo. */ 1307 public startShopSeqNo: (number|Long); 1308 1309 /** SubscriptionRequest shopId. */ 1310 public shopId?: (market.mass.IUint256|null); 1311 1312 /** SubscriptionRequest filters. */ 1313 public filters: market.mass.SubscriptionRequest.IFilter[]; 1314 1315 /** 1316 * Creates a new SubscriptionRequest instance using the specified properties. 1317 * @param [properties] Properties to set 1318 * @returns SubscriptionRequest instance 1319 */ 1320 public static create(properties?: market.mass.ISubscriptionRequest): market.mass.SubscriptionRequest; 1321 1322 /** 1323 * Encodes the specified SubscriptionRequest message. Does not implicitly {@link market.mass.SubscriptionRequest.verify|verify} messages. 1324 * @param message SubscriptionRequest message or plain object to encode 1325 * @param [writer] Writer to encode to 1326 * @returns Writer 1327 */ 1328 public static encode(message: market.mass.ISubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1329 1330 /** 1331 * Encodes the specified SubscriptionRequest message, length delimited. Does not implicitly {@link market.mass.SubscriptionRequest.verify|verify} messages. 1332 * @param message SubscriptionRequest message or plain object to encode 1333 * @param [writer] Writer to encode to 1334 * @returns Writer 1335 */ 1336 public static encodeDelimited(message: market.mass.ISubscriptionRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1337 1338 /** 1339 * Decodes a SubscriptionRequest message from the specified reader or buffer. 1340 * @param reader Reader or buffer to decode from 1341 * @param [length] Message length if known beforehand 1342 * @returns SubscriptionRequest 1343 * @throws {Error} If the payload is not a reader or valid buffer 1344 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1345 */ 1346 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SubscriptionRequest; 1347 1348 /** 1349 * Decodes a SubscriptionRequest message from the specified reader or buffer, length delimited. 1350 * @param reader Reader or buffer to decode from 1351 * @returns SubscriptionRequest 1352 * @throws {Error} If the payload is not a reader or valid buffer 1353 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1354 */ 1355 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SubscriptionRequest; 1356 1357 /** 1358 * Verifies a SubscriptionRequest message. 1359 * @param message Plain object to verify 1360 * @returns `null` if valid, otherwise the reason why it is not 1361 */ 1362 public static verify(message: { [k: string]: any }): (string|null); 1363 1364 /** 1365 * Creates a SubscriptionRequest message from a plain object. Also converts values to their respective internal types. 1366 * @param object Plain object 1367 * @returns SubscriptionRequest 1368 */ 1369 public static fromObject(object: { [k: string]: any }): market.mass.SubscriptionRequest; 1370 1371 /** 1372 * Creates a plain object from a SubscriptionRequest message. Also converts values to other types if specified. 1373 * @param message SubscriptionRequest 1374 * @param [options] Conversion options 1375 * @returns Plain object 1376 */ 1377 public static toObject(message: market.mass.SubscriptionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1378 1379 /** 1380 * Converts this SubscriptionRequest to JSON. 1381 * @returns JSON object 1382 */ 1383 public toJSON(): { [k: string]: any }; 1384 1385 /** 1386 * Gets the default type url for SubscriptionRequest 1387 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1388 * @returns The default type url 1389 */ 1390 public static getTypeUrl(typeUrlPrefix?: string): string; 1391 } 1392 1393 namespace SubscriptionRequest { 1394 1395 /** Properties of a Filter. */ 1396 interface IFilter { 1397 1398 /** Filter objectType */ 1399 objectType?: (market.mass.ObjectType|null); 1400 1401 /** Filter objectId */ 1402 objectId?: (market.mass.IObjectId|null); 1403 } 1404 1405 /** Represents a Filter. */ 1406 class Filter implements IFilter { 1407 1408 /** 1409 * Constructs a new Filter. 1410 * @param [properties] Properties to set 1411 */ 1412 constructor(properties?: market.mass.SubscriptionRequest.IFilter); 1413 1414 /** Filter objectType. */ 1415 public objectType: market.mass.ObjectType; 1416 1417 /** Filter objectId. */ 1418 public objectId?: (market.mass.IObjectId|null); 1419 1420 /** Filter _objectId. */ 1421 public _objectId?: "objectId"; 1422 1423 /** 1424 * Creates a new Filter instance using the specified properties. 1425 * @param [properties] Properties to set 1426 * @returns Filter instance 1427 */ 1428 public static create(properties?: market.mass.SubscriptionRequest.IFilter): market.mass.SubscriptionRequest.Filter; 1429 1430 /** 1431 * Encodes the specified Filter message. Does not implicitly {@link market.mass.SubscriptionRequest.Filter.verify|verify} messages. 1432 * @param message Filter message or plain object to encode 1433 * @param [writer] Writer to encode to 1434 * @returns Writer 1435 */ 1436 public static encode(message: market.mass.SubscriptionRequest.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; 1437 1438 /** 1439 * Encodes the specified Filter message, length delimited. Does not implicitly {@link market.mass.SubscriptionRequest.Filter.verify|verify} messages. 1440 * @param message Filter message or plain object to encode 1441 * @param [writer] Writer to encode to 1442 * @returns Writer 1443 */ 1444 public static encodeDelimited(message: market.mass.SubscriptionRequest.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; 1445 1446 /** 1447 * Decodes a Filter message from the specified reader or buffer. 1448 * @param reader Reader or buffer to decode from 1449 * @param [length] Message length if known beforehand 1450 * @returns Filter 1451 * @throws {Error} If the payload is not a reader or valid buffer 1452 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1453 */ 1454 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SubscriptionRequest.Filter; 1455 1456 /** 1457 * Decodes a Filter message from the specified reader or buffer, length delimited. 1458 * @param reader Reader or buffer to decode from 1459 * @returns Filter 1460 * @throws {Error} If the payload is not a reader or valid buffer 1461 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1462 */ 1463 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SubscriptionRequest.Filter; 1464 1465 /** 1466 * Verifies a Filter message. 1467 * @param message Plain object to verify 1468 * @returns `null` if valid, otherwise the reason why it is not 1469 */ 1470 public static verify(message: { [k: string]: any }): (string|null); 1471 1472 /** 1473 * Creates a Filter message from a plain object. Also converts values to their respective internal types. 1474 * @param object Plain object 1475 * @returns Filter 1476 */ 1477 public static fromObject(object: { [k: string]: any }): market.mass.SubscriptionRequest.Filter; 1478 1479 /** 1480 * Creates a plain object from a Filter message. Also converts values to other types if specified. 1481 * @param message Filter 1482 * @param [options] Conversion options 1483 * @returns Plain object 1484 */ 1485 public static toObject(message: market.mass.SubscriptionRequest.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1486 1487 /** 1488 * Converts this Filter to JSON. 1489 * @returns JSON object 1490 */ 1491 public toJSON(): { [k: string]: any }; 1492 1493 /** 1494 * Gets the default type url for Filter 1495 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1496 * @returns The default type url 1497 */ 1498 public static getTypeUrl(typeUrlPrefix?: string): string; 1499 } 1500 } 1501 1502 /** Properties of a SubscriptionPushRequest. */ 1503 interface ISubscriptionPushRequest { 1504 1505 /** SubscriptionPushRequest subscriptionId */ 1506 subscriptionId?: (Uint8Array|null); 1507 1508 /** SubscriptionPushRequest sets */ 1509 sets?: (market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet[]|null); 1510 } 1511 1512 /** Represents a SubscriptionPushRequest. */ 1513 class SubscriptionPushRequest implements ISubscriptionPushRequest { 1514 1515 /** 1516 * Constructs a new SubscriptionPushRequest. 1517 * @param [properties] Properties to set 1518 */ 1519 constructor(properties?: market.mass.ISubscriptionPushRequest); 1520 1521 /** SubscriptionPushRequest subscriptionId. */ 1522 public subscriptionId: Uint8Array; 1523 1524 /** SubscriptionPushRequest sets. */ 1525 public sets: market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet[]; 1526 1527 /** 1528 * Creates a new SubscriptionPushRequest instance using the specified properties. 1529 * @param [properties] Properties to set 1530 * @returns SubscriptionPushRequest instance 1531 */ 1532 public static create(properties?: market.mass.ISubscriptionPushRequest): market.mass.SubscriptionPushRequest; 1533 1534 /** 1535 * Encodes the specified SubscriptionPushRequest message. Does not implicitly {@link market.mass.SubscriptionPushRequest.verify|verify} messages. 1536 * @param message SubscriptionPushRequest message or plain object to encode 1537 * @param [writer] Writer to encode to 1538 * @returns Writer 1539 */ 1540 public static encode(message: market.mass.ISubscriptionPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1541 1542 /** 1543 * Encodes the specified SubscriptionPushRequest message, length delimited. Does not implicitly {@link market.mass.SubscriptionPushRequest.verify|verify} messages. 1544 * @param message SubscriptionPushRequest message or plain object to encode 1545 * @param [writer] Writer to encode to 1546 * @returns Writer 1547 */ 1548 public static encodeDelimited(message: market.mass.ISubscriptionPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1549 1550 /** 1551 * Decodes a SubscriptionPushRequest message from the specified reader or buffer. 1552 * @param reader Reader or buffer to decode from 1553 * @param [length] Message length if known beforehand 1554 * @returns SubscriptionPushRequest 1555 * @throws {Error} If the payload is not a reader or valid buffer 1556 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1557 */ 1558 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SubscriptionPushRequest; 1559 1560 /** 1561 * Decodes a SubscriptionPushRequest message from the specified reader or buffer, length delimited. 1562 * @param reader Reader or buffer to decode from 1563 * @returns SubscriptionPushRequest 1564 * @throws {Error} If the payload is not a reader or valid buffer 1565 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1566 */ 1567 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SubscriptionPushRequest; 1568 1569 /** 1570 * Verifies a SubscriptionPushRequest message. 1571 * @param message Plain object to verify 1572 * @returns `null` if valid, otherwise the reason why it is not 1573 */ 1574 public static verify(message: { [k: string]: any }): (string|null); 1575 1576 /** 1577 * Creates a SubscriptionPushRequest message from a plain object. Also converts values to their respective internal types. 1578 * @param object Plain object 1579 * @returns SubscriptionPushRequest 1580 */ 1581 public static fromObject(object: { [k: string]: any }): market.mass.SubscriptionPushRequest; 1582 1583 /** 1584 * Creates a plain object from a SubscriptionPushRequest message. Also converts values to other types if specified. 1585 * @param message SubscriptionPushRequest 1586 * @param [options] Conversion options 1587 * @returns Plain object 1588 */ 1589 public static toObject(message: market.mass.SubscriptionPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1590 1591 /** 1592 * Converts this SubscriptionPushRequest to JSON. 1593 * @returns JSON object 1594 */ 1595 public toJSON(): { [k: string]: any }; 1596 1597 /** 1598 * Gets the default type url for SubscriptionPushRequest 1599 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1600 * @returns The default type url 1601 */ 1602 public static getTypeUrl(typeUrlPrefix?: string): string; 1603 } 1604 1605 namespace SubscriptionPushRequest { 1606 1607 /** Properties of a SequencedPartialPatchSet. */ 1608 interface ISequencedPartialPatchSet { 1609 1610 /** SequencedPartialPatchSet shopSeqNo */ 1611 shopSeqNo?: (number|Long|null); 1612 1613 /** SequencedPartialPatchSet patchLeafIndex */ 1614 patchLeafIndex?: (number|null); 1615 1616 /** SequencedPartialPatchSet header */ 1617 header?: (Uint8Array|null); 1618 1619 /** SequencedPartialPatchSet signature */ 1620 signature?: (Uint8Array|null); 1621 1622 /** SequencedPartialPatchSet patches */ 1623 patches?: (Uint8Array[]|null); 1624 1625 /** SequencedPartialPatchSet proofs */ 1626 proofs?: (Uint8Array[]|null); 1627 } 1628 1629 /** Represents a SequencedPartialPatchSet. */ 1630 class SequencedPartialPatchSet implements ISequencedPartialPatchSet { 1631 1632 /** 1633 * Constructs a new SequencedPartialPatchSet. 1634 * @param [properties] Properties to set 1635 */ 1636 constructor(properties?: market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet); 1637 1638 /** SequencedPartialPatchSet shopSeqNo. */ 1639 public shopSeqNo: (number|Long); 1640 1641 /** SequencedPartialPatchSet patchLeafIndex. */ 1642 public patchLeafIndex: number; 1643 1644 /** SequencedPartialPatchSet header. */ 1645 public header: Uint8Array; 1646 1647 /** SequencedPartialPatchSet signature. */ 1648 public signature: Uint8Array; 1649 1650 /** SequencedPartialPatchSet patches. */ 1651 public patches: Uint8Array[]; 1652 1653 /** SequencedPartialPatchSet proofs. */ 1654 public proofs: Uint8Array[]; 1655 1656 /** 1657 * Creates a new SequencedPartialPatchSet instance using the specified properties. 1658 * @param [properties] Properties to set 1659 * @returns SequencedPartialPatchSet instance 1660 */ 1661 public static create(properties?: market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet): market.mass.SubscriptionPushRequest.SequencedPartialPatchSet; 1662 1663 /** 1664 * Encodes the specified SequencedPartialPatchSet message. Does not implicitly {@link market.mass.SubscriptionPushRequest.SequencedPartialPatchSet.verify|verify} messages. 1665 * @param message SequencedPartialPatchSet message or plain object to encode 1666 * @param [writer] Writer to encode to 1667 * @returns Writer 1668 */ 1669 public static encode(message: market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet, writer?: $protobuf.Writer): $protobuf.Writer; 1670 1671 /** 1672 * Encodes the specified SequencedPartialPatchSet message, length delimited. Does not implicitly {@link market.mass.SubscriptionPushRequest.SequencedPartialPatchSet.verify|verify} messages. 1673 * @param message SequencedPartialPatchSet message or plain object to encode 1674 * @param [writer] Writer to encode to 1675 * @returns Writer 1676 */ 1677 public static encodeDelimited(message: market.mass.SubscriptionPushRequest.ISequencedPartialPatchSet, writer?: $protobuf.Writer): $protobuf.Writer; 1678 1679 /** 1680 * Decodes a SequencedPartialPatchSet message from the specified reader or buffer. 1681 * @param reader Reader or buffer to decode from 1682 * @param [length] Message length if known beforehand 1683 * @returns SequencedPartialPatchSet 1684 * @throws {Error} If the payload is not a reader or valid buffer 1685 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1686 */ 1687 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SubscriptionPushRequest.SequencedPartialPatchSet; 1688 1689 /** 1690 * Decodes a SequencedPartialPatchSet message from the specified reader or buffer, length delimited. 1691 * @param reader Reader or buffer to decode from 1692 * @returns SequencedPartialPatchSet 1693 * @throws {Error} If the payload is not a reader or valid buffer 1694 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1695 */ 1696 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SubscriptionPushRequest.SequencedPartialPatchSet; 1697 1698 /** 1699 * Verifies a SequencedPartialPatchSet message. 1700 * @param message Plain object to verify 1701 * @returns `null` if valid, otherwise the reason why it is not 1702 */ 1703 public static verify(message: { [k: string]: any }): (string|null); 1704 1705 /** 1706 * Creates a SequencedPartialPatchSet message from a plain object. Also converts values to their respective internal types. 1707 * @param object Plain object 1708 * @returns SequencedPartialPatchSet 1709 */ 1710 public static fromObject(object: { [k: string]: any }): market.mass.SubscriptionPushRequest.SequencedPartialPatchSet; 1711 1712 /** 1713 * Creates a plain object from a SequencedPartialPatchSet message. Also converts values to other types if specified. 1714 * @param message SequencedPartialPatchSet 1715 * @param [options] Conversion options 1716 * @returns Plain object 1717 */ 1718 public static toObject(message: market.mass.SubscriptionPushRequest.SequencedPartialPatchSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1719 1720 /** 1721 * Converts this SequencedPartialPatchSet to JSON. 1722 * @returns JSON object 1723 */ 1724 public toJSON(): { [k: string]: any }; 1725 1726 /** 1727 * Gets the default type url for SequencedPartialPatchSet 1728 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1729 * @returns The default type url 1730 */ 1731 public static getTypeUrl(typeUrlPrefix?: string): string; 1732 } 1733 } 1734 1735 /** Properties of a SubscriptionCancelRequest. */ 1736 interface ISubscriptionCancelRequest { 1737 1738 /** SubscriptionCancelRequest subscriptionId */ 1739 subscriptionId?: (Uint8Array|null); 1740 } 1741 1742 /** Represents a SubscriptionCancelRequest. */ 1743 class SubscriptionCancelRequest implements ISubscriptionCancelRequest { 1744 1745 /** 1746 * Constructs a new SubscriptionCancelRequest. 1747 * @param [properties] Properties to set 1748 */ 1749 constructor(properties?: market.mass.ISubscriptionCancelRequest); 1750 1751 /** SubscriptionCancelRequest subscriptionId. */ 1752 public subscriptionId: Uint8Array; 1753 1754 /** 1755 * Creates a new SubscriptionCancelRequest instance using the specified properties. 1756 * @param [properties] Properties to set 1757 * @returns SubscriptionCancelRequest instance 1758 */ 1759 public static create(properties?: market.mass.ISubscriptionCancelRequest): market.mass.SubscriptionCancelRequest; 1760 1761 /** 1762 * Encodes the specified SubscriptionCancelRequest message. Does not implicitly {@link market.mass.SubscriptionCancelRequest.verify|verify} messages. 1763 * @param message SubscriptionCancelRequest message or plain object to encode 1764 * @param [writer] Writer to encode to 1765 * @returns Writer 1766 */ 1767 public static encode(message: market.mass.ISubscriptionCancelRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1768 1769 /** 1770 * Encodes the specified SubscriptionCancelRequest message, length delimited. Does not implicitly {@link market.mass.SubscriptionCancelRequest.verify|verify} messages. 1771 * @param message SubscriptionCancelRequest message or plain object to encode 1772 * @param [writer] Writer to encode to 1773 * @returns Writer 1774 */ 1775 public static encodeDelimited(message: market.mass.ISubscriptionCancelRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1776 1777 /** 1778 * Decodes a SubscriptionCancelRequest message from the specified reader or buffer. 1779 * @param reader Reader or buffer to decode from 1780 * @param [length] Message length if known beforehand 1781 * @returns SubscriptionCancelRequest 1782 * @throws {Error} If the payload is not a reader or valid buffer 1783 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1784 */ 1785 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SubscriptionCancelRequest; 1786 1787 /** 1788 * Decodes a SubscriptionCancelRequest message from the specified reader or buffer, length delimited. 1789 * @param reader Reader or buffer to decode from 1790 * @returns SubscriptionCancelRequest 1791 * @throws {Error} If the payload is not a reader or valid buffer 1792 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1793 */ 1794 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SubscriptionCancelRequest; 1795 1796 /** 1797 * Verifies a SubscriptionCancelRequest message. 1798 * @param message Plain object to verify 1799 * @returns `null` if valid, otherwise the reason why it is not 1800 */ 1801 public static verify(message: { [k: string]: any }): (string|null); 1802 1803 /** 1804 * Creates a SubscriptionCancelRequest message from a plain object. Also converts values to their respective internal types. 1805 * @param object Plain object 1806 * @returns SubscriptionCancelRequest 1807 */ 1808 public static fromObject(object: { [k: string]: any }): market.mass.SubscriptionCancelRequest; 1809 1810 /** 1811 * Creates a plain object from a SubscriptionCancelRequest message. Also converts values to other types if specified. 1812 * @param message SubscriptionCancelRequest 1813 * @param [options] Conversion options 1814 * @returns Plain object 1815 */ 1816 public static toObject(message: market.mass.SubscriptionCancelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1817 1818 /** 1819 * Converts this SubscriptionCancelRequest to JSON. 1820 * @returns JSON object 1821 */ 1822 public toJSON(): { [k: string]: any }; 1823 1824 /** 1825 * Gets the default type url for SubscriptionCancelRequest 1826 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1827 * @returns The default type url 1828 */ 1829 public static getTypeUrl(typeUrlPrefix?: string): string; 1830 } 1831 1832 /** Properties of a PatchSetWriteRequest. */ 1833 interface IPatchSetWriteRequest { 1834 1835 /** PatchSetWriteRequest patchSet */ 1836 patchSet?: (Uint8Array|null); 1837 } 1838 1839 /** Represents a PatchSetWriteRequest. */ 1840 class PatchSetWriteRequest implements IPatchSetWriteRequest { 1841 1842 /** 1843 * Constructs a new PatchSetWriteRequest. 1844 * @param [properties] Properties to set 1845 */ 1846 constructor(properties?: market.mass.IPatchSetWriteRequest); 1847 1848 /** PatchSetWriteRequest patchSet. */ 1849 public patchSet: Uint8Array; 1850 1851 /** 1852 * Creates a new PatchSetWriteRequest instance using the specified properties. 1853 * @param [properties] Properties to set 1854 * @returns PatchSetWriteRequest instance 1855 */ 1856 public static create(properties?: market.mass.IPatchSetWriteRequest): market.mass.PatchSetWriteRequest; 1857 1858 /** 1859 * Encodes the specified PatchSetWriteRequest message. Does not implicitly {@link market.mass.PatchSetWriteRequest.verify|verify} messages. 1860 * @param message PatchSetWriteRequest message or plain object to encode 1861 * @param [writer] Writer to encode to 1862 * @returns Writer 1863 */ 1864 public static encode(message: market.mass.IPatchSetWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1865 1866 /** 1867 * Encodes the specified PatchSetWriteRequest message, length delimited. Does not implicitly {@link market.mass.PatchSetWriteRequest.verify|verify} messages. 1868 * @param message PatchSetWriteRequest message or plain object to encode 1869 * @param [writer] Writer to encode to 1870 * @returns Writer 1871 */ 1872 public static encodeDelimited(message: market.mass.IPatchSetWriteRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1873 1874 /** 1875 * Decodes a PatchSetWriteRequest message from the specified reader or buffer. 1876 * @param reader Reader or buffer to decode from 1877 * @param [length] Message length if known beforehand 1878 * @returns PatchSetWriteRequest 1879 * @throws {Error} If the payload is not a reader or valid buffer 1880 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1881 */ 1882 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.PatchSetWriteRequest; 1883 1884 /** 1885 * Decodes a PatchSetWriteRequest message from the specified reader or buffer, length delimited. 1886 * @param reader Reader or buffer to decode from 1887 * @returns PatchSetWriteRequest 1888 * @throws {Error} If the payload is not a reader or valid buffer 1889 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1890 */ 1891 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.PatchSetWriteRequest; 1892 1893 /** 1894 * Verifies a PatchSetWriteRequest message. 1895 * @param message Plain object to verify 1896 * @returns `null` if valid, otherwise the reason why it is not 1897 */ 1898 public static verify(message: { [k: string]: any }): (string|null); 1899 1900 /** 1901 * Creates a PatchSetWriteRequest message from a plain object. Also converts values to their respective internal types. 1902 * @param object Plain object 1903 * @returns PatchSetWriteRequest 1904 */ 1905 public static fromObject(object: { [k: string]: any }): market.mass.PatchSetWriteRequest; 1906 1907 /** 1908 * Creates a plain object from a PatchSetWriteRequest message. Also converts values to other types if specified. 1909 * @param message PatchSetWriteRequest 1910 * @param [options] Conversion options 1911 * @returns Plain object 1912 */ 1913 public static toObject(message: market.mass.PatchSetWriteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 1914 1915 /** 1916 * Converts this PatchSetWriteRequest to JSON. 1917 * @returns JSON object 1918 */ 1919 public toJSON(): { [k: string]: any }; 1920 1921 /** 1922 * Gets the default type url for PatchSetWriteRequest 1923 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 1924 * @returns The default type url 1925 */ 1926 public static getTypeUrl(typeUrlPrefix?: string): string; 1927 } 1928 1929 /** Properties of a SyncStatusRequest. */ 1930 interface ISyncStatusRequest { 1931 1932 /** SyncStatusRequest subscriptionId */ 1933 subscriptionId?: (number|Long|null); 1934 1935 /** SyncStatusRequest unpushedPatches */ 1936 unpushedPatches?: (number|Long|null); 1937 } 1938 1939 /** Represents a SyncStatusRequest. */ 1940 class SyncStatusRequest implements ISyncStatusRequest { 1941 1942 /** 1943 * Constructs a new SyncStatusRequest. 1944 * @param [properties] Properties to set 1945 */ 1946 constructor(properties?: market.mass.ISyncStatusRequest); 1947 1948 /** SyncStatusRequest subscriptionId. */ 1949 public subscriptionId: (number|Long); 1950 1951 /** SyncStatusRequest unpushedPatches. */ 1952 public unpushedPatches: (number|Long); 1953 1954 /** 1955 * Creates a new SyncStatusRequest instance using the specified properties. 1956 * @param [properties] Properties to set 1957 * @returns SyncStatusRequest instance 1958 */ 1959 public static create(properties?: market.mass.ISyncStatusRequest): market.mass.SyncStatusRequest; 1960 1961 /** 1962 * Encodes the specified SyncStatusRequest message. Does not implicitly {@link market.mass.SyncStatusRequest.verify|verify} messages. 1963 * @param message SyncStatusRequest message or plain object to encode 1964 * @param [writer] Writer to encode to 1965 * @returns Writer 1966 */ 1967 public static encode(message: market.mass.ISyncStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1968 1969 /** 1970 * Encodes the specified SyncStatusRequest message, length delimited. Does not implicitly {@link market.mass.SyncStatusRequest.verify|verify} messages. 1971 * @param message SyncStatusRequest message or plain object to encode 1972 * @param [writer] Writer to encode to 1973 * @returns Writer 1974 */ 1975 public static encodeDelimited(message: market.mass.ISyncStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; 1976 1977 /** 1978 * Decodes a SyncStatusRequest message from the specified reader or buffer. 1979 * @param reader Reader or buffer to decode from 1980 * @param [length] Message length if known beforehand 1981 * @returns SyncStatusRequest 1982 * @throws {Error} If the payload is not a reader or valid buffer 1983 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1984 */ 1985 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.SyncStatusRequest; 1986 1987 /** 1988 * Decodes a SyncStatusRequest message from the specified reader or buffer, length delimited. 1989 * @param reader Reader or buffer to decode from 1990 * @returns SyncStatusRequest 1991 * @throws {Error} If the payload is not a reader or valid buffer 1992 * @throws {$protobuf.util.ProtocolError} If required fields are missing 1993 */ 1994 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.SyncStatusRequest; 1995 1996 /** 1997 * Verifies a SyncStatusRequest message. 1998 * @param message Plain object to verify 1999 * @returns `null` if valid, otherwise the reason why it is not 2000 */ 2001 public static verify(message: { [k: string]: any }): (string|null); 2002 2003 /** 2004 * Creates a SyncStatusRequest message from a plain object. Also converts values to their respective internal types. 2005 * @param object Plain object 2006 * @returns SyncStatusRequest 2007 */ 2008 public static fromObject(object: { [k: string]: any }): market.mass.SyncStatusRequest; 2009 2010 /** 2011 * Creates a plain object from a SyncStatusRequest message. Also converts values to other types if specified. 2012 * @param message SyncStatusRequest 2013 * @param [options] Conversion options 2014 * @returns Plain object 2015 */ 2016 public static toObject(message: market.mass.SyncStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 2017 2018 /** 2019 * Converts this SyncStatusRequest to JSON. 2020 * @returns JSON object 2021 */ 2022 public toJSON(): { [k: string]: any }; 2023 2024 /** 2025 * Gets the default type url for SyncStatusRequest 2026 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 2027 * @returns The default type url 2028 */ 2029 public static getTypeUrl(typeUrlPrefix?: string): string; 2030 } 2031 2032 /** Properties of a PingRequest. */ 2033 interface IPingRequest { 2034 } 2035 2036 /** Represents a PingRequest. */ 2037 class PingRequest implements IPingRequest { 2038 2039 /** 2040 * Constructs a new PingRequest. 2041 * @param [properties] Properties to set 2042 */ 2043 constructor(properties?: market.mass.IPingRequest); 2044 2045 /** 2046 * Creates a new PingRequest instance using the specified properties. 2047 * @param [properties] Properties to set 2048 * @returns PingRequest instance 2049 */ 2050 public static create(properties?: market.mass.IPingRequest): market.mass.PingRequest; 2051 2052 /** 2053 * Encodes the specified PingRequest message. Does not implicitly {@link market.mass.PingRequest.verify|verify} messages. 2054 * @param message PingRequest message or plain object to encode 2055 * @param [writer] Writer to encode to 2056 * @returns Writer 2057 */ 2058 public static encode(message: market.mass.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; 2059 2060 /** 2061 * Encodes the specified PingRequest message, length delimited. Does not implicitly {@link market.mass.PingRequest.verify|verify} messages. 2062 * @param message PingRequest message or plain object to encode 2063 * @param [writer] Writer to encode to 2064 * @returns Writer 2065 */ 2066 public static encodeDelimited(message: market.mass.IPingRequest, writer?: $protobuf.Writer): $protobuf.Writer; 2067 2068 /** 2069 * Decodes a PingRequest message from the specified reader or buffer. 2070 * @param reader Reader or buffer to decode from 2071 * @param [length] Message length if known beforehand 2072 * @returns PingRequest 2073 * @throws {Error} If the payload is not a reader or valid buffer 2074 * @throws {$protobuf.util.ProtocolError} If required fields are missing 2075 */ 2076 public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): market.mass.PingRequest; 2077 2078 /** 2079 * Decodes a PingRequest message from the specified reader or buffer, length delimited. 2080 * @param reader Reader or buffer to decode from 2081 * @returns PingRequest 2082 * @throws {Error} If the payload is not a reader or valid buffer 2083 * @throws {$protobuf.util.ProtocolError} If required fields are missing 2084 */ 2085 public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): market.mass.PingRequest; 2086 2087 /** 2088 * Verifies a PingRequest message. 2089 * @param message Plain object to verify 2090 * @returns `null` if valid, otherwise the reason why it is not 2091 */ 2092 public static verify(message: { [k: string]: any }): (string|null); 2093 2094 /** 2095 * Creates a PingRequest message from a plain object. Also converts values to their respective internal types. 2096 * @param object Plain object 2097 * @returns PingRequest 2098 */ 2099 public static fromObject(object: { [k: string]: any }): market.mass.PingRequest; 2100 2101 /** 2102 * Creates a plain object from a PingRequest message. Also converts values to other types if specified. 2103 * @param message PingRequest 2104 * @param [options] Conversion options 2105 * @returns Plain object 2106 */ 2107 public static toObject(message: market.mass.PingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; 2108 2109 /** 2110 * Converts this PingRequest to JSON. 2111 * @returns JSON object 2112 */ 2113 public toJSON(): { [k: string]: any }; 2114 2115 /** 2116 * Gets the default type url for PingRequest 2117 * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") 2118 * @returns The default type url 2119 */ 2120 public static getTypeUrl(typeUrlPrefix?: string): string; 2121 } 2122 } 2123 }