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
,java.lang.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 typeorg.bitcoin.crawler.PeerSeedData
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PeerSeedProtos.PeerSeedData.Builder
clearIpAddress()
required string ip_address = 1;
PeerSeedProtos.PeerSeedData.Builder
clearPort()
required uint32 port = 2;
PeerSeedProtos.PeerSeedData.Builder
clearServices()
required uint32 services = 3;
java.lang.String
getIpAddress()
required string ip_address = 1;
com.google.protobuf.ByteString
getIpAddressBytes()
required string ip_address = 1;
int
getPort()
required uint32 port = 2;
int
getServices()
required uint32 services = 3;
boolean
hasIpAddress()
required string ip_address = 1;
boolean
hasPort()
required uint32 port = 2;
boolean
hasServices()
required uint32 services = 3;
PeerSeedProtos.PeerSeedData.Builder
setIpAddress(java.lang.String value)
required string ip_address = 1;
PeerSeedProtos.PeerSeedData.Builder
setIpAddressBytes(com.google.protobuf.ByteString value)
required string ip_address = 1;
PeerSeedProtos.PeerSeedData.Builder
setPort(int value)
required uint32 port = 2;
PeerSeedProtos.PeerSeedData.Builder
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
-
-
-
-
Method Detail
-
hasIpAddress
public boolean hasIpAddress()
required string ip_address = 1;
- Specified by:
hasIpAddress
in interfacePeerSeedProtos.PeerSeedDataOrBuilder
- Returns:
- Whether the ipAddress field is set.
-
getIpAddress
public java.lang.String 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
public PeerSeedProtos.PeerSeedData.Builder setIpAddress(java.lang.String value)
required string ip_address = 1;
- Parameters:
value
- The ipAddress to set.- Returns:
- This builder for chaining.
-
clearIpAddress
public PeerSeedProtos.PeerSeedData.Builder clearIpAddress()
required string ip_address = 1;
- Returns:
- This builder for chaining.
-
setIpAddressBytes
public PeerSeedProtos.PeerSeedData.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
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
public PeerSeedProtos.PeerSeedData.Builder setPort(int value)
required uint32 port = 2;
- Parameters:
value
- The port to set.- Returns:
- This builder for chaining.
-
clearPort
public PeerSeedProtos.PeerSeedData.Builder 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
public PeerSeedProtos.PeerSeedData.Builder setServices(int value)
required uint32 services = 3;
- Parameters:
value
- The services to set.- Returns:
- This builder for chaining.
-
clearServices
public PeerSeedProtos.PeerSeedData.Builder clearServices()
required uint32 services = 3;
- Returns:
- This builder for chaining.
-
-