Class EmbeddedMosaicMetadataTransactionV1
- All Implemented Interfaces:
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.symbol.models.EmbeddedTransaction
embeddedTransactionHeaderReserved_1, entityBodyReserved_1, network, signerPublicKey, type, version -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EmbeddedMosaicMetadataTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.longGets the scopedMetadataKey field.Gets the targetAddress field.Gets the targetMosaicId field.byte[]getValue()Gets the value field.intGets the valueSizeDelta field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetScopedMetadataKey(long value) Sets the scopedMetadataKey field.voidSets the targetAddress field.voidSets the targetMosaicId field.voidsetValue(byte[] value) Sets the value field.voidsetValueSizeDelta(int value) Sets the valueSizeDelta field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.toString()Returns a string representation of this object.Returns the type-hint map driving the rule-based descriptor pipeline.Methods inherited from class org.symbol.sdk.symbol.models.EmbeddedTransaction
getNetwork, getSignerPublicKey, getType, getVersion, setNetwork, setSignerPublicKey, setType, setVersionMethods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.symbol.sdk.symbol.BaseTransaction
sortMethods inherited from interface org.symbol.sdk.Serializer
serialize
-
Field Details
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
EmbeddedMosaicMetadataTransactionV1
public EmbeddedMosaicMetadataTransactionV1()Creates a new EmbeddedMosaicMetadataTransactionV1.
-
-
Method Details
-
typeHints
- EmbeddedMosaicMetadataTransactionV1.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classEmbeddedTransaction- Returns:
Field-name → rule-key map.
-
setField
- EmbeddedMosaicMetadataTransactionV1.setField
Sets a named field. Used by the rule-based descriptor pipeline.
- Specified by:
setFieldin interfaceBaseTransaction- Overrides:
setFieldin classEmbeddedTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- EmbeddedMosaicMetadataTransactionV1.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Specified by:
getFieldin interfaceBaseTransaction- Overrides:
getFieldin classEmbeddedTransaction- Parameters:
name- Field name.- Returns:
Field value.
-
getTargetAddress
- EmbeddedMosaicMetadataTransactionV1.getTargetAddress
Gets the targetAddress field.
- Returns:
The targetAddress field.
-
setTargetAddress
- EmbeddedMosaicMetadataTransactionV1.setTargetAddress
Sets the targetAddress field.
- Parameters:
value- New targetAddress value.
-
getScopedMetadataKey
public long getScopedMetadataKey()- EmbeddedMosaicMetadataTransactionV1.getScopedMetadataKey
Gets the scopedMetadataKey field.
- Returns:
The scopedMetadataKey field.
-
setScopedMetadataKey
public void setScopedMetadataKey(long value) - EmbeddedMosaicMetadataTransactionV1.setScopedMetadataKey
Sets the scopedMetadataKey field.
- Parameters:
value- New scopedMetadataKey value.
-
getTargetMosaicId
- EmbeddedMosaicMetadataTransactionV1.getTargetMosaicId
Gets the targetMosaicId field.
- Returns:
The targetMosaicId field.
-
setTargetMosaicId
- EmbeddedMosaicMetadataTransactionV1.setTargetMosaicId
Sets the targetMosaicId field.
- Parameters:
value- New targetMosaicId value.
-
getValueSizeDelta
public int getValueSizeDelta()- EmbeddedMosaicMetadataTransactionV1.getValueSizeDelta
Gets the valueSizeDelta field.
- Returns:
The valueSizeDelta field.
-
setValueSizeDelta
public void setValueSizeDelta(int value) - EmbeddedMosaicMetadataTransactionV1.setValueSizeDelta
Sets the valueSizeDelta field.
- Parameters:
value- New valueSizeDelta value.
-
getValue
public byte[] getValue()- EmbeddedMosaicMetadataTransactionV1.getValue
Gets the value field.
- Returns:
The value field.
-
setValue
public void setValue(byte[] value) - EmbeddedMosaicMetadataTransactionV1.setValue
Sets the value field.
- Parameters:
value- New value value.
-
size
public int size()- EmbeddedMosaicMetadataTransactionV1.size
Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classEmbeddedTransaction- Returns:
Size of this object in bytes.
-
deserialize
- EmbeddedMosaicMetadataTransactionV1.deserialize
Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-
serializeInto
- EmbeddedMosaicMetadataTransactionV1.serializeInto
Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classEmbeddedTransaction- Parameters:
buffer- Output writer.
-
toString
- EmbeddedMosaicMetadataTransactionV1.toString
Returns a string representation of this object.
- Overrides:
toStringin classEmbeddedTransaction- Returns:
String representation of this object.
-
toJson
- EmbeddedMosaicMetadataTransactionV1.toJson
Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classEmbeddedTransaction- Returns:
JSON-serializable representation of this object.
-