Class ConfigSettingEntry

java.lang.Object
org.stellar.sdk.xdr.ConfigSettingEntry
All Implemented Interfaces:
XdrElement

public class ConfigSettingEntry extends Object implements XdrElement
ConfigSettingEntry's original definition in the XDR file is:
 union ConfigSettingEntry switch (ConfigSettingID configSettingID)
 {
 case CONFIG_SETTING_CONTRACT_MAX_SIZE_BYTES:
     uint32 contractMaxSizeBytes;
 case CONFIG_SETTING_CONTRACT_COMPUTE_V0:
     ConfigSettingContractComputeV0 contractCompute;
 case CONFIG_SETTING_CONTRACT_LEDGER_COST_V0:
     ConfigSettingContractLedgerCostV0 contractLedgerCost;
 case CONFIG_SETTING_CONTRACT_HISTORICAL_DATA_V0:
     ConfigSettingContractHistoricalDataV0 contractHistoricalData;
 case CONFIG_SETTING_CONTRACT_EVENTS_V0:
     ConfigSettingContractEventsV0 contractEvents;
 case CONFIG_SETTING_CONTRACT_BANDWIDTH_V0:
     ConfigSettingContractBandwidthV0 contractBandwidth;
 case CONFIG_SETTING_CONTRACT_COST_PARAMS_CPU_INSTRUCTIONS:
     ContractCostParams contractCostParamsCpuInsns;
 case CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES:
     ContractCostParams contractCostParamsMemBytes;
 case CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES:
     uint32 contractDataKeySizeBytes;
 case CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES:
     uint32 contractDataEntrySizeBytes;
 case CONFIG_SETTING_STATE_ARCHIVAL:
     StateArchivalSettings stateArchivalSettings;
 case CONFIG_SETTING_CONTRACT_EXECUTION_LANES:
     ConfigSettingContractExecutionLanesV0 contractExecutionLanes;
 case CONFIG_SETTING_LIVE_SOROBAN_STATE_SIZE_WINDOW:
     uint64 liveSorobanStateSizeWindow<>;
 case CONFIG_SETTING_EVICTION_ITERATOR:
     EvictionIterator evictionIterator;
 case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0:
     ConfigSettingContractParallelComputeV0 contractParallelCompute;
 case CONFIG_SETTING_CONTRACT_LEDGER_COST_EXT_V0:
     ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt;
 case CONFIG_SETTING_SCP_TIMING:
     ConfigSettingSCPTiming contractSCPTiming;
 case CONFIG_SETTING_FROZEN_LEDGER_KEYS:
     FrozenLedgerKeys frozenLedgerKeys;
 case CONFIG_SETTING_FROZEN_LEDGER_KEYS_DELTA:
     FrozenLedgerKeysDelta frozenLedgerKeysDelta;
 case CONFIG_SETTING_FREEZE_BYPASS_TXS:
     FreezeBypassTxs freezeBypassTxs;
 case CONFIG_SETTING_FREEZE_BYPASS_TXS_DELTA:
     FreezeBypassTxsDelta freezeBypassTxsDelta;
 };
 
  • Constructor Details

    • ConfigSettingEntry

      public ConfigSettingEntry()
    • ConfigSettingEntry

      public ConfigSettingEntry(ConfigSettingID discriminant, Uint32 contractMaxSizeBytes, ConfigSettingContractComputeV0 contractCompute, ConfigSettingContractLedgerCostV0 contractLedgerCost, ConfigSettingContractHistoricalDataV0 contractHistoricalData, ConfigSettingContractEventsV0 contractEvents, ConfigSettingContractBandwidthV0 contractBandwidth, ContractCostParams contractCostParamsCpuInsns, ContractCostParams contractCostParamsMemBytes, Uint32 contractDataKeySizeBytes, Uint32 contractDataEntrySizeBytes, StateArchivalSettings stateArchivalSettings, ConfigSettingContractExecutionLanesV0 contractExecutionLanes, Uint64[] liveSorobanStateSizeWindow, EvictionIterator evictionIterator, ConfigSettingContractParallelComputeV0 contractParallelCompute, ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt, ConfigSettingSCPTiming contractSCPTiming, FrozenLedgerKeys frozenLedgerKeys, FrozenLedgerKeysDelta frozenLedgerKeysDelta, FreezeBypassTxs freezeBypassTxs, FreezeBypassTxsDelta freezeBypassTxsDelta)
      Creates a new ConfigSettingEntry instance.
      Parameters:
      discriminant - the discriminant field value
      contractMaxSizeBytes - the contractMaxSizeBytes field value
      contractCompute - the contractCompute field value
      contractLedgerCost - the contractLedgerCost field value
      contractHistoricalData - the contractHistoricalData field value
      contractEvents - the contractEvents field value
      contractBandwidth - the contractBandwidth field value
      contractCostParamsCpuInsns - the contractCostParamsCpuInsns field value
      contractCostParamsMemBytes - the contractCostParamsMemBytes field value
      contractDataKeySizeBytes - the contractDataKeySizeBytes field value
      contractDataEntrySizeBytes - the contractDataEntrySizeBytes field value
      stateArchivalSettings - the stateArchivalSettings field value
      contractExecutionLanes - the contractExecutionLanes field value
      liveSorobanStateSizeWindow - the liveSorobanStateSizeWindow field value
      evictionIterator - the evictionIterator field value
      contractParallelCompute - the contractParallelCompute field value
      contractLedgerCostExt - the contractLedgerCostExt field value
      contractSCPTiming - the contractSCPTiming field value
      frozenLedgerKeys - the frozenLedgerKeys field value
      frozenLedgerKeysDelta - the frozenLedgerKeysDelta field value
      freezeBypassTxs - the freezeBypassTxs field value
      freezeBypassTxsDelta - the freezeBypassTxsDelta field value
  • Method Details

    • encode

      public void encode(XdrDataOutputStream stream) throws IOException
      Description copied from interface: XdrElement
      Encodes this value to XDR and writes it to the provided stream.
      Specified by:
      encode in interface XdrElement
      Parameters:
      stream - the destination XDR output stream
      Throws:
      IOException - if an I/O error occurs while writing the value
    • decode

      public static ConfigSettingEntry decode(XdrDataInputStream stream, int maxDepth) throws IOException
      Throws:
      IOException
    • decode

      public static ConfigSettingEntry decode(XdrDataInputStream stream) throws IOException
      Throws:
      IOException
    • fromXdrBase64

      public static ConfigSettingEntry fromXdrBase64(String xdr) throws IOException
      Throws:
      IOException
    • fromXdrByteArray

      public static ConfigSettingEntry fromXdrByteArray(byte[] xdr) throws IOException
      Throws:
      IOException
    • toJson

      public String toJson()
      Description copied from interface: XdrElement
      Serializes this value to JSON.
      Specified by:
      toJson in interface XdrElement
      Returns:
      the JSON representation of this value
    • fromJson

      public static ConfigSettingEntry fromJson(String json)
    • builder

    • toBuilder

    • getDiscriminant

      public ConfigSettingID getDiscriminant()
      Value of the discriminant field.
      Returns:
      the discriminant field value
    • getContractMaxSizeBytes

      public Uint32 getContractMaxSizeBytes()
      Value of the contractMaxSizeBytes field.
      Returns:
      the contractMaxSizeBytes field value
    • getContractCompute

      public ConfigSettingContractComputeV0 getContractCompute()
      Value of the contractCompute field.
      Returns:
      the contractCompute field value
    • getContractLedgerCost

      public ConfigSettingContractLedgerCostV0 getContractLedgerCost()
      Value of the contractLedgerCost field.
      Returns:
      the contractLedgerCost field value
    • getContractHistoricalData

      public ConfigSettingContractHistoricalDataV0 getContractHistoricalData()
      Value of the contractHistoricalData field.
      Returns:
      the contractHistoricalData field value
    • getContractEvents

      public ConfigSettingContractEventsV0 getContractEvents()
      Value of the contractEvents field.
      Returns:
      the contractEvents field value
    • getContractBandwidth

      public ConfigSettingContractBandwidthV0 getContractBandwidth()
      Value of the contractBandwidth field.
      Returns:
      the contractBandwidth field value
    • getContractCostParamsCpuInsns

      public ContractCostParams getContractCostParamsCpuInsns()
      Value of the contractCostParamsCpuInsns field.
      Returns:
      the contractCostParamsCpuInsns field value
    • getContractCostParamsMemBytes

      public ContractCostParams getContractCostParamsMemBytes()
      Value of the contractCostParamsMemBytes field.
      Returns:
      the contractCostParamsMemBytes field value
    • getContractDataKeySizeBytes

      public Uint32 getContractDataKeySizeBytes()
      Value of the contractDataKeySizeBytes field.
      Returns:
      the contractDataKeySizeBytes field value
    • getContractDataEntrySizeBytes

      public Uint32 getContractDataEntrySizeBytes()
      Value of the contractDataEntrySizeBytes field.
      Returns:
      the contractDataEntrySizeBytes field value
    • getStateArchivalSettings

      public StateArchivalSettings getStateArchivalSettings()
      Value of the stateArchivalSettings field.
      Returns:
      the stateArchivalSettings field value
    • getContractExecutionLanes

      public ConfigSettingContractExecutionLanesV0 getContractExecutionLanes()
      Value of the contractExecutionLanes field.
      Returns:
      the contractExecutionLanes field value
    • getLiveSorobanStateSizeWindow

      public Uint64[] getLiveSorobanStateSizeWindow()
      Value of the liveSorobanStateSizeWindow field.
      Returns:
      the liveSorobanStateSizeWindow field value
    • getEvictionIterator

      public EvictionIterator getEvictionIterator()
      Value of the evictionIterator field.
      Returns:
      the evictionIterator field value
    • getContractParallelCompute

      public ConfigSettingContractParallelComputeV0 getContractParallelCompute()
      Value of the contractParallelCompute field.
      Returns:
      the contractParallelCompute field value
    • getContractLedgerCostExt

      public ConfigSettingContractLedgerCostExtV0 getContractLedgerCostExt()
      Value of the contractLedgerCostExt field.
      Returns:
      the contractLedgerCostExt field value
    • getContractSCPTiming

      public ConfigSettingSCPTiming getContractSCPTiming()
      Value of the contractSCPTiming field.
      Returns:
      the contractSCPTiming field value
    • getFrozenLedgerKeys

      public FrozenLedgerKeys getFrozenLedgerKeys()
      Value of the frozenLedgerKeys field.
      Returns:
      the frozenLedgerKeys field value
    • getFrozenLedgerKeysDelta

      public FrozenLedgerKeysDelta getFrozenLedgerKeysDelta()
      Value of the frozenLedgerKeysDelta field.
      Returns:
      the frozenLedgerKeysDelta field value
    • getFreezeBypassTxs

      public FreezeBypassTxs getFreezeBypassTxs()
      Value of the freezeBypassTxs field.
      Returns:
      the freezeBypassTxs field value
    • getFreezeBypassTxsDelta

      public FreezeBypassTxsDelta getFreezeBypassTxsDelta()
      Value of the freezeBypassTxsDelta field.
      Returns:
      the freezeBypassTxsDelta field value
    • setDiscriminant

      public void setDiscriminant(ConfigSettingID discriminant)
      Value of the discriminant field.
      Parameters:
      discriminant - the discriminant field value
    • setContractMaxSizeBytes

      public void setContractMaxSizeBytes(Uint32 contractMaxSizeBytes)
      Value of the contractMaxSizeBytes field.
      Parameters:
      contractMaxSizeBytes - the contractMaxSizeBytes field value
    • setContractCompute

      public void setContractCompute(ConfigSettingContractComputeV0 contractCompute)
      Value of the contractCompute field.
      Parameters:
      contractCompute - the contractCompute field value
    • setContractLedgerCost

      public void setContractLedgerCost(ConfigSettingContractLedgerCostV0 contractLedgerCost)
      Value of the contractLedgerCost field.
      Parameters:
      contractLedgerCost - the contractLedgerCost field value
    • setContractHistoricalData

      public void setContractHistoricalData(ConfigSettingContractHistoricalDataV0 contractHistoricalData)
      Value of the contractHistoricalData field.
      Parameters:
      contractHistoricalData - the contractHistoricalData field value
    • setContractEvents

      public void setContractEvents(ConfigSettingContractEventsV0 contractEvents)
      Value of the contractEvents field.
      Parameters:
      contractEvents - the contractEvents field value
    • setContractBandwidth

      public void setContractBandwidth(ConfigSettingContractBandwidthV0 contractBandwidth)
      Value of the contractBandwidth field.
      Parameters:
      contractBandwidth - the contractBandwidth field value
    • setContractCostParamsCpuInsns

      public void setContractCostParamsCpuInsns(ContractCostParams contractCostParamsCpuInsns)
      Value of the contractCostParamsCpuInsns field.
      Parameters:
      contractCostParamsCpuInsns - the contractCostParamsCpuInsns field value
    • setContractCostParamsMemBytes

      public void setContractCostParamsMemBytes(ContractCostParams contractCostParamsMemBytes)
      Value of the contractCostParamsMemBytes field.
      Parameters:
      contractCostParamsMemBytes - the contractCostParamsMemBytes field value
    • setContractDataKeySizeBytes

      public void setContractDataKeySizeBytes(Uint32 contractDataKeySizeBytes)
      Value of the contractDataKeySizeBytes field.
      Parameters:
      contractDataKeySizeBytes - the contractDataKeySizeBytes field value
    • setContractDataEntrySizeBytes

      public void setContractDataEntrySizeBytes(Uint32 contractDataEntrySizeBytes)
      Value of the contractDataEntrySizeBytes field.
      Parameters:
      contractDataEntrySizeBytes - the contractDataEntrySizeBytes field value
    • setStateArchivalSettings

      public void setStateArchivalSettings(StateArchivalSettings stateArchivalSettings)
      Value of the stateArchivalSettings field.
      Parameters:
      stateArchivalSettings - the stateArchivalSettings field value
    • setContractExecutionLanes

      public void setContractExecutionLanes(ConfigSettingContractExecutionLanesV0 contractExecutionLanes)
      Value of the contractExecutionLanes field.
      Parameters:
      contractExecutionLanes - the contractExecutionLanes field value
    • setLiveSorobanStateSizeWindow

      public void setLiveSorobanStateSizeWindow(Uint64[] liveSorobanStateSizeWindow)
      Value of the liveSorobanStateSizeWindow field.
      Parameters:
      liveSorobanStateSizeWindow - the liveSorobanStateSizeWindow field value
    • setEvictionIterator

      public void setEvictionIterator(EvictionIterator evictionIterator)
      Value of the evictionIterator field.
      Parameters:
      evictionIterator - the evictionIterator field value
    • setContractParallelCompute

      public void setContractParallelCompute(ConfigSettingContractParallelComputeV0 contractParallelCompute)
      Value of the contractParallelCompute field.
      Parameters:
      contractParallelCompute - the contractParallelCompute field value
    • setContractLedgerCostExt

      public void setContractLedgerCostExt(ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt)
      Value of the contractLedgerCostExt field.
      Parameters:
      contractLedgerCostExt - the contractLedgerCostExt field value
    • setContractSCPTiming

      public void setContractSCPTiming(ConfigSettingSCPTiming contractSCPTiming)
      Value of the contractSCPTiming field.
      Parameters:
      contractSCPTiming - the contractSCPTiming field value
    • setFrozenLedgerKeys

      public void setFrozenLedgerKeys(FrozenLedgerKeys frozenLedgerKeys)
      Value of the frozenLedgerKeys field.
      Parameters:
      frozenLedgerKeys - the frozenLedgerKeys field value
    • setFrozenLedgerKeysDelta

      public void setFrozenLedgerKeysDelta(FrozenLedgerKeysDelta frozenLedgerKeysDelta)
      Value of the frozenLedgerKeysDelta field.
      Parameters:
      frozenLedgerKeysDelta - the frozenLedgerKeysDelta field value
    • setFreezeBypassTxs

      public void setFreezeBypassTxs(FreezeBypassTxs freezeBypassTxs)
      Value of the freezeBypassTxs field.
      Parameters:
      freezeBypassTxs - the freezeBypassTxs field value
    • setFreezeBypassTxsDelta

      public void setFreezeBypassTxsDelta(FreezeBypassTxsDelta freezeBypassTxsDelta)
      Value of the freezeBypassTxsDelta field.
      Parameters:
      freezeBypassTxsDelta - the freezeBypassTxsDelta field value
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object