aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/interop/cast.h
blob: 4d2bc52b9232ebe47bbaa331711f8c38f0d5d21f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once 
 
#include <util/datetime/base.h> 
 
namespace google::protobuf { 
    class Duration; 
    class Timestamp; 
} 
 
namespace NProtoInterop { 
    google::protobuf::Duration CastToProto(TDuration duration); 
    google::protobuf::Timestamp CastToProto(TInstant instant); 
    TDuration CastFromProto(const google::protobuf::Duration& message); 
    TInstant CastFromProto(const google::protobuf::Timestamp& message); 
}