Package org.stellar.sdk.xdr
Class ConfigSettingEntry
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingEntry
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_BUCKETLIST_SIZE_WINDOW: uint64 bucketListSizeWindow<>; case CONFIG_SETTING_EVICTION_ITERATOR: EvictionIterator evictionIterator; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionConfigSettingEntry
(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[] bucketListSizeWindow, EvictionIterator evictionIterator) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ConfigSettingEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ConfigSettingEntry
fromXdrBase64
(String xdr) static ConfigSettingEntry
fromXdrByteArray
(byte[] xdr) Uint64[]
int
hashCode()
void
setBucketListSizeWindow
(Uint64[] bucketListSizeWindow) void
setContractBandwidth
(ConfigSettingContractBandwidthV0 contractBandwidth) void
setContractCompute
(ConfigSettingContractComputeV0 contractCompute) void
setContractCostParamsCpuInsns
(ContractCostParams contractCostParamsCpuInsns) void
setContractCostParamsMemBytes
(ContractCostParams contractCostParamsMemBytes) void
setContractDataEntrySizeBytes
(Uint32 contractDataEntrySizeBytes) void
setContractDataKeySizeBytes
(Uint32 contractDataKeySizeBytes) void
setContractEvents
(ConfigSettingContractEventsV0 contractEvents) void
setContractExecutionLanes
(ConfigSettingContractExecutionLanesV0 contractExecutionLanes) void
setContractHistoricalData
(ConfigSettingContractHistoricalDataV0 contractHistoricalData) void
setContractLedgerCost
(ConfigSettingContractLedgerCostV0 contractLedgerCost) void
setContractMaxSizeBytes
(Uint32 contractMaxSizeBytes) void
setDiscriminant
(ConfigSettingID discriminant) void
setEvictionIterator
(EvictionIterator evictionIterator) void
setStateArchivalSettings
(StateArchivalSettings stateArchivalSettings) toString()
default String
default byte[]
-
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[] bucketListSizeWindow, EvictionIterator evictionIterator)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getContractMaxSizeBytes
-
getContractCompute
-
getContractLedgerCost
-
getContractHistoricalData
-
getContractEvents
-
getContractBandwidth
-
getContractCostParamsCpuInsns
-
getContractCostParamsMemBytes
-
getContractDataKeySizeBytes
-
getContractDataEntrySizeBytes
-
getStateArchivalSettings
-
getContractExecutionLanes
-
getBucketListSizeWindow
-
getEvictionIterator
-
setDiscriminant
-
setContractMaxSizeBytes
-
setContractCompute
-
setContractLedgerCost
-
setContractHistoricalData
-
setContractEvents
-
setContractBandwidth
-
setContractCostParamsCpuInsns
-
setContractCostParamsMemBytes
-
setContractDataKeySizeBytes
-
setContractDataEntrySizeBytes
-
setStateArchivalSettings
-
setContractExecutionLanes
-
setBucketListSizeWindow
-
setEvictionIterator
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-