Class Implicits


  • public class Implicits
    extends java.lang.Object
    Type mappers for implicit conversions of data types that are not directly supported by Protobuf.
    • Constructor Summary

      Constructors 
      Constructor Description
      Implicits()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static scalapb.TypeMapper<com.google.protobuf.ByteString,​scala.collection.Seq<java.lang.Object>> bytesMapper()
      Implicit conversion of Seq[Byte](supported by csw) to ByteString(supported by Protobuf)
      static scalapb.TypeMapper<java.lang.String,​scala.collection.Seq<java.lang.Object>> charsMapper()
      Implicit conversion of Seq[Char](supported by csw) to String(supported by Protobuf)
      static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​java.time.Instant> instantMapper()
      Implicit conversion of Instant(provided by Java and supported by csw) to Timestamp(supported by Protobuf)
      static scalapb.TypeMapper<java.lang.Object,​java.lang.Object> shortMapper()
      Implicit conversion of Short(supported by csw) to Int(Protobuf doesn't support Short, hence promoted to Int)
      static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​TAITime> taiMapper()  
      static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​UTCTime> utcMapper()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Implicits

        public Implicits()
    • Method Detail

      • instantMapper

        public static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​java.time.Instant> instantMapper()
        Implicit conversion of Instant(provided by Java and supported by csw) to Timestamp(supported by Protobuf)
        Returns:
        (undocumented)
      • utcMapper

        public static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​UTCTime> utcMapper()
      • taiMapper

        public static scalapb.TypeMapper<com.google.protobuf.timestamp.Timestamp,​TAITime> taiMapper()
      • bytesMapper

        public static scalapb.TypeMapper<com.google.protobuf.ByteString,​scala.collection.Seq<java.lang.Object>> bytesMapper()
        Implicit conversion of Seq[Byte](supported by csw) to ByteString(supported by Protobuf)
        Returns:
        (undocumented)
      • charsMapper

        public static scalapb.TypeMapper<java.lang.String,​scala.collection.Seq<java.lang.Object>> charsMapper()
        Implicit conversion of Seq[Char](supported by csw) to String(supported by Protobuf)
        Returns:
        (undocumented)
      • shortMapper

        public static scalapb.TypeMapper<java.lang.Object,​java.lang.Object> shortMapper()
        Implicit conversion of Short(supported by csw) to Int(Protobuf doesn't support Short, hence promoted to Int)
        Returns:
        (undocumented)