Package org.bitcoin.crawler
Class PeerSeedProtos.PeerSeeds.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder>
org.bitcoin.crawler.PeerSeedProtos.PeerSeeds.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
,PeerSeedProtos.PeerSeedsOrBuilder
- Enclosing class:
- PeerSeedProtos.PeerSeeds
public static final class PeerSeedProtos.PeerSeeds.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<PeerSeedProtos.PeerSeeds,PeerSeedProtos.PeerSeeds.Builder>
implements PeerSeedProtos.PeerSeedsOrBuilder
Protobuf type
org.bitcoin.crawler.PeerSeeds
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance, isBuilt
-
Method Summary
Modifier and TypeMethodDescriptionaddAllSeed
(Iterable<? extends PeerSeedProtos.PeerSeedData> values) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
addSeed
(int index, PeerSeedProtos.PeerSeedData value) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
addSeed
(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
addSeed
(PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
clearNet()
required string net = 3;
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
seconds since UNIX epochgetNet()
required string net = 3;
com.google.protobuf.ByteString
required string net = 3;
getSeed
(int index) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
int
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
long
seconds since UNIX epochboolean
hasNet()
required string net = 3;
boolean
seconds since UNIX epochremoveSeed
(int index) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
required string net = 3;
setNetBytes
(com.google.protobuf.ByteString value) required string net = 3;
setSeed
(int index, PeerSeedProtos.PeerSeedData value) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
setSeed
(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
setTimestamp
(long value) seconds since UNIX epochMethods 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
-
getSeedList
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
- Specified by:
getSeedList
in interfacePeerSeedProtos.PeerSeedsOrBuilder
-
getSeedCount
public int getSeedCount()repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
- Specified by:
getSeedCount
in interfacePeerSeedProtos.PeerSeedsOrBuilder
-
getSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
- Specified by:
getSeed
in interfacePeerSeedProtos.PeerSeedsOrBuilder
-
setSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
setSeed
public PeerSeedProtos.PeerSeeds.Builder setSeed(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addSeed
public PeerSeedProtos.PeerSeeds.Builder addSeed(PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addSeed
public PeerSeedProtos.PeerSeeds.Builder addSeed(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addAllSeed
public PeerSeedProtos.PeerSeeds.Builder addAllSeed(Iterable<? extends PeerSeedProtos.PeerSeedData> values) repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
clearSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
removeSeed
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
hasTimestamp
public boolean hasTimestamp()seconds since UNIX epoch
required uint64 timestamp = 2;
- Specified by:
hasTimestamp
in interfacePeerSeedProtos.PeerSeedsOrBuilder
- Returns:
- Whether the timestamp field is set.
-
getTimestamp
public long getTimestamp()seconds since UNIX epoch
required uint64 timestamp = 2;
- Specified by:
getTimestamp
in interfacePeerSeedProtos.PeerSeedsOrBuilder
- Returns:
- The timestamp.
-
setTimestamp
seconds since UNIX epoch
required uint64 timestamp = 2;
- Parameters:
value
- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
seconds since UNIX epoch
required uint64 timestamp = 2;
- Returns:
- This builder for chaining.
-
hasNet
public boolean hasNet()required string net = 3;
- Specified by:
hasNet
in interfacePeerSeedProtos.PeerSeedsOrBuilder
- Returns:
- Whether the net field is set.
-
getNet
required string net = 3;
- Specified by:
getNet
in interfacePeerSeedProtos.PeerSeedsOrBuilder
- Returns:
- The net.
-
getNetBytes
public com.google.protobuf.ByteString getNetBytes()required string net = 3;
- Specified by:
getNetBytes
in interfacePeerSeedProtos.PeerSeedsOrBuilder
- Returns:
- The bytes for net.
-
setNet
required string net = 3;
- Parameters:
value
- The net to set.- Returns:
- This builder for chaining.
-
clearNet
required string net = 3;
- Returns:
- This builder for chaining.
-
setNetBytes
required string net = 3;
- Parameters:
value
- The bytes for net to set.- Returns:
- This builder for chaining.
-