blob: ae93de33f4fd86c312cca7269cce48c879114094 [file] [log] [blame] [edit]
#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 "safepower_agent.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_