feral-dot-io / protoc-gen-elmer / Protobuf.Elmer

Helper types and functions for protoc-gen-elmer codegen. This module should not be used directly.

See the project on how this may be used: https://github.com/feral-dot-io/protoc-gen-elmer

Well-known types


type alias BoolValue =
Maybe Basics.Bool


type alias BytesValue =
Maybe Bytes


type alias DoubleValue =
Maybe Basics.Float


type alias FloatValue =
Maybe Basics.Float


type alias Int32Value =
Maybe Basics.Int


type alias Int64Value =
Maybe Basics.Int


type alias StringValue =
Maybe String


type alias UInt32Value =
Maybe Basics.Int


type alias UInt64Value =
Maybe Basics.Int

Empty (zero) vlaues

emptyAny : Google.Protobuf.Any

emptyApi : Google.Protobuf.Api

emptyBoolValue : BoolValue

emptyBytes : Bytes

emptyBytesValue : BytesValue

emptyDoubleValue : FloatValue

emptyDuration : Google.Protobuf.Duration

emptyEmpty : Google.Protobuf.Empty

emptyEnum : Google.Protobuf.Enum

emptyEnumValue : Google.Protobuf.EnumValue

emptyField : Google.Protobuf.Field

emptyFieldMask : Google.Protobuf.FieldMask

emptyField_Cardinality : Google.Protobuf.Cardinality

emptyField_Kind : Google.Protobuf.Kind

emptyFloatValue : FloatValue

emptyInt32Value : Int64Value

emptyInt64Value : Int64Value

emptyListValue : Google.Protobuf.ListValue

emptyMethod : Google.Protobuf.Method

emptyMixin : Google.Protobuf.Mixin

emptyNullValue : Google.Protobuf.NullValue

emptyOption : Google.Protobuf.Option

emptySourceContext : Google.Protobuf.SourceContext

emptyStringValue : StringValue

emptyStruct : Google.Protobuf.Struct

emptySyntax : Google.Protobuf.Syntax

emptyTimestamp : Time.Posix

emptyUInt32Value : Maybe Basics.Int

emptyUInt64Value : Maybe Basics.Int

emptyValue : Google.Protobuf.Value

emptyXType : Google.Protobuf.Type

Decoders

decodeBoolValue : Protobuf.Decode.Decoder BoolValue

decodeBytesValue : Protobuf.Decode.Decoder BytesValue

decodeDoubleValue : Protobuf.Decode.Decoder FloatValue

decodeFloatValue : Protobuf.Decode.Decoder FloatValue

decodeInt32Value : Protobuf.Decode.Decoder Int32Value

decodeInt64Value : Protobuf.Decode.Decoder Int64Value

decodeStringValue : Protobuf.Decode.Decoder StringValue

decodeTimestamp : Protobuf.Decode.Decoder Time.Posix

decodeUInt32Value : Protobuf.Decode.Decoder UInt32Value

decodeUInt64Value : Protobuf.Decode.Decoder UInt64Value

decodeValue : Protobuf.Decode.Decoder w -> Protobuf.Decode.Decoder (Maybe w)

Encoders

encodeAny : Google.Protobuf.Any -> Protobuf.Encode.Encoder

encodeBoolValue : BoolValue -> Protobuf.Encode.Encoder

encodeBytesValue : BytesValue -> Protobuf.Encode.Encoder

encodeDoubleValue : FloatValue -> Protobuf.Encode.Encoder

encodeFloatValue : FloatValue -> Protobuf.Encode.Encoder

encodeInt32Value : Int32Value -> Protobuf.Encode.Encoder

encodeInt64Value : Int64Value -> Protobuf.Encode.Encoder

encodeStringValue : StringValue -> Protobuf.Encode.Encoder

encodeTimestamp : Time.Posix -> Protobuf.Encode.Encoder

encodeUInt32Value : UInt32Value -> Protobuf.Encode.Encoder

encodeUInt64Value : UInt64Value -> Protobuf.Encode.Encoder

encodeValue : (v -> Protobuf.Encode.Encoder) -> Maybe v -> Protobuf.Encode.Encoder