{- This file was auto-generated from tensorflow/core/protobuf/tensorflow_server.proto by the proto-lens-protoc program. -}
{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}
{-# OPTIONS_GHC -Wno-unused-imports#-}
{-# OPTIONS_GHC -Wno-duplicate-exports#-}
{-# OPTIONS_GHC -Wno-dodgy-exports#-}
module Proto.Tensorflow.Core.Protobuf.TensorflowServer (
        ServerDef()
    ) where
import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism
import qualified Data.ProtoLens.Runtime.Prelude as Prelude
import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int
import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid
import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word
import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types
import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2
import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked
import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text
import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map
import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString
import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8
import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding
import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector
import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic
import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed
import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read
import qualified Proto.Tensorflow.Core.Protobuf.Cluster
import qualified Proto.Tensorflow.Core.Protobuf.Config
import qualified Proto.Tensorflow.Core.Protobuf.DeviceFilters
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.cluster' @:: Lens' ServerDef Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.maybe'cluster' @:: Lens' ServerDef (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef)@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.jobName' @:: Lens' ServerDef Data.Text.Text@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.taskIndex' @:: Lens' ServerDef Data.Int.Int32@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.defaultSessionConfig' @:: Lens' ServerDef Proto.Tensorflow.Core.Protobuf.Config.ConfigProto@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.maybe'defaultSessionConfig' @:: Lens' ServerDef (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Config.ConfigProto)@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.protocol' @:: Lens' ServerDef Data.Text.Text@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.port' @:: Lens' ServerDef Data.Int.Int32@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.clusterDeviceFilters' @:: Lens' ServerDef Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters@
         * 'Proto.Tensorflow.Core.Protobuf.TensorflowServer_Fields.maybe'clusterDeviceFilters' @:: Lens' ServerDef (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters)@ -}
data ServerDef
  = ServerDef'_constructor {ServerDef -> Maybe ClusterDef
_ServerDef'cluster :: !(Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef),
                            ServerDef -> Text
_ServerDef'jobName :: !Data.Text.Text,
                            ServerDef -> Int32
_ServerDef'taskIndex :: !Data.Int.Int32,
                            ServerDef -> Maybe ConfigProto
_ServerDef'defaultSessionConfig :: !(Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Config.ConfigProto),
                            ServerDef -> Text
_ServerDef'protocol :: !Data.Text.Text,
                            ServerDef -> Int32
_ServerDef'port :: !Data.Int.Int32,
                            ServerDef -> Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters :: !(Prelude.Maybe Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters),
                            ServerDef -> FieldSet
_ServerDef'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (ServerDef -> ServerDef -> Bool
(ServerDef -> ServerDef -> Bool)
-> (ServerDef -> ServerDef -> Bool) -> Eq ServerDef
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServerDef -> ServerDef -> Bool
$c/= :: ServerDef -> ServerDef -> Bool
== :: ServerDef -> ServerDef -> Bool
$c== :: ServerDef -> ServerDef -> Bool
Prelude.Eq, Eq ServerDef
Eq ServerDef =>
(ServerDef -> ServerDef -> Ordering)
-> (ServerDef -> ServerDef -> Bool)
-> (ServerDef -> ServerDef -> Bool)
-> (ServerDef -> ServerDef -> Bool)
-> (ServerDef -> ServerDef -> Bool)
-> (ServerDef -> ServerDef -> ServerDef)
-> (ServerDef -> ServerDef -> ServerDef)
-> Ord ServerDef
ServerDef -> ServerDef -> Bool
ServerDef -> ServerDef -> Ordering
ServerDef -> ServerDef -> ServerDef
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ServerDef -> ServerDef -> ServerDef
$cmin :: ServerDef -> ServerDef -> ServerDef
max :: ServerDef -> ServerDef -> ServerDef
$cmax :: ServerDef -> ServerDef -> ServerDef
>= :: ServerDef -> ServerDef -> Bool
$c>= :: ServerDef -> ServerDef -> Bool
> :: ServerDef -> ServerDef -> Bool
$c> :: ServerDef -> ServerDef -> Bool
<= :: ServerDef -> ServerDef -> Bool
$c<= :: ServerDef -> ServerDef -> Bool
< :: ServerDef -> ServerDef -> Bool
$c< :: ServerDef -> ServerDef -> Bool
compare :: ServerDef -> ServerDef -> Ordering
$ccompare :: ServerDef -> ServerDef -> Ordering
$cp1Ord :: Eq ServerDef
Prelude.Ord)
instance Prelude.Show ServerDef where
  showsPrec :: Int -> ServerDef -> ShowS
showsPrec _ __x :: ServerDef
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (ServerDef -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort ServerDef
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField ServerDef "cluster" Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef where
  fieldOf :: Proxy# "cluster"
-> (ClusterDef -> f ClusterDef) -> ServerDef -> f ServerDef
fieldOf _
    = ((Maybe ClusterDef -> f (Maybe ClusterDef))
 -> ServerDef -> f ServerDef)
-> ((ClusterDef -> f ClusterDef)
    -> Maybe ClusterDef -> f (Maybe ClusterDef))
-> (ClusterDef -> f ClusterDef)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ClusterDef)
-> (ServerDef -> Maybe ClusterDef -> ServerDef)
-> Lens ServerDef ServerDef (Maybe ClusterDef) (Maybe ClusterDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ClusterDef
_ServerDef'cluster (\ x__ :: ServerDef
x__ y__ :: Maybe ClusterDef
y__ -> ServerDef
x__ {_ServerDef'cluster :: Maybe ClusterDef
_ServerDef'cluster = Maybe ClusterDef
y__}))
        (ClusterDef -> Lens' (Maybe ClusterDef) ClusterDef
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens ClusterDef
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField ServerDef "maybe'cluster" (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef) where
  fieldOf :: Proxy# "maybe'cluster"
-> (Maybe ClusterDef -> f (Maybe ClusterDef))
-> ServerDef
-> f ServerDef
fieldOf _
    = ((Maybe ClusterDef -> f (Maybe ClusterDef))
 -> ServerDef -> f ServerDef)
-> ((Maybe ClusterDef -> f (Maybe ClusterDef))
    -> Maybe ClusterDef -> f (Maybe ClusterDef))
-> (Maybe ClusterDef -> f (Maybe ClusterDef))
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ClusterDef)
-> (ServerDef -> Maybe ClusterDef -> ServerDef)
-> Lens ServerDef ServerDef (Maybe ClusterDef) (Maybe ClusterDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ClusterDef
_ServerDef'cluster (\ x__ :: ServerDef
x__ y__ :: Maybe ClusterDef
y__ -> ServerDef
x__ {_ServerDef'cluster :: Maybe ClusterDef
_ServerDef'cluster = Maybe ClusterDef
y__}))
        (Maybe ClusterDef -> f (Maybe ClusterDef))
