GRPCModel

public protocol GRPCModel

GRPCModel is a protocol that is implemented by models in the existing code to declare them ad gRPC messages.

It provides NO conformance to the SwiftProtobuf.Message protocol which is used to encode and decode protocol buffer messages. This functionality is realitzed by provided by the GRPCMessageprotocol. This protocol requires the models to contain an empty initializer to make code generated mappings between GRPCModel and GRPCMessage instances easier.

  • Initializes a GRPCModel without any parameter. The implementations of this initializer should provide an initialization with default values.

    Declaration

    Swift

    init()