OLD | NEW |
(Empty) | |
| 1 // Code generated by protoc-gen-go. |
| 2 // source: messages.proto |
| 3 // DO NOT EDIT! |
| 4 |
| 5 /* |
| 6 Package messages is a generated protocol buffer package. |
| 7 |
| 8 It is generated from these files: |
| 9 messages.proto |
| 10 |
| 11 It has these top-level messages: |
| 12 BlobWithSHA1 |
| 13 TagCache |
| 14 */ |
| 15 package messages |
| 16 |
| 17 import proto "github.com/golang/protobuf/proto" |
| 18 import fmt "fmt" |
| 19 import math "math" |
| 20 |
| 21 // Reference imports to suppress errors if they are not otherwise used. |
| 22 var _ = proto.Marshal |
| 23 var _ = fmt.Errorf |
| 24 var _ = math.Inf |
| 25 |
| 26 // BlobWithSHA1 is a wrapper around a binary blob with SHA1 hash to verify |
| 27 // its integrity. |
| 28 type BlobWithSHA1 struct { |
| 29 Blob []byte `protobuf:"bytes,1,opt,name=blob" json:"blob,omi
tempty"` |
| 30 Sha1 []byte `protobuf:"bytes,2,opt,name=sha1" json:"sha1,omi
tempty"` |
| 31 XXX_unrecognized []byte `json:"-"` |
| 32 } |
| 33 |
| 34 func (m *BlobWithSHA1) Reset() { *m = BlobWithSHA1{} } |
| 35 func (m *BlobWithSHA1) String() string { return proto.CompactTextString(m) } |
| 36 func (*BlobWithSHA1) ProtoMessage() {} |
| 37 |
| 38 func (m *BlobWithSHA1) GetBlob() []byte { |
| 39 if m != nil { |
| 40 return m.Blob |
| 41 } |
| 42 return nil |
| 43 } |
| 44 |
| 45 func (m *BlobWithSHA1) GetSha1() []byte { |
| 46 if m != nil { |
| 47 return m.Sha1 |
| 48 } |
| 49 return nil |
| 50 } |
| 51 |
| 52 // TagCache stores a mapping (package name, tag) -> instance ID to speed up |
| 53 // subsequence ResolveVersion calls when tags are used. |
| 54 type TagCache struct { |
| 55 // Capped list of entries, most recently used first. |
| 56 Entries []*TagCache_Entry `protobuf:"bytes,1,rep,name=entries"
json:"entries,omitempty"` |
| 57 XXX_unrecognized []byte `json:"-"` |
| 58 } |
| 59 |
| 60 func (m *TagCache) Reset() { *m = TagCache{} } |
| 61 func (m *TagCache) String() string { return proto.CompactTextString(m) } |
| 62 func (*TagCache) ProtoMessage() {} |
| 63 |
| 64 func (m *TagCache) GetEntries() []*TagCache_Entry { |
| 65 if m != nil { |
| 66 return m.Entries |
| 67 } |
| 68 return nil |
| 69 } |
| 70 |
| 71 type TagCache_Entry struct { |
| 72 Package *string `protobuf:"bytes,1,opt,name=package" json:"pack
age,omitempty"` |
| 73 Tag *string `protobuf:"bytes,2,opt,name=tag" json:"tag,omit
empty"` |
| 74 InstanceId *string `protobuf:"bytes,3,opt,name=instance_id" json:"
instance_id,omitempty"` |
| 75 XXX_unrecognized []byte `json:"-"` |
| 76 } |
| 77 |
| 78 func (m *TagCache_Entry) Reset() { *m = TagCache_Entry{} } |
| 79 func (m *TagCache_Entry) String() string { return proto.CompactTextString(m) } |
| 80 func (*TagCache_Entry) ProtoMessage() {} |
| 81 |
| 82 func (m *TagCache_Entry) GetPackage() string { |
| 83 if m != nil && m.Package != nil { |
| 84 return *m.Package |
| 85 } |
| 86 return "" |
| 87 } |
| 88 |
| 89 func (m *TagCache_Entry) GetTag() string { |
| 90 if m != nil && m.Tag != nil { |
| 91 return *m.Tag |
| 92 } |
| 93 return "" |
| 94 } |
| 95 |
| 96 func (m *TagCache_Entry) GetInstanceId() string { |
| 97 if m != nil && m.InstanceId != nil { |
| 98 return *m.InstanceId |
| 99 } |
| 100 return "" |
| 101 } |
OLD | NEW |