Package org.stellar.sdk.xdr
Class ConfigSettingEntry
java.lang.Object
org.stellar.sdk.xdr.ConfigSettingEntry
- All Implemented Interfaces:
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;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionConfigSettingEntry(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 newConfigSettingEntryinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ConfigSettingEntrydecode(XdrDataInputStream stream) static ConfigSettingEntrydecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ConfigSettingEntrystatic ConfigSettingEntryfromXdrBase64(String xdr) static ConfigSettingEntryfromXdrByteArray(byte[] xdr) Value of thecontractBandwidthfield.Value of thecontractComputefield.Value of thecontractCostParamsCpuInsnsfield.Value of thecontractCostParamsMemBytesfield.Value of thecontractDataEntrySizeBytesfield.Value of thecontractDataKeySizeBytesfield.Value of thecontractEventsfield.Value of thecontractExecutionLanesfield.Value of thecontractHistoricalDatafield.Value of thecontractLedgerCostfield.Value of thecontractLedgerCostExtfield.Value of thecontractMaxSizeBytesfield.Value of thecontractParallelComputefield.Value of thecontractSCPTimingfield.Value of thediscriminantfield.Value of theevictionIteratorfield.Value of thefreezeBypassTxsfield.Value of thefreezeBypassTxsDeltafield.Value of thefrozenLedgerKeysfield.Value of thefrozenLedgerKeysDeltafield.Uint64[]Value of theliveSorobanStateSizeWindowfield.Value of thestateArchivalSettingsfield.inthashCode()voidsetContractBandwidth(ConfigSettingContractBandwidthV0 contractBandwidth) Value of thecontractBandwidthfield.voidsetContractCompute(ConfigSettingContractComputeV0 contractCompute) Value of thecontractComputefield.voidsetContractCostParamsCpuInsns(ContractCostParams contractCostParamsCpuInsns) Value of thecontractCostParamsCpuInsnsfield.voidsetContractCostParamsMemBytes(ContractCostParams contractCostParamsMemBytes) Value of thecontractCostParamsMemBytesfield.voidsetContractDataEntrySizeBytes(Uint32 contractDataEntrySizeBytes) Value of thecontractDataEntrySizeBytesfield.voidsetContractDataKeySizeBytes(Uint32 contractDataKeySizeBytes) Value of thecontractDataKeySizeBytesfield.voidsetContractEvents(ConfigSettingContractEventsV0 contractEvents) Value of thecontractEventsfield.voidsetContractExecutionLanes(ConfigSettingContractExecutionLanesV0 contractExecutionLanes) Value of thecontractExecutionLanesfield.voidsetContractHistoricalData(ConfigSettingContractHistoricalDataV0 contractHistoricalData) Value of thecontractHistoricalDatafield.voidsetContractLedgerCost(ConfigSettingContractLedgerCostV0 contractLedgerCost) Value of thecontractLedgerCostfield.voidsetContractLedgerCostExt(ConfigSettingContractLedgerCostExtV0 contractLedgerCostExt) Value of thecontractLedgerCostExtfield.voidsetContractMaxSizeBytes(Uint32 contractMaxSizeBytes) Value of thecontractMaxSizeBytesfield.voidsetContractParallelCompute(ConfigSettingContractParallelComputeV0 contractParallelCompute) Value of thecontractParallelComputefield.voidsetContractSCPTiming(ConfigSettingSCPTiming contractSCPTiming) Value of thecontractSCPTimingfield.voidsetDiscriminant(ConfigSettingID discriminant) Value of thediscriminantfield.voidsetEvictionIterator(EvictionIterator evictionIterator) Value of theevictionIteratorfield.voidsetFreezeBypassTxs(FreezeBypassTxs freezeBypassTxs) Value of thefreezeBypassTxsfield.voidsetFreezeBypassTxsDelta(FreezeBypassTxsDelta freezeBypassTxsDelta) Value of thefreezeBypassTxsDeltafield.voidsetFrozenLedgerKeys(FrozenLedgerKeys frozenLedgerKeys) Value of thefrozenLedgerKeysfield.voidsetFrozenLedgerKeysDelta(FrozenLedgerKeysDelta frozenLedgerKeysDelta) Value of thefrozenLedgerKeysDeltafield.voidsetLiveSorobanStateSizeWindow(Uint64[] liveSorobanStateSizeWindow) Value of theliveSorobanStateSizeWindowfield.voidsetStateArchivalSettings(StateArchivalSettings stateArchivalSettings) Value of thestateArchivalSettingsfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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 newConfigSettingEntryinstance.- Parameters:
discriminant- thediscriminantfield valuecontractMaxSizeBytes- thecontractMaxSizeBytesfield valuecontractCompute- thecontractComputefield valuecontractLedgerCost- thecontractLedgerCostfield valuecontractHistoricalData- thecontractHistoricalDatafield valuecontractEvents- thecontractEventsfield valuecontractBandwidth- thecontractBandwidthfield valuecontractCostParamsCpuInsns- thecontractCostParamsCpuInsnsfield valuecontractCostParamsMemBytes- thecontractCostParamsMemBytesfield valuecontractDataKeySizeBytes- thecontractDataKeySizeBytesfield valuecontractDataEntrySizeBytes- thecontractDataEntrySizeBytesfield valuestateArchivalSettings- thestateArchivalSettingsfield valuecontractExecutionLanes- thecontractExecutionLanesfield valueliveSorobanStateSizeWindow- theliveSorobanStateSizeWindowfield valueevictionIterator- theevictionIteratorfield valuecontractParallelCompute- thecontractParallelComputefield valuecontractLedgerCostExt- thecontractLedgerCostExtfield valuecontractSCPTiming- thecontractSCPTimingfield valuefrozenLedgerKeys- thefrozenLedgerKeysfield valuefrozenLedgerKeysDelta- thefrozenLedgerKeysDeltafield valuefreezeBypassTxs- thefreezeBypassTxsfield valuefreezeBypassTxsDelta- thefreezeBypassTxsDeltafield 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
- 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
-
getDiscriminant
Value of thediscriminantfield.- Returns:
- the
discriminantfield value
-
getContractMaxSizeBytes
Value of thecontractMaxSizeBytesfield.- Returns:
- the
contractMaxSizeBytesfield value
-
getContractCompute
Value of thecontractComputefield.- Returns:
- the
contractComputefield value
-
getContractLedgerCost
Value of thecontractLedgerCostfield.- Returns:
- the
contractLedgerCostfield value
-
getContractHistoricalData
Value of thecontractHistoricalDatafield.- Returns:
- the
contractHistoricalDatafield value
-
getContractEvents
Value of thecontractEventsfield.- Returns:
- the
contractEventsfield value
-
getContractBandwidth
Value of thecontractBandwidthfield.- Returns:
- the
contractBandwidthfield value
-
getContractCostParamsCpuInsns
Value of thecontractCostParamsCpuInsnsfield.- Returns:
- the
contractCostParamsCpuInsnsfield value
-
getContractCostParamsMemBytes
Value of thecontractCostParamsMemBytesfield.- Returns:
- the
contractCostParamsMemBytesfield value
-
getContractDataKeySizeBytes
Value of thecontractDataKeySizeBytesfield.- Returns:
- the
contractDataKeySizeBytesfield value
-
getContractDataEntrySizeBytes
Value of thecontractDataEntrySizeBytesfield.- Returns:
- the
contractDataEntrySizeBytesfield value
-
getStateArchivalSettings
Value of thestateArchivalSettingsfield.- Returns:
- the
stateArchivalSettingsfield value
-
getContractExecutionLanes
Value of thecontractExecutionLanesfield.- Returns:
- the
contractExecutionLanesfield value
-
getLiveSorobanStateSizeWindow
Value of theliveSorobanStateSizeWindowfield.- Returns:
- the
liveSorobanStateSizeWindowfield value
-
getEvictionIterator
Value of theevictionIteratorfield.- Returns:
- the
evictionIteratorfield value
-
getContractParallelCompute
Value of thecontractParallelComputefield.- Returns:
- the
contractParallelComputefield value
-
getContractLedgerCostExt
Value of thecontractLedgerCostExtfield.- Returns:
- the
contractLedgerCostExtfield value
-
getContractSCPTiming
Value of thecontractSCPTimingfield.- Returns:
- the
contractSCPTimingfield value
-
getFrozenLedgerKeys
Value of thefrozenLedgerKeysfield.- Returns:
- the
frozenLedgerKeysfield value
-
getFrozenLedgerKeysDelta
Value of thefrozenLedgerKeysDeltafield.- Returns:
- the
frozenLedgerKeysDeltafield value
-
getFreezeBypassTxs
Value of thefreezeBypassTxsfield.- Returns:
- the
freezeBypassTxsfield value
-
getFreezeBypassTxsDelta
Value of thefreezeBypassTxsDeltafield.- Returns:
- the
freezeBypassTxsDeltafield value
-
setDiscriminant
Value of thediscriminantfield.- Parameters:
discriminant- thediscriminantfield value
-
setContractMaxSizeBytes
Value of thecontractMaxSizeBytesfield.- Parameters:
contractMaxSizeBytes- thecontractMaxSizeBytesfield value
-
setContractCompute
Value of thecontractComputefield.- Parameters:
contractCompute- thecontractComputefield value
-
setContractLedgerCost
Value of thecontractLedgerCostfield.- Parameters:
contractLedgerCost- thecontractLedgerCostfield value
-
setContractHistoricalData
Value of thecontractHistoricalDatafield.- Parameters:
contractHistoricalData- thecontractHistoricalDatafield value
-
setContractEvents
Value of thecontractEventsfield.- Parameters:
contractEvents- thecontractEventsfield value
-
setContractBandwidth
Value of thecontractBandwidthfield.- Parameters:
contractBandwidth- thecontractBandwidthfield value
-
setContractCostParamsCpuInsns
Value of thecontractCostParamsCpuInsnsfield.- Parameters:
contractCostParamsCpuInsns- thecontractCostParamsCpuInsnsfield value
-
setContractCostParamsMemBytes
Value of thecontractCostParamsMemBytesfield.- Parameters:
contractCostParamsMemBytes- thecontractCostParamsMemBytesfield value
-
setContractDataKeySizeBytes
Value of thecontractDataKeySizeBytesfield.- Parameters:
contractDataKeySizeBytes- thecontractDataKeySizeBytesfield value
-
setContractDataEntrySizeBytes
Value of thecontractDataEntrySizeBytesfield.- Parameters:
contractDataEntrySizeBytes- thecontractDataEntrySizeBytesfield value
-
setStateArchivalSettings
Value of thestateArchivalSettingsfield.- Parameters:
stateArchivalSettings- thestateArchivalSettingsfield value
-
setContractExecutionLanes
Value of thecontractExecutionLanesfield.- Parameters:
contractExecutionLanes- thecontractExecutionLanesfield value
-
setLiveSorobanStateSizeWindow
Value of theliveSorobanStateSizeWindowfield.- Parameters:
liveSorobanStateSizeWindow- theliveSorobanStateSizeWindowfield value
-
setEvictionIterator
Value of theevictionIteratorfield.- Parameters:
evictionIterator- theevictionIteratorfield value
-
setContractParallelCompute
public void setContractParallelCompute(ConfigSettingContractParallelComputeV0 contractParallelCompute) Value of thecontractParallelComputefield.- Parameters:
contractParallelCompute- thecontractParallelComputefield value
-
setContractLedgerCostExt
Value of thecontractLedgerCostExtfield.- Parameters:
contractLedgerCostExt- thecontractLedgerCostExtfield value
-
setContractSCPTiming
Value of thecontractSCPTimingfield.- Parameters:
contractSCPTiming- thecontractSCPTimingfield value
-
setFrozenLedgerKeys
Value of thefrozenLedgerKeysfield.- Parameters:
frozenLedgerKeys- thefrozenLedgerKeysfield value
-
setFrozenLedgerKeysDelta
Value of thefrozenLedgerKeysDeltafield.- Parameters:
frozenLedgerKeysDelta- thefrozenLedgerKeysDeltafield value
-
setFreezeBypassTxs
Value of thefreezeBypassTxsfield.- Parameters:
freezeBypassTxs- thefreezeBypassTxsfield value
-
setFreezeBypassTxsDelta
Value of thefreezeBypassTxsDeltafield.- Parameters:
freezeBypassTxsDelta- thefreezeBypassTxsDeltafield value
-
equals
-
hashCode
public int hashCode() -
toString
-