Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
3886 lines (3321 sloc) 141 KB
// DO NOT EDIT.
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: vendor.proto
//
// For information on using the generated types, please see the documenation:
// https://github.com/apple/swift-protobuf/
import Foundation
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that your are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
/// ================================================================
/// import "github.com/tendermint/tendermint/libs/common/proto";
/// ================================================================
public struct AbciVendor_KVPair {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var key: Data = SwiftProtobuf.Internal.emptyData
public var value: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// ================================================================
/// import "github.com/tendermint/tendermint/crypto/merkle/merkle.proto";
/// ================================================================
/// ProofOp defines an operation used for calculating Merkle root
/// The data could be arbitrary format, providing nessecary data
/// for example neighbouring node hash
public struct AbciVendor_ProofOp {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var type: String = String()
public var key: Data = SwiftProtobuf.Internal.emptyData
public var data: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// Proof is Merkle proof defined by the list of ProofOps
public struct AbciVendor_Proof {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var ops: [AbciVendor_ProofOp] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// BlockParams contains limits on the block size and timestamp.
public struct AbciVendor_BlockParams {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// Note: must be greater than 0
public var maxBytes: Int64 = 0
/// Note: must be greater or equal to -1
public var maxGas: Int64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// EvidenceParams contains limits on the evidence.
public struct AbciVendor_EvidenceParams {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// Note: must be greater than 0
public var maxAge: Int64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// ValidatorParams contains limits on validators.
public struct AbciVendor_ValidatorParams {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var pubKeyTypes: [String] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// ConsensusParams contains all consensus-relevant parameters
/// that can be adjusted by the abci app
public struct AbciVendor_ConsensusParams {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var block: AbciVendor_BlockParams {
get {return _storage._block ?? AbciVendor_BlockParams()}
set {_uniqueStorage()._block = newValue}
}
/// Returns true if `block` has been explicitly set.
public var hasBlock: Bool {return _storage._block != nil}
/// Clears the value of `block`. Subsequent reads from it will return its default value.
public mutating func clearBlock() {_uniqueStorage()._block = nil}
public var evidence: AbciVendor_EvidenceParams {
get {return _storage._evidence ?? AbciVendor_EvidenceParams()}
set {_uniqueStorage()._evidence = newValue}
}
/// Returns true if `evidence` has been explicitly set.
public var hasEvidence: Bool {return _storage._evidence != nil}
/// Clears the value of `evidence`. Subsequent reads from it will return its default value.
public mutating func clearEvidence() {_uniqueStorage()._evidence = nil}
public var validator: AbciVendor_ValidatorParams {
get {return _storage._validator ?? AbciVendor_ValidatorParams()}
set {_uniqueStorage()._validator = newValue}
}
/// Returns true if `validator` has been explicitly set.
public var hasValidator: Bool {return _storage._validator != nil}
/// Clears the value of `validator`. Subsequent reads from it will return its default value.
public mutating func clearValidator() {_uniqueStorage()._validator = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_LastCommitInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var round: Int32 = 0
public var votes: [AbciVendor_VoteInfo] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_Event {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var type: String = String()
public var attributes: [AbciVendor_KVPair] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_Version {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var block: UInt64 = 0
public var app: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_BlockID {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var hash: Data {
get {return _storage._hash}
set {_uniqueStorage()._hash = newValue}
}
public var partsHeader: AbciVendor_PartSetHeader {
get {return _storage._partsHeader ?? AbciVendor_PartSetHeader()}
set {_uniqueStorage()._partsHeader = newValue}
}
/// Returns true if `partsHeader` has been explicitly set.
public var hasPartsHeader: Bool {return _storage._partsHeader != nil}
/// Clears the value of `partsHeader`. Subsequent reads from it will return its default value.
public mutating func clearPartsHeader() {_uniqueStorage()._partsHeader = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_PartSetHeader {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var total: Int32 = 0
public var hash: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// Validator
public struct AbciVendor_Validator {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var address: Data = SwiftProtobuf.Internal.emptyData
///PubKey pub_key = 2;
public var power: Int64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// ValidatorUpdate
public struct AbciVendor_ValidatorUpdate {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var pubKey: AbciVendor_PubKey {
get {return _storage._pubKey ?? AbciVendor_PubKey()}
set {_uniqueStorage()._pubKey = newValue}
}
/// Returns true if `pubKey` has been explicitly set.
public var hasPubKey: Bool {return _storage._pubKey != nil}
/// Clears the value of `pubKey`. Subsequent reads from it will return its default value.
public mutating func clearPubKey() {_uniqueStorage()._pubKey = nil}
public var power: Int64 {
get {return _storage._power}
set {_uniqueStorage()._power = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// VoteInfo
public struct AbciVendor_VoteInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var validator: AbciVendor_Validator {
get {return _storage._validator ?? AbciVendor_Validator()}
set {_uniqueStorage()._validator = newValue}
}
/// Returns true if `validator` has been explicitly set.
public var hasValidator: Bool {return _storage._validator != nil}
/// Clears the value of `validator`. Subsequent reads from it will return its default value.
public mutating func clearValidator() {_uniqueStorage()._validator = nil}
public var signedLastBlock: Bool {
get {return _storage._signedLastBlock}
set {_uniqueStorage()._signedLastBlock = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_PubKey {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var type: String = String()
public var data: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_Evidence {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var type: String {
get {return _storage._type}
set {_uniqueStorage()._type = newValue}
}
public var validator: AbciVendor_Validator {
get {return _storage._validator ?? AbciVendor_Validator()}
set {_uniqueStorage()._validator = newValue}
}
/// Returns true if `validator` has been explicitly set.
public var hasValidator: Bool {return _storage._validator != nil}
/// Clears the value of `validator`. Subsequent reads from it will return its default value.
public mutating func clearValidator() {_uniqueStorage()._validator = nil}
public var height: Int64 {
get {return _storage._height}
set {_uniqueStorage()._height = newValue}
}
public var time: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _storage._time ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_uniqueStorage()._time = newValue}
}
/// Returns true if `time` has been explicitly set.
public var hasTime: Bool {return _storage._time != nil}
/// Clears the value of `time`. Subsequent reads from it will return its default value.
public mutating func clearTime() {_uniqueStorage()._time = nil}
public var totalVotingPower: Int64 {
get {return _storage._totalVotingPower}
set {_uniqueStorage()._totalVotingPower = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_Header {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// basic block info
public var version: AbciVendor_Version {
get {return _storage._version ?? AbciVendor_Version()}
set {_uniqueStorage()._version = newValue}
}
/// Returns true if `version` has been explicitly set.
public var hasVersion: Bool {return _storage._version != nil}
/// Clears the value of `version`. Subsequent reads from it will return its default value.
public mutating func clearVersion() {_uniqueStorage()._version = nil}
public var chainID: String {
get {return _storage._chainID}
set {_uniqueStorage()._chainID = newValue}
}
public var height: Int64 {
get {return _storage._height}
set {_uniqueStorage()._height = newValue}
}
public var time: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _storage._time ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_uniqueStorage()._time = newValue}
}
/// Returns true if `time` has been explicitly set.
public var hasTime: Bool {return _storage._time != nil}
/// Clears the value of `time`. Subsequent reads from it will return its default value.
public mutating func clearTime() {_uniqueStorage()._time = nil}
public var numTxs: Int64 {
get {return _storage._numTxs}
set {_uniqueStorage()._numTxs = newValue}
}
public var totalTxs: Int64 {
get {return _storage._totalTxs}
set {_uniqueStorage()._totalTxs = newValue}
}
/// prev block info
public var lastBlockID: AbciVendor_BlockID {
get {return _storage._lastBlockID ?? AbciVendor_BlockID()}
set {_uniqueStorage()._lastBlockID = newValue}
}
/// Returns true if `lastBlockID` has been explicitly set.
public var hasLastBlockID: Bool {return _storage._lastBlockID != nil}
/// Clears the value of `lastBlockID`. Subsequent reads from it will return its default value.
public mutating func clearLastBlockID() {_uniqueStorage()._lastBlockID = nil}
/// hashes of block data
public var lastCommitHash: Data {
get {return _storage._lastCommitHash}
set {_uniqueStorage()._lastCommitHash = newValue}
}
/// transactions
public var dataHash: Data {
get {return _storage._dataHash}
set {_uniqueStorage()._dataHash = newValue}
}
/// hashes from the app output from the prev block
public var validatorsHash: Data {
get {return _storage._validatorsHash}
set {_uniqueStorage()._validatorsHash = newValue}
}
/// validators for the next block
public var nextValidatorsHash: Data {
get {return _storage._nextValidatorsHash}
set {_uniqueStorage()._nextValidatorsHash = newValue}
}
/// consensus params for current block
public var consensusHash: Data {
get {return _storage._consensusHash}
set {_uniqueStorage()._consensusHash = newValue}
}
/// state after txs from the previous block
public var appHash: Data {
get {return _storage._appHash}
set {_uniqueStorage()._appHash = newValue}
}
/// root hash of all results from the txs from the previous block
public var lastResultsHash: Data {
get {return _storage._lastResultsHash}
set {_uniqueStorage()._lastResultsHash = newValue}
}
/// consensus info
public var evidenceHash: Data {
get {return _storage._evidenceHash}
set {_uniqueStorage()._evidenceHash = newValue}
}
/// original proposer of the block
public var proposerAddress: Data {
get {return _storage._proposerAddress}
set {_uniqueStorage()._proposerAddress = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_RequestEcho {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var message: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestFlush {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var version: String = String()
public var blockVersion: UInt64 = 0
public var p2PVersion: UInt64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// nondeterministic
public struct AbciVendor_RequestSetOption {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var key: String = String()
public var value: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestInitChain {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var time: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _storage._time ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_uniqueStorage()._time = newValue}
}
/// Returns true if `time` has been explicitly set.
public var hasTime: Bool {return _storage._time != nil}
/// Clears the value of `time`. Subsequent reads from it will return its default value.
public mutating func clearTime() {_uniqueStorage()._time = nil}
public var chainID: String {
get {return _storage._chainID}
set {_uniqueStorage()._chainID = newValue}
}
public var consensusParams: AbciVendor_ConsensusParams {
get {return _storage._consensusParams ?? AbciVendor_ConsensusParams()}
set {_uniqueStorage()._consensusParams = newValue}
}
/// Returns true if `consensusParams` has been explicitly set.
public var hasConsensusParams: Bool {return _storage._consensusParams != nil}
/// Clears the value of `consensusParams`. Subsequent reads from it will return its default value.
public mutating func clearConsensusParams() {_uniqueStorage()._consensusParams = nil}
public var validators: [AbciVendor_ValidatorUpdate] {
get {return _storage._validators}
set {_uniqueStorage()._validators = newValue}
}
public var appStateBytes: Data {
get {return _storage._appStateBytes}
set {_uniqueStorage()._appStateBytes = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_RequestQuery {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var data: Data = SwiftProtobuf.Internal.emptyData
public var path: String = String()
public var height: Int64 = 0
public var prove: Bool = false
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestBeginBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var hash: Data {
get {return _storage._hash}
set {_uniqueStorage()._hash = newValue}
}
public var header: AbciVendor_Header {
get {return _storage._header ?? AbciVendor_Header()}
set {_uniqueStorage()._header = newValue}
}
/// Returns true if `header` has been explicitly set.
public var hasHeader: Bool {return _storage._header != nil}
/// Clears the value of `header`. Subsequent reads from it will return its default value.
public mutating func clearHeader() {_uniqueStorage()._header = nil}
public var lastCommitInfo: AbciVendor_LastCommitInfo {
get {return _storage._lastCommitInfo ?? AbciVendor_LastCommitInfo()}
set {_uniqueStorage()._lastCommitInfo = newValue}
}
/// Returns true if `lastCommitInfo` has been explicitly set.
public var hasLastCommitInfo: Bool {return _storage._lastCommitInfo != nil}
/// Clears the value of `lastCommitInfo`. Subsequent reads from it will return its default value.
public mutating func clearLastCommitInfo() {_uniqueStorage()._lastCommitInfo = nil}
public var byzantineValidators: [AbciVendor_Evidence] {
get {return _storage._byzantineValidators}
set {_uniqueStorage()._byzantineValidators = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_RequestCheckTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var tx: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestDeliverTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var tx: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestEndBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var height: Int64 = 0
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestCommit {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_Request {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var value: OneOf_Value? {
get {return _storage._value}
set {_uniqueStorage()._value = newValue}
}
public var echo: AbciVendor_RequestEcho {
get {
if case .echo(let v)? = _storage._value {return v}
return AbciVendor_RequestEcho()
}
set {_uniqueStorage()._value = .echo(newValue)}
}
public var flush: AbciVendor_RequestFlush {
get {
if case .flush(let v)? = _storage._value {return v}
return AbciVendor_RequestFlush()
}
set {_uniqueStorage()._value = .flush(newValue)}
}
public var info: AbciVendor_RequestInfo {
get {
if case .info(let v)? = _storage._value {return v}
return AbciVendor_RequestInfo()
}
set {_uniqueStorage()._value = .info(newValue)}
}
public var setOption: AbciVendor_RequestSetOption {
get {
if case .setOption(let v)? = _storage._value {return v}
return AbciVendor_RequestSetOption()
}
set {_uniqueStorage()._value = .setOption(newValue)}
}
public var initChain: AbciVendor_RequestInitChain {
get {
if case .initChain(let v)? = _storage._value {return v}
return AbciVendor_RequestInitChain()
}
set {_uniqueStorage()._value = .initChain(newValue)}
}
public var query: AbciVendor_RequestQuery {
get {
if case .query(let v)? = _storage._value {return v}
return AbciVendor_RequestQuery()
}
set {_uniqueStorage()._value = .query(newValue)}
}
public var beginBlock: AbciVendor_RequestBeginBlock {
get {
if case .beginBlock(let v)? = _storage._value {return v}
return AbciVendor_RequestBeginBlock()
}
set {_uniqueStorage()._value = .beginBlock(newValue)}
}
public var checkTx: AbciVendor_RequestCheckTx {
get {
if case .checkTx(let v)? = _storage._value {return v}
return AbciVendor_RequestCheckTx()
}
set {_uniqueStorage()._value = .checkTx(newValue)}
}
public var deliverTx: AbciVendor_RequestDeliverTx {
get {
if case .deliverTx(let v)? = _storage._value {return v}
return AbciVendor_RequestDeliverTx()
}
set {_uniqueStorage()._value = .deliverTx(newValue)}
}
public var endBlock: AbciVendor_RequestEndBlock {
get {
if case .endBlock(let v)? = _storage._value {return v}
return AbciVendor_RequestEndBlock()
}
set {_uniqueStorage()._value = .endBlock(newValue)}
}
public var commit: AbciVendor_RequestCommit {
get {
if case .commit(let v)? = _storage._value {return v}
return AbciVendor_RequestCommit()
}
set {_uniqueStorage()._value = .commit(newValue)}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public enum OneOf_Value: Equatable {
case echo(AbciVendor_RequestEcho)
case flush(AbciVendor_RequestFlush)
case info(AbciVendor_RequestInfo)
case setOption(AbciVendor_RequestSetOption)
case initChain(AbciVendor_RequestInitChain)
case query(AbciVendor_RequestQuery)
case beginBlock(AbciVendor_RequestBeginBlock)
case checkTx(AbciVendor_RequestCheckTx)
case deliverTx(AbciVendor_RequestDeliverTx)
case endBlock(AbciVendor_RequestEndBlock)
case commit(AbciVendor_RequestCommit)
#if !swift(>=4.1)
public static func ==(lhs: AbciVendor_Request.OneOf_Value, rhs: AbciVendor_Request.OneOf_Value) -> Bool {
switch (lhs, rhs) {
case (.echo(let l), .echo(let r)): return l == r
case (.flush(let l), .flush(let r)): return l == r
case (.info(let l), .info(let r)): return l == r
case (.setOption(let l), .setOption(let r)): return l == r
case (.initChain(let l), .initChain(let r)): return l == r
case (.query(let l), .query(let r)): return l == r
case (.beginBlock(let l), .beginBlock(let r)): return l == r
case (.checkTx(let l), .checkTx(let r)): return l == r
case (.deliverTx(let l), .deliverTx(let r)): return l == r
case (.endBlock(let l), .endBlock(let r)): return l == r
case (.commit(let l), .commit(let r)): return l == r
default: return false
}
}
#endif
}
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// nondeterministic
public struct AbciVendor_ResponseException {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var error: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseEcho {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var message: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseFlush {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseInfo {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var data: String = String()
public var version: String = String()
public var appVersion: UInt64 = 0
public var lastBlockHeight: Int64 = 0
public var lastBlockAppHash: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
/// nondeterministic
public struct AbciVendor_ResponseSetOption {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: UInt32 = 0
/// bytes data = 2;
public var log: String = String()
public var info: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseInitChain {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var consensusParams: AbciVendor_ConsensusParams {
get {return _storage._consensusParams ?? AbciVendor_ConsensusParams()}
set {_uniqueStorage()._consensusParams = newValue}
}
/// Returns true if `consensusParams` has been explicitly set.
public var hasConsensusParams: Bool {return _storage._consensusParams != nil}
/// Clears the value of `consensusParams`. Subsequent reads from it will return its default value.
public mutating func clearConsensusParams() {_uniqueStorage()._consensusParams = nil}
public var validators: [AbciVendor_ValidatorUpdate] {
get {return _storage._validators}
set {_uniqueStorage()._validators = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_ResponseQuery {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: UInt32 {
get {return _storage._code}
set {_uniqueStorage()._code = newValue}
}
/// bytes data = 2; // use "value" instead.
public var log: String {
get {return _storage._log}
set {_uniqueStorage()._log = newValue}
}
/// nondeterministic
public var info: String {
get {return _storage._info}
set {_uniqueStorage()._info = newValue}
}
public var index: Int64 {
get {return _storage._index}
set {_uniqueStorage()._index = newValue}
}
public var key: Data {
get {return _storage._key}
set {_uniqueStorage()._key = newValue}
}
public var value: Data {
get {return _storage._value}
set {_uniqueStorage()._value = newValue}
}
public var proof: AbciVendor_Proof {
get {return _storage._proof ?? AbciVendor_Proof()}
set {_uniqueStorage()._proof = newValue}
}
/// Returns true if `proof` has been explicitly set.
public var hasProof: Bool {return _storage._proof != nil}
/// Clears the value of `proof`. Subsequent reads from it will return its default value.
public mutating func clearProof() {_uniqueStorage()._proof = nil}
public var height: Int64 {
get {return _storage._height}
set {_uniqueStorage()._height = newValue}
}
public var codespace: String {
get {return _storage._codespace}
set {_uniqueStorage()._codespace = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_ResponseBeginBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var events: [AbciVendor_Event] = []
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseCheckTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: UInt32 = 0
public var data: Data = SwiftProtobuf.Internal.emptyData
/// nondeterministic
public var log: String = String()
/// nondeterministic
public var info: String = String()
public var gasWanted: Int64 = 0
public var gasUsed: Int64 = 0
public var events: [AbciVendor_Event] = []
public var codespace: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseDeliverTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var code: UInt32 = 0
public var data: Data = SwiftProtobuf.Internal.emptyData
/// nondeterministic
public var log: String = String()
/// nondeterministic
public var info: String = String()
public var gasWanted: Int64 = 0
public var gasUsed: Int64 = 0
public var events: [AbciVendor_Event] = []
public var codespace: String = String()
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseEndBlock {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var validatorUpdates: [AbciVendor_ValidatorUpdate] {
get {return _storage._validatorUpdates}
set {_uniqueStorage()._validatorUpdates = newValue}
}
public var consensusParamUpdates: AbciVendor_ConsensusParams {
get {return _storage._consensusParamUpdates ?? AbciVendor_ConsensusParams()}
set {_uniqueStorage()._consensusParamUpdates = newValue}
}
/// Returns true if `consensusParamUpdates` has been explicitly set.
public var hasConsensusParamUpdates: Bool {return _storage._consensusParamUpdates != nil}
/// Clears the value of `consensusParamUpdates`. Subsequent reads from it will return its default value.
public mutating func clearConsensusParamUpdates() {_uniqueStorage()._consensusParamUpdates = nil}
public var events: [AbciVendor_Event] {
get {return _storage._events}
set {_uniqueStorage()._events = newValue}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
public struct AbciVendor_ResponseCommit {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// reserve 1
public var data: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_Response {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var value: OneOf_Value? {
get {return _storage._value}
set {_uniqueStorage()._value = newValue}
}
public var exception: AbciVendor_ResponseException {
get {
if case .exception(let v)? = _storage._value {return v}
return AbciVendor_ResponseException()
}
set {_uniqueStorage()._value = .exception(newValue)}
}
public var echo: AbciVendor_ResponseEcho {
get {
if case .echo(let v)? = _storage._value {return v}
return AbciVendor_ResponseEcho()
}
set {_uniqueStorage()._value = .echo(newValue)}
}
public var flush: AbciVendor_ResponseFlush {
get {
if case .flush(let v)? = _storage._value {return v}
return AbciVendor_ResponseFlush()
}
set {_uniqueStorage()._value = .flush(newValue)}
}
public var info: AbciVendor_ResponseInfo {
get {
if case .info(let v)? = _storage._value {return v}
return AbciVendor_ResponseInfo()
}
set {_uniqueStorage()._value = .info(newValue)}
}
public var setOption: AbciVendor_ResponseSetOption {
get {
if case .setOption(let v)? = _storage._value {return v}
return AbciVendor_ResponseSetOption()
}
set {_uniqueStorage()._value = .setOption(newValue)}
}
public var initChain: AbciVendor_ResponseInitChain {
get {
if case .initChain(let v)? = _storage._value {return v}
return AbciVendor_ResponseInitChain()
}
set {_uniqueStorage()._value = .initChain(newValue)}
}
public var query: AbciVendor_ResponseQuery {
get {
if case .query(let v)? = _storage._value {return v}
return AbciVendor_ResponseQuery()
}
set {_uniqueStorage()._value = .query(newValue)}
}
public var beginBlock: AbciVendor_ResponseBeginBlock {
get {
if case .beginBlock(let v)? = _storage._value {return v}
return AbciVendor_ResponseBeginBlock()
}
set {_uniqueStorage()._value = .beginBlock(newValue)}
}
public var checkTx: AbciVendor_ResponseCheckTx {
get {
if case .checkTx(let v)? = _storage._value {return v}
return AbciVendor_ResponseCheckTx()
}
set {_uniqueStorage()._value = .checkTx(newValue)}
}
public var deliverTx: AbciVendor_ResponseDeliverTx {
get {
if case .deliverTx(let v)? = _storage._value {return v}
return AbciVendor_ResponseDeliverTx()
}
set {_uniqueStorage()._value = .deliverTx(newValue)}
}
public var endBlock: AbciVendor_ResponseEndBlock {
get {
if case .endBlock(let v)? = _storage._value {return v}
return AbciVendor_ResponseEndBlock()
}
set {_uniqueStorage()._value = .endBlock(newValue)}
}
public var commit: AbciVendor_ResponseCommit {
get {
if case .commit(let v)? = _storage._value {return v}
return AbciVendor_ResponseCommit()
}
set {_uniqueStorage()._value = .commit(newValue)}
}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public enum OneOf_Value: Equatable {
case exception(AbciVendor_ResponseException)
case echo(AbciVendor_ResponseEcho)
case flush(AbciVendor_ResponseFlush)
case info(AbciVendor_ResponseInfo)
case setOption(AbciVendor_ResponseSetOption)
case initChain(AbciVendor_ResponseInitChain)
case query(AbciVendor_ResponseQuery)
case beginBlock(AbciVendor_ResponseBeginBlock)
case checkTx(AbciVendor_ResponseCheckTx)
case deliverTx(AbciVendor_ResponseDeliverTx)
case endBlock(AbciVendor_ResponseEndBlock)
case commit(AbciVendor_ResponseCommit)
#if !swift(>=4.1)
public static func ==(lhs: AbciVendor_Response.OneOf_Value, rhs: AbciVendor_Response.OneOf_Value) -> Bool {
switch (lhs, rhs) {
case (.exception(let l), .exception(let r)): return l == r
case (.echo(let l), .echo(let r)): return l == r
case (.flush(let l), .flush(let r)): return l == r
case (.info(let l), .info(let r)): return l == r
case (.setOption(let l), .setOption(let r)): return l == r
case (.initChain(let l), .initChain(let r)): return l == r
case (.query(let l), .query(let r)): return l == r
case (.beginBlock(let l), .beginBlock(let r)): return l == r
case (.checkTx(let l), .checkTx(let r)): return l == r
case (.deliverTx(let l), .deliverTx(let r)): return l == r
case (.endBlock(let l), .endBlock(let r)): return l == r
case (.commit(let l), .commit(let r)): return l == r
default: return false
}
}
#endif
}
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
/// ================================================================
/// import "github.com/tendermint/tendermint/rpc/grpc/proto";
/// NOTE: gogoproto related attributes on each field is removed, since we are
/// using elixir
/// ================================================================
public struct AbciVendor_RequestPing {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_RequestBroadcastTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var tx: Data = SwiftProtobuf.Internal.emptyData
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponsePing {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
}
public struct AbciVendor_ResponseBroadcastTx {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
public var checkTx: AbciVendor_ResponseCheckTx {
get {return _storage._checkTx ?? AbciVendor_ResponseCheckTx()}
set {_uniqueStorage()._checkTx = newValue}
}
/// Returns true if `checkTx` has been explicitly set.
public var hasCheckTx: Bool {return _storage._checkTx != nil}
/// Clears the value of `checkTx`. Subsequent reads from it will return its default value.
public mutating func clearCheckTx() {_uniqueStorage()._checkTx = nil}
public var deliverTx: AbciVendor_ResponseDeliverTx {
get {return _storage._deliverTx ?? AbciVendor_ResponseDeliverTx()}
set {_uniqueStorage()._deliverTx = newValue}
}
/// Returns true if `deliverTx` has been explicitly set.
public var hasDeliverTx: Bool {return _storage._deliverTx != nil}
/// Clears the value of `deliverTx`. Subsequent reads from it will return its default value.
public mutating func clearDeliverTx() {_uniqueStorage()._deliverTx = nil}
public var unknownFields = SwiftProtobuf.UnknownStorage()
public init() {}
fileprivate var _storage = _StorageClass.defaultInstance
}
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "abci_vendor"
extension AbciVendor_KVPair: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".KVPair"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "key"),
2: .same(proto: "value"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &self.key)
case 2: try decoder.decodeSingularBytesField(value: &self.value)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.key.isEmpty {
try visitor.visitSingularBytesField(value: self.key, fieldNumber: 1)
}
if !self.value.isEmpty {
try visitor.visitSingularBytesField(value: self.value, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_KVPair, rhs: AbciVendor_KVPair) -> Bool {
if lhs.key != rhs.key {return false}
if lhs.value != rhs.value {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ProofOp: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ProofOp"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "type"),
2: .same(proto: "key"),
3: .same(proto: "data"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.type)
case 2: try decoder.decodeSingularBytesField(value: &self.key)
case 3: try decoder.decodeSingularBytesField(value: &self.data)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.type.isEmpty {
try visitor.visitSingularStringField(value: self.type, fieldNumber: 1)
}
if !self.key.isEmpty {
try visitor.visitSingularBytesField(value: self.key, fieldNumber: 2)
}
if !self.data.isEmpty {
try visitor.visitSingularBytesField(value: self.data, fieldNumber: 3)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ProofOp, rhs: AbciVendor_ProofOp) -> Bool {
if lhs.type != rhs.type {return false}
if lhs.key != rhs.key {return false}
if lhs.data != rhs.data {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Proof: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Proof"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "ops"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeRepeatedMessageField(value: &self.ops)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.ops.isEmpty {
try visitor.visitRepeatedMessageField(value: self.ops, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Proof, rhs: AbciVendor_Proof) -> Bool {
if lhs.ops != rhs.ops {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_BlockParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".BlockParams"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "max_bytes"),
2: .standard(proto: "max_gas"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt64Field(value: &self.maxBytes)
case 2: try decoder.decodeSingularInt64Field(value: &self.maxGas)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.maxBytes != 0 {
try visitor.visitSingularInt64Field(value: self.maxBytes, fieldNumber: 1)
}
if self.maxGas != 0 {
try visitor.visitSingularInt64Field(value: self.maxGas, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_BlockParams, rhs: AbciVendor_BlockParams) -> Bool {
if lhs.maxBytes != rhs.maxBytes {return false}
if lhs.maxGas != rhs.maxGas {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_EvidenceParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".EvidenceParams"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "max_age"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt64Field(value: &self.maxAge)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.maxAge != 0 {
try visitor.visitSingularInt64Field(value: self.maxAge, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_EvidenceParams, rhs: AbciVendor_EvidenceParams) -> Bool {
if lhs.maxAge != rhs.maxAge {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ValidatorParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ValidatorParams"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "pub_key_types"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeRepeatedStringField(value: &self.pubKeyTypes)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.pubKeyTypes.isEmpty {
try visitor.visitRepeatedStringField(value: self.pubKeyTypes, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ValidatorParams, rhs: AbciVendor_ValidatorParams) -> Bool {
if lhs.pubKeyTypes != rhs.pubKeyTypes {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ConsensusParams: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ConsensusParams"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "block"),
2: .same(proto: "evidence"),
3: .same(proto: "validator"),
]
fileprivate class _StorageClass {
var _block: AbciVendor_BlockParams? = nil
var _evidence: AbciVendor_EvidenceParams? = nil
var _validator: AbciVendor_ValidatorParams? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_block = source._block
_evidence = source._evidence
_validator = source._validator
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._block)
case 2: try decoder.decodeSingularMessageField(value: &_storage._evidence)
case 3: try decoder.decodeSingularMessageField(value: &_storage._validator)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._block {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if let v = _storage._evidence {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if let v = _storage._validator {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ConsensusParams, rhs: AbciVendor_ConsensusParams) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._block != rhs_storage._block {return false}
if _storage._evidence != rhs_storage._evidence {return false}
if _storage._validator != rhs_storage._validator {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_LastCommitInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".LastCommitInfo"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "round"),
2: .same(proto: "votes"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.round)
case 2: try decoder.decodeRepeatedMessageField(value: &self.votes)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.round != 0 {
try visitor.visitSingularInt32Field(value: self.round, fieldNumber: 1)
}
if !self.votes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.votes, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_LastCommitInfo, rhs: AbciVendor_LastCommitInfo) -> Bool {
if lhs.round != rhs.round {return false}
if lhs.votes != rhs.votes {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Event: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Event"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "type"),
2: .same(proto: "attributes"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.type)
case 2: try decoder.decodeRepeatedMessageField(value: &self.attributes)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.type.isEmpty {
try visitor.visitSingularStringField(value: self.type, fieldNumber: 1)
}
if !self.attributes.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attributes, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Event, rhs: AbciVendor_Event) -> Bool {
if lhs.type != rhs.type {return false}
if lhs.attributes != rhs.attributes {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Version: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Version"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "Block"),
2: .same(proto: "App"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularUInt64Field(value: &self.block)
case 2: try decoder.decodeSingularUInt64Field(value: &self.app)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.block != 0 {
try visitor.visitSingularUInt64Field(value: self.block, fieldNumber: 1)
}
if self.app != 0 {
try visitor.visitSingularUInt64Field(value: self.app, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Version, rhs: AbciVendor_Version) -> Bool {
if lhs.block != rhs.block {return false}
if lhs.app != rhs.app {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_BlockID: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".BlockID"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hash"),
2: .standard(proto: "parts_header"),
]
fileprivate class _StorageClass {
var _hash: Data = SwiftProtobuf.Internal.emptyData
var _partsHeader: AbciVendor_PartSetHeader? = nil
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_hash = source._hash
_partsHeader = source._partsHeader
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &_storage._hash)
case 2: try decoder.decodeSingularMessageField(value: &_storage._partsHeader)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if !_storage._hash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._hash, fieldNumber: 1)
}
if let v = _storage._partsHeader {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_BlockID, rhs: AbciVendor_BlockID) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._hash != rhs_storage._hash {return false}
if _storage._partsHeader != rhs_storage._partsHeader {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_PartSetHeader: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".PartSetHeader"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "total"),
2: .same(proto: "hash"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt32Field(value: &self.total)
case 2: try decoder.decodeSingularBytesField(value: &self.hash)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.total != 0 {
try visitor.visitSingularInt32Field(value: self.total, fieldNumber: 1)
}
if !self.hash.isEmpty {
try visitor.visitSingularBytesField(value: self.hash, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_PartSetHeader, rhs: AbciVendor_PartSetHeader) -> Bool {
if lhs.total != rhs.total {return false}
if lhs.hash != rhs.hash {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Validator: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Validator"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "address"),
3: .same(proto: "power"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &self.address)
case 3: try decoder.decodeSingularInt64Field(value: &self.power)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.address.isEmpty {
try visitor.visitSingularBytesField(value: self.address, fieldNumber: 1)
}
if self.power != 0 {
try visitor.visitSingularInt64Field(value: self.power, fieldNumber: 3)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Validator, rhs: AbciVendor_Validator) -> Bool {
if lhs.address != rhs.address {return false}
if lhs.power != rhs.power {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ValidatorUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ValidatorUpdate"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "pub_key"),
2: .same(proto: "power"),
]
fileprivate class _StorageClass {
var _pubKey: AbciVendor_PubKey? = nil
var _power: Int64 = 0
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_pubKey = source._pubKey
_power = source._power
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._pubKey)
case 2: try decoder.decodeSingularInt64Field(value: &_storage._power)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._pubKey {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if _storage._power != 0 {
try visitor.visitSingularInt64Field(value: _storage._power, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ValidatorUpdate, rhs: AbciVendor_ValidatorUpdate) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._pubKey != rhs_storage._pubKey {return false}
if _storage._power != rhs_storage._power {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_VoteInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".VoteInfo"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "validator"),
2: .standard(proto: "signed_last_block"),
]
fileprivate class _StorageClass {
var _validator: AbciVendor_Validator? = nil
var _signedLastBlock: Bool = false
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_validator = source._validator
_signedLastBlock = source._signedLastBlock
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._validator)
case 2: try decoder.decodeSingularBoolField(value: &_storage._signedLastBlock)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._validator {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if _storage._signedLastBlock != false {
try visitor.visitSingularBoolField(value: _storage._signedLastBlock, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_VoteInfo, rhs: AbciVendor_VoteInfo) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._validator != rhs_storage._validator {return false}
if _storage._signedLastBlock != rhs_storage._signedLastBlock {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_PubKey: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".PubKey"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "type"),
2: .same(proto: "data"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.type)
case 2: try decoder.decodeSingularBytesField(value: &self.data)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.type.isEmpty {
try visitor.visitSingularStringField(value: self.type, fieldNumber: 1)
}
if !self.data.isEmpty {
try visitor.visitSingularBytesField(value: self.data, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_PubKey, rhs: AbciVendor_PubKey) -> Bool {
if lhs.type != rhs.type {return false}
if lhs.data != rhs.data {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Evidence: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Evidence"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "type"),
2: .same(proto: "validator"),
3: .same(proto: "height"),
4: .same(proto: "time"),
5: .standard(proto: "total_voting_power"),
]
fileprivate class _StorageClass {
var _type: String = String()
var _validator: AbciVendor_Validator? = nil
var _height: Int64 = 0
var _time: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
var _totalVotingPower: Int64 = 0
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_type = source._type
_validator = source._validator
_height = source._height
_time = source._time
_totalVotingPower = source._totalVotingPower
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &_storage._type)
case 2: try decoder.decodeSingularMessageField(value: &_storage._validator)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._height)
case 4: try decoder.decodeSingularMessageField(value: &_storage._time)
case 5: try decoder.decodeSingularInt64Field(value: &_storage._totalVotingPower)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if !_storage._type.isEmpty {
try visitor.visitSingularStringField(value: _storage._type, fieldNumber: 1)
}
if let v = _storage._validator {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if _storage._height != 0 {
try visitor.visitSingularInt64Field(value: _storage._height, fieldNumber: 3)
}
if let v = _storage._time {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
}
if _storage._totalVotingPower != 0 {
try visitor.visitSingularInt64Field(value: _storage._totalVotingPower, fieldNumber: 5)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Evidence, rhs: AbciVendor_Evidence) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._type != rhs_storage._type {return false}
if _storage._validator != rhs_storage._validator {return false}
if _storage._height != rhs_storage._height {return false}
if _storage._time != rhs_storage._time {return false}
if _storage._totalVotingPower != rhs_storage._totalVotingPower {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Header: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Header"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "version"),
2: .standard(proto: "chain_id"),
3: .same(proto: "height"),
4: .same(proto: "time"),
5: .standard(proto: "num_txs"),
6: .standard(proto: "total_txs"),
7: .standard(proto: "last_block_id"),
8: .standard(proto: "last_commit_hash"),
9: .standard(proto: "data_hash"),
10: .standard(proto: "validators_hash"),
11: .standard(proto: "next_validators_hash"),
12: .standard(proto: "consensus_hash"),
13: .standard(proto: "app_hash"),
14: .standard(proto: "last_results_hash"),
15: .standard(proto: "evidence_hash"),
16: .standard(proto: "proposer_address"),
]
fileprivate class _StorageClass {
var _version: AbciVendor_Version? = nil
var _chainID: String = String()
var _height: Int64 = 0
var _time: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
var _numTxs: Int64 = 0
var _totalTxs: Int64 = 0
var _lastBlockID: AbciVendor_BlockID? = nil
var _lastCommitHash: Data = SwiftProtobuf.Internal.emptyData
var _dataHash: Data = SwiftProtobuf.Internal.emptyData
var _validatorsHash: Data = SwiftProtobuf.Internal.emptyData
var _nextValidatorsHash: Data = SwiftProtobuf.Internal.emptyData
var _consensusHash: Data = SwiftProtobuf.Internal.emptyData
var _appHash: Data = SwiftProtobuf.Internal.emptyData
var _lastResultsHash: Data = SwiftProtobuf.Internal.emptyData
var _evidenceHash: Data = SwiftProtobuf.Internal.emptyData
var _proposerAddress: Data = SwiftProtobuf.Internal.emptyData
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_version = source._version
_chainID = source._chainID
_height = source._height
_time = source._time
_numTxs = source._numTxs
_totalTxs = source._totalTxs
_lastBlockID = source._lastBlockID
_lastCommitHash = source._lastCommitHash
_dataHash = source._dataHash
_validatorsHash = source._validatorsHash
_nextValidatorsHash = source._nextValidatorsHash
_consensusHash = source._consensusHash
_appHash = source._appHash
_lastResultsHash = source._lastResultsHash
_evidenceHash = source._evidenceHash
_proposerAddress = source._proposerAddress
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._version)
case 2: try decoder.decodeSingularStringField(value: &_storage._chainID)
case 3: try decoder.decodeSingularInt64Field(value: &_storage._height)
case 4: try decoder.decodeSingularMessageField(value: &_storage._time)
case 5: try decoder.decodeSingularInt64Field(value: &_storage._numTxs)
case 6: try decoder.decodeSingularInt64Field(value: &_storage._totalTxs)
case 7: try decoder.decodeSingularMessageField(value: &_storage._lastBlockID)
case 8: try decoder.decodeSingularBytesField(value: &_storage._lastCommitHash)
case 9: try decoder.decodeSingularBytesField(value: &_storage._dataHash)
case 10: try decoder.decodeSingularBytesField(value: &_storage._validatorsHash)
case 11: try decoder.decodeSingularBytesField(value: &_storage._nextValidatorsHash)
case 12: try decoder.decodeSingularBytesField(value: &_storage._consensusHash)
case 13: try decoder.decodeSingularBytesField(value: &_storage._appHash)
case 14: try decoder.decodeSingularBytesField(value: &_storage._lastResultsHash)
case 15: try decoder.decodeSingularBytesField(value: &_storage._evidenceHash)
case 16: try decoder.decodeSingularBytesField(value: &_storage._proposerAddress)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._version {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !_storage._chainID.isEmpty {
try visitor.visitSingularStringField(value: _storage._chainID, fieldNumber: 2)
}
if _storage._height != 0 {
try visitor.visitSingularInt64Field(value: _storage._height, fieldNumber: 3)
}
if let v = _storage._time {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
}
if _storage._numTxs != 0 {
try visitor.visitSingularInt64Field(value: _storage._numTxs, fieldNumber: 5)
}
if _storage._totalTxs != 0 {
try visitor.visitSingularInt64Field(value: _storage._totalTxs, fieldNumber: 6)
}
if let v = _storage._lastBlockID {
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
}
if !_storage._lastCommitHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._lastCommitHash, fieldNumber: 8)
}
if !_storage._dataHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._dataHash, fieldNumber: 9)
}
if !_storage._validatorsHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._validatorsHash, fieldNumber: 10)
}
if !_storage._nextValidatorsHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._nextValidatorsHash, fieldNumber: 11)
}
if !_storage._consensusHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._consensusHash, fieldNumber: 12)
}
if !_storage._appHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._appHash, fieldNumber: 13)
}
if !_storage._lastResultsHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._lastResultsHash, fieldNumber: 14)
}
if !_storage._evidenceHash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._evidenceHash, fieldNumber: 15)
}
if !_storage._proposerAddress.isEmpty {
try visitor.visitSingularBytesField(value: _storage._proposerAddress, fieldNumber: 16)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Header, rhs: AbciVendor_Header) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._version != rhs_storage._version {return false}
if _storage._chainID != rhs_storage._chainID {return false}
if _storage._height != rhs_storage._height {return false}
if _storage._time != rhs_storage._time {return false}
if _storage._numTxs != rhs_storage._numTxs {return false}
if _storage._totalTxs != rhs_storage._totalTxs {return false}
if _storage._lastBlockID != rhs_storage._lastBlockID {return false}
if _storage._lastCommitHash != rhs_storage._lastCommitHash {return false}
if _storage._dataHash != rhs_storage._dataHash {return false}
if _storage._validatorsHash != rhs_storage._validatorsHash {return false}
if _storage._nextValidatorsHash != rhs_storage._nextValidatorsHash {return false}
if _storage._consensusHash != rhs_storage._consensusHash {return false}
if _storage._appHash != rhs_storage._appHash {return false}
if _storage._lastResultsHash != rhs_storage._lastResultsHash {return false}
if _storage._evidenceHash != rhs_storage._evidenceHash {return false}
if _storage._proposerAddress != rhs_storage._proposerAddress {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestEcho: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestEcho"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "message"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.message)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.message.isEmpty {
try visitor.visitSingularStringField(value: self.message, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestEcho, rhs: AbciVendor_RequestEcho) -> Bool {
if lhs.message != rhs.message {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestFlush: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestFlush"
public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let _ = try decoder.nextFieldNumber() {
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestFlush, rhs: AbciVendor_RequestFlush) -> Bool {
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestInfo"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "version"),
2: .standard(proto: "block_version"),
3: .standard(proto: "p2p_version"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.version)
case 2: try decoder.decodeSingularUInt64Field(value: &self.blockVersion)
case 3: try decoder.decodeSingularUInt64Field(value: &self.p2PVersion)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.version.isEmpty {
try visitor.visitSingularStringField(value: self.version, fieldNumber: 1)
}
if self.blockVersion != 0 {
try visitor.visitSingularUInt64Field(value: self.blockVersion, fieldNumber: 2)
}
if self.p2PVersion != 0 {
try visitor.visitSingularUInt64Field(value: self.p2PVersion, fieldNumber: 3)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestInfo, rhs: AbciVendor_RequestInfo) -> Bool {
if lhs.version != rhs.version {return false}
if lhs.blockVersion != rhs.blockVersion {return false}
if lhs.p2PVersion != rhs.p2PVersion {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestSetOption: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestSetOption"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "key"),
2: .same(proto: "value"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.key)
case 2: try decoder.decodeSingularStringField(value: &self.value)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.key.isEmpty {
try visitor.visitSingularStringField(value: self.key, fieldNumber: 1)
}
if !self.value.isEmpty {
try visitor.visitSingularStringField(value: self.value, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestSetOption, rhs: AbciVendor_RequestSetOption) -> Bool {
if lhs.key != rhs.key {return false}
if lhs.value != rhs.value {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestInitChain: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestInitChain"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "time"),
2: .standard(proto: "chain_id"),
3: .standard(proto: "consensus_params"),
4: .same(proto: "validators"),
5: .standard(proto: "app_state_bytes"),
]
fileprivate class _StorageClass {
var _time: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
var _chainID: String = String()
var _consensusParams: AbciVendor_ConsensusParams? = nil
var _validators: [AbciVendor_ValidatorUpdate] = []
var _appStateBytes: Data = SwiftProtobuf.Internal.emptyData
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_time = source._time
_chainID = source._chainID
_consensusParams = source._consensusParams
_validators = source._validators
_appStateBytes = source._appStateBytes
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._time)
case 2: try decoder.decodeSingularStringField(value: &_storage._chainID)
case 3: try decoder.decodeSingularMessageField(value: &_storage._consensusParams)
case 4: try decoder.decodeRepeatedMessageField(value: &_storage._validators)
case 5: try decoder.decodeSingularBytesField(value: &_storage._appStateBytes)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._time {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !_storage._chainID.isEmpty {
try visitor.visitSingularStringField(value: _storage._chainID, fieldNumber: 2)
}
if let v = _storage._consensusParams {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
if !_storage._validators.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._validators, fieldNumber: 4)
}
if !_storage._appStateBytes.isEmpty {
try visitor.visitSingularBytesField(value: _storage._appStateBytes, fieldNumber: 5)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestInitChain, rhs: AbciVendor_RequestInitChain) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._time != rhs_storage._time {return false}
if _storage._chainID != rhs_storage._chainID {return false}
if _storage._consensusParams != rhs_storage._consensusParams {return false}
if _storage._validators != rhs_storage._validators {return false}
if _storage._appStateBytes != rhs_storage._appStateBytes {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestQuery"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "data"),
2: .same(proto: "path"),
3: .same(proto: "height"),
4: .same(proto: "prove"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &self.data)
case 2: try decoder.decodeSingularStringField(value: &self.path)
case 3: try decoder.decodeSingularInt64Field(value: &self.height)
case 4: try decoder.decodeSingularBoolField(value: &self.prove)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.data.isEmpty {
try visitor.visitSingularBytesField(value: self.data, fieldNumber: 1)
}
if !self.path.isEmpty {
try visitor.visitSingularStringField(value: self.path, fieldNumber: 2)
}
if self.height != 0 {
try visitor.visitSingularInt64Field(value: self.height, fieldNumber: 3)
}
if self.prove != false {
try visitor.visitSingularBoolField(value: self.prove, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestQuery, rhs: AbciVendor_RequestQuery) -> Bool {
if lhs.data != rhs.data {return false}
if lhs.path != rhs.path {return false}
if lhs.height != rhs.height {return false}
if lhs.prove != rhs.prove {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestBeginBlock: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestBeginBlock"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "hash"),
2: .same(proto: "header"),
3: .standard(proto: "last_commit_info"),
4: .standard(proto: "byzantine_validators"),
]
fileprivate class _StorageClass {
var _hash: Data = SwiftProtobuf.Internal.emptyData
var _header: AbciVendor_Header? = nil
var _lastCommitInfo: AbciVendor_LastCommitInfo? = nil
var _byzantineValidators: [AbciVendor_Evidence] = []
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_hash = source._hash
_header = source._header
_lastCommitInfo = source._lastCommitInfo
_byzantineValidators = source._byzantineValidators
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &_storage._hash)
case 2: try decoder.decodeSingularMessageField(value: &_storage._header)
case 3: try decoder.decodeSingularMessageField(value: &_storage._lastCommitInfo)
case 4: try decoder.decodeRepeatedMessageField(value: &_storage._byzantineValidators)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if !_storage._hash.isEmpty {
try visitor.visitSingularBytesField(value: _storage._hash, fieldNumber: 1)
}
if let v = _storage._header {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if let v = _storage._lastCommitInfo {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
if !_storage._byzantineValidators.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._byzantineValidators, fieldNumber: 4)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestBeginBlock, rhs: AbciVendor_RequestBeginBlock) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._hash != rhs_storage._hash {return false}
if _storage._header != rhs_storage._header {return false}
if _storage._lastCommitInfo != rhs_storage._lastCommitInfo {return false}
if _storage._byzantineValidators != rhs_storage._byzantineValidators {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestCheckTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestCheckTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "tx"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &self.tx)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.tx.isEmpty {
try visitor.visitSingularBytesField(value: self.tx, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestCheckTx, rhs: AbciVendor_RequestCheckTx) -> Bool {
if lhs.tx != rhs.tx {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestDeliverTx: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestDeliverTx"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "tx"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularBytesField(value: &self.tx)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.tx.isEmpty {
try visitor.visitSingularBytesField(value: self.tx, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestDeliverTx, rhs: AbciVendor_RequestDeliverTx) -> Bool {
if lhs.tx != rhs.tx {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestEndBlock: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestEndBlock"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "height"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularInt64Field(value: &self.height)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.height != 0 {
try visitor.visitSingularInt64Field(value: self.height, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestEndBlock, rhs: AbciVendor_RequestEndBlock) -> Bool {
if lhs.height != rhs.height {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_RequestCommit: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".RequestCommit"
public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let _ = try decoder.nextFieldNumber() {
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_RequestCommit, rhs: AbciVendor_RequestCommit) -> Bool {
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_Request: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".Request"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2: .same(proto: "echo"),
3: .same(proto: "flush"),
4: .same(proto: "info"),
5: .standard(proto: "set_option"),
6: .standard(proto: "init_chain"),
7: .same(proto: "query"),
8: .standard(proto: "begin_block"),
9: .standard(proto: "check_tx"),
19: .standard(proto: "deliver_tx"),
11: .standard(proto: "end_block"),
12: .same(proto: "commit"),
]
fileprivate class _StorageClass {
var _value: AbciVendor_Request.OneOf_Value?
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_value = source._value
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 2:
var v: AbciVendor_RequestEcho?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .echo(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .echo(v)}
case 3:
var v: AbciVendor_RequestFlush?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .flush(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .flush(v)}
case 4:
var v: AbciVendor_RequestInfo?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .info(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .info(v)}
case 5:
var v: AbciVendor_RequestSetOption?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .setOption(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .setOption(v)}
case 6:
var v: AbciVendor_RequestInitChain?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .initChain(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .initChain(v)}
case 7:
var v: AbciVendor_RequestQuery?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .query(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .query(v)}
case 8:
var v: AbciVendor_RequestBeginBlock?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .beginBlock(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .beginBlock(v)}
case 9:
var v: AbciVendor_RequestCheckTx?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .checkTx(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .checkTx(v)}
case 11:
var v: AbciVendor_RequestEndBlock?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .endBlock(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .endBlock(v)}
case 12:
var v: AbciVendor_RequestCommit?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .commit(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .commit(v)}
case 19:
var v: AbciVendor_RequestDeliverTx?
if let current = _storage._value {
try decoder.handleConflictingOneOf()
if case .deliverTx(let m) = current {v = m}
}
try decoder.decodeSingularMessageField(value: &v)
if let v = v {_storage._value = .deliverTx(v)}
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
switch _storage._value {
case .echo(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
case .flush(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
case .info(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
case .setOption(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
case .initChain(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
case .query(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
case .beginBlock(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
case .checkTx(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
case .endBlock(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 11)
case .commit(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 12)
case .deliverTx(let v)?:
try visitor.visitSingularMessageField(value: v, fieldNumber: 19)
case nil: break
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_Request, rhs: AbciVendor_Request) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._value != rhs_storage._value {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseException: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseException"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "error"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.error)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.error.isEmpty {
try visitor.visitSingularStringField(value: self.error, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseException, rhs: AbciVendor_ResponseException) -> Bool {
if lhs.error != rhs.error {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseEcho: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseEcho"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "message"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.message)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.message.isEmpty {
try visitor.visitSingularStringField(value: self.message, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseEcho, rhs: AbciVendor_ResponseEcho) -> Bool {
if lhs.message != rhs.message {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseFlush: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseFlush"
public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let _ = try decoder.nextFieldNumber() {
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseFlush, rhs: AbciVendor_ResponseFlush) -> Bool {
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseInfo"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "data"),
2: .same(proto: "version"),
3: .standard(proto: "app_version"),
4: .standard(proto: "last_block_height"),
5: .standard(proto: "last_block_app_hash"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.data)
case 2: try decoder.decodeSingularStringField(value: &self.version)
case 3: try decoder.decodeSingularUInt64Field(value: &self.appVersion)
case 4: try decoder.decodeSingularInt64Field(value: &self.lastBlockHeight)
case 5: try decoder.decodeSingularBytesField(value: &self.lastBlockAppHash)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.data.isEmpty {
try visitor.visitSingularStringField(value: self.data, fieldNumber: 1)
}
if !self.version.isEmpty {
try visitor.visitSingularStringField(value: self.version, fieldNumber: 2)
}
if self.appVersion != 0 {
try visitor.visitSingularUInt64Field(value: self.appVersion, fieldNumber: 3)
}
if self.lastBlockHeight != 0 {
try visitor.visitSingularInt64Field(value: self.lastBlockHeight, fieldNumber: 4)
}
if !self.lastBlockAppHash.isEmpty {
try visitor.visitSingularBytesField(value: self.lastBlockAppHash, fieldNumber: 5)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseInfo, rhs: AbciVendor_ResponseInfo) -> Bool {
if lhs.data != rhs.data {return false}
if lhs.version != rhs.version {return false}
if lhs.appVersion != rhs.appVersion {return false}
if lhs.lastBlockHeight != rhs.lastBlockHeight {return false}
if lhs.lastBlockAppHash != rhs.lastBlockAppHash {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseSetOption: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseSetOption"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
3: .same(proto: "log"),
4: .same(proto: "info"),
]
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularUInt32Field(value: &self.code)
case 3: try decoder.decodeSingularStringField(value: &self.log)
case 4: try decoder.decodeSingularStringField(value: &self.info)
default: break
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if self.code != 0 {
try visitor.visitSingularUInt32Field(value: self.code, fieldNumber: 1)
}
if !self.log.isEmpty {
try visitor.visitSingularStringField(value: self.log, fieldNumber: 3)
}
if !self.info.isEmpty {
try visitor.visitSingularStringField(value: self.info, fieldNumber: 4)
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseSetOption, rhs: AbciVendor_ResponseSetOption) -> Bool {
if lhs.code != rhs.code {return false}
if lhs.log != rhs.log {return false}
if lhs.info != rhs.info {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseInitChain: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseInitChain"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "consensus_params"),
2: .same(proto: "validators"),
]
fileprivate class _StorageClass {
var _consensusParams: AbciVendor_ConsensusParams? = nil
var _validators: [AbciVendor_ValidatorUpdate] = []
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_consensusParams = source._consensusParams
_validators = source._validators
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &_storage._consensusParams)
case 2: try decoder.decodeRepeatedMessageField(value: &_storage._validators)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if let v = _storage._consensusParams {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !_storage._validators.isEmpty {
try visitor.visitRepeatedMessageField(value: _storage._validators, fieldNumber: 2)
}
}
try unknownFields.traverse(visitor: &visitor)
}
public static func ==(lhs: AbciVendor_ResponseInitChain, rhs: AbciVendor_ResponseInitChain) -> Bool {
if lhs._storage !== rhs._storage {
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
let _storage = _args.0
let rhs_storage = _args.1
if _storage._consensusParams != rhs_storage._consensusParams {return false}
if _storage._validators != rhs_storage._validators {return false}
return true
}
if !storagesAreEqual {return false}
}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension AbciVendor_ResponseQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".ResponseQuery"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "code"),
3: .same(proto: "log"),
4: .same(proto: "info"),
5: .same(proto: "index"),
6: .same(proto: "key"),
7: .same(proto: "value"),
8: .same(proto: "proof"),
9: .same(proto: "height"),
10: .same(proto: "codespace"),
]
fileprivate class _StorageClass {
var _code: UInt32 = 0
var _log: String = String()
var _info: String = String()
var _index: Int64 = 0
var _key: Data = SwiftProtobuf.Internal.emptyData
var _value: Data = SwiftProtobuf.Internal.emptyData
var _proof: AbciVendor_Proof? = nil
var _height: Int64 = 0
var _codespace: String = String()
static let defaultInstance = _StorageClass()
private init() {}
init(copying source: _StorageClass) {
_code = source._code
_log = source._log
_info = source._info
_index = source._index
_key = source._key
_value = source._value
_proof = source._proof
_height = source._height
_codespace = source._codespace
}
}
fileprivate mutating func _uniqueStorage() -> _StorageClass {
if !isKnownUniquelyReferenced(&_storage) {
_storage = _StorageClass(copying: _storage)
}
return _storage
}
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
_ = _uniqueStorage()
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularUInt32Field(value: &_storage._code)
case 3: try decoder.decodeSingularStringField(value: &_storage._log)
case 4: try decoder.decodeSingularStringField(value: &_storage._info)
case 5: try decoder.decodeSingularInt64Field(value: &_storage._index)
case 6: try decoder.decodeSingularBytesField(value: &_storage._key)
case 7: try decoder.decodeSingularBytesField(value: &_storage._value)
case 8: try decoder.decodeSingularMessageField(value: &_storage._proof)
case 9: try decoder.decodeSingularInt64Field(value: &_storage._height)
case 10: try decoder.decodeSingularStringField(value: &_storage._codespace)
default: break
}
}
}
}
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
if _storage._code != 0 {
try visitor.visitSingularUInt32Field(value: _storage._code, fieldNumber: 1)
}
if !_storage._log.isEmpty {
try visitor.visitSingularStringField(value: _storage._log, fieldNumber: 3)
}
if !_storage._info.isEmpty {
try visitor.visitSingularStringField(value: _storage._info, fieldNumber: 4)
}
if _storage._index != 0 {
try visitor.visitSingularInt64Field(value: _storage._index, fieldNumber: 5)
}
if !_storage._key.isEmpty {