1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/resultstore/v2/file.proto 3 4package resultstore // import "google.golang.org/genproto/googleapis/devtools/resultstore/v2" 5 6import proto "github.com/golang/protobuf/proto" 7import fmt "fmt" 8import math "math" 9import wrappers "github.com/golang/protobuf/ptypes/wrappers" 10 11// Reference imports to suppress errors if they are not otherwise used. 12var _ = proto.Marshal 13var _ = fmt.Errorf 14var _ = math.Inf 15 16// This is a compile-time assertion to ensure that this generated file 17// is compatible with the proto package it is being compiled against. 18// A compilation error at this line likely means your copy of the 19// proto package needs to be updated. 20const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 21 22// The metadata for a file or an archive file entry. 23type File struct { 24 // The identifier of the file or archive entry. 25 // User-provided, must be unique for the repeated field it is in. When an 26 // Append RPC is called with a Files field populated, if a File already exists 27 // with this ID, that File will be overwritten with the new File proto. 28 Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` 29 // The URI of a file. 30 // This could also be the URI of an entire archive. 31 // Most log data doesn't need to be stored forever, so a ttl is suggested. 32 // Note that if you ever move or delete the file at this URI, the link from 33 // the server will be broken. 34 Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` 35 // (Optional) The length of the file in bytes. Allows the filesize to be 36 // shown in the UI. Omit if file is still being written or length is 37 // not known. This could also be the length of an entire archive. 38 Length *wrappers.Int64Value `protobuf:"bytes,3,opt,name=length,proto3" json:"length,omitempty"` 39 // (Optional) The content-type (aka MIME-type) of the file. This is sent to 40 // the web browser so it knows how to handle the file. (e.g. text/plain, 41 // image/jpeg, text/html, etc). For zip archives, use "application/zip". 42 ContentType string `protobuf:"bytes,4,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` 43 // (Optional) If the above path, length, and content_type are referring to an 44 // archive, and you wish to refer to a particular entry within that archive, 45 // put the particular archive entry data here. 46 ArchiveEntry *ArchiveEntry `protobuf:"bytes,5,opt,name=archive_entry,json=archiveEntry,proto3" json:"archive_entry,omitempty"` 47 // (Optional) A url to a content display app/site for this file or archive 48 // entry. 49 ContentViewer string `protobuf:"bytes,6,opt,name=content_viewer,json=contentViewer,proto3" json:"content_viewer,omitempty"` 50 // (Optional) Whether to hide this file or archive entry in the UI. Defaults 51 // to false. A checkbox lets users see hidden files, but they're hidden by 52 // default. 53 Hidden bool `protobuf:"varint,7,opt,name=hidden,proto3" json:"hidden,omitempty"` 54 // (Optional) A short description of what this file or archive entry 55 // contains. This description should help someone viewing the list of these 56 // files to understand the purpose of this file and what they would want to 57 // view it for. 58 Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` 59 XXX_NoUnkeyedLiteral struct{} `json:"-"` 60 XXX_unrecognized []byte `json:"-"` 61 XXX_sizecache int32 `json:"-"` 62} 63 64func (m *File) Reset() { *m = File{} } 65func (m *File) String() string { return proto.CompactTextString(m) } 66func (*File) ProtoMessage() {} 67func (*File) Descriptor() ([]byte, []int) { 68 return fileDescriptor_file_2d7ceba920c83983, []int{0} 69} 70func (m *File) XXX_Unmarshal(b []byte) error { 71 return xxx_messageInfo_File.Unmarshal(m, b) 72} 73func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 74 return xxx_messageInfo_File.Marshal(b, m, deterministic) 75} 76func (dst *File) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_File.Merge(dst, src) 78} 79func (m *File) XXX_Size() int { 80 return xxx_messageInfo_File.Size(m) 81} 82func (m *File) XXX_DiscardUnknown() { 83 xxx_messageInfo_File.DiscardUnknown(m) 84} 85 86var xxx_messageInfo_File proto.InternalMessageInfo 87 88func (m *File) GetUid() string { 89 if m != nil { 90 return m.Uid 91 } 92 return "" 93} 94 95func (m *File) GetUri() string { 96 if m != nil { 97 return m.Uri 98 } 99 return "" 100} 101 102func (m *File) GetLength() *wrappers.Int64Value { 103 if m != nil { 104 return m.Length 105 } 106 return nil 107} 108 109func (m *File) GetContentType() string { 110 if m != nil { 111 return m.ContentType 112 } 113 return "" 114} 115 116func (m *File) GetArchiveEntry() *ArchiveEntry { 117 if m != nil { 118 return m.ArchiveEntry 119 } 120 return nil 121} 122 123func (m *File) GetContentViewer() string { 124 if m != nil { 125 return m.ContentViewer 126 } 127 return "" 128} 129 130func (m *File) GetHidden() bool { 131 if m != nil { 132 return m.Hidden 133 } 134 return false 135} 136 137func (m *File) GetDescription() string { 138 if m != nil { 139 return m.Description 140 } 141 return "" 142} 143 144// Information specific to an entry in an archive. 145type ArchiveEntry struct { 146 // The relative path of the entry within the archive. 147 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` 148 // (Optional) The uncompressed length of the archive entry in bytes. Allows 149 // the entry size to be shown in the UI. Omit if the length is not known. 150 Length *wrappers.Int64Value `protobuf:"bytes,2,opt,name=length,proto3" json:"length,omitempty"` 151 // (Optional) The content-type (aka MIME-type) of the archive entry. (e.g. 152 // text/plain, image/jpeg, text/html, etc). This is sent to the web browser 153 // so it knows how to handle the entry. 154 ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` 155 XXX_NoUnkeyedLiteral struct{} `json:"-"` 156 XXX_unrecognized []byte `json:"-"` 157 XXX_sizecache int32 `json:"-"` 158} 159 160func (m *ArchiveEntry) Reset() { *m = ArchiveEntry{} } 161func (m *ArchiveEntry) String() string { return proto.CompactTextString(m) } 162func (*ArchiveEntry) ProtoMessage() {} 163func (*ArchiveEntry) Descriptor() ([]byte, []int) { 164 return fileDescriptor_file_2d7ceba920c83983, []int{1} 165} 166func (m *ArchiveEntry) XXX_Unmarshal(b []byte) error { 167 return xxx_messageInfo_ArchiveEntry.Unmarshal(m, b) 168} 169func (m *ArchiveEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 170 return xxx_messageInfo_ArchiveEntry.Marshal(b, m, deterministic) 171} 172func (dst *ArchiveEntry) XXX_Merge(src proto.Message) { 173 xxx_messageInfo_ArchiveEntry.Merge(dst, src) 174} 175func (m *ArchiveEntry) XXX_Size() int { 176 return xxx_messageInfo_ArchiveEntry.Size(m) 177} 178func (m *ArchiveEntry) XXX_DiscardUnknown() { 179 xxx_messageInfo_ArchiveEntry.DiscardUnknown(m) 180} 181 182var xxx_messageInfo_ArchiveEntry proto.InternalMessageInfo 183 184func (m *ArchiveEntry) GetPath() string { 185 if m != nil { 186 return m.Path 187 } 188 return "" 189} 190 191func (m *ArchiveEntry) GetLength() *wrappers.Int64Value { 192 if m != nil { 193 return m.Length 194 } 195 return nil 196} 197 198func (m *ArchiveEntry) GetContentType() string { 199 if m != nil { 200 return m.ContentType 201 } 202 return "" 203} 204 205func init() { 206 proto.RegisterType((*File)(nil), "google.devtools.resultstore.v2.File") 207 proto.RegisterType((*ArchiveEntry)(nil), "google.devtools.resultstore.v2.ArchiveEntry") 208} 209 210func init() { 211 proto.RegisterFile("google/devtools/resultstore/v2/file.proto", fileDescriptor_file_2d7ceba920c83983) 212} 213 214var fileDescriptor_file_2d7ceba920c83983 = []byte{ 215 // 350 bytes of a gzipped FileDescriptorProto 216 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x52, 0xdf, 0x4b, 0xeb, 0x30, 217 0x14, 0xa6, 0xdb, 0x6e, 0xef, 0x6e, 0xb6, 0x5d, 0x24, 0x0f, 0x12, 0x14, 0xa4, 0x0e, 0x84, 0x09, 218 0x92, 0xc0, 0x26, 0xbe, 0xf8, 0xa4, 0xa0, 0xb0, 0x37, 0x2d, 0xb2, 0x07, 0x5f, 0x46, 0xd7, 0x9e, 219 0xb5, 0x81, 0x98, 0xc4, 0x34, 0xed, 0x98, 0x7f, 0x98, 0x7f, 0x9f, 0x2c, 0xcd, 0xa0, 0x20, 0x2a, 220 0xf8, 0x76, 0xce, 0x77, 0xbe, 0x1f, 0xed, 0x47, 0xd0, 0x79, 0xae, 0x54, 0x2e, 0x80, 0x65, 0x50, 221 0x5b, 0xa5, 0x44, 0xc9, 0x0c, 0x94, 0x95, 0xb0, 0xa5, 0x55, 0x06, 0x58, 0x3d, 0x65, 0x6b, 0x2e, 222 0x80, 0x6a, 0xa3, 0xac, 0xc2, 0x27, 0x0d, 0x95, 0xee, 0xa9, 0xb4, 0x45, 0xa5, 0xf5, 0xf4, 0xc8, 223 0xdf, 0x99, 0x63, 0xaf, 0xaa, 0x35, 0xdb, 0x98, 0x44, 0x6b, 0x30, 0x65, 0xa3, 0x1f, 0xbf, 0x77, 224 0x50, 0xef, 0x9e, 0x0b, 0xc0, 0x07, 0xa8, 0x5b, 0xf1, 0x8c, 0x04, 0x51, 0x30, 0xf9, 0x17, 0xef, 225 0x46, 0x87, 0x18, 0x4e, 0x3a, 0x1e, 0x31, 0x1c, 0xcf, 0x50, 0x28, 0x40, 0xe6, 0xb6, 0x20, 0xdd, 226 0x28, 0x98, 0x0c, 0xa6, 0xc7, 0xd4, 0xa7, 0xef, 0xdd, 0xe9, 0x5c, 0xda, 0xab, 0xcb, 0x45, 0x22, 227 0x2a, 0x88, 0x3d, 0x15, 0x9f, 0xa2, 0x61, 0xaa, 0xa4, 0x05, 0x69, 0x97, 0x76, 0xab, 0x81, 0xf4, 228 0x9c, 0xdf, 0xc0, 0x63, 0x4f, 0x5b, 0x0d, 0xf8, 0x11, 0x8d, 0x12, 0x93, 0x16, 0xbc, 0x86, 0x25, 229 0x48, 0x6b, 0xb6, 0xe4, 0x8f, 0xb3, 0xbf, 0xa0, 0xdf, 0xff, 0x1c, 0xbd, 0x69, 0x44, 0x77, 0x3b, 230 0x4d, 0x3c, 0x4c, 0x5a, 0x1b, 0x3e, 0x43, 0xff, 0xf7, 0xa9, 0x35, 0x87, 0x0d, 0x18, 0x12, 0xba, 231 0xdc, 0x91, 0x47, 0x17, 0x0e, 0xc4, 0x87, 0x28, 0x2c, 0x78, 0x96, 0x81, 0x24, 0x7f, 0xa3, 0x60, 232 0xd2, 0x8f, 0xfd, 0x86, 0x23, 0x34, 0xc8, 0xa0, 0x4c, 0x0d, 0xd7, 0x96, 0x2b, 0x49, 0xfa, 0xcd, 233 0x37, 0xb7, 0xa0, 0xf1, 0x1b, 0x1a, 0xb6, 0xe3, 0x31, 0x46, 0x3d, 0x9d, 0xd8, 0xc2, 0x17, 0xe8, 234 0xe6, 0x56, 0x5f, 0x9d, 0xdf, 0xf7, 0xd5, 0xfd, 0xd4, 0xd7, 0xed, 0x2b, 0x1a, 0xa7, 0xea, 0xe5, 235 0x87, 0x76, 0x1e, 0x82, 0xe7, 0xb9, 0x67, 0xe4, 0x4a, 0x24, 0x32, 0xa7, 0xca, 0xe4, 0x2c, 0x07, 236 0xe9, 0xc2, 0x59, 0x73, 0x4a, 0x34, 0x2f, 0xbf, 0x7a, 0x66, 0xd7, 0xad, 0x75, 0x15, 0x3a, 0xd5, 237 0xec, 0x23, 0x00, 0x00, 0xff, 0xff, 0x65, 0xa9, 0x29, 0x4f, 0x9b, 0x02, 0x00, 0x00, 238} 239