View Source Google.Protobuf.Value (protobuf v0.15.0)

Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.

The JSON representation for Value is JSON value.

Summary

Types

@type t() :: %Google.Protobuf.Value{
  __unknown_fields__: [Protobuf.unknown_field()],
  kind:
    {:null_value, Google.Protobuf.NullValue.t()}
    | {:number_value, float() | :infinity | :negative_infinity | :nan}
    | {:string_value, String.t()}
    | {:bool_value, boolean()}
    | {:struct_value, Google.Protobuf.Struct.t() | nil}
    | {:list_value, Google.Protobuf.ListValue.t() | nil}
    | nil
}

Functions