Class RosterEntry

java.lang.Object
com.google.protobuf.AbstractMessageLite<RosterEntry,RosterEntry.Builder>
com.google.protobuf.GeneratedMessageLite<RosterEntry,RosterEntry.Builder>
com.hedera.hashgraph.sdk.proto.RosterEntry
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, RosterEntryOrBuilder

@Generated public final class RosterEntry extends com.google.protobuf.GeneratedMessageLite<RosterEntry,RosterEntry.Builder> implements RosterEntryOrBuilder
 *
 A single roster entry in the network state.

 Each roster entry SHALL encapsulate the elements required
 to manage node participation in the Threshold Signature Scheme (TSS).<br/>
 All fields are REQUIRED.
 
Protobuf type com.hedera.hapi.node.state.roster.RosterEntry
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A single roster entry in the network state.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
     
    com.google.protobuf.ByteString
    * An RSA public certificate used for signing gossip events.
    getGossipEndpoint(int index)
    * A list of service endpoints for gossip.
    int
    * A list of service endpoints for gossip.
    * A list of service endpoints for gossip.
    * A list of service endpoints for gossip.
    * A list of service endpoints for gossip.
    long
    * A consensus node identifier.
    long
    * A consensus weight.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<RosterEntry>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • NODE_ID_FIELD_NUMBER

      public static final int NODE_ID_FIELD_NUMBER
      See Also:
    • WEIGHT_FIELD_NUMBER

      public static final int WEIGHT_FIELD_NUMBER
      See Also:
    • GOSSIP_CA_CERTIFICATE_FIELD_NUMBER

      public static final int GOSSIP_CA_CERTIFICATE_FIELD_NUMBER
      See Also:
    • GOSSIP_ENDPOINT_FIELD_NUMBER

      public static final int GOSSIP_ENDPOINT_FIELD_NUMBER
      See Also:
  • Method Details

    • getNodeId

      public long getNodeId()
       *
       A consensus node identifier.
       <p>
       Node identifiers SHALL be unique _within_ a ledger,
       and MUST NOT be repeated _between_ shards and realms.
       
      uint64 node_id = 1;
      Specified by:
      getNodeId in interface RosterEntryOrBuilder
      Returns:
      The nodeId.
    • getWeight

      public long getWeight()
       *
       A consensus weight.
       <p>
       Each node SHALL have a weight of zero or more in consensus calculations.<br/>
       The sum of the weights of all nodes in the roster SHALL form the total weight of the system,
       and each node's individual weight SHALL be proportional to that sum.<br/>
       
      uint64 weight = 2;
      Specified by:
      getWeight in interface RosterEntryOrBuilder
      Returns:
      The weight.
    • getGossipCaCertificate

      public com.google.protobuf.ByteString getGossipCaCertificate()
       *
       An RSA public certificate used for signing gossip events.
       <p>
       This value SHALL be a certificate of a type permitted for gossip
       signatures.<br/>
       This value SHALL be the DER encoding of the certificate presented.<br/>
       This field is REQUIRED and MUST NOT be empty.
       
      bytes gossip_ca_certificate = 3;
      Specified by:
      getGossipCaCertificate in interface RosterEntryOrBuilder
      Returns:
      The gossipCaCertificate.
    • getGossipEndpointList

      public List<ServiceEndpoint> getGossipEndpointList()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list SHALL supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       SHALL NOT supply both values for the same endpoint.<br/>
       This list SHALL NOT be empty.<br/>
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 5;
      Specified by:
      getGossipEndpointList in interface RosterEntryOrBuilder
    • getGossipEndpointOrBuilderList

      public List<? extends ServiceEndpointOrBuilder> getGossipEndpointOrBuilderList()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list SHALL supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       SHALL NOT supply both values for the same endpoint.<br/>
       This list SHALL NOT be empty.<br/>
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 5;
    • getGossipEndpointCount

      public int getGossipEndpointCount()
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list SHALL supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       SHALL NOT supply both values for the same endpoint.<br/>
       This list SHALL NOT be empty.<br/>
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 5;
      Specified by:
      getGossipEndpointCount in interface RosterEntryOrBuilder
    • getGossipEndpoint

      public ServiceEndpoint getGossipEndpoint(int index)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list SHALL supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       SHALL NOT supply both values for the same endpoint.<br/>
       This list SHALL NOT be empty.<br/>
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 5;
      Specified by:
      getGossipEndpoint in interface RosterEntryOrBuilder
    • getGossipEndpointOrBuilder

      public ServiceEndpointOrBuilder getGossipEndpointOrBuilder(int index)
       *
       A list of service endpoints for gossip.
       <p>
       These endpoints SHALL represent the published endpoints to which other
       consensus nodes may _gossip_ transactions.<br/>
       If the network configuration value `gossipFqdnRestricted` is set, then
       all endpoints in this list SHALL supply only IP address.<br/>
       If the network configuration value `gossipFqdnRestricted` is _not_ set,
       then endpoints in this list MAY supply either IP address or FQDN, but
       SHALL NOT supply both values for the same endpoint.<br/>
       This list SHALL NOT be empty.<br/>
       
      repeated .proto.ServiceEndpoint gossip_endpoint = 5;
    • parseFrom

      public static RosterEntry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RosterEntry parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterEntry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RosterEntry parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RosterEntry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterEntry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterEntry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static RosterEntry.Builder newBuilder()
    • newBuilder

      public static RosterEntry.Builder newBuilder(RosterEntry prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<RosterEntry,RosterEntry.Builder>
    • getDefaultInstance

      public static RosterEntry getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RosterEntry> parser()