{- This file was auto-generated from tensorflow/core/framework/attr_value.proto by the proto-lens-protoc program. -}
{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies,
  MultiParamTypeClasses, FlexibleContexts, FlexibleInstances,
  PatternSynonyms #-}
{-# OPTIONS_GHC -fno-warn-unused-imports#-}
module Proto.Tensorflow.Core.Framework.AttrValue where
import qualified Prelude
import qualified Data.Int
import qualified Data.Word
import qualified Data.ProtoLens.Reexport.Data.ProtoLens
       as Data.ProtoLens
import qualified
       Data.ProtoLens.Reexport.Data.ProtoLens.Message.Enum
       as Data.ProtoLens.Message.Enum
import qualified Data.ProtoLens.Reexport.Lens.Family2
       as Lens.Family2
import qualified Data.ProtoLens.Reexport.Lens.Family2.Unchecked
       as Lens.Family2.Unchecked
import qualified Data.ProtoLens.Reexport.Data.Default.Class
       as Data.Default.Class
import qualified Data.ProtoLens.Reexport.Data.Text as Data.Text
import qualified Data.ProtoLens.Reexport.Data.Map as Data.Map
import qualified Data.ProtoLens.Reexport.Data.ByteString
       as Data.ByteString
import qualified Proto.Tensorflow.Core.Framework.Tensor
import qualified Proto.Tensorflow.Core.Framework.TensorShape
import qualified Proto.Tensorflow.Core.Framework.Types

data AttrValue = AttrValue{_AttrValue's ::
                           Prelude.Maybe Data.ByteString.ByteString,
                           _AttrValue'i :: Prelude.Maybe Data.Int.Int64,
                           _AttrValue'f :: Prelude.Maybe Prelude.Float,
                           _AttrValue'b :: Prelude.Maybe Prelude.Bool,
                           _AttrValue'type' ::
                           Prelude.Maybe Proto.Tensorflow.Core.Framework.Types.DataType,
                           _AttrValue'shape ::
                           Prelude.Maybe
                             Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto,
                           _AttrValue'tensor ::
                           Prelude.Maybe Proto.Tensorflow.Core.Framework.Tensor.TensorProto,
                           _AttrValue'list :: Prelude.Maybe AttrValue'ListValue,
                           _AttrValue'func :: Prelude.Maybe NameAttrList,
                           _AttrValue'placeholder :: Prelude.Maybe Data.Text.Text}
               deriving (Prelude.Show, Prelude.Eq)

type instance Data.ProtoLens.Field "s" AttrValue =
     Data.ByteString.ByteString

instance Data.ProtoLens.HasField "s" AttrValue AttrValue where
        field _
          = (Prelude..) maybe's
              (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)

type instance Data.ProtoLens.Field "maybe's" AttrValue =
     Prelude.Maybe Data.ByteString.ByteString

instance Data.ProtoLens.HasField "maybe's" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue's
              (\ x__ y__ -> x__{_AttrValue's = y__})

type instance Data.ProtoLens.Field "i" AttrValue = Data.Int.Int64

instance Data.ProtoLens.HasField "i" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'i
              (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)

type instance Data.ProtoLens.Field "maybe'i" AttrValue =
     Prelude.Maybe Data.Int.Int64

instance Data.ProtoLens.HasField "maybe'i" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'i
              (\ x__ y__ -> x__{_AttrValue'i = y__})

type instance Data.ProtoLens.Field "f" AttrValue = Prelude.Float

instance Data.ProtoLens.HasField "f" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'f
              (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)

type instance Data.ProtoLens.Field "maybe'f" AttrValue =
     Prelude.Maybe Prelude.Float

instance Data.ProtoLens.HasField "maybe'f" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'f
              (\ x__ y__ -> x__{_AttrValue'f = y__})

type instance Data.ProtoLens.Field "b" AttrValue = Prelude.Bool

instance Data.ProtoLens.HasField "b" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'b
              (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)

type instance Data.ProtoLens.Field "maybe'b" AttrValue =
     Prelude.Maybe Prelude.Bool

instance Data.ProtoLens.HasField "maybe'b" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'b
              (\ x__ y__ -> x__{_AttrValue'b = y__})

type instance Data.ProtoLens.Field "type'" AttrValue =
     Proto.Tensorflow.Core.Framework.Types.DataType

instance Data.ProtoLens.HasField "type'" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'type'
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance Data.ProtoLens.Field "maybe'type'" AttrValue =
     Prelude.Maybe Proto.Tensorflow.Core.Framework.Types.DataType

instance Data.ProtoLens.HasField "maybe'type'" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'type'
              (\ x__ y__ -> x__{_AttrValue'type' = y__})

type instance Data.ProtoLens.Field "shape" AttrValue =
     Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto

instance Data.ProtoLens.HasField "shape" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'shape
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance Data.ProtoLens.Field "maybe'shape" AttrValue =
     Prelude.Maybe
       Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto

instance Data.ProtoLens.HasField "maybe'shape" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'shape
              (\ x__ y__ -> x__{_AttrValue'shape = y__})

type instance Data.ProtoLens.Field "tensor" AttrValue =
     Proto.Tensorflow.Core.Framework.Tensor.TensorProto

instance Data.ProtoLens.HasField "tensor" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'tensor
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance Data.ProtoLens.Field "maybe'tensor" AttrValue =
     Prelude.Maybe Proto.Tensorflow.Core.Framework.Tensor.TensorProto

instance Data.ProtoLens.HasField "maybe'tensor" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'tensor
              (\ x__ y__ -> x__{_AttrValue'tensor = y__})

type instance Data.ProtoLens.Field "list" AttrValue =
     AttrValue'ListValue

instance Data.ProtoLens.HasField "list" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'list
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance Data.ProtoLens.Field "maybe'list" AttrValue =
     Prelude.Maybe AttrValue'ListValue

instance Data.ProtoLens.HasField "maybe'list" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'list
              (\ x__ y__ -> x__{_AttrValue'list = y__})

type instance Data.ProtoLens.Field "func" AttrValue = NameAttrList

instance Data.ProtoLens.HasField "func" AttrValue AttrValue where
        field _
          = (Prelude..) maybe'func
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance Data.ProtoLens.Field "maybe'func" AttrValue =
     Prelude.Maybe NameAttrList

instance Data.ProtoLens.HasField "maybe'func" AttrValue AttrValue
         where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'func
              (\ x__ y__ -> x__{_AttrValue'func = y__})

type instance Data.ProtoLens.Field "placeholder" AttrValue =
     Data.Text.Text

instance Data.ProtoLens.HasField "placeholder" AttrValue AttrValue
         where
        field _
          = (Prelude..) maybe'placeholder
              (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault)

type instance Data.ProtoLens.Field "maybe'placeholder" AttrValue =
     Prelude.Maybe Data.Text.Text

instance Data.ProtoLens.HasField "maybe'placeholder" AttrValue
         AttrValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'placeholder
              (\ x__ y__ -> x__{_AttrValue'placeholder = y__})

instance Data.Default.Class.Default AttrValue where
        def
          = AttrValue{_AttrValue's = Prelude.Nothing,
                      _AttrValue'i = Prelude.Nothing, _AttrValue'f = Prelude.Nothing,
                      _AttrValue'b = Prelude.Nothing, _AttrValue'type' = Prelude.Nothing,
                      _AttrValue'shape = Prelude.Nothing,
                      _AttrValue'tensor = Prelude.Nothing,
                      _AttrValue'list = Prelude.Nothing,
                      _AttrValue'func = Prelude.Nothing,
                      _AttrValue'placeholder = Prelude.Nothing}

instance Data.ProtoLens.Message AttrValue where
        descriptor
          = let s__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "s"
                      (Data.ProtoLens.BytesField ::
                         Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)
                      (Data.ProtoLens.OptionalField maybe's)
                i__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "i"
                      (Data.ProtoLens.Int64Field ::
                         Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                      (Data.ProtoLens.OptionalField maybe'i)
                f__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "f"
                      (Data.ProtoLens.FloatField ::
                         Data.ProtoLens.FieldTypeDescriptor Prelude.Float)
                      (Data.ProtoLens.OptionalField maybe'f)
                b__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "b"
                      (Data.ProtoLens.BoolField ::
                         Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)
                      (Data.ProtoLens.OptionalField maybe'b)
                type'__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "type"
                      (Data.ProtoLens.EnumField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.Types.DataType)
                      (Data.ProtoLens.OptionalField maybe'type')
                shape__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "shape"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto)
                      (Data.ProtoLens.OptionalField maybe'shape)
                tensor__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "tensor"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.Tensor.TensorProto)
                      (Data.ProtoLens.OptionalField maybe'tensor)
                list__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "list"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor AttrValue'ListValue)
                      (Data.ProtoLens.OptionalField maybe'list)
                func__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "func"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor NameAttrList)
                      (Data.ProtoLens.OptionalField maybe'func)
                placeholder__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "placeholder"
                      (Data.ProtoLens.StringField ::
                         Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                      (Data.ProtoLens.OptionalField maybe'placeholder)
              in
              Data.ProtoLens.MessageDescriptor
                (Data.Map.fromList
                   [(Data.ProtoLens.Tag 2, s__field_descriptor),
                    (Data.ProtoLens.Tag 3, i__field_descriptor),
                    (Data.ProtoLens.Tag 4, f__field_descriptor),
                    (Data.ProtoLens.Tag 5, b__field_descriptor),
                    (Data.ProtoLens.Tag 6, type'__field_descriptor),
                    (Data.ProtoLens.Tag 7, shape__field_descriptor),
                    (Data.ProtoLens.Tag 8, tensor__field_descriptor),
                    (Data.ProtoLens.Tag 1, list__field_descriptor),
                    (Data.ProtoLens.Tag 10, func__field_descriptor),
                    (Data.ProtoLens.Tag 9, placeholder__field_descriptor)])
                (Data.Map.fromList
                   [("s", s__field_descriptor), ("i", i__field_descriptor),
                    ("f", f__field_descriptor), ("b", b__field_descriptor),
                    ("type", type'__field_descriptor),
                    ("shape", shape__field_descriptor),
                    ("tensor", tensor__field_descriptor),
                    ("list", list__field_descriptor), ("func", func__field_descriptor),
                    ("placeholder", placeholder__field_descriptor)])

data AttrValue'ListValue = AttrValue'ListValue{_AttrValue'ListValue's
                                               :: [Data.ByteString.ByteString],
                                               _AttrValue'ListValue'i :: [Data.Int.Int64],
                                               _AttrValue'ListValue'f :: [Prelude.Float],
                                               _AttrValue'ListValue'b :: [Prelude.Bool],
                                               _AttrValue'ListValue'type' ::
                                               [Proto.Tensorflow.Core.Framework.Types.DataType],
                                               _AttrValue'ListValue'shape ::
                                               [Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto],
                                               _AttrValue'ListValue'tensor ::
                                               [Proto.Tensorflow.Core.Framework.Tensor.TensorProto]}
                         deriving (Prelude.Show, Prelude.Eq)

type instance Data.ProtoLens.Field "s" AttrValue'ListValue =
     [Data.ByteString.ByteString]

instance Data.ProtoLens.HasField "s" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue's
              (\ x__ y__ -> x__{_AttrValue'ListValue's = y__})

type instance Data.ProtoLens.Field "i" AttrValue'ListValue =
     [Data.Int.Int64]

instance Data.ProtoLens.HasField "i" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'i
              (\ x__ y__ -> x__{_AttrValue'ListValue'i = y__})

type instance Data.ProtoLens.Field "f" AttrValue'ListValue =
     [Prelude.Float]

instance Data.ProtoLens.HasField "f" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'f
              (\ x__ y__ -> x__{_AttrValue'ListValue'f = y__})

type instance Data.ProtoLens.Field "b" AttrValue'ListValue =
     [Prelude.Bool]

instance Data.ProtoLens.HasField "b" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'b
              (\ x__ y__ -> x__{_AttrValue'ListValue'b = y__})

type instance Data.ProtoLens.Field "type'" AttrValue'ListValue =
     [Proto.Tensorflow.Core.Framework.Types.DataType]

instance Data.ProtoLens.HasField "type'" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'type'
              (\ x__ y__ -> x__{_AttrValue'ListValue'type' = y__})

type instance Data.ProtoLens.Field "shape" AttrValue'ListValue =
     [Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto]

instance Data.ProtoLens.HasField "shape" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'shape
              (\ x__ y__ -> x__{_AttrValue'ListValue'shape = y__})

type instance Data.ProtoLens.Field "tensor" AttrValue'ListValue =
     [Proto.Tensorflow.Core.Framework.Tensor.TensorProto]

instance Data.ProtoLens.HasField "tensor" AttrValue'ListValue
         AttrValue'ListValue where
        field _
          = Lens.Family2.Unchecked.lens _AttrValue'ListValue'tensor
              (\ x__ y__ -> x__{_AttrValue'ListValue'tensor = y__})

instance Data.Default.Class.Default AttrValue'ListValue where
        def
          = AttrValue'ListValue{_AttrValue'ListValue's = [],
                                _AttrValue'ListValue'i = [], _AttrValue'ListValue'f = [],
                                _AttrValue'ListValue'b = [], _AttrValue'ListValue'type' = [],
                                _AttrValue'ListValue'shape = [], _AttrValue'ListValue'tensor = []}

instance Data.ProtoLens.Message AttrValue'ListValue where
        descriptor
          = let s__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "s"
                      (Data.ProtoLens.BytesField ::
                         Data.ProtoLens.FieldTypeDescriptor Data.ByteString.ByteString)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Unpacked s)
                i__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "i"
                      (Data.ProtoLens.Int64Field ::
                         Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Packed i)
                f__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "f"
                      (Data.ProtoLens.FloatField ::
                         Data.ProtoLens.FieldTypeDescriptor Prelude.Float)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Packed f)
                b__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "b"
                      (Data.ProtoLens.BoolField ::
                         Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Packed b)
                type'__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "type"
                      (Data.ProtoLens.EnumField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.Types.DataType)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Packed type')
                shape__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "shape"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Unpacked shape)
                tensor__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "tensor"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor
                           Proto.Tensorflow.Core.Framework.Tensor.TensorProto)
                      (Data.ProtoLens.RepeatedField Data.ProtoLens.Unpacked tensor)
              in
              Data.ProtoLens.MessageDescriptor
                (Data.Map.fromList
                   [(Data.ProtoLens.Tag 2, s__field_descriptor),
                    (Data.ProtoLens.Tag 3, i__field_descriptor),
                    (Data.ProtoLens.Tag 4, f__field_descriptor),
                    (Data.ProtoLens.Tag 5, b__field_descriptor),
                    (Data.ProtoLens.Tag 6, type'__field_descriptor),
                    (Data.ProtoLens.Tag 7, shape__field_descriptor),
                    (Data.ProtoLens.Tag 8, tensor__field_descriptor)])
                (Data.Map.fromList
                   [("s", s__field_descriptor), ("i", i__field_descriptor),
                    ("f", f__field_descriptor), ("b", b__field_descriptor),
                    ("type", type'__field_descriptor),
                    ("shape", shape__field_descriptor),
                    ("tensor", tensor__field_descriptor)])

data NameAttrList = NameAttrList{_NameAttrList'name ::
                                 Data.Text.Text,
                                 _NameAttrList'attr :: Data.Map.Map Data.Text.Text AttrValue}
                  deriving (Prelude.Show, Prelude.Eq)

type instance Data.ProtoLens.Field "name" NameAttrList =
     Data.Text.Text

instance Data.ProtoLens.HasField "name" NameAttrList NameAttrList
         where
        field _
          = Lens.Family2.Unchecked.lens _NameAttrList'name
              (\ x__ y__ -> x__{_NameAttrList'name = y__})

type instance Data.ProtoLens.Field "attr" NameAttrList =
     Data.Map.Map Data.Text.Text AttrValue

instance Data.ProtoLens.HasField "attr" NameAttrList NameAttrList
         where
        field _
          = Lens.Family2.Unchecked.lens _NameAttrList'attr
              (\ x__ y__ -> x__{_NameAttrList'attr = y__})

instance Data.Default.Class.Default NameAttrList where
        def
          = NameAttrList{_NameAttrList'name = Data.ProtoLens.fieldDefault,
                         _NameAttrList'attr = Data.Map.empty}

instance Data.ProtoLens.Message NameAttrList where
        descriptor
          = let name__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "name"
                      (Data.ProtoLens.StringField ::
                         Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                      (Data.ProtoLens.PlainField Data.ProtoLens.Optional name)
                attr__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "attr"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor NameAttrList'AttrEntry)
                      (Data.ProtoLens.MapField key value attr)
              in
              Data.ProtoLens.MessageDescriptor
                (Data.Map.fromList
                   [(Data.ProtoLens.Tag 1, name__field_descriptor),
                    (Data.ProtoLens.Tag 2, attr__field_descriptor)])
                (Data.Map.fromList
                   [("name", name__field_descriptor),
                    ("attr", attr__field_descriptor)])

data NameAttrList'AttrEntry = NameAttrList'AttrEntry{_NameAttrList'AttrEntry'key
                                                     :: Data.Text.Text,
                                                     _NameAttrList'AttrEntry'value ::
                                                     Prelude.Maybe AttrValue}
                            deriving (Prelude.Show, Prelude.Eq)

type instance Data.ProtoLens.Field "key" NameAttrList'AttrEntry =
     Data.Text.Text

instance Data.ProtoLens.HasField "key" NameAttrList'AttrEntry
         NameAttrList'AttrEntry where
        field _
          = Lens.Family2.Unchecked.lens _NameAttrList'AttrEntry'key
              (\ x__ y__ -> x__{_NameAttrList'AttrEntry'key = y__})

type instance Data.ProtoLens.Field "value" NameAttrList'AttrEntry =
     AttrValue

instance Data.ProtoLens.HasField "value" NameAttrList'AttrEntry
         NameAttrList'AttrEntry where
        field _
          = (Prelude..) maybe'value
              (Data.ProtoLens.maybeLens Data.Default.Class.def)

type instance
     Data.ProtoLens.Field "maybe'value" NameAttrList'AttrEntry =
     Prelude.Maybe AttrValue

instance Data.ProtoLens.HasField "maybe'value"
         NameAttrList'AttrEntry NameAttrList'AttrEntry where
        field _
          = Lens.Family2.Unchecked.lens _NameAttrList'AttrEntry'value
              (\ x__ y__ -> x__{_NameAttrList'AttrEntry'value = y__})

instance Data.Default.Class.Default NameAttrList'AttrEntry where
        def
          = NameAttrList'AttrEntry{_NameAttrList'AttrEntry'key =
                                     Data.ProtoLens.fieldDefault,
                                   _NameAttrList'AttrEntry'value = Prelude.Nothing}

instance Data.ProtoLens.Message NameAttrList'AttrEntry where
        descriptor
          = let key__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "key"
                      (Data.ProtoLens.StringField ::
                         Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
                      (Data.ProtoLens.PlainField Data.ProtoLens.Optional key)
                value__field_descriptor
                  = Data.ProtoLens.FieldDescriptor "value"
                      (Data.ProtoLens.MessageField ::
                         Data.ProtoLens.FieldTypeDescriptor AttrValue)
                      (Data.ProtoLens.OptionalField maybe'value)
              in
              Data.ProtoLens.MessageDescriptor
                (Data.Map.fromList
                   [(Data.ProtoLens.Tag 1, key__field_descriptor),
                    (Data.ProtoLens.Tag 2, value__field_descriptor)])
                (Data.Map.fromList
                   [("key", key__field_descriptor),
                    ("value", value__field_descriptor)])

attr ::
     forall msg msg' . Data.ProtoLens.HasField "attr" msg msg' =>
       Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "attr" msg)
         (Data.ProtoLens.Field "attr" msg')
attr
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "attr")

b ::
  forall msg msg' . Data.ProtoLens.HasField "b" msg msg' =>
    Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "b" msg)
      (Data.ProtoLens.Field "b" msg')
b = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "b")

f ::
  forall msg msg' . Data.ProtoLens.HasField "f" msg msg' =>
    Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "f" msg)
      (Data.ProtoLens.Field "f" msg')
f = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "f")

func ::
     forall msg msg' . Data.ProtoLens.HasField "func" msg msg' =>
       Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "func" msg)
         (Data.ProtoLens.Field "func" msg')
func
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "func")

i ::
  forall msg msg' . Data.ProtoLens.HasField "i" msg msg' =>
    Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "i" msg)
      (Data.ProtoLens.Field "i" msg')
i = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "i")

key ::
    forall msg msg' . Data.ProtoLens.HasField "key" msg msg' =>
      Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "key" msg)
        (Data.ProtoLens.Field "key" msg')
key
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "key")

list ::
     forall msg msg' . Data.ProtoLens.HasField "list" msg msg' =>
       Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "list" msg)
         (Data.ProtoLens.Field "list" msg')
list
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "list")

maybe'b ::
        forall msg msg' . Data.ProtoLens.HasField "maybe'b" msg msg' =>
          Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'b" msg)
            (Data.ProtoLens.Field "maybe'b" msg')
maybe'b
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'b")

maybe'f ::
        forall msg msg' . Data.ProtoLens.HasField "maybe'f" msg msg' =>
          Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'f" msg)
            (Data.ProtoLens.Field "maybe'f" msg')
maybe'f
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'f")

maybe'func ::
           forall msg msg' . Data.ProtoLens.HasField "maybe'func" msg msg' =>
             Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'func" msg)
               (Data.ProtoLens.Field "maybe'func" msg')
maybe'func
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'func")

maybe'i ::
        forall msg msg' . Data.ProtoLens.HasField "maybe'i" msg msg' =>
          Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'i" msg)
            (Data.ProtoLens.Field "maybe'i" msg')
maybe'i
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'i")

maybe'list ::
           forall msg msg' . Data.ProtoLens.HasField "maybe'list" msg msg' =>
             Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'list" msg)
               (Data.ProtoLens.Field "maybe'list" msg')
maybe'list
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'list")

maybe'placeholder ::
                  forall msg msg' .
                    Data.ProtoLens.HasField "maybe'placeholder" msg msg' =>
                    Lens.Family2.Lens msg msg'
                      (Data.ProtoLens.Field "maybe'placeholder" msg)
                      (Data.ProtoLens.Field "maybe'placeholder" msg')
maybe'placeholder
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym ::
         Data.ProtoLens.ProxySym "maybe'placeholder")

maybe's ::
        forall msg msg' . Data.ProtoLens.HasField "maybe's" msg msg' =>
          Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe's" msg)
            (Data.ProtoLens.Field "maybe's" msg')
maybe's
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe's")

maybe'shape ::
            forall msg msg' . Data.ProtoLens.HasField "maybe'shape" msg msg' =>
              Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'shape" msg)
                (Data.ProtoLens.Field "maybe'shape" msg')
maybe'shape
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'shape")

maybe'tensor ::
             forall msg msg' .
               Data.ProtoLens.HasField "maybe'tensor" msg msg' =>
               Lens.Family2.Lens msg msg'
                 (Data.ProtoLens.Field "maybe'tensor" msg)
                 (Data.ProtoLens.Field "maybe'tensor" msg')
maybe'tensor
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'tensor")

maybe'type' ::
            forall msg msg' . Data.ProtoLens.HasField "maybe'type'" msg msg' =>
              Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'type'" msg)
                (Data.ProtoLens.Field "maybe'type'" msg')
maybe'type'
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'type'")

maybe'value ::
            forall msg msg' . Data.ProtoLens.HasField "maybe'value" msg msg' =>
              Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "maybe'value" msg)
                (Data.ProtoLens.Field "maybe'value" msg')
maybe'value
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "maybe'value")

name ::
     forall msg msg' . Data.ProtoLens.HasField "name" msg msg' =>
       Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "name" msg)
         (Data.ProtoLens.Field "name" msg')
name
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "name")

placeholder ::
            forall msg msg' . Data.ProtoLens.HasField "placeholder" msg msg' =>
              Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "placeholder" msg)
                (Data.ProtoLens.Field "placeholder" msg')
placeholder
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "placeholder")

s ::
  forall msg msg' . Data.ProtoLens.HasField "s" msg msg' =>
    Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "s" msg)
      (Data.ProtoLens.Field "s" msg')
s = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "s")

shape ::
      forall msg msg' . Data.ProtoLens.HasField "shape" msg msg' =>
        Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "shape" msg)
          (Data.ProtoLens.Field "shape" msg')
shape
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "shape")

tensor ::
       forall msg msg' . Data.ProtoLens.HasField "tensor" msg msg' =>
         Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "tensor" msg)
           (Data.ProtoLens.Field "tensor" msg')
tensor
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "tensor")

type' ::
      forall msg msg' . Data.ProtoLens.HasField "type'" msg msg' =>
        Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "type'" msg)
          (Data.ProtoLens.Field "type'" msg')
type'
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "type'")

value ::
      forall msg msg' . Data.ProtoLens.HasField "value" msg msg' =>
        Lens.Family2.Lens msg msg' (Data.ProtoLens.Field "value" msg)
          (Data.ProtoLens.Field "value" msg')
value
  = Data.ProtoLens.field
      (Data.ProtoLens.ProxySym :: Data.ProtoLens.ProxySym "value")