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
,java.lang.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 typeorg.bitcoin.crawler.PeerSeeds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PeerSeedProtos.PeerSeeds.Builder
addAllSeed(java.lang.Iterable<? extends PeerSeedProtos.PeerSeedData> values)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
addSeed(int index, PeerSeedProtos.PeerSeedData value)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
addSeed(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
addSeed(PeerSeedProtos.PeerSeedData value)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
addSeed(PeerSeedProtos.PeerSeedData.Builder builderForValue)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
clearNet()
required string net = 3;
PeerSeedProtos.PeerSeeds.Builder
clearSeed()
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
clearTimestamp()
seconds since UNIX epochjava.lang.String
getNet()
required string net = 3;
com.google.protobuf.ByteString
getNetBytes()
required string net = 3;
PeerSeedProtos.PeerSeedData
getSeed(int index)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
int
getSeedCount()
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
java.util.List<PeerSeedProtos.PeerSeedData>
getSeedList()
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
long
getTimestamp()
seconds since UNIX epochboolean
hasNet()
required string net = 3;
boolean
hasTimestamp()
seconds since UNIX epochPeerSeedProtos.PeerSeeds.Builder
removeSeed(int index)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
setNet(java.lang.String value)
required string net = 3;
PeerSeedProtos.PeerSeeds.Builder
setNetBytes(com.google.protobuf.ByteString value)
required string net = 3;
PeerSeedProtos.PeerSeeds.Builder
setSeed(int index, PeerSeedProtos.PeerSeedData value)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
setSeed(int index, PeerSeedProtos.PeerSeedData.Builder builderForValue)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
PeerSeedProtos.PeerSeeds.Builder
setTimestamp(long value)
seconds since UNIX epoch-
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
-
getSeedList
public java.util.List<PeerSeedProtos.PeerSeedData> 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
public PeerSeedProtos.PeerSeedData getSeed(int index)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
- Specified by:
getSeed
in interfacePeerSeedProtos.PeerSeedsOrBuilder
-
setSeed
public PeerSeedProtos.PeerSeeds.Builder setSeed(int index, PeerSeedProtos.PeerSeedData value)
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
public PeerSeedProtos.PeerSeeds.Builder addSeed(PeerSeedProtos.PeerSeedData value)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
addSeed
public PeerSeedProtos.PeerSeeds.Builder addSeed(int index, PeerSeedProtos.PeerSeedData value)
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(java.lang.Iterable<? extends PeerSeedProtos.PeerSeedData> values)
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
clearSeed
public PeerSeedProtos.PeerSeeds.Builder clearSeed()
repeated .org.bitcoin.crawler.PeerSeedData seed = 1;
-
removeSeed
public PeerSeedProtos.PeerSeeds.Builder removeSeed(int index)
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
public PeerSeedProtos.PeerSeeds.Builder setTimestamp(long value)
seconds since UNIX epoch
required uint64 timestamp = 2;
- Parameters:
value
- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
public PeerSeedProtos.PeerSeeds.Builder 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
public java.lang.String 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
public PeerSeedProtos.PeerSeeds.Builder setNet(java.lang.String value)
required string net = 3;
- Parameters:
value
- The net to set.- Returns:
- This builder for chaining.
-
clearNet
public PeerSeedProtos.PeerSeeds.Builder clearNet()
required string net = 3;
- Returns:
- This builder for chaining.
-
setNetBytes
public PeerSeedProtos.PeerSeeds.Builder setNetBytes(com.google.protobuf.ByteString value)
required string net = 3;
- Parameters:
value
- The bytes for net to set.- Returns:
- This builder for chaining.
-
-