Class Endpoint

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Endpoint.Builder  
      • Nested classes/interfaces inherited from class com.squareup.wire.Message

        com.squareup.wire.Message.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.squareup.wire.ProtoAdapter<Endpoint> ADAPTER  
      static okio.ByteString DEFAULT_IPV4  
      static okio.ByteString DEFAULT_IPV6  
      static Integer DEFAULT_PORT  
      static String DEFAULT_SERVICE_NAME  
      okio.ByteString ipv4
      4 byte representation of the primary IPv4 address associated with this connection.
      okio.ByteString ipv6
      16 byte representation of the primary IPv6 address associated with this connection.
      Integer port
      Depending on context, this could be a listen port or the client-side of a socket.
      String service_name
      Lower-case label of this node in the service graph, such as "favstar".
      • Fields inherited from class com.squareup.wire.Message

        Companion, hashCode
    • Constructor Summary

      Constructors 
      Constructor Description
      Endpoint​(String service_name, okio.ByteString ipv4, okio.ByteString ipv6, Integer port)  
      Endpoint​(String service_name, okio.ByteString ipv4, okio.ByteString ipv6, Integer port, okio.ByteString unknownFields)  
    • Field Detail

      • ADAPTER

        public static final com.squareup.wire.ProtoAdapter<Endpoint> ADAPTER
      • DEFAULT_IPV4

        public static final okio.ByteString DEFAULT_IPV4
      • DEFAULT_IPV6

        public static final okio.ByteString DEFAULT_IPV6
      • DEFAULT_PORT

        public static final Integer DEFAULT_PORT
      • service_name

        public final String service_name
        Lower-case label of this node in the service graph, such as "favstar". Leave absent if unknown. This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
      • ipv4

        public final okio.ByteString ipv4
        4 byte representation of the primary IPv4 address associated with this connection. Absent if unknown.
      • ipv6

        public final okio.ByteString ipv6
        16 byte representation of the primary IPv6 address associated with this connection. Absent if unknown. Prefer using the ipv4 field for mapped addresses.
      • port

        public final Integer port
        Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.
    • Constructor Detail

      • Endpoint

        public Endpoint​(String service_name,
                        okio.ByteString ipv4,
                        okio.ByteString ipv6,
                        Integer port)
      • Endpoint

        public Endpoint​(String service_name,
                        okio.ByteString ipv4,
                        okio.ByteString ipv6,
                        Integer port,
                        okio.ByteString unknownFields)