class UState::State include Beefcake::Message optional :time, :int64, 1 optional :state, :string, 2 optional :service, :string, 3 optional :host, :string, 4 optional :description, :string, 5 optional :metric_f, :float, 15 def metric @metric || metric_f end def metric=(m) @metric = m end end