Package org.bitcoinj.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.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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionrequired bytes ip_address = 1;
required uint32 port = 2;
required uint64 services = 3;
com.google.protobuf.ByteString
required bytes ip_address = 1;
int
getPort()
required uint32 port = 2;
long
required uint64 services = 3;
boolean
required bytes ip_address = 1;
boolean
hasPort()
required uint32 port = 2;
boolean
required uint64 services = 3;
setIpAddress
(com.google.protobuf.ByteString value) required bytes ip_address = 1;
setPort
(int value) required uint32 port = 2;
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
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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
required bytes ip_address = 1;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
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
required uint32 port = 2;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
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
required uint64 services = 3;
- Parameters:
value
- The services to set.- Returns:
- This builder for chaining.
-
clearServices
required uint64 services = 3;
- Returns:
- This builder for chaining.
-