Represents a Value.

Hierarchy

  • Value

Implements

Constructors

Properties

asBlob?: null | Uint8Array

Value asBlob.

asUnsignedInteger?: null | number

Value asUnsignedInteger.

value?: "asBlob" | "asUnsignedInteger"

Value value.

Methods

  • Converts this Value to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Encodes the specified Value message. Does not implicitly verify messages.

    Parameters

    • message: IValue

      Value message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Encodes the specified Value message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IValue

      Value message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

  • Gets the default type url for Value

    Parameters

    • Optional typeUrlPrefix: string

      your custom typeUrlPrefix(default "type.googleapis.com")

    Returns string

    The default type url

  • Creates a plain object from a Value message. Also converts values to other types if specified.

    Parameters

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a Value message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc