1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/resultstore/v2/file.proto 3 4package resultstore 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 wrappers "github.com/golang/protobuf/ptypes/wrappers" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// If known, the hash function used to compute this digest. 26type File_HashType int32 27 28const ( 29 // Unknown 30 File_HASH_TYPE_UNSPECIFIED File_HashType = 0 31 // MD5 32 File_MD5 File_HashType = 1 33 // SHA-1 34 File_SHA1 File_HashType = 2 35 // SHA-256 36 File_SHA256 File_HashType = 3 37) 38 39var File_HashType_name = map[int32]string{ 40 0: "HASH_TYPE_UNSPECIFIED", 41 1: "MD5", 42 2: "SHA1", 43 3: "SHA256", 44} 45 46var File_HashType_value = map[string]int32{ 47 "HASH_TYPE_UNSPECIFIED": 0, 48 "MD5": 1, 49 "SHA1": 2, 50 "SHA256": 3, 51} 52 53func (x File_HashType) String() string { 54 return proto.EnumName(File_HashType_name, int32(x)) 55} 56 57func (File_HashType) EnumDescriptor() ([]byte, []int) { 58 return fileDescriptor_0f2079cd39696ac1, []int{0, 0} 59} 60 61// The metadata for a file or an archive file entry. 62type File struct { 63 // The identifier of the file or archive entry. 64 // User-provided, must be unique for the repeated field it is in. When an 65 // Append RPC is called with a Files field populated, if a File already exists 66 // with this ID, that File will be overwritten with the new File proto. 67 Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` 68 // The URI of a file. 69 // This could also be the URI of an entire archive. 70 // Most log data doesn't need to be stored forever, so a ttl is suggested. 71 // Note that if you ever move or delete the file at this URI, the link from 72 // the server will be broken. 73 Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` 74 // (Optional) The length of the file in bytes. Allows the filesize to be 75 // shown in the UI. Omit if file is still being written or length is 76 // not known. This could also be the length of an entire archive. 77 Length *wrappers.Int64Value `protobuf:"bytes,3,opt,name=length,proto3" json:"length,omitempty"` 78 // (Optional) The content-type (aka MIME-type) of the file. This is sent to 79 // the web browser so it knows how to handle the file. (e.g. text/plain, 80 // image/jpeg, text/html, etc). For zip archives, use "application/zip". 81 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` 82 // (Optional) If the above path, length, and content_type are referring to an 83 // archive, and you wish to refer to a particular entry within that archive, 84 // put the particular archive entry data here. 85 ArchiveEntry *ArchiveEntry `protobuf:"bytes,5,opt,name=archive_entry,json=archiveEntry,proto3" json:"archive_entry,omitempty"` 86 // (Optional) A url to a content display app/site for this file or archive 87 // entry. 88 ContentViewer string `protobuf:"bytes,6,opt,name=content_viewer,json=contentViewer,proto3" json:"content_viewer,omitempty"` 89 // (Optional) Whether to hide this file or archive entry in the UI. Defaults 90 // to false. A checkbox lets users see hidden files, but they're hidden by 91 // default. 92 Hidden bool `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"` 93 // (Optional) A short description of what this file or archive entry 94 // contains. This description should help someone viewing the list of these 95 // files to understand the purpose of this file and what they would want to 96 // view it for. 97 Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` 98 // (Optional) digest of this file in hexadecimal-like string if known. 99 Digest string `protobuf:"bytes,9,opt,name=digest,proto3" json:"digest,omitempty"` 100 // (Optional) The algorithm corresponding to the digest if known. 101 HashType File_HashType `protobuf:"varint,10,opt,name=hash_type,json=hashType,proto3,enum=google.devtools.resultstore.v2.File_HashType" json:"hash_type,omitempty"` 102 XXX_NoUnkeyedLiteral struct{} `json:"-"` 103 XXX_unrecognized []byte `json:"-"` 104 XXX_sizecache int32 `json:"-"` 105} 106 107func (m *File) Reset() { *m = File{} } 108func (m *File) String() string { return proto.CompactTextString(m) } 109func (*File) ProtoMessage() {} 110func (*File) Descriptor() ([]byte, []int) { 111 return fileDescriptor_0f2079cd39696ac1, []int{0} 112} 113 114func (m *File) XXX_Unmarshal(b []byte) error { 115 return xxx_messageInfo_File.Unmarshal(m, b) 116} 117func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 118 return xxx_messageInfo_File.Marshal(b, m, deterministic) 119} 120func (m *File) XXX_Merge(src proto.Message) { 121 xxx_messageInfo_File.Merge(m, src) 122} 123func (m *File) XXX_Size() int { 124 return xxx_messageInfo_File.Size(m) 125} 126func (m *File) XXX_DiscardUnknown() { 127 xxx_messageInfo_File.DiscardUnknown(m) 128} 129 130var xxx_messageInfo_File proto.InternalMessageInfo 131 132func (m *File) GetUid() string { 133 if m != nil { 134 return m.Uid 135 } 136 return "" 137} 138 139func (m *File) GetUri() string { 140 if m != nil { 141 return m.Uri 142 } 143 return "" 144} 145 146func (m *File) GetLength() *wrappers.Int64Value { 147 if m != nil { 148 return m.Length 149 } 150 return nil 151} 152 153func (m *File) GetContentType() string { 154 if m != nil { 155 return m.ContentType 156 } 157 return "" 158} 159 160func (m *File) GetArchiveEntry() *ArchiveEntry { 161 if m != nil { 162 return m.ArchiveEntry 163 } 164 return nil 165} 166 167func (m *File) GetContentViewer() string { 168 if m != nil { 169 return m.ContentViewer 170 } 171 return "" 172} 173 174func (m *File) GetHidden() bool { 175 if m != nil { 176 return m.Hidden 177 } 178 return false 179} 180 181func (m *File) GetDescription() string { 182 if m != nil { 183 return m.Description 184 } 185 return "" 186} 187 188func (m *File) GetDigest() string { 189 if m != nil { 190 return m.Digest 191 } 192 return "" 193} 194 195func (m *File) GetHashType() File_HashType { 196 if m != nil { 197 return m.HashType 198 } 199 return File_HASH_TYPE_UNSPECIFIED 200} 201 202// Information specific to an entry in an archive. 203type ArchiveEntry struct { 204 // The relative path of the entry within the archive. 205 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 206 // (Optional) The uncompressed length of the archive entry in bytes. Allows 207 // the entry size to be shown in the UI. Omit if the length is not known. 208 Length *wrappers.Int64Value `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"` 209 // (Optional) The content-type (aka MIME-type) of the archive entry. (e.g. 210 // text/plain, image/jpeg, text/html, etc). This is sent to the web browser 211 // so it knows how to handle the entry. 212 ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` 213 XXX_NoUnkeyedLiteral struct{} `json:"-"` 214 XXX_unrecognized []byte `json:"-"` 215 XXX_sizecache int32 `json:"-"` 216} 217 218func (m *ArchiveEntry) Reset() { *m = ArchiveEntry{} } 219func (m *ArchiveEntry) String() string { return proto.CompactTextString(m) } 220func (*ArchiveEntry) ProtoMessage() {} 221func (*ArchiveEntry) Descriptor() ([]byte, []int) { 222 return fileDescriptor_0f2079cd39696ac1, []int{1} 223} 224 225func (m *ArchiveEntry) XXX_Unmarshal(b []byte) error { 226 return xxx_messageInfo_ArchiveEntry.Unmarshal(m, b) 227} 228func (m *ArchiveEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 229 return xxx_messageInfo_ArchiveEntry.Marshal(b, m, deterministic) 230} 231func (m *ArchiveEntry) XXX_Merge(src proto.Message) { 232 xxx_messageInfo_ArchiveEntry.Merge(m, src) 233} 234func (m *ArchiveEntry) XXX_Size() int { 235 return xxx_messageInfo_ArchiveEntry.Size(m) 236} 237func (m *ArchiveEntry) XXX_DiscardUnknown() { 238 xxx_messageInfo_ArchiveEntry.DiscardUnknown(m) 239} 240 241var xxx_messageInfo_ArchiveEntry proto.InternalMessageInfo 242 243func (m *ArchiveEntry) GetPath() string { 244 if m != nil { 245 return m.Path 246 } 247 return "" 248} 249 250func (m *ArchiveEntry) GetLength() *wrappers.Int64Value { 251 if m != nil { 252 return m.Length 253 } 254 return nil 255} 256 257func (m *ArchiveEntry) GetContentType() string { 258 if m != nil { 259 return m.ContentType 260 } 261 return "" 262} 263 264func init() { 265 proto.RegisterEnum("google.devtools.resultstore.v2.File_HashType", File_HashType_name, File_HashType_value) 266 proto.RegisterType((*File)(nil), "google.devtools.resultstore.v2.File") 267 proto.RegisterType((*ArchiveEntry)(nil), "google.devtools.resultstore.v2.ArchiveEntry") 268} 269 270func init() { 271 proto.RegisterFile("google/devtools/resultstore/v2/file.proto", fileDescriptor_0f2079cd39696ac1) 272} 273 274var fileDescriptor_0f2079cd39696ac1 = []byte{ 275 // 453 bytes of a gzipped FileDescriptorProto 276 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x61, 0x8b, 0xd3, 0x40, 277 0x10, 0x35, 0x4d, 0xed, 0xa5, 0xd3, 0xde, 0x11, 0x16, 0x94, 0xa8, 0x20, 0xb1, 0x20, 0x54, 0xd0, 278 0x0d, 0xe6, 0xbc, 0xfb, 0xe2, 0xa7, 0x6a, 0x7b, 0xa4, 0x82, 0x52, 0xd3, 0xf3, 0x40, 0xbf, 0x94, 279 0x5c, 0x33, 0x97, 0x2c, 0xc4, 0x6c, 0xdc, 0xdd, 0xe6, 0xa8, 0xbf, 0xd6, 0x9f, 0x22, 0xd9, 0x6c, 280 0x21, 0x20, 0x7a, 0xe0, 0xb7, 0x99, 0x37, 0xef, 0xcd, 0xe4, 0xed, 0x23, 0xf0, 0x22, 0xe3, 0x3c, 281 0x2b, 0x30, 0x48, 0xb1, 0x56, 0x9c, 0x17, 0x32, 0x10, 0x28, 0x77, 0x85, 0x92, 0x8a, 0x0b, 0x0c, 282 0xea, 0x30, 0xb8, 0x61, 0x05, 0xd2, 0x4a, 0x70, 0xc5, 0xc9, 0xd3, 0x96, 0x4a, 0x0f, 0x54, 0xda, 283 0xa1, 0xd2, 0x3a, 0x7c, 0x6c, 0xe6, 0x81, 0x66, 0x5f, 0xef, 0x6e, 0x82, 0x5b, 0x91, 0x54, 0x15, 284 0x0a, 0xd9, 0xea, 0x27, 0xbf, 0x6c, 0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 0xf3, 0xe6, 0x35, 0x62, 0x27, 0x37, 296 0xd5, 0x64, 0x0e, 0xce, 0x01, 0x25, 0x8f, 0xe0, 0x41, 0x34, 0x5b, 0x47, 0x9b, 0xcb, 0xaf, 0xab, 297 0xc5, 0xe6, 0xcb, 0xa7, 0xf5, 0x6a, 0xf1, 0x7e, 0x79, 0xb1, 0x5c, 0xcc, 0xdd, 0x7b, 0xe4, 0x08, 298 0xec, 0x8f, 0xf3, 0x33, 0xd7, 0x22, 0x0e, 0xf4, 0xd7, 0xd1, 0xec, 0xb5, 0xdb, 0x23, 0x00, 0x83, 299 0x75, 0x34, 0x0b, 0xcf, 0xce, 0x5d, 0x7b, 0xf2, 0x13, 0xc6, 0xdd, 0x87, 0x22, 0x04, 0xfa, 0x55, 300 0xa2, 0x72, 0x13, 0xb5, 0xae, 0x3b, 0xc9, 0xf6, 0xfe, 0x3f, 0x59, 0xfb, 0x8f, 0x64, 0xdf, 0xfd, 301 0x80, 0xc9, 0x96, 0x7f, 0xbf, 0xc3, 0xff, 0xca, 0xfa, 0xb6, 0x34, 0x8c, 0x8c, 0x17, 0x49, 0x99, 302 0x51, 0x2e, 0xb2, 0x20, 0xc3, 0x52, 0x1f, 0x0f, 0xda, 0x51, 0x52, 0x31, 0xf9, 0xb7, 0x1f, 0xe2, 303 0x6d, 0xa7, 0xbd, 0x1e, 0x68, 0xd5, 0xe9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x08, 0xc7, 0x53, 304 0x67, 0x45, 0x03, 0x00, 0x00, 305} 306