Package org.stellar.sdk.xdr
Class ConfigSettingContractBandwidthV0
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingContractBandwidthV0
- All Implemented Interfaces:
XdrElement
ConfigSettingContractBandwidthV0's original definition in the XDR file is:
struct ConfigSettingContractBandwidthV0
{
// Maximum sum of all transaction sizes in the ledger in bytes
uint32 ledgerMaxTxsSizeBytes;
// Maximum size in bytes for a transaction
uint32 txMaxSizeBytes;
// Fee for 1 KB of transaction size
int64 feeTxSize1KB;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingContractBandwidthV0(Uint32 ledgerMaxTxsSizeBytes, Uint32 txMaxSizeBytes, Int64 feeTxSize1KB) Creates a newConfigSettingContractBandwidthV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of thefeeTxSize1KBfield.Value of theledgerMaxTxsSizeBytesfield.Value of thetxMaxSizeBytesfield.inthashCode()voidsetFeeTxSize1KB(Int64 feeTxSize1KB) Value of thefeeTxSize1KBfield.voidsetLedgerMaxTxsSizeBytes(Uint32 ledgerMaxTxsSizeBytes) Value of theledgerMaxTxsSizeBytesfield.voidsetTxMaxSizeBytes(Uint32 txMaxSizeBytes) Value of thetxMaxSizeBytesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ConfigSettingContractBandwidthV0
public ConfigSettingContractBandwidthV0() -
ConfigSettingContractBandwidthV0
public ConfigSettingContractBandwidthV0(Uint32 ledgerMaxTxsSizeBytes, Uint32 txMaxSizeBytes, Int64 feeTxSize1KB) Creates a newConfigSettingContractBandwidthV0instance.- Parameters:
ledgerMaxTxsSizeBytes- theledgerMaxTxsSizeBytesfield valuetxMaxSizeBytes- thetxMaxSizeBytesfield valuefeeTxSize1KB- thefeeTxSize1KBfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static ConfigSettingContractBandwidthV0 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getLedgerMaxTxsSizeBytes
Value of theledgerMaxTxsSizeBytesfield.- Returns:
- the
ledgerMaxTxsSizeBytesfield value
-
getTxMaxSizeBytes
Value of thetxMaxSizeBytesfield.- Returns:
- the
txMaxSizeBytesfield value
-
getFeeTxSize1KB
Value of thefeeTxSize1KBfield.- Returns:
- the
feeTxSize1KBfield value
-
setLedgerMaxTxsSizeBytes
Value of theledgerMaxTxsSizeBytesfield.- Parameters:
ledgerMaxTxsSizeBytes- theledgerMaxTxsSizeBytesfield value
-
setTxMaxSizeBytes
Value of thetxMaxSizeBytesfield.- Parameters:
txMaxSizeBytes- thetxMaxSizeBytesfield value
-
setFeeTxSize1KB
Value of thefeeTxSize1KBfield.- Parameters:
feeTxSize1KB- thefeeTxSize1KBfield value
-
equals
-
hashCode
public int hashCode() -
toString
-