智慧水务管理系统 - 精河县供水工程综合管理平台

protojson.generated.d.ts 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // DO NOT EDIT! This is a generated file. Edit the source file instead and regenerate.
  2. import * as $protobuf from "..";
  3. /** ProtoJSON conversion options. */
  4. export interface IProtoJsonOptions {
  5. /** Ignores unknown object members and unrecognized enum names while parsing. */
  6. ignoreUnknownFields?: boolean;
  7. }
  8. /**
  9. * Parses a message from an already-parsed ProtoJSON value using the specified reflected type.
  10. * @param type Reflected message type
  11. * @param json Already-parsed ProtoJSON value
  12. * @param [options] Conversion options
  13. * @returns Message instance
  14. */
  15. export function fromJson(type: $protobuf.Type, json: any, options?: IProtoJsonOptions): $protobuf.Message<{}>;
  16. /**
  17. * Parses a message from ProtoJSON text using the specified reflected type.
  18. * @param type Reflected message type
  19. * @param json ProtoJSON text
  20. * @param [options] Conversion options
  21. * @returns Message instance
  22. */
  23. export function fromJsonString(type: $protobuf.Type, json: string, options?: IProtoJsonOptions): $protobuf.Message<{}>;
  24. /**
  25. * Formats a message as ProtoJSON using the specified reflected type.
  26. * @param type Reflected message type
  27. * @param message Message instance or plain object
  28. * @param [options] Conversion options
  29. * @returns ProtoJSON value (object, array, string, number, boolean or null)
  30. */
  31. export function toJson(type: $protobuf.Type, message: ($protobuf.Message<{}>|{ [k: string]: any }), options?: IProtoJsonOptions): any;
  32. /**
  33. * Formats a message as ProtoJSON text using the specified reflected type.
  34. * @param type Reflected message type
  35. * @param message Message instance or plain object
  36. * @param [options] Conversion options
  37. * @returns ProtoJSON text
  38. */
  39. export function toJsonString(type: $protobuf.Type, message: ($protobuf.Message<{}>|{ [k: string]: any }), options?: IProtoJsonOptions): string;
  40. /** Installs reflected {@link Type} convenience methods. */
  41. export function install(): void;