Class Signature.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Signature,Signature.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Signature,Signature.Builder>
com.hedera.hashgraph.sdk.proto.Signature.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, SignatureOrBuilder, Cloneable
Enclosing class:
Signature

public static final class Signature.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Signature,Signature.Builder> implements SignatureOrBuilder
 *
 This message is deprecated and MUST NOT be used to communicate with
 network nodes. It is retained here only for historical reasons.

 Client software MUST NOT include this message in any request. <br/>
 Compliant nodes SHALL NOT accept any request containing this message.

 Please use the `SignaturePair` and `SignatureMap` messages instead of
 this message.
 
Protobuf type proto.Signature
  • Method Details

    • getSignatureCase

      public Signature.SignatureCase getSignatureCase()
      Specified by:
      getSignatureCase in interface SignatureOrBuilder
    • clearSignature

      public Signature.Builder clearSignature()
    • hasContract

      public boolean hasContract()
       *
       Smart contract virtual signature (always length zero).
       
      bytes contract = 1;
      Specified by:
      hasContract in interface SignatureOrBuilder
      Returns:
      Whether the contract field is set.
    • getContract

      public com.google.protobuf.ByteString getContract()
       *
       Smart contract virtual signature (always length zero).
       
      bytes contract = 1;
      Specified by:
      getContract in interface SignatureOrBuilder
      Returns:
      The contract.
    • setContract

      public Signature.Builder setContract(com.google.protobuf.ByteString value)
       *
       Smart contract virtual signature (always length zero).
       
      bytes contract = 1;
      Parameters:
      value - The contract to set.
      Returns:
      This builder for chaining.
    • clearContract

      public Signature.Builder clearContract()
       *
       Smart contract virtual signature (always length zero).
       
      bytes contract = 1;
      Returns:
      This builder for chaining.
    • hasEd25519

      public boolean hasEd25519()
       *
       Ed25519 signature bytes.
       
      bytes ed25519 = 2;
      Specified by:
      hasEd25519 in interface SignatureOrBuilder
      Returns:
      Whether the ed25519 field is set.
    • getEd25519

      public com.google.protobuf.ByteString getEd25519()
       *
       Ed25519 signature bytes.
       
      bytes ed25519 = 2;
      Specified by:
      getEd25519 in interface SignatureOrBuilder
      Returns:
      The ed25519.
    • setEd25519

      public Signature.Builder setEd25519(com.google.protobuf.ByteString value)
       *
       Ed25519 signature bytes.
       
      bytes ed25519 = 2;
      Parameters:
      value - The ed25519 to set.
      Returns:
      This builder for chaining.
    • clearEd25519

      public Signature.Builder clearEd25519()
       *
       Ed25519 signature bytes.
       
      bytes ed25519 = 2;
      Returns:
      This builder for chaining.
    • hasRSA3072

      public boolean hasRSA3072()
       *
       RSA-3072 signature bytes.
       
      bytes RSA_3072 = 3;
      Specified by:
      hasRSA3072 in interface SignatureOrBuilder
      Returns:
      Whether the rSA3072 field is set.
    • getRSA3072

      public com.google.protobuf.ByteString getRSA3072()
       *
       RSA-3072 signature bytes.
       
      bytes RSA_3072 = 3;
      Specified by:
      getRSA3072 in interface SignatureOrBuilder
      Returns:
      The rSA3072.
    • setRSA3072

      public Signature.Builder setRSA3072(com.google.protobuf.ByteString value)
       *
       RSA-3072 signature bytes.
       
      bytes RSA_3072 = 3;
      Parameters:
      value - The rSA3072 to set.
      Returns:
      This builder for chaining.
    • clearRSA3072

      public Signature.Builder clearRSA3072()
       *
       RSA-3072 signature bytes.
       
      bytes RSA_3072 = 3;
      Returns:
      This builder for chaining.
    • hasECDSA384

      public boolean hasECDSA384()
       *
       ECDSA p-384 signature bytes.
       
      bytes ECDSA_384 = 4;
      Specified by:
      hasECDSA384 in interface SignatureOrBuilder
      Returns:
      Whether the eCDSA384 field is set.
    • getECDSA384

      public com.google.protobuf.ByteString getECDSA384()
       *
       ECDSA p-384 signature bytes.
       
      bytes ECDSA_384 = 4;
      Specified by:
      getECDSA384 in interface SignatureOrBuilder
      Returns:
      The eCDSA384.
    • setECDSA384

      public Signature.Builder setECDSA384(com.google.protobuf.ByteString value)
       *
       ECDSA p-384 signature bytes.
       
      bytes ECDSA_384 = 4;
      Parameters:
      value - The eCDSA384 to set.
      Returns:
      This builder for chaining.
    • clearECDSA384

      public Signature.Builder clearECDSA384()
       *
       ECDSA p-384 signature bytes.
       
      bytes ECDSA_384 = 4;
      Returns:
      This builder for chaining.
    • hasThresholdSignature

      public boolean hasThresholdSignature()
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
      Specified by:
      hasThresholdSignature in interface SignatureOrBuilder
      Returns:
      Whether the thresholdSignature field is set.
    • getThresholdSignature

      public ThresholdSignature getThresholdSignature()
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
      Specified by:
      getThresholdSignature in interface SignatureOrBuilder
      Returns:
      The thresholdSignature.
    • setThresholdSignature

      public Signature.Builder setThresholdSignature(ThresholdSignature value)
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
    • setThresholdSignature

      public Signature.Builder setThresholdSignature(ThresholdSignature.Builder builderForValue)
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
    • mergeThresholdSignature

      public Signature.Builder mergeThresholdSignature(ThresholdSignature value)
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
    • clearThresholdSignature

      public Signature.Builder clearThresholdSignature()
       *
       A list of signatures for a single N-of-M threshold Key. This must be
       a list of exactly M signatures, at least N of which are non-null.
       
      .proto.ThresholdSignature thresholdSignature = 5;
    • hasSignatureList

      public boolean hasSignatureList()
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;
      Specified by:
      hasSignatureList in interface SignatureOrBuilder
      Returns:
      Whether the signatureList field is set.
    • getSignatureList

      public SignatureList getSignatureList()
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;
      Specified by:
      getSignatureList in interface SignatureOrBuilder
      Returns:
      The signatureList.
    • setSignatureList

      public Signature.Builder setSignatureList(SignatureList value)
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;
    • setSignatureList

      public Signature.Builder setSignatureList(SignatureList.Builder builderForValue)
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;
    • mergeSignatureList

      public Signature.Builder mergeSignatureList(SignatureList value)
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;
    • clearSignatureList

      public Signature.Builder clearSignatureList()
       *
       A list of M signatures, each corresponding to a Key in a KeyList
       of the same length.
       
      .proto.SignatureList signatureList = 6;