jina.proto.serializer module

class jina.proto.serializer.RequestProto[source]

Bases: object

This class is a drop-in replacement for gRPC default serializer.

It replace default serializer to make sure we always work with Request

static SerializeToString(x)[source]

# noqa: DAR101 # noqa: DAR102 # noqa: DAR201

static FromString(x)[source]

# noqa: DAR101 # noqa: DAR102 # noqa: DAR201

class jina.proto.serializer.MessageProto[source]

Bases: object

This class is a drop-in replacement for gRPC default serializer. It replace default serializer to make sure we always work with Message

static SerializeToString(x)[source]

# noqa: DAR101 # noqa: DAR102 # noqa: DAR201

static FromString(x)[source]

# noqa: DAR101 # noqa: DAR102 # noqa: DAR201