Class Protos.PeerAddress.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Protos.PeerAddress,Protos.PeerAddress.Builder>
org.bitcoinj.wallet.Protos.PeerAddress.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Cloneable, Protos.PeerAddressOrBuilder
Enclosing class:
Protos.PeerAddress

public static final class Protos.PeerAddress.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Protos.PeerAddress,Protos.PeerAddress.Builder> implements Protos.PeerAddressOrBuilder
Protobuf type wallet.PeerAddress
  • Method Details

    • hasIpAddress

      public boolean hasIpAddress()
      required bytes ip_address = 1;
      Specified by:
      hasIpAddress in interface Protos.PeerAddressOrBuilder
      Returns:
      Whether the ipAddress field is set.
    • getIpAddress

      public com.google.protobuf.ByteString getIpAddress()
      required bytes ip_address = 1;
      Specified by:
      getIpAddress in interface Protos.PeerAddressOrBuilder
      Returns:
      The ipAddress.
    • setIpAddress

      public Protos.PeerAddress.Builder setIpAddress(com.google.protobuf.ByteString value)
      required bytes ip_address = 1;
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public Protos.PeerAddress.Builder clearIpAddress()
      required bytes ip_address = 1;
      Returns:
      This builder for chaining.
    • hasPort

      public boolean hasPort()
      required uint32 port = 2;
      Specified by:
      hasPort in interface Protos.PeerAddressOrBuilder
      Returns:
      Whether the port field is set.
    • getPort

      public int getPort()
      required uint32 port = 2;
      Specified by:
      getPort in interface Protos.PeerAddressOrBuilder
      Returns:
      The port.
    • setPort

      public Protos.PeerAddress.Builder setPort(int value)
      required uint32 port = 2;
      Parameters:
      value - The port to set.
      Returns:
      This builder for chaining.
    • clearPort

      public Protos.PeerAddress.Builder clearPort()
      required uint32 port = 2;
      Returns:
      This builder for chaining.
    • hasServices

      public boolean hasServices()
      required uint64 services = 3;
      Specified by:
      hasServices in interface Protos.PeerAddressOrBuilder
      Returns:
      Whether the services field is set.
    • getServices

      public long getServices()
      required uint64 services = 3;
      Specified by:
      getServices in interface Protos.PeerAddressOrBuilder
      Returns:
      The services.
    • setServices

      public Protos.PeerAddress.Builder setServices(long value)
      required uint64 services = 3;
      Parameters:
      value - The services to set.
      Returns:
      This builder for chaining.
    • clearServices

      public Protos.PeerAddress.Builder clearServices()
      required uint64 services = 3;
      Returns:
      This builder for chaining.