Variable Envelope

Envelope: {
    create<I>(base?: I): Envelope;
    decode(input: Uint8Array | Reader, length?: number): Envelope;
    encode(message: Envelope, writer?: Writer): Writer;
    fromJSON(object: any): Envelope;
    fromPartial<I>(object: I): Envelope;
    toJSON(message: Envelope): unknown;
}

Type declaration

  • create:function
    • Type Parameters

      • I extends {
            command?: string;
            data?: { type_url?: string; value?: Uint8Array; };
            id?: string;
            jwt?: string;
            priority?: number;
            rid?: string;
            seq?: number;
            spanid?: string;
            traceid?: string;
        } & {
            command?: string;
            data?: {
                type_url?: string;
                value?: Uint8Array;
            } & ({ type_url?: string; value?: Uint8Array; }) & { [ K in string | number | symbol]: never };
            id?: string;
            jwt?: string;
            priority?: number;
            rid?: string;
            seq?: number;
            spanid?: string;
            traceid?: string;
        } & { [ K in string | number | symbol]: never }

      Parameters

      • Optional base: I

      Returns Envelope

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • Type Parameters

      • I extends {
            command?: string;
            data?: { type_url?: string; value?: Uint8Array; };
            id?: string;
            jwt?: string;
            priority?: number;
            rid?: string;
            seq?: number;
            spanid?: string;
            traceid?: string;
        } & {
            command?: string;
            data?: {
                type_url?: string;
                value?: Uint8Array;
            } & ({ type_url?: string; value?: Uint8Array; }) & { [ K in string | number | symbol]: never };
            id?: string;
            jwt?: string;
            priority?: number;
            rid?: string;
            seq?: number;
            spanid?: string;
            traceid?: string;
        } & { [ K in string | number | symbol]: never }

      Parameters

      • object: I

      Returns Envelope

  • toJSON:function

Generated using TypeDoc