Class Endpoint.Builder

java.lang.Object
com.squareup.wire.Message.Builder<Endpoint,​Endpoint.Builder>
zipkin2.proto3.Endpoint.Builder
Enclosing class:
Endpoint

public static final class Endpoint.Builder
extends com.squareup.wire.Message.Builder<Endpoint,​Endpoint.Builder>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    okio.ByteString ipv4  
    okio.ByteString ipv6  
    Integer port  
    String service_name  
  • Constructor Summary

    Constructors 
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    Endpoint build()  
    Endpoint.Builder ipv4​(okio.ByteString ipv4)
    4 byte representation of the primary IPv4 address associated with this connection.
    Endpoint.Builder ipv6​(okio.ByteString ipv6)
    16 byte representation of the primary IPv6 address associated with this connection.
    Endpoint.Builder port​(Integer port)
    Depending on context, this could be a listen port or the client-side of a socket.
    Endpoint.Builder service_name​(String service_name)
    Lower-case label of this node in the service graph, such as "favstar".

    Methods inherited from class com.squareup.wire.Message.Builder

    addUnknownField, addUnknownFields, buildUnknownFields, clearUnknownFields, getUnknownFieldsBuffer$wire_runtime, getUnknownFieldsByteString$wire_runtime, getUnknownFieldsWriter$wire_runtime, setUnknownFieldsBuffer$wire_runtime, setUnknownFieldsByteString$wire_runtime, setUnknownFieldsWriter$wire_runtime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • service_name

      public Endpoint.Builder service_name​(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 Endpoint.Builder ipv4​(okio.ByteString ipv4)
      4 byte representation of the primary IPv4 address associated with this connection. Absent if unknown.
    • ipv6

      public Endpoint.Builder ipv6​(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 Endpoint.Builder port​(Integer port)
      Depending on context, this could be a listen port or the client-side of a socket. Absent if unknown.
    • build

      public Endpoint build()
      Specified by:
      build in class com.squareup.wire.Message.Builder<Endpoint,​Endpoint.Builder>