anmolitor/elm-protoc-types/1.0.2

NOTE: the latest version is 2.0.0

Formerly andreasewering/elm-protoc-types. Search finds this package by either name.

Proto.Google.Protobuf.Value.Kind

This file was automatically generated by

  • protoc-gen-elm 3.3.4
  • protoc 4.22.2
  • the following specification files: google/protobuf/struct.proto

To run it, add a dependency via elm install on elm-protocol-buffers version latest or higher.

type Kind
| NumberValue Float
| StringValue String
| BoolValue Bool
| StructValue Proto__Google__Protobuf__Struct
| ListValue Proto__Google__Protobuf__ListValue

The kind of value.

Options

NullValue

Represents a null value.

NumberValue

Represents a double value.

StringValue

Represents a string value.

BoolValue

Represents a boolean value.

StructValue

Represents a structured value.

ListValue

Represents a repeated Value.

Construct a BoolValue and immediately turn it into an Internals_ data type. This is just (BoolValue >> toInternalKind

Convert the internal type Proto__Google__Protobuf__Value__Kind__Kind into a Kind.

Using two different types is necessary to avoid recursive module references while having readable constructor names.

Proto__Google__Protobuf__ListValue

Construct a ListValue and immediately turn it into an Internals_ data type. This is just (ListValue >> toInternalKind

Construct a NullValue and immediately turn it into an Internals_ data type. This is just (NullValue >> toInternalKind

Construct a NumberValue and immediately turn it into an Internals_ data type. This is just (NumberValue >> toInternalKind

Construct a StringValue and immediately turn it into an Internals_ data type. This is just (StringValue >> toInternalKind

Proto__Google__Protobuf__Struct

Construct a StructValue and immediately turn it into an Internals_ data type. This is just (StructValue >> toInternalKind

Convert a Kind into its internal representation Proto__Google__Protobuf__Value__Kind__Kind.

Using two different types is necessary to avoid recursive module references while having readable constructor names.