public final class Peer extends com.google.protobuf.GeneratedMessageV3 implements PeerOrBuilder
Peer contains information about the peer such as its channel specific state, and membership information.Protobuf type
discovery.Peer
Modifier and Type | Class and Description |
---|---|
static class |
Peer.Builder
Peer contains information about the peer such as its channel specific
state, and membership information.
|
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 | Field and Description |
---|---|
static int |
IDENTITY_FIELD_NUMBER |
static int |
MEMBERSHIP_INFO_FIELD_NUMBER |
static int |
STATE_INFO_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static Peer |
getDefaultInstance() |
Peer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getIdentity()
This is the msp.SerializedIdentity of the peer, represented in bytes.
|
Envelope |
getMembershipInfo()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
|
EnvelopeOrBuilder |
getMembershipInfoOrBuilder()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
|
com.google.protobuf.Parser<Peer> |
getParserForType() |
int |
getSerializedSize() |
Envelope |
getStateInfo()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
|
EnvelopeOrBuilder |
getStateInfoOrBuilder()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMembershipInfo()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
|
boolean |
hasStateInfo()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
|
boolean |
isInitialized() |
static Peer.Builder |
newBuilder() |
static Peer.Builder |
newBuilder(Peer prototype) |
Peer.Builder |
newBuilderForType() |
static Peer |
parseDelimitedFrom(InputStream input) |
static Peer |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Peer |
parseFrom(byte[] data) |
static Peer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Peer |
parseFrom(ByteBuffer data) |
static Peer |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Peer |
parseFrom(com.google.protobuf.ByteString data) |
static Peer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Peer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Peer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Peer |
parseFrom(InputStream input) |
static Peer |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Peer> |
parser() |
Peer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int STATE_INFO_FIELD_NUMBER
public static final int MEMBERSHIP_INFO_FIELD_NUMBER
public static final int IDENTITY_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()
public boolean hasStateInfo()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
.gossip.Envelope state_info = 1 [json_name = "stateInfo"];
hasStateInfo
in interface PeerOrBuilder
public Envelope getStateInfo()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
.gossip.Envelope state_info = 1 [json_name = "stateInfo"];
getStateInfo
in interface PeerOrBuilder
public EnvelopeOrBuilder getStateInfoOrBuilder()
This is an Envelope of a GossipMessage with a gossip.StateInfo message
.gossip.Envelope state_info = 1 [json_name = "stateInfo"];
getStateInfoOrBuilder
in interface PeerOrBuilder
public boolean hasMembershipInfo()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
.gossip.Envelope membership_info = 2 [json_name = "membershipInfo"];
hasMembershipInfo
in interface PeerOrBuilder
public Envelope getMembershipInfo()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
.gossip.Envelope membership_info = 2 [json_name = "membershipInfo"];
getMembershipInfo
in interface PeerOrBuilder
public EnvelopeOrBuilder getMembershipInfoOrBuilder()
This is an Envelope of a GossipMessage with a gossip.AliveMessage message
.gossip.Envelope membership_info = 2 [json_name = "membershipInfo"];
getMembershipInfoOrBuilder
in interface PeerOrBuilder
public com.google.protobuf.ByteString getIdentity()
This is the msp.SerializedIdentity of the peer, represented in bytes.
bytes identity = 3 [json_name = "identity"];
getIdentity
in interface PeerOrBuilder
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 Peer parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Peer parseFrom(InputStream input) throws IOException
IOException
public static Peer parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Peer parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Peer parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Peer parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Peer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Peer.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Peer.Builder newBuilder()
public static Peer.Builder newBuilder(Peer prototype)
public Peer.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static Peer getDefaultInstance()
public static com.google.protobuf.Parser<Peer> parser()
public com.google.protobuf.Parser<Peer> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Peer getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.