Well-known types

Discover the built-in custom types.

A well-known type is a custom type provided by Slice in all programming languages. All well-known types are defined in module WellKnownTypes:

  • Duration
    A length of time, encoded as a varint62 (precision = 100 nanoseconds).
  • TimeStamp
    A specific point in time, encoded as an int64.
  • Uri
    A Uniform Resource Identifier (URI), encoded as a string.
  • Uuid
    A Universal Unique Identifier (UUID), encoded as a 128-bit value.

Was this page helpful?

CookiesYour privacy
This website uses cookies to analyze traffic and improve your experience.
By clicking "Accept," you consent to the use of these cookies. You can learn more about our cookies policy in our Privacy Policy.