Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

299 wiersze
12 KiB

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