-> Maybe ClusterDef -> f (Maybe ClusterDef)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "jobName" Data.Text.Text where
  fieldOf :: Proxy# "jobName" -> (Text -> f Text) -> ServerDef -> f ServerDef
fieldOf _
    = ((Text -> f Text) -> ServerDef -> f ServerDef)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Text)
-> (ServerDef -> Text -> ServerDef)
-> Lens ServerDef ServerDef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Text
_ServerDef'jobName (\ x__ :: ServerDef
x__ y__ :: Text
y__ -> ServerDef
x__ {_ServerDef'jobName :: Text
_ServerDef'jobName = Text
y__}))
        (Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "taskIndex" Data.Int.Int32 where
  fieldOf :: Proxy# "taskIndex"
-> (Int32 -> f Int32) -> ServerDef -> f ServerDef
fieldOf _
    = ((Int32 -> f Int32) -> ServerDef -> f ServerDef)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Int32)
-> (ServerDef -> Int32 -> ServerDef)
-> Lens ServerDef ServerDef Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Int32
_ServerDef'taskIndex
           (\ x__ :: ServerDef
x__ y__ :: Int32
y__ -> ServerDef
x__ {_ServerDef'taskIndex :: Int32
_ServerDef'taskIndex = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "defaultSessionConfig" Proto.Tensorflow.Core.Protobuf.Config.ConfigProto where
  fieldOf :: Proxy# "defaultSessionConfig"
-> (ConfigProto -> f ConfigProto) -> ServerDef -> f ServerDef
fieldOf _
    = ((Maybe ConfigProto -> f (Maybe ConfigProto))
 -> ServerDef -> f ServerDef)
-> ((ConfigProto -> f ConfigProto)
    -> Maybe ConfigProto -> f (Maybe ConfigProto))
-> (ConfigProto -> f ConfigProto)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ConfigProto)
-> (ServerDef -> Maybe ConfigProto -> ServerDef)
-> Lens ServerDef ServerDef (Maybe ConfigProto) (Maybe ConfigProto)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ConfigProto
_ServerDef'defaultSessionConfig
           (\ x__ :: ServerDef
x__ y__ :: Maybe ConfigProto
y__ -> ServerDef
x__ {_ServerDef'defaultSessionConfig :: Maybe ConfigProto
_ServerDef'defaultSessionConfig = Maybe ConfigProto
y__}))
        (ConfigProto -> Lens' (Maybe ConfigProto) ConfigProto
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens ConfigProto
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField ServerDef "maybe'defaultSessionConfig" (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.Config.ConfigProto) where
  fieldOf :: Proxy# "maybe'defaultSessionConfig"
-> (Maybe ConfigProto -> f (Maybe ConfigProto))
-> ServerDef
-> f ServerDef
fieldOf _
    = ((Maybe ConfigProto -> f (Maybe ConfigProto))
 -> ServerDef -> f ServerDef)
-> ((Maybe ConfigProto -> f (Maybe ConfigProto))
    -> Maybe ConfigProto -> f (Maybe ConfigProto))
-> (Maybe ConfigProto -> f (Maybe ConfigProto))
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ConfigProto)
-> (ServerDef -> Maybe ConfigProto -> ServerDef)
-> Lens ServerDef ServerDef (Maybe ConfigProto) (Maybe ConfigProto)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ConfigProto
_ServerDef'defaultSessionConfig
           (\ x__ :: ServerDef
x__ y__ :: Maybe ConfigProto
y__ -> ServerDef
x__ {_ServerDef'defaultSessionConfig :: Maybe ConfigProto
_ServerDef'defaultSessionConfig = Maybe ConfigProto
y__}))
        (Maybe ConfigProto -> f (Maybe ConfigProto))
