public static final class Neutrino.StatusResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder> implements Neutrino.StatusResponseOrBuilder
neutrinorpc.StatusResponse
Modifier and Type | Method and Description |
---|---|
Neutrino.StatusResponse.Builder |
addAllPeers(java.lang.Iterable<java.lang.String> values)
Connected peers.
|
Neutrino.StatusResponse.Builder |
addPeers(java.lang.String value)
Connected peers.
|
Neutrino.StatusResponse.Builder |
addPeersBytes(com.google.protobuf.ByteString value)
Connected peers.
|
Neutrino.StatusResponse |
build() |
Neutrino.StatusResponse |
buildPartial() |
Neutrino.StatusResponse.Builder |
clear() |
Neutrino.StatusResponse.Builder |
clearActive()
Indicates whether the neutrino backend is active or not.
|
Neutrino.StatusResponse.Builder |
clearBlockHash()
Best block hash.
|
Neutrino.StatusResponse.Builder |
clearBlockHeight()
Best block height.
|
Neutrino.StatusResponse.Builder |
clearPeers()
Connected peers.
|
Neutrino.StatusResponse.Builder |
clearSynced()
Is fully synced.
|
boolean |
getActive()
Indicates whether the neutrino backend is active or not.
|
java.lang.String |
getBlockHash()
Best block hash.
|
com.google.protobuf.ByteString |
getBlockHashBytes()
Best block hash.
|
int |
getBlockHeight()
Best block height.
|
Neutrino.StatusResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getPeers(int index)
Connected peers.
|
com.google.protobuf.ByteString |
getPeersBytes(int index)
Connected peers.
|
int |
getPeersCount()
Connected peers.
|
com.google.protobuf.ProtocolStringList |
getPeersList()
Connected peers.
|
boolean |
getSynced()
Is fully synced.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Neutrino.StatusResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Neutrino.StatusResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
Neutrino.StatusResponse.Builder |
mergeFrom(Neutrino.StatusResponse other) |
Neutrino.StatusResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Neutrino.StatusResponse.Builder |
setActive(boolean value)
Indicates whether the neutrino backend is active or not.
|
Neutrino.StatusResponse.Builder |
setBlockHash(java.lang.String value)
Best block hash.
|
Neutrino.StatusResponse.Builder |
setBlockHashBytes(com.google.protobuf.ByteString value)
Best block hash.
|
Neutrino.StatusResponse.Builder |
setBlockHeight(int value)
Best block height.
|
Neutrino.StatusResponse.Builder |
setPeers(int index,
java.lang.String value)
Connected peers.
|
Neutrino.StatusResponse.Builder |
setSynced(boolean value)
Is fully synced.
|
Neutrino.StatusResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>
public Neutrino.StatusResponse.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>
public Neutrino.StatusResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Neutrino.StatusResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Neutrino.StatusResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Neutrino.StatusResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Neutrino.StatusResponse.Builder>
public Neutrino.StatusResponse.Builder mergeFrom(Neutrino.StatusResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>
public Neutrino.StatusResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Neutrino.StatusResponse.Builder>
java.io.IOException
public boolean getActive()
Indicates whether the neutrino backend is active or not.
bool active = 1;
getActive
in interface Neutrino.StatusResponseOrBuilder
public Neutrino.StatusResponse.Builder setActive(boolean value)
Indicates whether the neutrino backend is active or not.
bool active = 1;
value
- The active to set.public Neutrino.StatusResponse.Builder clearActive()
Indicates whether the neutrino backend is active or not.
bool active = 1;
public boolean getSynced()
Is fully synced.
bool synced = 2;
getSynced
in interface Neutrino.StatusResponseOrBuilder
public Neutrino.StatusResponse.Builder setSynced(boolean value)
Is fully synced.
bool synced = 2;
value
- The synced to set.public Neutrino.StatusResponse.Builder clearSynced()
Is fully synced.
bool synced = 2;
public int getBlockHeight()
Best block height.
int32 block_height = 3;
getBlockHeight
in interface Neutrino.StatusResponseOrBuilder
public Neutrino.StatusResponse.Builder setBlockHeight(int value)
Best block height.
int32 block_height = 3;
value
- The blockHeight to set.public Neutrino.StatusResponse.Builder clearBlockHeight()
Best block height.
int32 block_height = 3;
public java.lang.String getBlockHash()
Best block hash.
string block_hash = 4;
getBlockHash
in interface Neutrino.StatusResponseOrBuilder
public com.google.protobuf.ByteString getBlockHashBytes()
Best block hash.
string block_hash = 4;
getBlockHashBytes
in interface Neutrino.StatusResponseOrBuilder
public Neutrino.StatusResponse.Builder setBlockHash(java.lang.String value)
Best block hash.
string block_hash = 4;
value
- The blockHash to set.public Neutrino.StatusResponse.Builder clearBlockHash()
Best block hash.
string block_hash = 4;
public Neutrino.StatusResponse.Builder setBlockHashBytes(com.google.protobuf.ByteString value)
Best block hash.
string block_hash = 4;
value
- The bytes for blockHash to set.public com.google.protobuf.ProtocolStringList getPeersList()
Connected peers.
repeated string peers = 5;
getPeersList
in interface Neutrino.StatusResponseOrBuilder
public int getPeersCount()
Connected peers.
repeated string peers = 5;
getPeersCount
in interface Neutrino.StatusResponseOrBuilder
public java.lang.String getPeers(int index)
Connected peers.
repeated string peers = 5;
getPeers
in interface Neutrino.StatusResponseOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getPeersBytes(int index)
Connected peers.
repeated string peers = 5;
getPeersBytes
in interface Neutrino.StatusResponseOrBuilder
index
- The index of the value to return.public Neutrino.StatusResponse.Builder setPeers(int index, java.lang.String value)
Connected peers.
repeated string peers = 5;
index
- The index to set the value at.value
- The peers to set.public Neutrino.StatusResponse.Builder addPeers(java.lang.String value)
Connected peers.
repeated string peers = 5;
value
- The peers to add.public Neutrino.StatusResponse.Builder addAllPeers(java.lang.Iterable<java.lang.String> values)
Connected peers.
repeated string peers = 5;
values
- The peers to add.public Neutrino.StatusResponse.Builder clearPeers()
Connected peers.
repeated string peers = 5;
public Neutrino.StatusResponse.Builder addPeersBytes(com.google.protobuf.ByteString value)
Connected peers.
repeated string peers = 5;
value
- The bytes of the peers to add.public final Neutrino.StatusResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>
public final Neutrino.StatusResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Neutrino.StatusResponse.Builder>