Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: common/logdog/protocol/types.pb.go

Issue 1272893004: LogDog: Update protobufs, add support library. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Update comment. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/logdog/protocol/types.proto ('k') | common/logdog/types/streamname.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/logdog/protocol/types.pb.go
diff --git a/common/logdog/protocol/types.pb.go b/common/logdog/protocol/types.pb.go
index 8b704bff09e5b989b8c026fb2c6cafe046032be1..ca2e1f72580620549275677ecd98aedc430d6333 100644
--- a/common/logdog/protocol/types.pb.go
+++ b/common/logdog/protocol/types.pb.go
@@ -13,12 +13,10 @@ var _ = math.Inf
//
// Timestamp is a message that represents a specific moment in time. All
-// Timestamps will be relative to epoch, meaning that their respective values
-// will be recorded as microseconds from UNIX epoch, defined as
-// 00:00:00 January 1, 1970 UTC.
+// Timestamps will be encoded as UTC.
type Timestamp struct {
- // The timestamp's value, in microseconds from epoch.
- UsFromEpoch *uint64 `protobuf:"varint,1,opt,name=us_from_epoch" json:"us_from_epoch,omitempty"`
+ // The timestamp's value, expressed as an RFC 3339 time string.
+ Value *string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
@@ -26,9 +24,37 @@ func (m *Timestamp) Reset() { *m = Timestamp{} }
func (m *Timestamp) String() string { return proto.CompactTextString(m) }
func (*Timestamp) ProtoMessage() {}
-func (m *Timestamp) GetUsFromEpoch() uint64 {
- if m != nil && m.UsFromEpoch != nil {
- return *m.UsFromEpoch
+func (m *Timestamp) GetValue() string {
+ if m != nil && m.Value != nil {
+ return *m.Value
+ }
+ return ""
+}
+
+//
+// TimeOffset is a message that represents a difference in time.
+type TimeOffset struct {
+ // The number of seconds in the offset.
+ Seconds *uint32 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"`
+ // The number of nanoseconds in the offset.
+ Nanoseconds *uint32 `protobuf:"varint,2,opt,name=nanoseconds" json:"nanoseconds,omitempty"`
+ XXX_unrecognized []byte `json:"-"`
+}
+
+func (m *TimeOffset) Reset() { *m = TimeOffset{} }
+func (m *TimeOffset) String() string { return proto.CompactTextString(m) }
+func (*TimeOffset) ProtoMessage() {}
+
+func (m *TimeOffset) GetSeconds() uint32 {
+ if m != nil && m.Seconds != nil {
+ return *m.Seconds
+ }
+ return 0
+}
+
+func (m *TimeOffset) GetNanoseconds() uint32 {
+ if m != nil && m.Nanoseconds != nil {
+ return *m.Nanoseconds
}
return 0
}
« no previous file with comments | « common/logdog/protocol/types.proto ('k') | common/logdog/types/streamname.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698