public static final class Response.NodeInfo.PeerInfo extends com.google.protobuf.GeneratedMessageV3 implements Response.NodeInfo.PeerInfoOrBuilder
protocol.NodeInfo.PeerInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Response.NodeInfo.PeerInfo.Builder
Protobuf type
protocol.NodeInfo.PeerInfo |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
double |
getAvgLatency()
double avgLatency = 12; |
int |
getBlockInPorcSize()
int32 blockInPorcSize = 17; |
long |
getConnectTime()
int64 connectTime = 11; |
static Response.NodeInfo.PeerInfo |
getDefaultInstance() |
Response.NodeInfo.PeerInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDisconnectTimes()
int32 disconnectTimes = 23; |
long |
getHeadBlockTimeWeBothHave()
int64 headBlockTimeWeBothHave = 5; |
java.lang.String |
getHeadBlockWeBothHave()
string headBlockWeBothHave = 18; |
com.google.protobuf.ByteString |
getHeadBlockWeBothHaveBytes()
string headBlockWeBothHave = 18; |
java.lang.String |
getHost()
string host = 8; |
com.google.protobuf.ByteString |
getHostBytes()
string host = 8; |
long |
getInFlow()
int64 inFlow = 22; |
boolean |
getIsActive()
bool isActive = 19; |
long |
getLastBlockUpdateTime()
int64 lastBlockUpdateTime = 3; |
java.lang.String |
getLastSyncBlock()
string lastSyncBlock = 1; |
com.google.protobuf.ByteString |
getLastSyncBlockBytes()
string lastSyncBlock = 1; |
java.lang.String |
getLocalDisconnectReason()
string localDisconnectReason = 24; |
com.google.protobuf.ByteString |
getLocalDisconnectReasonBytes()
string localDisconnectReason = 24; |
boolean |
getNeedSyncFromPeer()
bool needSyncFromPeer = 6; |
boolean |
getNeedSyncFromUs()
bool needSyncFromUs = 7; |
int |
getNodeCount()
int32 nodeCount = 21; |
java.lang.String |
getNodeId()
string nodeId = 10; |
com.google.protobuf.ByteString |
getNodeIdBytes()
string nodeId = 10; |
com.google.protobuf.Parser<Response.NodeInfo.PeerInfo> |
getParserForType() |
int |
getPort()
int32 port = 9; |
long |
getRemainNum()
int64 remainNum = 2; |
java.lang.String |
getRemoteDisconnectReason()
string remoteDisconnectReason = 25; |
com.google.protobuf.ByteString |
getRemoteDisconnectReasonBytes()
string remoteDisconnectReason = 25; |
int |
getScore()
int32 score = 20; |
int |
getSerializedSize() |
int |
getSyncBlockRequestedSize()
int32 syncBlockRequestedSize = 15; |
boolean |
getSyncFlag()
bool syncFlag = 4; |
int |
getSyncToFetchSize()
int32 syncToFetchSize = 13; |
long |
getSyncToFetchSizePeekNum()
int64 syncToFetchSizePeekNum = 14; |
long |
getUnFetchSynNum()
int64 unFetchSynNum = 16; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Response.NodeInfo.PeerInfo.Builder |
newBuilder() |
static Response.NodeInfo.PeerInfo.Builder |
newBuilder(Response.NodeInfo.PeerInfo prototype) |
Response.NodeInfo.PeerInfo.Builder |
newBuilderForType() |
protected Response.NodeInfo.PeerInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Response.NodeInfo.PeerInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Response.NodeInfo.PeerInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response.NodeInfo.PeerInfo |
parseFrom(byte[] data) |
static Response.NodeInfo.PeerInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response.NodeInfo.PeerInfo |
parseFrom(java.nio.ByteBuffer data) |
static Response.NodeInfo.PeerInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Response.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Response.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Response.NodeInfo.PeerInfo |
parseFrom(java.io.InputStream input) |
static Response.NodeInfo.PeerInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Response.NodeInfo.PeerInfo> |
parser() |
Response.NodeInfo.PeerInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LASTSYNCBLOCK_FIELD_NUMBER
public static final int REMAINNUM_FIELD_NUMBER
public static final int LASTBLOCKUPDATETIME_FIELD_NUMBER
public static final int SYNCFLAG_FIELD_NUMBER
public static final int HEADBLOCKTIMEWEBOTHHAVE_FIELD_NUMBER
public static final int NEEDSYNCFROMPEER_FIELD_NUMBER
public static final int NEEDSYNCFROMUS_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int NODEID_FIELD_NUMBER
public static final int CONNECTTIME_FIELD_NUMBER
public static final int AVGLATENCY_FIELD_NUMBER
public static final int SYNCTOFETCHSIZE_FIELD_NUMBER
public static final int SYNCTOFETCHSIZEPEEKNUM_FIELD_NUMBER
public static final int SYNCBLOCKREQUESTEDSIZE_FIELD_NUMBER
public static final int UNFETCHSYNNUM_FIELD_NUMBER
public static final int BLOCKINPORCSIZE_FIELD_NUMBER
public static final int HEADBLOCKWEBOTHHAVE_FIELD_NUMBER
public static final int ISACTIVE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int NODECOUNT_FIELD_NUMBER
public static final int INFLOW_FIELD_NUMBER
public static final int DISCONNECTTIMES_FIELD_NUMBER
public static final int LOCALDISCONNECTREASON_FIELD_NUMBER
public static final int REMOTEDISCONNECTREASON_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getLastSyncBlock()
string lastSyncBlock = 1;getLastSyncBlock in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getLastSyncBlockBytes()
string lastSyncBlock = 1;getLastSyncBlockBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getRemainNum()
int64 remainNum = 2;getRemainNum in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getLastBlockUpdateTime()
int64 lastBlockUpdateTime = 3;getLastBlockUpdateTime in interface Response.NodeInfo.PeerInfoOrBuilderpublic boolean getSyncFlag()
bool syncFlag = 4;getSyncFlag in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getHeadBlockTimeWeBothHave()
int64 headBlockTimeWeBothHave = 5;getHeadBlockTimeWeBothHave in interface Response.NodeInfo.PeerInfoOrBuilderpublic boolean getNeedSyncFromPeer()
bool needSyncFromPeer = 6;getNeedSyncFromPeer in interface Response.NodeInfo.PeerInfoOrBuilderpublic boolean getNeedSyncFromUs()
bool needSyncFromUs = 7;getNeedSyncFromUs in interface Response.NodeInfo.PeerInfoOrBuilderpublic java.lang.String getHost()
string host = 8;getHost in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
string host = 8;getHostBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getPort()
int32 port = 9;getPort in interface Response.NodeInfo.PeerInfoOrBuilderpublic java.lang.String getNodeId()
string nodeId = 10;getNodeId in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getNodeIdBytes()
string nodeId = 10;getNodeIdBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getConnectTime()
int64 connectTime = 11;getConnectTime in interface Response.NodeInfo.PeerInfoOrBuilderpublic double getAvgLatency()
double avgLatency = 12;getAvgLatency in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getSyncToFetchSize()
int32 syncToFetchSize = 13;getSyncToFetchSize in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getSyncToFetchSizePeekNum()
int64 syncToFetchSizePeekNum = 14;getSyncToFetchSizePeekNum in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getSyncBlockRequestedSize()
int32 syncBlockRequestedSize = 15;getSyncBlockRequestedSize in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getUnFetchSynNum()
int64 unFetchSynNum = 16;getUnFetchSynNum in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getBlockInPorcSize()
int32 blockInPorcSize = 17;getBlockInPorcSize in interface Response.NodeInfo.PeerInfoOrBuilderpublic java.lang.String getHeadBlockWeBothHave()
string headBlockWeBothHave = 18;getHeadBlockWeBothHave in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes()
string headBlockWeBothHave = 18;getHeadBlockWeBothHaveBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic boolean getIsActive()
bool isActive = 19;getIsActive in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getScore()
int32 score = 20;getScore in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getNodeCount()
int32 nodeCount = 21;getNodeCount in interface Response.NodeInfo.PeerInfoOrBuilderpublic long getInFlow()
int64 inFlow = 22;getInFlow in interface Response.NodeInfo.PeerInfoOrBuilderpublic int getDisconnectTimes()
int32 disconnectTimes = 23;getDisconnectTimes in interface Response.NodeInfo.PeerInfoOrBuilderpublic java.lang.String getLocalDisconnectReason()
string localDisconnectReason = 24;getLocalDisconnectReason in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getLocalDisconnectReasonBytes()
string localDisconnectReason = 24;getLocalDisconnectReasonBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic java.lang.String getRemoteDisconnectReason()
string remoteDisconnectReason = 25;getRemoteDisconnectReason in interface Response.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getRemoteDisconnectReasonBytes()
string remoteDisconnectReason = 25;getRemoteDisconnectReasonBytes in interface Response.NodeInfo.PeerInfoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Response.NodeInfo.PeerInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Response.NodeInfo.PeerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Response.NodeInfo.PeerInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Response.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Response.NodeInfo.PeerInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Response.NodeInfo.PeerInfo.Builder newBuilder()
public static Response.NodeInfo.PeerInfo.Builder newBuilder(Response.NodeInfo.PeerInfo prototype)
public Response.NodeInfo.PeerInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Response.NodeInfo.PeerInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Response.NodeInfo.PeerInfo getDefaultInstance()
public static com.google.protobuf.Parser<Response.NodeInfo.PeerInfo> parser()
public com.google.protobuf.Parser<Response.NodeInfo.PeerInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Response.NodeInfo.PeerInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder