Interface Protocol.PublicHeaderOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Protocol.PublicHeader, Protocol.PublicHeader.Builder
    Enclosing class:
    Protocol

    public static interface Protocol.PublicHeaderOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getChunkNo()
      up to 2 bytes (by definition, only values up to 65535 are allowed)
      int getHopCount()
      1 byte fix (by definition, only values between 1 and 127 are allowed)
      long getId()
      8 bytes fix
      int getNetworkId()
      up to 4 bytes
      int getProofOfWork()
      up to 4 bytes
      com.google.protobuf.ByteString getRecipient()
      33 bytes fix
      com.google.protobuf.ByteString getSender()
      33 bytes fix
      com.google.protobuf.ByteString getSignature()
      32 bytes fix
      int getTotalChunks()
      up to 2 bytes (by definition, only values up to 65535 are allowed)
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getId

        long getId()
         8 bytes fix
         
        sfixed64 id = 1;
        Returns:
        The id.
      • getNetworkId

        int getNetworkId()
         up to 4 bytes
         
        sint32 networkId = 2;
        Returns:
        The networkId.
      • getSender

        com.google.protobuf.ByteString getSender()
         33 bytes fix
         
        bytes sender = 3;
        Returns:
        The sender.
      • getProofOfWork

        int getProofOfWork()
         up to 4 bytes
         
        sint32 proofOfWork = 4;
        Returns:
        The proofOfWork.
      • getRecipient

        com.google.protobuf.ByteString getRecipient()
         33 bytes fix
         
        bytes recipient = 5;
        Returns:
        The recipient.
      • getHopCount

        int getHopCount()
         1 byte fix (by definition, only values between 1 and 127 are allowed)
         
        uint32 hopCount = 6;
        Returns:
        The hopCount.
      • getSignature

        com.google.protobuf.ByteString getSignature()
         32 bytes fix
         
        bytes signature = 7;
        Returns:
        The signature.
      • getChunkNo

        int getChunkNo()
         up to 2 bytes (by definition, only values up to 65535 are allowed)
         
        uint32 chunkNo = 8;
        Returns:
        The chunkNo.
      • getTotalChunks

        int getTotalChunks()
         up to 2 bytes (by definition, only values up to 65535 are allowed)
         
        uint32 totalChunks = 9;
        Returns:
        The totalChunks.