Package org.bitcoin.crawler
Class PeerSeedProtos.PeerSeedData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder>
org.bitcoin.crawler.PeerSeedProtos.PeerSeedData.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,PeerSeedProtos.PeerSeedDataOrBuilder
- Enclosing class:
- PeerSeedProtos.PeerSeedData
public static final class PeerSeedProtos.PeerSeedData.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeedData,PeerSeedProtos.PeerSeedData.Builder>
implements PeerSeedProtos.PeerSeedDataOrBuilder
Protobuf type
org.bitcoin.crawler.PeerSeedData
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionrequired string ip_address = 1;
required uint32 port = 2;
required uint32 services = 3;
required string ip_address = 1;
com.google.protobuf.ByteString
required string ip_address = 1;
int
getPort()
required uint32 port = 2;
int
required uint32 services = 3;
boolean
required string ip_address = 1;
boolean
hasPort()
required uint32 port = 2;
boolean
required uint32 services = 3;
setIpAddress
(String value) required string ip_address = 1;
setIpAddressBytes
(com.google.protobuf.ByteString value) required string ip_address = 1;
setPort
(int value) required uint32 port = 2;
setServices
(int value) required uint32 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 string ip_address = 1;
- Specified by:
hasIpAddress
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
required string ip_address = 1;
- Specified by:
getIpAddress
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- The ipAddress.
-
getIpAddressBytes
public com.google.protobuf.ByteString getIpAddressBytes()required string ip_address = 1;
- Specified by:
getIpAddressBytes
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- The bytes for ipAddress.
-
setIpAddress
required string ip_address = 1;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
required string ip_address = 1;
- Returns:
- This builder for chaining.
-
setIpAddressBytes
required string ip_address = 1;
- Parameters:
value
- The bytes for ipAddress to set.- Returns:
- This builder for chaining.
-
hasPort
public boolean hasPort()required uint32 port = 2;
- Specified by:
hasPort
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- Whether the port field is set.
-
getPort
public int getPort()required uint32 port = 2;
- Specified by:
getPort
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- 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 uint32 services = 3;
- Specified by:
hasServices
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- Whether the services field is set.
-
getServices
public int getServices()required uint32 services = 3;
- Specified by:
getServices
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- The services.
-
setServices
required uint32 services = 3;
- Parameters:
value
- The services to set.- Returns:
- This builder for chaining.
-
clearServices
required uint32 services = 3;
- Returns:
- This builder for chaining.
-