public class ConfigSettingEntry extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
ConfigSettingEntry.ConfigSettingEntryBuilder |
Constructor and Description |
---|
ConfigSettingEntry() |
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) |
toXdrBase64, toXdrByteArray
public 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)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static ConfigSettingEntry decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static ConfigSettingEntry fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static ConfigSettingEntry fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static ConfigSettingEntry.ConfigSettingEntryBuilder builder()
public ConfigSettingEntry.ConfigSettingEntryBuilder toBuilder()
public ConfigSettingID getDiscriminant()
public Uint32 getContractMaxSizeBytes()
public ConfigSettingContractComputeV0 getContractCompute()
public ConfigSettingContractLedgerCostV0 getContractLedgerCost()
public ConfigSettingContractHistoricalDataV0 getContractHistoricalData()
public ConfigSettingContractEventsV0 getContractEvents()
public ConfigSettingContractBandwidthV0 getContractBandwidth()
public ContractCostParams getContractCostParamsCpuInsns()
public ContractCostParams getContractCostParamsMemBytes()
public Uint32 getContractDataKeySizeBytes()
public Uint32 getContractDataEntrySizeBytes()
public StateArchivalSettings getStateArchivalSettings()
public ConfigSettingContractExecutionLanesV0 getContractExecutionLanes()
public Uint64[] getLiveSorobanStateSizeWindow()
public EvictionIterator getEvictionIterator()
public ConfigSettingContractParallelComputeV0 getContractParallelCompute()
public ConfigSettingContractLedgerCostExtV0 getContractLedgerCostExt()
public ConfigSettingSCPTiming getContractSCPTiming()
public void setDiscriminant(ConfigSettingID discriminant)
public void setContractMaxSizeBytes(Uint32 contractMaxSizeBytes)
public void setContractCompute(ConfigSettingContractComputeV0 contractCompute)
public void setContractLedgerCost(ConfigSettingContractLedgerCostV0 contractLedgerCost)
public void setContractHistoricalData(ConfigSettingContractHistoricalDataV0 contractHistoricalData)
public void setContractEvents(ConfigSettingContractEventsV0 contractEvents)
public void setContractBandwidth(ConfigSettingContractBandwidthV0 contractBandwidth)
public void setContractCostParamsCpuInsns(ContractCostParams contractCostParamsCpuInsns)
public void setContractCostParamsMemBytes(ContractCostParams contractCostParamsMemBytes)
public void setContractDataKeySizeBytes(Uint32 contractDataKeySizeBytes)
public void setContractDataEntrySizeBytes(Uint32 contractDataEntrySizeBytes)
public void setStateArchivalSettings(StateArchivalSettings stateArchivalSettings)
public void setContractExecutionLanes(ConfigSettingContractExecutionLanesV0 contractExecutionLanes)
public void setLiveSorobanStateSizeWindow(Uint64[] liveSorobanStateSizeWindow)
public void setEvictionIterator(EvictionIterator evictionIterator)
public void setContractParallelCompute(ConfigSettingContractParallelComputeV0 contractParallelCompute)
public void setContractLedgerCostExt(ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt)
public void setContractSCPTiming(ConfigSettingSCPTiming contractSCPTiming)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object