blob: 482247afb1e1f58ebdaed6686dd7117433b8990a [file]
#ifndef PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_CONVERT_PROTO_H_
#define PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_CONVERT_PROTO_H_
#include "google/protobuf/timestamp.pb.h"
#include "action.pb.h"
#include "absl/status/status.h"
#include "absl/time/time.h"
namespace safepower_agent {
absl::Time ConvertTime(const google::protobuf::Timestamp& timestamp);
void SetTimestamp(google::protobuf::Timestamp& timestamp, absl::Time time);
void SetTimestampToNow(google::protobuf::Timestamp& timestamp);
void SetStatus(safepower_agent_proto::Status& status_proto,
const absl::Status& status);
} // namespace safepower_agent
#endif // PRODUCTION_BORG_MGMT_NODE_PROXY_SAFEPOWER_SAFEPOWER_AGENT_CONVERT_PROTO_H_