Package org.bitcoinj.protobuf.wallet
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.protobuf.wallet.Protos.PeerAddress.Builder
-
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,java.lang.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 typewallet.PeerAddress
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Protos.PeerAddress.Builder
clearIpAddress()
required bytes ip_address = 1;
Protos.PeerAddress.Builder
clearPort()
required uint32 port = 2;
Protos.PeerAddress.Builder
clearServices()
required uint64 services = 3;
com.google.protobuf.ByteString
getIpAddress()
required bytes ip_address = 1;
int
getPort()
required uint32 port = 2;
long
getServices()
required uint64 services = 3;
boolean
hasIpAddress()
required bytes ip_address = 1;
boolean
hasPort()
required uint32 port = 2;
boolean
hasServices()
required uint64 services = 3;
Protos.PeerAddress.Builder
setIpAddress(com.google.protobuf.ByteString value)
required bytes ip_address = 1;
Protos.PeerAddress.Builder
setPort(int value)
required uint32 port = 2;
Protos.PeerAddress.Builder
setServices(long value)
required uint64 services = 3;
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
hasIpAddress
public boolean hasIpAddress()
required bytes ip_address = 1;
- Specified by:
hasIpAddress
in interfaceProtos.PeerAddressOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
public com.google.protobuf.ByteString getIpAddress()
required bytes ip_address = 1;
- Specified by:
getIpAddress
in interfaceProtos.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 interfaceProtos.PeerAddressOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public int getPort()
required uint32 port = 2;
- Specified by:
getPort
in interfaceProtos.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 interfaceProtos.PeerAddressOrBuilder
- Returns:
- Whether the services field is set.
-
getServices
public long getServices()
required uint64 services = 3;
- Specified by:
getServices
in interfaceProtos.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.
-
-