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

Side by Side Diff: client/cipd/internal/messages/messages.pb.go

Issue 1870263002: cipd: instance cache (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: restore check, improve comment Created 4 years, 8 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 | « client/cipd/internal/messages/messages.proto ('k') | client/cmd/cipd/main.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: messages.proto 2 // source: messages.proto
3 // DO NOT EDIT! 3 // DO NOT EDIT!
4 4
5 /* 5 /*
6 Package messages is a generated protocol buffer package. 6 Package messages is a generated protocol buffer package.
7 7
8 It is generated from these files: 8 It is generated from these files:
9 messages.proto 9 messages.proto
10 10
11 It has these top-level messages: 11 It has these top-level messages:
12 BlobWithSHA1 12 BlobWithSHA1
13 TagCache 13 TagCache
14 InstanceCache
14 */ 15 */
15 package messages 16 package messages
16 17
17 import proto "github.com/golang/protobuf/proto" 18 import proto "github.com/golang/protobuf/proto"
18 import fmt "fmt" 19 import fmt "fmt"
19 import math "math" 20 import math "math"
21 import google_protobuf "github.com/luci/luci-go/common/proto/google"
20 22
21 // Reference imports to suppress errors if they are not otherwise used. 23 // Reference imports to suppress errors if they are not otherwise used.
22 var _ = proto.Marshal 24 var _ = proto.Marshal
23 var _ = fmt.Errorf 25 var _ = fmt.Errorf
24 var _ = math.Inf 26 var _ = math.Inf
25 27
26 // This is a compile-time assertion to ensure that this generated file 28 // This is a compile-time assertion to ensure that this generated file
27 // is compatible with the proto package it is being compiled against. 29 // is compatible with the proto package it is being compiled against.
28 const _ = proto.ProtoPackageIsVersion1 30 const _ = proto.ProtoPackageIsVersion1
29 31
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 Package string `protobuf:"bytes,1,opt,name=package" json:"package,omi tempty"` 64 Package string `protobuf:"bytes,1,opt,name=package" json:"package,omi tempty"`
63 Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"` 65 Tag string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
64 InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceI d" json:"instance_id,omitempty"` 66 InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceI d" json:"instance_id,omitempty"`
65 } 67 }
66 68
67 func (m *TagCache_Entry) Reset() { *m = TagCache_Entry{} } 69 func (m *TagCache_Entry) Reset() { *m = TagCache_Entry{} }
68 func (m *TagCache_Entry) String() string { return proto.CompactTextSt ring(m) } 70 func (m *TagCache_Entry) String() string { return proto.CompactTextSt ring(m) }
69 func (*TagCache_Entry) ProtoMessage() {} 71 func (*TagCache_Entry) ProtoMessage() {}
70 func (*TagCache_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, [] int{1, 0} } 72 func (*TagCache_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, [] int{1, 0} }
71 73
74 // InstanceCache stores a list of instances in cache
75 // and their last access time.
76 type InstanceCache struct {
77 // Entries is a map of {instance id -> information about instance}.
78 Entries map[string]*InstanceCache_Entry `protobuf:"bytes,1,rep,name=entr ies" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:" bytes,2,opt,name=value"`
79 // LastSynced is timestamp when we synchronized Entires with actual
80 // instance files.
81 LastSynced *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_s ynced,json=lastSynced" json:"last_synced,omitempty"`
82 }
83
84 func (m *InstanceCache) Reset() { *m = InstanceCache{} }
85 func (m *InstanceCache) String() string { return proto.CompactTextStr ing(m) }
86 func (*InstanceCache) ProtoMessage() {}
87 func (*InstanceCache) Descriptor() ([]byte, []int) { return fileDescriptor0, []i nt{2} }
88
89 func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry {
90 if m != nil {
91 return m.Entries
92 }
93 return nil
94 }
95
96 func (m *InstanceCache) GetLastSynced() *google_protobuf.Timestamp {
97 if m != nil {
98 return m.LastSynced
99 }
100 return nil
101 }
102
103 // Entry stores info about an instance.
104 type InstanceCache_Entry struct {
105 // LastAccess is last time this instance was retrieved from or put to th e
106 // cache.
107 LastAccess *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=last_a ccess,json=lastAccess" json:"last_access,omitempty"`
108 }
109
110 func (m *InstanceCache_Entry) Reset() { *m = InstanceCache_En try{} }
111 func (m *InstanceCache_Entry) String() string { return proto.CompactT extString(m) }
112 func (*InstanceCache_Entry) ProtoMessage() {}
113 func (*InstanceCache_Entry) Descriptor() ([]byte, []int) { return fileDescriptor 0, []int{2, 0} }
114
115 func (m *InstanceCache_Entry) GetLastAccess() *google_protobuf.Timestamp {
116 if m != nil {
117 return m.LastAccess
118 }
119 return nil
120 }
121
72 func init() { 122 func init() {
73 proto.RegisterType((*BlobWithSHA1)(nil), "messages.BlobWithSHA1") 123 proto.RegisterType((*BlobWithSHA1)(nil), "messages.BlobWithSHA1")
74 proto.RegisterType((*TagCache)(nil), "messages.TagCache") 124 proto.RegisterType((*TagCache)(nil), "messages.TagCache")
75 proto.RegisterType((*TagCache_Entry)(nil), "messages.TagCache.Entry") 125 proto.RegisterType((*TagCache_Entry)(nil), "messages.TagCache.Entry")
126 proto.RegisterType((*InstanceCache)(nil), "messages.InstanceCache")
127 proto.RegisterType((*InstanceCache_Entry)(nil), "messages.InstanceCache. Entry")
76 } 128 }
77 129
78 var fileDescriptor0 = []byte{ 130 var fileDescriptor0 = []byte{
79 » // 195 bytes of a gzipped FileDescriptorProto 131 » // 329 bytes of a gzipped FileDescriptorProto
80 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0xcb, 0x4d, 0x2d, 0x2e, 132 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x90, 0x5f, 0x4b, 0xf3, 0x30,
81 » 0x4e, 0x4c, 0x4f, 0x2d, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0x95, 0xcc, 133 » 0x14, 0xc6, 0xe9, 0xf6, 0xee, 0xdd, 0x76, 0x3a, 0x45, 0x72, 0x55, 0x0a, 0x32, 0x29, 0x5e, 0xec,
82 » 0xb8, 0x78, 0x9c, 0x72, 0xf2, 0x93, 0xc2, 0x33, 0x4b, 0x32, 0x82, 0x3d, 0x1c, 0x0d, 0x85, 0x84, 134 » 0x2a, 0x63, 0x1d, 0x88, 0x28, 0x08, 0xf3, 0x0f, 0xb8, 0xdb, 0xac, 0x20, 0x5e, 0x8d, 0xb4, 0x8d,
83 » 0xb8, 0x58, 0x92, 0x80, 0x7c, 0x09, 0x46, 0x05, 0x46, 0x0d, 0x9e, 0x20, 0x30, 0x1b, 0x24, 0x56, 135 » 0x6d, 0x59, 0xd7, 0x96, 0x25, 0x13, 0xfa, 0x3d, 0xfc, 0x1a, 0x7e, 0x47, 0x93, 0xb4, 0x51, 0xe7,
84 » 0x9c, 0x91, 0x68, 0x28, 0xc1, 0x04, 0x11, 0x03, 0xb1, 0x95, 0xa6, 0x30, 0x72, 0x71, 0x84, 0x24, 136 » 0x85, 0x78, 0x77, 0xce, 0x93, 0x5f, 0xce, 0x79, 0xce, 0x03, 0xc7, 0x5b, 0xc6, 0x39, 0x4d, 0x18,
85 » 0xa6, 0x3b, 0x27, 0x26, 0x67, 0xa4, 0x0a, 0x19, 0x71, 0xb1, 0xa7, 0xe6, 0x95, 0x14, 0x65, 0xa6, 137 » 0xc7, 0xd5, 0xae, 0x14, 0x25, 0x1a, 0x98, 0xde, 0x1d, 0x27, 0x65, 0x99, 0xe4, 0x6c, 0xaa, 0xf5,
86 » 0x16, 0x03, 0xf5, 0x31, 0x6b, 0x70, 0x1b, 0x49, 0xe8, 0xc1, 0x2d, 0x84, 0x29, 0xd2, 0x73, 0x05, 138 » 0x70, 0xff, 0x32, 0x15, 0x99, 0x7c, 0x13, 0x74, 0x5b, 0x35, 0xa8, 0x77, 0x01, 0xa3, 0xdb, 0xbc,
87 » 0xaa, 0xa8, 0x0c, 0x82, 0x29, 0x94, 0x0a, 0xe1, 0x62, 0x05, 0x8b, 0x08, 0x49, 0x70, 0xb1, 0x17, 139 » 0x0c, 0x9f, 0x32, 0x91, 0xae, 0x1e, 0x17, 0x33, 0x84, 0xe0, 0x5f, 0x28, 0x7b, 0xc7, 0x3a, 0xb3,
88 » 0x24, 0x26, 0x67, 0x03, 0x15, 0x83, 0x2d, 0xe5, 0x0c, 0x82, 0x71, 0x85, 0x04, 0xb8, 0x98, 0x4b, 140 » 0x26, 0x23, 0xa2, 0x6b, 0xa5, 0xf1, 0x94, 0xce, 0x9c, 0x4e, 0xa3, 0xa9, 0xda, 0x7b, 0xb3, 0x60,
89 » 0x12, 0xd3, 0xc1, 0xd6, 0x72, 0x06, 0x81, 0x98, 0x42, 0xf2, 0x5c, 0xdc, 0x99, 0x79, 0xc5, 0x25, 141 » 0x10, 0xd0, 0xe4, 0x8e, 0x46, 0x29, 0x43, 0x3e, 0xf4, 0x59, 0x21, 0x76, 0x19, 0xe3, 0xf2, 0x5f,
90 » 0x89, 0x79, 0xc9, 0xa9, 0xf1, 0x99, 0x29, 0x12, 0xcc, 0x60, 0x19, 0x2e, 0x98, 0x90, 0x67, 0x4a, 142 » 0x77, 0x62, 0xfb, 0x0e, 0xfe, 0x74, 0x64, 0x20, 0xfc, 0x20, 0x89, 0x9a, 0x18, 0xd0, 0x0d, 0xa0,
91 » 0x12, 0x1b, 0xd8, 0x7f, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd7, 0xce, 0x37, 0x03, 0xf1, 143 » 0xa7, 0x15, 0xe4, 0x40, 0xbf, 0xa2, 0xd1, 0x46, 0xc2, 0x7a, 0xe9, 0x90, 0x98, 0x16, 0x9d, 0x40,
92 » 0x00, 0x00, 0x00, 144 » 0x57, 0xd0, 0x44, 0xaf, 0x1d, 0x12, 0x55, 0xa2, 0x31, 0xd8, 0x59, 0x21, 0xed, 0x17, 0x11, 0x5b,
145 » 0x67, 0xb1, 0xd3, 0xd5, 0x2f, 0x60, 0xa4, 0x65, 0xec, 0xbd, 0x77, 0xe0, 0x68, 0xd9, 0xb6, 0x8d,
146 » 0xb7, 0x9b, 0x9f, 0xde, 0xce, 0xbf, 0xbc, 0x1d, 0x90, 0xda, 0xa0, 0xc4, 0x0e, 0x7d, 0xa2, 0x6b,
147 » 0xb0, 0x73, 0xca, 0xc5, 0x9a, 0xd7, 0x12, 0x8c, 0xb5, 0x19, 0xdb, 0x77, 0x71, 0x93, 0x2b, 0x36,
148 » 0xb9, 0xe2, 0xc0, 0xe4, 0x4a, 0x40, 0xe1, 0x2b, 0x4d, 0xbb, 0xf7, 0xe6, 0x48, 0x33, 0x85, 0x46,
149 » 0x91, 0x5c, 0xfe, 0xd7, 0x29, 0x0b, 0x4d, 0xbb, 0xcf, 0x30, 0xfa, 0xee, 0x4d, 0xe5, 0xb2, 0x61,
150 » 0x75, 0x9b, 0x96, 0x2a, 0xd1, 0x1c, 0x7a, 0xaf, 0x34, 0xdf, 0xb3, 0x76, 0xf0, 0xe9, 0x6f, 0x27,
151 » 0xd6, 0xa4, 0x61, 0xaf, 0x3a, 0x97, 0x56, 0xf8, 0x5f, 0xaf, 0x9e, 0x7f, 0x04, 0x00, 0x00, 0xff,
152 » 0xff, 0xac, 0x56, 0x49, 0xa3, 0x42, 0x02, 0x00, 0x00,
93 } 153 }
OLDNEW
« no previous file with comments | « client/cipd/internal/messages/messages.proto ('k') | client/cmd/cipd/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698