etcd: make cmd a protobuf type