Class EmbeddedNamespaceMetadataTransactionBuilder

    • Constructor Detail

      • EmbeddedNamespaceMetadataTransactionBuilder

        protected EmbeddedNamespaceMetadataTransactionBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • EmbeddedNamespaceMetadataTransactionBuilder

        protected EmbeddedNamespaceMetadataTransactionBuilder​(KeyDto signerPublicKey,
                                                              byte version,
                                                              NetworkTypeDto network,
                                                              EntityTypeDto type,
                                                              KeyDto targetPublicKey,
                                                              long scopedMetadataKey,
                                                              NamespaceIdDto targetNamespaceId,
                                                              short valueSizeDelta,
                                                              java.nio.ByteBuffer value)
        Constructor.
        Parameters:
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        targetPublicKey - Metadata target public key.
        scopedMetadataKey - Metadata key scoped to source, target and type.
        targetNamespaceId - Target namespace identifier.
        valueSizeDelta - Change in value size in bytes.
        value - Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
    • Method Detail

      • loadFromBinary

        public static EmbeddedNamespaceMetadataTransactionBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of EmbeddedNamespaceMetadataTransactionBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of EmbeddedNamespaceMetadataTransactionBuilder.
      • create

        public static EmbeddedNamespaceMetadataTransactionBuilder create​(KeyDto signerPublicKey,
                                                                         byte version,
                                                                         NetworkTypeDto network,
                                                                         EntityTypeDto type,
                                                                         KeyDto targetPublicKey,
                                                                         long scopedMetadataKey,
                                                                         NamespaceIdDto targetNamespaceId,
                                                                         short valueSizeDelta,
                                                                         java.nio.ByteBuffer value)
        Creates an instance of EmbeddedNamespaceMetadataTransactionBuilder.
        Parameters:
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        targetPublicKey - Metadata target public key.
        scopedMetadataKey - Metadata key scoped to source, target and type.
        targetNamespaceId - Target namespace identifier.
        valueSizeDelta - Change in value size in bytes.
        value - Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
        Returns:
        Instance of EmbeddedNamespaceMetadataTransactionBuilder.
      • getTargetPublicKey

        public KeyDto getTargetPublicKey()
        Gets metadata target public key.
        Returns:
        Metadata target public key.
      • getScopedMetadataKey

        public long getScopedMetadataKey()
        Gets metadata key scoped to source, target and type.
        Returns:
        Metadata key scoped to source, target and type.
      • getTargetNamespaceId

        public NamespaceIdDto getTargetNamespaceId()
        Gets target namespace identifier.
        Returns:
        Target namespace identifier.
      • getValueSizeDelta

        public short getValueSizeDelta()
        Gets change in value size in bytes.
        Returns:
        Change in value size in bytes.
      • getValue

        public java.nio.ByteBuffer getValue()
        Gets difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
        Returns:
        Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).