-> Maybe ConfigProto -> f (Maybe ConfigProto)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "protocol" Data.Text.Text where
  fieldOf :: Proxy# "protocol" -> (Text -> f Text) -> ServerDef -> f ServerDef
fieldOf _
    = ((Text -> f Text) -> ServerDef -> f ServerDef)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Text)
-> (ServerDef -> Text -> ServerDef)
-> Lens ServerDef ServerDef Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Text
_ServerDef'protocol (\ x__ :: ServerDef
x__ y__ :: Text
y__ -> ServerDef
x__ {_ServerDef'protocol :: Text
_ServerDef'protocol = Text
y__}))
        (Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "port" Data.Int.Int32 where
  fieldOf :: Proxy# "port" -> (Int32 -> f Int32) -> ServerDef -> f ServerDef
fieldOf _
    = ((Int32 -> f Int32) -> ServerDef -> f ServerDef)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Int32)
-> (ServerDef -> Int32 -> ServerDef)
-> Lens ServerDef ServerDef Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Int32
_ServerDef'port (\ x__ :: ServerDef
x__ y__ :: Int32
y__ -> ServerDef
x__ {_ServerDef'port :: Int32
_ServerDef'port = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField ServerDef "clusterDeviceFilters" Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters where
  fieldOf :: Proxy# "clusterDeviceFilters"
-> (ClusterDeviceFilters -> f ClusterDeviceFilters)
-> ServerDef
-> f ServerDef
fieldOf _
    = ((Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
 -> ServerDef -> f ServerDef)
-> ((ClusterDeviceFilters -> f ClusterDeviceFilters)
    -> Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
-> (ClusterDeviceFilters -> f ClusterDeviceFilters)
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ClusterDeviceFilters)
-> (ServerDef -> Maybe ClusterDeviceFilters -> ServerDef)
-> Lens
     ServerDef
     ServerDef
     (Maybe ClusterDeviceFilters)
     (Maybe ClusterDeviceFilters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters
           (\ x__ :: ServerDef
x__ y__ :: Maybe ClusterDeviceFilters
y__ -> ServerDef
x__ {_ServerDef'clusterDeviceFilters :: Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters = Maybe ClusterDeviceFilters
y__}))
        (ClusterDeviceFilters
-> Lens' (Maybe ClusterDeviceFilters) ClusterDeviceFilters
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens ClusterDeviceFilters
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField ServerDef "maybe'clusterDeviceFilters" (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters) where
  fieldOf :: Proxy# "maybe'clusterDeviceFilters"
-> (Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
-> ServerDef
-> f ServerDef
fieldOf _
    = ((Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
 -> ServerDef -> f ServerDef)
-> ((Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
    -> Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
-> (Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
-> ServerDef
-> f ServerDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((ServerDef -> Maybe ClusterDeviceFilters)
-> (ServerDef -> Maybe ClusterDeviceFilters -> ServerDef)
-> Lens
     ServerDef
     ServerDef
     (Maybe ClusterDeviceFilters)
     (Maybe ClusterDeviceFilters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           ServerDef -> Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters
           (\ x__ :: ServerDef
x__ y__ :: Maybe ClusterDeviceFilters
y__ -> ServerDef
x__ {_ServerDef'clusterDeviceFilters :: Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters = Maybe ClusterDeviceFilters
y__}))
        (Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters))
-> Maybe ClusterDeviceFilters -> f (Maybe ClusterDeviceFilters)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message ServerDef where
  messageName :: Proxy ServerDef -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.ServerDef"
  packedMessageDescriptor :: Proxy ServerDef -> ByteString
packedMessageDescriptor _
    = "\n\
      \\tServerDef\DC20\n\
      \\acluster\CAN\SOH \SOH(\v2\SYN.tensorflow.ClusterDefR\acluster\DC2\EM\n\
      \\bjob_name\CAN\STX \SOH(\tR\ajobName\DC2\GS\n\
      \\n\
      \task_index\CAN\ETX \SOH(\ENQR\ttaskIndex\DC2M\n\
      \\SYNdefault_session_config\CAN\EOT \SOH(\v2\ETB.tensorflow.ConfigProtoR\DC4defaultSessionConfig\DC2\SUB\n\
      \\bprotocol\CAN\ENQ \SOH(\tR\bprotocol\DC2\DC2\n\
      \\EOTport\CAN\ACK \SOH(\ENQR\EOTport\DC2V\n\
      \\SYNcluster_device_filters\CAN\a \SOH(\v2 .tensorflow.ClusterDeviceFiltersR\DC4clusterDeviceFilters"
  packedFileDescriptor :: Proxy ServerDef -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor ServerDef)
fieldsByTag
    = let
        cluster__field_descriptor :: FieldDescriptor ServerDef
cluster__field_descriptor
          = String
-> FieldTypeDescriptor ClusterDef
-> FieldAccessor ServerDef ClusterDef
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "cluster"
              (MessageOrGroup -> FieldTypeDescriptor ClusterDef
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Protobuf.Cluster.ClusterDef)
              (Lens ServerDef ServerDef (Maybe ClusterDef) (Maybe ClusterDef)
-> FieldAccessor ServerDef ClusterDef
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'cluster" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'cluster")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        jobName__field_descriptor :: FieldDescriptor ServerDef
jobName__field_descriptor
          = String
-> FieldTypeDescriptor Text
-> FieldAccessor ServerDef Text
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "job_name"
              (ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
              (WireDefault Text
-> Lens ServerDef ServerDef Text Text
-> FieldAccessor ServerDef Text
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Text
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "jobName" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"jobName")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        taskIndex__field_descriptor :: FieldDescriptor ServerDef
taskIndex__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor ServerDef Int32
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "task_index"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (WireDefault Int32
-> Lens ServerDef ServerDef Int32 Int32
-> FieldAccessor ServerDef Int32
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int32
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "taskIndex" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"taskIndex")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        defaultSessionConfig__field_descriptor :: FieldDescriptor ServerDef
defaultSessionConfig__field_descriptor
          = String
-> FieldTypeDescriptor ConfigProto
-> FieldAccessor ServerDef ConfigProto
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "default_session_config"
              (MessageOrGroup -> FieldTypeDescriptor ConfigProto
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Protobuf.Config.ConfigProto)
              (Lens ServerDef ServerDef (Maybe ConfigProto) (Maybe ConfigProto)
-> FieldAccessor ServerDef ConfigProto
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'defaultSessionConfig" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'defaultSessionConfig")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        protocol__field_descriptor :: FieldDescriptor ServerDef
protocol__field_descriptor
          = String
-> FieldTypeDescriptor Text
-> FieldAccessor ServerDef Text
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "protocol"
              (ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
              (WireDefault Text
-> Lens ServerDef ServerDef Text Text
-> FieldAccessor ServerDef Text
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Text
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "protocol" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"protocol")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        port__field_descriptor :: FieldDescriptor ServerDef
port__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor ServerDef Int32
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "port"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (WireDefault Int32
-> Lens ServerDef ServerDef Int32 Int32
-> FieldAccessor ServerDef Int32
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int32
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "port" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"port")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
        clusterDeviceFilters__field_descriptor :: FieldDescriptor ServerDef
clusterDeviceFilters__field_descriptor
          = String
-> FieldTypeDescriptor ClusterDeviceFilters
-> FieldAccessor ServerDef ClusterDeviceFilters
-> FieldDescriptor ServerDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "cluster_device_filters"
              (MessageOrGroup -> FieldTypeDescriptor ClusterDeviceFilters
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Protobuf.DeviceFilters.ClusterDeviceFilters)
              (Lens
  ServerDef
  ServerDef
  (Maybe ClusterDeviceFilters)
  (Maybe ClusterDeviceFilters)
-> FieldAccessor ServerDef ClusterDeviceFilters
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'clusterDeviceFilters" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'clusterDeviceFilters")) ::
              Data.ProtoLens.FieldDescriptor ServerDef
      in
        [(Tag, FieldDescriptor ServerDef)]
-> Map Tag (FieldDescriptor ServerDef)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor ServerDef
cluster__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor ServerDef
jobName__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 3, FieldDescriptor ServerDef
taskIndex__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 4, FieldDescriptor ServerDef
defaultSessionConfig__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 5, FieldDescriptor ServerDef
protocol__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 6, FieldDescriptor ServerDef
port__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 7, FieldDescriptor ServerDef
clusterDeviceFilters__field_descriptor)]
  unknownFields :: LensLike' f ServerDef FieldSet
unknownFields
    = (ServerDef -> FieldSet)
-> (ServerDef -> FieldSet -> ServerDef) -> Lens' ServerDef FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        ServerDef -> FieldSet
_ServerDef'_unknownFields
        (\ x__ :: ServerDef
x__ y__ :: FieldSet
y__ -> ServerDef
x__ {_ServerDef'_unknownFields :: FieldSet
_ServerDef'_unknownFields = FieldSet
y__})
  defMessage :: ServerDef
defMessage
    = $WServerDef'_constructor :: Maybe ClusterDef
-> Text
-> Int32
-> Maybe ConfigProto
-> Text
-> Int32
-> Maybe ClusterDeviceFilters
-> FieldSet
-> ServerDef
ServerDef'_constructor
        {_ServerDef'cluster :: Maybe ClusterDef
_ServerDef'cluster = Maybe ClusterDef
forall a. Maybe a
Prelude.Nothing,
         _ServerDef'jobName :: Text
_ServerDef'jobName = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _ServerDef'taskIndex :: Int32
_ServerDef'taskIndex = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _ServerDef'defaultSessionConfig :: Maybe ConfigProto
_ServerDef'defaultSessionConfig = Maybe ConfigProto
forall a. Maybe a
Prelude.Nothing,
         _ServerDef'protocol :: Text
_ServerDef'protocol = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _ServerDef'port :: Int32
_ServerDef'port = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _ServerDef'clusterDeviceFilters :: Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters = Maybe ClusterDeviceFilters
forall a. Maybe a
Prelude.Nothing,
         _ServerDef'_unknownFields :: FieldSet
_ServerDef'_unknownFields = []}
  parseMessage :: Parser ServerDef
parseMessage
    = let
        loop :: ServerDef -> Data.ProtoLens.Encoding.Bytes.Parser ServerDef
        loop :: ServerDef -> Parser ServerDef
loop x :: ServerDef
x
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      ServerDef -> Parser ServerDef
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter ServerDef ServerDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter ServerDef ServerDef FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) ServerDef
x)
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        10
                          -> do ClusterDef
y <- Parser ClusterDef -> String -> Parser ClusterDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser ClusterDef -> Parser ClusterDef
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                             (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len) Parser ClusterDef
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "cluster"
                                ServerDef -> Parser ServerDef
loop (Setter ServerDef ServerDef ClusterDef ClusterDef
-> ClusterDef -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "cluster" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"cluster") ClusterDef
y ServerDef
x)
                        18
                          -> do Text
y <- Parser Text -> String -> Parser Text
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do ByteString
value <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                                       Int -> Parser ByteString
Data.ProtoLens.Encoding.Bytes.getBytes
                                                         (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                           Either String Text -> Parser Text
forall a. Either String a -> Parser a
Data.ProtoLens.Encoding.Bytes.runEither
                                             (case ByteString -> Either UnicodeException Text
Data.Text.Encoding.decodeUtf8' ByteString
value of
                                                (Prelude.Left err :: UnicodeException
err)
                                                  -> String -> Either String Text
forall a b. a -> Either a b
Prelude.Left (UnicodeException -> String
forall a. Show a => a -> String
Prelude.show UnicodeException
err)
                                                (Prelude.Right r :: Text
r) -> Text -> Either String Text
forall a b. b -> Either a b
Prelude.Right Text
r))
                                       "job_name"
                                ServerDef -> Parser ServerDef
loop (Setter ServerDef ServerDef Text Text
-> Text -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "jobName" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"jobName") Text
y ServerDef
x)
                        24
                          -> do Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "task_index"
                                ServerDef -> Parser ServerDef
loop
                                  (Setter ServerDef ServerDef Int32 Int32
-> Int32 -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "taskIndex" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"taskIndex") Int32
y ServerDef
x)
                        34
                          -> do ConfigProto
y <- Parser ConfigProto -> String -> Parser ConfigProto
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser ConfigProto -> Parser ConfigProto
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                             (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len) Parser ConfigProto
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "default_session_config"
                                ServerDef -> Parser ServerDef
loop
                                  (Setter ServerDef ServerDef ConfigProto ConfigProto
-> ConfigProto -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "defaultSessionConfig" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"defaultSessionConfig") ConfigProto
y ServerDef
x)
                        42
                          -> do Text
y <- Parser Text -> String -> Parser Text
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do ByteString
value <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                                       Int -> Parser ByteString
Data.ProtoLens.Encoding.Bytes.getBytes
                                                         (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                           Either String Text -> Parser Text
forall a. Either String a -> Parser a
Data.ProtoLens.Encoding.Bytes.runEither
                                             (case ByteString -> Either UnicodeException Text
Data.Text.Encoding.decodeUtf8' ByteString
value of
                                                (Prelude.Left err :: UnicodeException
err)
                                                  -> String -> Either String Text
forall a b. a -> Either a b
Prelude.Left (UnicodeException -> String
forall a. Show a => a -> String
Prelude.show UnicodeException
err)
                                                (Prelude.Right r :: Text
r) -> Text -> Either String Text
forall a b. b -> Either a b
Prelude.Right Text
r))
                                       "protocol"
                                ServerDef -> Parser ServerDef
loop
                                  (Setter ServerDef ServerDef Text Text
-> Text -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "protocol" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"protocol") Text
y ServerDef
x)
                        48
                          -> do Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "port"
                                ServerDef -> Parser ServerDef
loop (Setter ServerDef ServerDef Int32 Int32
-> Int32 -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "port" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"port") Int32
y ServerDef
x)
                        58
                          -> do ClusterDeviceFilters
y <- Parser ClusterDeviceFilters
-> String -> Parser ClusterDeviceFilters
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser ClusterDeviceFilters -> Parser ClusterDeviceFilters
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                             (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len) Parser ClusterDeviceFilters
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "cluster_device_filters"
                                ServerDef -> Parser ServerDef
loop
                                  (Setter
  ServerDef ServerDef ClusterDeviceFilters ClusterDeviceFilters
-> ClusterDeviceFilters -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "clusterDeviceFilters" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"clusterDeviceFilters") ClusterDeviceFilters
y ServerDef
x)
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                ServerDef -> Parser ServerDef
loop
                                  (Setter ServerDef ServerDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> ServerDef -> ServerDef
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter ServerDef ServerDef FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) ServerDef
x)
      in
        Parser ServerDef -> String -> Parser ServerDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do ServerDef -> Parser ServerDef
loop ServerDef
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "ServerDef"
  buildMessage :: ServerDef -> Builder
buildMessage
    = \ _x :: ServerDef
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             (case
                  FoldLike
  (Maybe ClusterDef)
  ServerDef
  ServerDef
  (Maybe ClusterDef)
  (Maybe ClusterDef)
-> ServerDef -> Maybe ClusterDef
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "maybe'cluster" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'cluster") ServerDef
_x
              of
                Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                (Prelude.Just _v :: ClusterDef
_v)
                  -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                       (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 10)
                       ((ByteString -> Builder)
-> (ClusterDef -> ByteString) -> ClusterDef -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                          (\ bs :: ByteString
bs
                             -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                  (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                     (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                  (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                          ClusterDef -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                          ClusterDef
_v))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (let
                   _v :: Text
_v = FoldLike Text ServerDef ServerDef Text Text -> ServerDef -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "jobName" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"jobName") ServerDef
_x
                 in
                   if Text -> Text -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Text
_v Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                       Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   else
                       Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
                         ((ByteString -> Builder) -> (Text -> ByteString) -> Text -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                            (\ bs :: ByteString
bs
                               -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                       (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                    (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                            Text -> ByteString
Data.Text.Encoding.encodeUtf8
                            Text
_v))
                (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                   (let
                      _v :: Int32
_v = FoldLike Int32 ServerDef ServerDef Int32 Int32
-> ServerDef -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "taskIndex" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"taskIndex") ServerDef
_x
                    in
                      if Int32 -> Int32 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int32
_v Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                          Builder
forall a. Monoid a => a
Data.Monoid.mempty
                      else
                          Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                            (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 24)
                            ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                               Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
_v))
                   (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (case
                           FoldLike
  (Maybe ConfigProto)
  ServerDef
  ServerDef
  (Maybe ConfigProto)
  (Maybe ConfigProto)
-> ServerDef -> Maybe ConfigProto
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                             (forall s a (f :: * -> *).
(HasField s "maybe'defaultSessionConfig" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'defaultSessionConfig") ServerDef
_x
                       of
                         Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                         (Prelude.Just _v :: ConfigProto
_v)
                           -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 34)
                                ((ByteString -> Builder)
-> (ConfigProto -> ByteString) -> ConfigProto -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                   (\ bs :: ByteString
bs
                                      -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                           (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                              (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                           (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                   ConfigProto -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                   ConfigProto
_v))
                      (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (let
                            _v :: Text
_v = FoldLike Text ServerDef ServerDef Text Text -> ServerDef -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "protocol" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"protocol") ServerDef
_x
                          in
                            if Text -> Text -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Text
_v Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                Builder
forall a. Monoid a => a
Data.Monoid.mempty
                            else
                                Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                  (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 42)
                                  ((ByteString -> Builder) -> (Text -> ByteString) -> Text -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                     (\ bs :: ByteString
bs
                                        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                             (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                             (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                     Text -> ByteString
Data.Text.Encoding.encodeUtf8
                                     Text
_v))
                         (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                            (let _v :: Int32
_v = FoldLike Int32 ServerDef ServerDef Int32 Int32
-> ServerDef -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "port" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"port") ServerDef
_x
                             in
                               if Int32 -> Int32 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int32
_v Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                   Builder
forall a. Monoid a => a
Data.Monoid.mempty
                               else
                                   Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                     (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 48)
                                     ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                        Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                        Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                        Int32
_v))
                            (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                               (case
                                    FoldLike
  (Maybe ClusterDeviceFilters)
  ServerDef
  ServerDef
  (Maybe ClusterDeviceFilters)
  (Maybe ClusterDeviceFilters)
-> ServerDef -> Maybe ClusterDeviceFilters
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                      (forall s a (f :: * -> *).
(HasField s "maybe'clusterDeviceFilters" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'clusterDeviceFilters") ServerDef
_x
                                of
                                  Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                  (Prelude.Just _v :: ClusterDeviceFilters
_v)
                                    -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 58)
                                         ((ByteString -> Builder)
-> (ClusterDeviceFilters -> ByteString)
-> ClusterDeviceFilters
-> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                            (\ bs :: ByteString
bs
                                               -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                       (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                          (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                                    (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                            ClusterDeviceFilters -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                            ClusterDeviceFilters
_v))
                               (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                                  (FoldLike FieldSet ServerDef ServerDef FieldSet FieldSet
-> ServerDef -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike FieldSet ServerDef ServerDef FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields ServerDef
_x))))))))
instance Control.DeepSeq.NFData ServerDef where
  rnf :: ServerDef -> ()
rnf
    = \ x__ :: ServerDef
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (ServerDef -> FieldSet
_ServerDef'_unknownFields ServerDef
x__)
             (Maybe ClusterDef -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (ServerDef -> Maybe ClusterDef
_ServerDef'cluster ServerDef
x__)
                (Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (ServerDef -> Text
_ServerDef'jobName ServerDef
x__)
                   (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                      (ServerDef -> Int32
_ServerDef'taskIndex ServerDef
x__)
                      (Maybe ConfigProto -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                         (ServerDef -> Maybe ConfigProto
_ServerDef'defaultSessionConfig ServerDef
x__)
                         (Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                            (ServerDef -> Text
_ServerDef'protocol ServerDef
x__)
                            (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                               (ServerDef -> Int32
_ServerDef'port ServerDef
x__)
                               (Maybe ClusterDeviceFilters -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                  (ServerDef -> Maybe ClusterDeviceFilters
_ServerDef'clusterDeviceFilters ServerDef
x__) ())))))))
packedFileDescriptor :: Data.ByteString.ByteString
packedFileDescriptor :: ByteString
packedFileDescriptor
  = "\n\
    \0tensorflow/core/protobuf/tensorflow_server.proto\DC2\n\
    \tensorflow\SUB&tensorflow/core/protobuf/cluster.proto\SUB%tensorflow/core/protobuf/config.proto\SUB-tensorflow/core/protobuf/device_filters.proto\"\206\STX\n\
    \\tServerDef\DC20\n\
    \\acluster\CAN\SOH \SOH(\v2\SYN.tensorflow.ClusterDefR\acluster\DC2\EM\n\
    \\bjob_name\CAN\STX \SOH(\tR\ajobName\DC2\GS\n\
    \\n\
    \task_index\CAN\ETX \SOH(\ENQR\ttaskIndex\DC2M\n\
    \\SYNdefault_session_config\CAN\EOT \SOH(\v2\ETB.tensorflow.ConfigProtoR\DC4defaultSessionConfig\DC2\SUB\n\
    \\bprotocol\CAN\ENQ \SOH(\tR\bprotocol\DC2\DC2\n\
    \\EOTport\CAN\ACK \SOH(\ENQR\EOTport\DC2V\n\
    \\SYNcluster_device_filters\CAN\a \SOH(\v2 .tensorflow.ClusterDeviceFiltersR\DC4clusterDeviceFiltersBy\n\
    \\SUBorg.tensorflow.distruntimeB\fServerProtosP\SOHZHgithub.com/tensorflow/tensorflow/tensorflow/go/core/core_protos_go_proto\248\SOH\SOHJ\131\DLE\n\
    \\ACK\DC2\EOT\SI\NUL<\SOH\n\
    \\159\ENQ\n\
    \\SOH\f\DC2\ETX\SI\NUL\DC22\148\ENQ Copyright 2016 The TensorFlow Authors. All Rights Reserved.\n\
    \\n\
    \Licensed under the Apache License, Version 2.0 (the \"License\");\n\
    \you may not use this file except in compliance with the License.\n\
    \You may obtain a copy of the License at\n\
    \\n\
    \http://www.apache.org/licenses/LICENSE-2.0\n\
    \\n\
    \Unless required by applicable law or agreed to in writing, software\n\
    \distributed under the License is distributed on an \"AS IS\" BASIS,\n\
    \WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\
    \See the License for the specific language governing permissions and\n\
    \limitations under the License.\n\
    \==============================================================================\n\
    \\b\n\
    \\SOH\STX\DC2\ETX\DC1\NUL\DC3\n\
    \\t\n\
    \\STX\ETX\NUL\DC2\ETX\DC3\NUL0\n\
    \\t\n\
    \\STX\ETX\SOH\DC2\ETX\DC4\NUL/\n\
    \\t\n\
    \\STX\ETX\STX\DC2\ETX\NAK\NUL7\n\
    \\b\n\
    \\SOH\b\DC2\ETX\ETB\NUL\US\n\
    \\t\n\
    \\STX\b\US\DC2\ETX\ETB\NUL\US\n\
    \\b\n\
    \\SOH\b\DC2\ETX\CAN\NUL-\n\
    \\t\n\
    \\STX\b\b\DC2\ETX\CAN\NUL-\n\
    \\b\n\
    \\SOH\b\DC2\ETX\EM\NUL\"\n\
    \\t\n\
    \\STX\b\n\
    \\DC2\ETX\EM\NUL\"\n\
    \\b\n\
    \\SOH\b\DC2\ETX\SUB\NUL3\n\
    \\t\n\
    \\STX\b\SOH\DC2\ETX\SUB\NUL3\n\
    \\b\n\
    \\SOH\b\DC2\ETX\ESC\NUL_\n\
    \\t\n\
    \\STX\b\v\DC2\ETX\ESC\NUL_\n\
    \F\n\
    \\STX\EOT\NUL\DC2\EOT\RS\NUL<\SOH\SUB: Defines the configuration of a single TensorFlow server.\n\
    \\n\
    \\n\
    \\n\
    \\ETX\EOT\NUL\SOH\DC2\ETX\RS\b\DC1\n\
    \<\n\
    \\EOT\EOT\NUL\STX\NUL\DC2\ETX \STX\EM\SUB/ The cluster of which this server is a member.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ACK\DC2\ETX \STX\f\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX \r\DC4\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX \ETB\CAN\n\
    \\172\SOH\n\
    \\EOT\EOT\NUL\STX\SOH\DC2\ETX&\STX\SYN\SUB\158\SOH The name of the job of which this server is a member.\n\
    \\n\
    \ NOTE(mrry): The `cluster` field must contain a `JobDef` with a `name` field\n\
    \ that matches this name.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX&\STX\b\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX&\t\DC1\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX&\DC4\NAK\n\
    \\184\SOH\n\
    \\EOT\EOT\NUL\STX\STX\DC2\ETX,\STX\ETB\SUB\170\SOH The task index of this server in its job.\n\
    \\n\
    \ NOTE: The `cluster` field must contain a `JobDef` with a matching `name`\n\
    \ and a mapping in its `tasks` field for this index.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\ETX,\STX\a\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\SOH\DC2\ETX,\b\DC2\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\ETX\DC2\ETX,\NAK\SYN\n\
    \N\n\
    \\EOT\EOT\NUL\STX\ETX\DC2\ETX/\STX)\SUBA The default configuration for sessions that run on this server.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\ACK\DC2\ETX/\STX\r\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\SOH\DC2\ETX/\SO$\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\ETX\DC2\ETX/'(\n\
    \i\n\
    \\EOT\EOT\NUL\STX\EOT\DC2\ETX4\STX\SYN\SUB\\ The protocol to be used by this server.\n\
    \\n\
    \ Acceptable values include: \"grpc\", \"grpc+verbs\".\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\EOT\ENQ\DC2\ETX4\STX\b\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\EOT\SOH\DC2\ETX4\t\DC1\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\EOT\ETX\DC2\ETX4\DC4\NAK\n\
    \X\n\
    \\EOT\EOT\NUL\STX\ENQ\DC2\ETX7\STX\DC1\SUBK The server port. If not set, then we identify the port from the job_name.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ENQ\ENQ\DC2\ETX7\STX\a\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ENQ\SOH\DC2\ETX7\b\f\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ENQ\ETX\DC2\ETX7\SI\DLE\n\
    \\139\SOH\n\
    \\EOT\EOT\NUL\STX\ACK\DC2\ETX;\STX2\SUB~ Device filters for remote tasks in the cluster.\n\
    \ NOTE: This is an experimental feature and only effective in TensorFlow 2.x.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ACK\ACK\DC2\ETX;\STX\SYN\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ACK\SOH\DC2\ETX;\ETB-\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ACK\ETX\DC2\ETX;01b\ACKproto3"