public static final class Protocol.NodeInfo.PeerInfo extends com.google.protobuf.GeneratedMessageV3 implements Protocol.NodeInfo.PeerInfoOrBuilder
protocol.NodeInfo.PeerInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Protocol.NodeInfo.PeerInfo.Builder
Protobuf type
protocol.NodeInfo.PeerInfo |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getAvgLatency()
double avgLatency = 12; |
int |
getBlockInPorcSize()
int32 blockInPorcSize = 17; |
long |
getConnectTime()
int64 connectTime = 11; |
static Protocol.NodeInfo.PeerInfo |
getDefaultInstance() |
Protocol.NodeInfo.PeerInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDisconnectTimes()
int32 disconnectTimes = 23; |
long |
getHeadBlockTimeWeBothHave()
int64 headBlockTimeWeBothHave = 5; |
String |
getHeadBlockWeBothHave()
string headBlockWeBothHave = 18; |
com.google.protobuf.ByteString |
getHeadBlockWeBothHaveBytes()
string headBlockWeBothHave = 18; |
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; |
String |
getLastSyncBlock()
string lastSyncBlock = 1; |
com.google.protobuf.ByteString |
getLastSyncBlockBytes()
string lastSyncBlock = 1; |
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; |
String |
getNodeId()
string nodeId = 10; |
com.google.protobuf.ByteString |
getNodeIdBytes()
string nodeId = 10; |
com.google.protobuf.Parser<Protocol.NodeInfo.PeerInfo> |
getParserForType() |
int |
getPort()
int32 port = 9; |
long |
getRemainNum()
int64 remainNum = 2; |
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; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protocol.NodeInfo.PeerInfo.Builder |
newBuilder() |
static Protocol.NodeInfo.PeerInfo.Builder |
newBuilder(Protocol.NodeInfo.PeerInfo prototype) |
Protocol.NodeInfo.PeerInfo.Builder |
newBuilderForType() |
protected Protocol.NodeInfo.PeerInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protocol.NodeInfo.PeerInfo |
parseDelimitedFrom(InputStream input) |
static Protocol.NodeInfo.PeerInfo |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(byte[] data) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(ByteBuffer data) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(InputStream input) |
static Protocol.NodeInfo.PeerInfo |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Protocol.NodeInfo.PeerInfo> |
parser() |
Protocol.NodeInfo.PeerInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields 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 String getLastSyncBlock()
string lastSyncBlock = 1;getLastSyncBlock in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getLastSyncBlockBytes()
string lastSyncBlock = 1;getLastSyncBlockBytes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getRemainNum()
int64 remainNum = 2;getRemainNum in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getLastBlockUpdateTime()
int64 lastBlockUpdateTime = 3;getLastBlockUpdateTime in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic boolean getSyncFlag()
bool syncFlag = 4;getSyncFlag in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getHeadBlockTimeWeBothHave()
int64 headBlockTimeWeBothHave = 5;getHeadBlockTimeWeBothHave in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic boolean getNeedSyncFromPeer()
bool needSyncFromPeer = 6;getNeedSyncFromPeer in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic boolean getNeedSyncFromUs()
bool needSyncFromUs = 7;getNeedSyncFromUs in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic String getHost()
string host = 8;getHost in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
string host = 8;getHostBytes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getPort()
int32 port = 9;getPort in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic String getNodeId()
string nodeId = 10;getNodeId in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getNodeIdBytes()
string nodeId = 10;getNodeIdBytes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getConnectTime()
int64 connectTime = 11;getConnectTime in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic double getAvgLatency()
double avgLatency = 12;getAvgLatency in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getSyncToFetchSize()
int32 syncToFetchSize = 13;getSyncToFetchSize in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getSyncToFetchSizePeekNum()
int64 syncToFetchSizePeekNum = 14;getSyncToFetchSizePeekNum in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getSyncBlockRequestedSize()
int32 syncBlockRequestedSize = 15;getSyncBlockRequestedSize in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getUnFetchSynNum()
int64 unFetchSynNum = 16;getUnFetchSynNum in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getBlockInPorcSize()
int32 blockInPorcSize = 17;getBlockInPorcSize in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic String getHeadBlockWeBothHave()
string headBlockWeBothHave = 18;getHeadBlockWeBothHave in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes()
string headBlockWeBothHave = 18;getHeadBlockWeBothHaveBytes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic boolean getIsActive()
bool isActive = 19;getIsActive in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getScore()
int32 score = 20;getScore in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getNodeCount()
int32 nodeCount = 21;getNodeCount in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic long getInFlow()
int64 inFlow = 22;getInFlow in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic int getDisconnectTimes()
int32 disconnectTimes = 23;getDisconnectTimes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic String getLocalDisconnectReason()
string localDisconnectReason = 24;getLocalDisconnectReason in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getLocalDisconnectReasonBytes()
string localDisconnectReason = 24;getLocalDisconnectReasonBytes in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic String getRemoteDisconnectReason()
string remoteDisconnectReason = 25;getRemoteDisconnectReason in interface Protocol.NodeInfo.PeerInfoOrBuilderpublic com.google.protobuf.ByteString getRemoteDisconnectReasonBytes()
string remoteDisconnectReason = 25;getRemoteDisconnectReasonBytes in interface Protocol.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 IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(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 Protocol.NodeInfo.PeerInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(InputStream input) throws IOException
IOExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protocol.NodeInfo.PeerInfo parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Protocol.NodeInfo.PeerInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Protocol.NodeInfo.PeerInfo.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Protocol.NodeInfo.PeerInfo.Builder newBuilder()
public static Protocol.NodeInfo.PeerInfo.Builder newBuilder(Protocol.NodeInfo.PeerInfo prototype)
public Protocol.NodeInfo.PeerInfo.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Protocol.NodeInfo.PeerInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Protocol.NodeInfo.PeerInfo getDefaultInstance()
public static com.google.protobuf.Parser<Protocol.NodeInfo.PeerInfo> parser()
public com.google.protobuf.Parser<Protocol.NodeInfo.PeerInfo> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Protocol.NodeInfo.PeerInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.