andreasewering / elm-protoc-types / Proto.Google.Protobuf.Value.Kind

This file was automatically generated by

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


type Kind
    = NullValue Proto.Google.Protobuf.Internals_.Proto__Google__Protobuf__NullValue
    | NumberValue Basics.Float
    | StringValue String
    | BoolValue Basics.Bool
    | StructValue Proto.Google.Protobuf.Internals_.Proto__Google__Protobuf__Struct
    | ListValue Proto.Google.Protobuf.Internals_.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.

boolValue : Basics.Bool -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKind__Kind

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

fromInternalKind : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKind__Kind -> Kind

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.

listValue : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufListValue -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKindKind

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

nullValue : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufNullValue -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKindKind

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

numberValue : Basics.Float -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKind__Kind

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

stringValue : String -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKind__Kind

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

structValue : Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufStruct -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKindKind

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

toInternalKind : Kind -> Proto.Google.Protobuf.Internals_.ProtoGoogleProtobufValueKind__Kind

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.