cast.h 419 B

123456789101112131415
  1. #pragma once
  2. #include <util/datetime/base.h>
  3. namespace google::protobuf {
  4. class Duration;
  5. class Timestamp;
  6. }
  7. namespace NProtoInterop {
  8. google::protobuf::Duration CastToProto(TDuration duration);
  9. google::protobuf::Timestamp CastToProto(TInstant instant);
  10. TDuration CastFromProto(const google::protobuf::Duration& message);
  11. TInstant CastFromProto(const google::protobuf::Timestamp& message);
  12. }