blob: 7a3318f65e6a4dc9ade04ef4c30d9410ed7d8551 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/cipd/client/cipd/internal/messages/messages.proto
package messages
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// BlobWithSHA256 is a wrapper around a binary blob with SHA256 hash to verify
// its integrity.
type BlobWithSHA256 struct {
Blob []byte `protobuf:"bytes,1,opt,name=blob,proto3" json:"blob,omitempty"`
Sha256 []byte `protobuf:"bytes,3,opt,name=sha256,proto3" json:"sha256,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BlobWithSHA256) Reset() { *m = BlobWithSHA256{} }
func (m *BlobWithSHA256) String() string { return proto.CompactTextString(m) }
func (*BlobWithSHA256) ProtoMessage() {}
func (*BlobWithSHA256) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{0}
}
func (m *BlobWithSHA256) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BlobWithSHA256.Unmarshal(m, b)
}
func (m *BlobWithSHA256) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BlobWithSHA256.Marshal(b, m, deterministic)
}
func (m *BlobWithSHA256) XXX_Merge(src proto.Message) {
xxx_messageInfo_BlobWithSHA256.Merge(m, src)
}
func (m *BlobWithSHA256) XXX_Size() int {
return xxx_messageInfo_BlobWithSHA256.Size(m)
}
func (m *BlobWithSHA256) XXX_DiscardUnknown() {
xxx_messageInfo_BlobWithSHA256.DiscardUnknown(m)
}
var xxx_messageInfo_BlobWithSHA256 proto.InternalMessageInfo
func (m *BlobWithSHA256) GetBlob() []byte {
if m != nil {
return m.Blob
}
return nil
}
func (m *BlobWithSHA256) GetSha256() []byte {
if m != nil {
return m.Sha256
}
return nil
}
// TagCache stores a mapping (service, package name, tag) -> instance ID to
// speed up subsequent ResolveVersion calls when tags are used.
//
// It also contains a '(service, instance_id, file_name) -> encoded ObjectRef'
// mapping which is used for client self-update purposes. file_name is
// case-sensitive and must always use POSIX-style slashes.
//
// A service is specified by its hostname. We make it part of the key since
// same tags may point to different instances on different services.
type TagCache struct {
// Capped list of entries, most recently resolved is last.
Entries []*TagCache_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
FileEntries []*TagCache_FileEntry `protobuf:"bytes,2,rep,name=file_entries,json=fileEntries,proto3" json:"file_entries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TagCache) Reset() { *m = TagCache{} }
func (m *TagCache) String() string { return proto.CompactTextString(m) }
func (*TagCache) ProtoMessage() {}
func (*TagCache) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{1}
}
func (m *TagCache) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TagCache.Unmarshal(m, b)
}
func (m *TagCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TagCache.Marshal(b, m, deterministic)
}
func (m *TagCache) XXX_Merge(src proto.Message) {
xxx_messageInfo_TagCache.Merge(m, src)
}
func (m *TagCache) XXX_Size() int {
return xxx_messageInfo_TagCache.Size(m)
}
func (m *TagCache) XXX_DiscardUnknown() {
xxx_messageInfo_TagCache.DiscardUnknown(m)
}
var xxx_messageInfo_TagCache proto.InternalMessageInfo
func (m *TagCache) GetEntries() []*TagCache_Entry {
if m != nil {
return m.Entries
}
return nil
}
func (m *TagCache) GetFileEntries() []*TagCache_FileEntry {
if m != nil {
return m.FileEntries
}
return nil
}
type TagCache_Entry struct {
Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TagCache_Entry) Reset() { *m = TagCache_Entry{} }
func (m *TagCache_Entry) String() string { return proto.CompactTextString(m) }
func (*TagCache_Entry) ProtoMessage() {}
func (*TagCache_Entry) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{1, 0}
}
func (m *TagCache_Entry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TagCache_Entry.Unmarshal(m, b)
}
func (m *TagCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TagCache_Entry.Marshal(b, m, deterministic)
}
func (m *TagCache_Entry) XXX_Merge(src proto.Message) {
xxx_messageInfo_TagCache_Entry.Merge(m, src)
}
func (m *TagCache_Entry) XXX_Size() int {
return xxx_messageInfo_TagCache_Entry.Size(m)
}
func (m *TagCache_Entry) XXX_DiscardUnknown() {
xxx_messageInfo_TagCache_Entry.DiscardUnknown(m)
}
var xxx_messageInfo_TagCache_Entry proto.InternalMessageInfo
func (m *TagCache_Entry) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *TagCache_Entry) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *TagCache_Entry) GetTag() string {
if m != nil {
return m.Tag
}
return ""
}
func (m *TagCache_Entry) GetInstanceId() string {
if m != nil {
return m.InstanceId
}
return ""
}
type TagCache_FileEntry struct {
Service string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
FileName string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
ObjectRef string `protobuf:"bytes,4,opt,name=object_ref,json=objectRef,proto3" json:"object_ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TagCache_FileEntry) Reset() { *m = TagCache_FileEntry{} }
func (m *TagCache_FileEntry) String() string { return proto.CompactTextString(m) }
func (*TagCache_FileEntry) ProtoMessage() {}
func (*TagCache_FileEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{1, 1}
}
func (m *TagCache_FileEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TagCache_FileEntry.Unmarshal(m, b)
}
func (m *TagCache_FileEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TagCache_FileEntry.Marshal(b, m, deterministic)
}
func (m *TagCache_FileEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_TagCache_FileEntry.Merge(m, src)
}
func (m *TagCache_FileEntry) XXX_Size() int {
return xxx_messageInfo_TagCache_FileEntry.Size(m)
}
func (m *TagCache_FileEntry) XXX_DiscardUnknown() {
xxx_messageInfo_TagCache_FileEntry.DiscardUnknown(m)
}
var xxx_messageInfo_TagCache_FileEntry proto.InternalMessageInfo
func (m *TagCache_FileEntry) GetService() string {
if m != nil {
return m.Service
}
return ""
}
func (m *TagCache_FileEntry) GetPackage() string {
if m != nil {
return m.Package
}
return ""
}
func (m *TagCache_FileEntry) GetInstanceId() string {
if m != nil {
return m.InstanceId
}
return ""
}
func (m *TagCache_FileEntry) GetFileName() string {
if m != nil {
return m.FileName
}
return ""
}
func (m *TagCache_FileEntry) GetObjectRef() string {
if m != nil {
return m.ObjectRef
}
return ""
}
// InstanceCache stores a list of instances and their last access time.
//
// This cache does not depend on a service being used, since an instance's ID is
// derived only from its contents (regardless from where it was downloaded).
type InstanceCache struct {
// Entries is a map of {instance id -> information about instance}.
Entries map[string]*InstanceCache_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// LastSynced is timestamp when we synchronized Entries with actual
// instance files.
LastSynced *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_synced,json=lastSynced,proto3" json:"last_synced,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InstanceCache) Reset() { *m = InstanceCache{} }
func (m *InstanceCache) String() string { return proto.CompactTextString(m) }
func (*InstanceCache) ProtoMessage() {}
func (*InstanceCache) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{2}
}
func (m *InstanceCache) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InstanceCache.Unmarshal(m, b)
}
func (m *InstanceCache) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InstanceCache.Marshal(b, m, deterministic)
}
func (m *InstanceCache) XXX_Merge(src proto.Message) {
xxx_messageInfo_InstanceCache.Merge(m, src)
}
func (m *InstanceCache) XXX_Size() int {
return xxx_messageInfo_InstanceCache.Size(m)
}
func (m *InstanceCache) XXX_DiscardUnknown() {
xxx_messageInfo_InstanceCache.DiscardUnknown(m)
}
var xxx_messageInfo_InstanceCache proto.InternalMessageInfo
func (m *InstanceCache) GetEntries() map[string]*InstanceCache_Entry {
if m != nil {
return m.Entries
}
return nil
}
func (m *InstanceCache) GetLastSynced() *timestamp.Timestamp {
if m != nil {
return m.LastSynced
}
return nil
}
// Entry stores info about an instance.
type InstanceCache_Entry struct {
// LastAccess is last time this instance was retrieved from or put to the
// cache.
LastAccess *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_access,json=lastAccess,proto3" json:"last_access,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InstanceCache_Entry) Reset() { *m = InstanceCache_Entry{} }
func (m *InstanceCache_Entry) String() string { return proto.CompactTextString(m) }
func (*InstanceCache_Entry) ProtoMessage() {}
func (*InstanceCache_Entry) Descriptor() ([]byte, []int) {
return fileDescriptor_3c2431e10c52fd39, []int{2, 0}
}
func (m *InstanceCache_Entry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InstanceCache_Entry.Unmarshal(m, b)
}
func (m *InstanceCache_Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InstanceCache_Entry.Marshal(b, m, deterministic)
}
func (m *InstanceCache_Entry) XXX_Merge(src proto.Message) {
xxx_messageInfo_InstanceCache_Entry.Merge(m, src)
}
func (m *InstanceCache_Entry) XXX_Size() int {
return xxx_messageInfo_InstanceCache_Entry.Size(m)
}
func (m *InstanceCache_Entry) XXX_DiscardUnknown() {
xxx_messageInfo_InstanceCache_Entry.DiscardUnknown(m)
}
var xxx_messageInfo_InstanceCache_Entry proto.InternalMessageInfo
func (m *InstanceCache_Entry) GetLastAccess() *timestamp.Timestamp {
if m != nil {
return m.LastAccess
}
return nil
}
func init() {
proto.RegisterType((*BlobWithSHA256)(nil), "messages.BlobWithSHA256")
proto.RegisterType((*TagCache)(nil), "messages.TagCache")
proto.RegisterType((*TagCache_Entry)(nil), "messages.TagCache.Entry")
proto.RegisterType((*TagCache_FileEntry)(nil), "messages.TagCache.FileEntry")
proto.RegisterType((*InstanceCache)(nil), "messages.InstanceCache")
proto.RegisterMapType((map[string]*InstanceCache_Entry)(nil), "messages.InstanceCache.EntriesEntry")
proto.RegisterType((*InstanceCache_Entry)(nil), "messages.InstanceCache.Entry")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/cipd/client/cipd/internal/messages/messages.proto", fileDescriptor_3c2431e10c52fd39)
}
var fileDescriptor_3c2431e10c52fd39 = []byte{
// 468 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xdd, 0x6e, 0xd3, 0x30,
0x14, 0x56, 0xd2, 0x76, 0x6b, 0x4e, 0x0a, 0x9a, 0x7c, 0x81, 0xa2, 0xc0, 0xb4, 0xaa, 0xe2, 0xa2,
0x57, 0x89, 0x94, 0x69, 0x13, 0x02, 0x09, 0xb4, 0x01, 0x13, 0xe3, 0x82, 0x8b, 0x6c, 0x12, 0xe2,
0xaa, 0x72, 0xdc, 0x93, 0xd4, 0xcc, 0xb1, 0xab, 0xd8, 0x9d, 0xd4, 0x97, 0xe0, 0x09, 0x78, 0x05,
0xde, 0x11, 0xc5, 0x89, 0xcb, 0xa8, 0x10, 0xda, 0xdd, 0x77, 0x3e, 0x7f, 0xe7, 0xf7, 0x33, 0x5c,
0x55, 0x2a, 0x61, 0xab, 0x46, 0xd5, 0x7c, 0x53, 0x27, 0xaa, 0xa9, 0x52, 0xb1, 0x61, 0x3c, 0x65,
0x7c, 0xbd, 0x4c, 0x99, 0xe0, 0x28, 0x4d, 0x87, 0xb9, 0x34, 0xd8, 0x48, 0x2a, 0xd2, 0x1a, 0xb5,
0xa6, 0x15, 0xea, 0x1d, 0x48, 0xd6, 0x8d, 0x32, 0x8a, 0x8c, 0x5d, 0x1c, 0x9f, 0x54, 0x4a, 0x55,
0x02, 0x53, 0xcb, 0x17, 0x9b, 0x32, 0x35, 0xbc, 0x46, 0x6d, 0x68, 0xbd, 0xee, 0xa4, 0xb3, 0x4b,
0x78, 0x7a, 0x29, 0x54, 0xf1, 0x95, 0x9b, 0xd5, 0xcd, 0xa7, 0x8b, 0xec, 0xec, 0x9c, 0x10, 0x18,
0x16, 0x42, 0x15, 0x91, 0x37, 0xf5, 0xe6, 0x93, 0xdc, 0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