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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getLastSyncBlock()
string lastSyncBlock = 1;
getLastSyncBlock
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getLastSyncBlockBytes()
string lastSyncBlock = 1;
getLastSyncBlockBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getRemainNum()
int64 remainNum = 2;
getRemainNum
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getLastBlockUpdateTime()
int64 lastBlockUpdateTime = 3;
getLastBlockUpdateTime
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public boolean getSyncFlag()
bool syncFlag = 4;
getSyncFlag
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getHeadBlockTimeWeBothHave()
int64 headBlockTimeWeBothHave = 5;
getHeadBlockTimeWeBothHave
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public boolean getNeedSyncFromPeer()
bool needSyncFromPeer = 6;
getNeedSyncFromPeer
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public boolean getNeedSyncFromUs()
bool needSyncFromUs = 7;
getNeedSyncFromUs
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public String getHost()
string host = 8;
getHost
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getHostBytes()
string host = 8;
getHostBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getPort()
int32 port = 9;
getPort
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public String getNodeId()
string nodeId = 10;
getNodeId
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getNodeIdBytes()
string nodeId = 10;
getNodeIdBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getConnectTime()
int64 connectTime = 11;
getConnectTime
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public double getAvgLatency()
double avgLatency = 12;
getAvgLatency
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getSyncToFetchSize()
int32 syncToFetchSize = 13;
getSyncToFetchSize
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getSyncToFetchSizePeekNum()
int64 syncToFetchSizePeekNum = 14;
getSyncToFetchSizePeekNum
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getSyncBlockRequestedSize()
int32 syncBlockRequestedSize = 15;
getSyncBlockRequestedSize
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getUnFetchSynNum()
int64 unFetchSynNum = 16;
getUnFetchSynNum
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getBlockInPorcSize()
int32 blockInPorcSize = 17;
getBlockInPorcSize
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public String getHeadBlockWeBothHave()
string headBlockWeBothHave = 18;
getHeadBlockWeBothHave
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getHeadBlockWeBothHaveBytes()
string headBlockWeBothHave = 18;
getHeadBlockWeBothHaveBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public boolean getIsActive()
bool isActive = 19;
getIsActive
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getScore()
int32 score = 20;
getScore
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getNodeCount()
int32 nodeCount = 21;
getNodeCount
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public long getInFlow()
int64 inFlow = 22;
getInFlow
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public int getDisconnectTimes()
int32 disconnectTimes = 23;
getDisconnectTimes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public String getLocalDisconnectReason()
string localDisconnectReason = 24;
getLocalDisconnectReason
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getLocalDisconnectReasonBytes()
string localDisconnectReason = 24;
getLocalDisconnectReasonBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public String getRemoteDisconnectReason()
string remoteDisconnectReason = 25;
getRemoteDisconnectReason
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public com.google.protobuf.ByteString getRemoteDisconnectReasonBytes()
string remoteDisconnectReason = 25;
getRemoteDisconnectReasonBytes
in interface Protocol.NodeInfo.PeerInfoOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Protocol.NodeInfo.PeerInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protocol.NodeInfo.PeerInfo parseFrom(InputStream input) throws IOException
IOException
public static Protocol.NodeInfo.PeerInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protocol.NodeInfo.PeerInfo parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Protocol.NodeInfo.PeerInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Protocol.NodeInfo.PeerInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Protocol.NodeInfo.PeerInfo.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Protocol.NodeInfo.PeerInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Protocol.NodeInfo.PeerInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2020. All rights reserved.