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

Side by Side 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, 3 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 unified diff | Download patch
« no previous file with comments | « common/logdog/protocol/types.proto ('k') | common/logdog/types/streamname.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Code generated by protoc-gen-go. 1 // Code generated by protoc-gen-go.
2 // source: types.proto 2 // source: types.proto
3 // DO NOT EDIT! 3 // DO NOT EDIT!
4 4
5 package protocol 5 package protocol
6 6
7 import proto "github.com/golang/protobuf/proto" 7 import proto "github.com/golang/protobuf/proto"
8 import math "math" 8 import math "math"
9 9
10 // Reference imports to suppress errors if they are not otherwise used. 10 // Reference imports to suppress errors if they are not otherwise used.
11 var _ = proto.Marshal 11 var _ = proto.Marshal
12 var _ = math.Inf 12 var _ = math.Inf
13 13
14 // 14 //
15 // Timestamp is a message that represents a specific moment in time. All 15 // Timestamp is a message that represents a specific moment in time. All
16 // Timestamps will be relative to epoch, meaning that their respective values 16 // Timestamps will be encoded as UTC.
17 // will be recorded as microseconds from UNIX epoch, defined as
18 // 00:00:00 January 1, 1970 UTC.
19 type Timestamp struct { 17 type Timestamp struct {
20 » // The timestamp's value, in microseconds from epoch. 18 » // The timestamp's value, expressed as an RFC 3339 time string.
21 » UsFromEpoch *uint64 `protobuf:"varint,1,opt,name=us_from_epoch" jso n:"us_from_epoch,omitempty"` 19 » Value *string `protobuf:"bytes,1,opt,name=value" json:"value, omitempty"`
22 XXX_unrecognized []byte `json:"-"` 20 XXX_unrecognized []byte `json:"-"`
23 } 21 }
24 22
25 func (m *Timestamp) Reset() { *m = Timestamp{} } 23 func (m *Timestamp) Reset() { *m = Timestamp{} }
26 func (m *Timestamp) String() string { return proto.CompactTextString(m) } 24 func (m *Timestamp) String() string { return proto.CompactTextString(m) }
27 func (*Timestamp) ProtoMessage() {} 25 func (*Timestamp) ProtoMessage() {}
28 26
29 func (m *Timestamp) GetUsFromEpoch() uint64 { 27 func (m *Timestamp) GetValue() string {
30 » if m != nil && m.UsFromEpoch != nil { 28 » if m != nil && m.Value != nil {
31 » » return *m.UsFromEpoch 29 » » return *m.Value
30 » }
31 » return ""
32 }
33
34 //
35 // TimeOffset is a message that represents a difference in time.
36 type TimeOffset struct {
37 » // The number of seconds in the offset.
38 » Seconds *uint32 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omit empty"`
39 » // The number of nanoseconds in the offset.
40 » Nanoseconds *uint32 `protobuf:"varint,2,opt,name=nanoseconds" json: "nanoseconds,omitempty"`
41 » XXX_unrecognized []byte `json:"-"`
42 }
43
44 func (m *TimeOffset) Reset() { *m = TimeOffset{} }
45 func (m *TimeOffset) String() string { return proto.CompactTextString(m) }
46 func (*TimeOffset) ProtoMessage() {}
47
48 func (m *TimeOffset) GetSeconds() uint32 {
49 » if m != nil && m.Seconds != nil {
50 » » return *m.Seconds
32 } 51 }
33 return 0 52 return 0
34 } 53 }
54
55 func (m *TimeOffset) GetNanoseconds() uint32 {
56 if m != nil && m.Nanoseconds != nil {
57 return *m.Nanoseconds
58 }
59 return 0
60 }
35 61
36 func init() { 62 func init() {
37 } 63 }
OLDNEW
« 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