You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

434 lines
17 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/resultstore/v2/resultstore_file_download.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 _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  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.
  20. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  21. // Request object for GetFile
  22. type GetFileRequest struct {
  23. // This corresponds to the uri field in the File message.
  24. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
  25. // The offset for the first byte to return in the read, relative to the start
  26. // of the resource.
  27. //
  28. // A `read_offset` that is negative or greater than the size of the resource
  29. // will cause an `OUT_OF_RANGE` error.
  30. ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
  31. // The maximum number of `data` bytes the server is allowed to return in the
  32. // sum of all `ReadResponse` messages. A `read_limit` of zero indicates that
  33. // there is no limit, and a negative `read_limit` will cause an error.
  34. //
  35. // If the stream returns fewer bytes than allowed by the `read_limit` and no
  36. // error occurred, the stream includes all data from the `read_offset` to the
  37. // end of the resource.
  38. ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
  39. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  40. XXX_unrecognized []byte `json:"-"`
  41. XXX_sizecache int32 `json:"-"`
  42. }
  43. func (m *GetFileRequest) Reset() { *m = GetFileRequest{} }
  44. func (m *GetFileRequest) String() string { return proto.CompactTextString(m) }
  45. func (*GetFileRequest) ProtoMessage() {}
  46. func (*GetFileRequest) Descriptor() ([]byte, []int) {
  47. return fileDescriptor_resultstore_file_download_9c06bd8b688e49bb, []int{0}
  48. }
  49. func (m *GetFileRequest) XXX_Unmarshal(b []byte) error {
  50. return xxx_messageInfo_GetFileRequest.Unmarshal(m, b)
  51. }
  52. func (m *GetFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  53. return xxx_messageInfo_GetFileRequest.Marshal(b, m, deterministic)
  54. }
  55. func (dst *GetFileRequest) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_GetFileRequest.Merge(dst, src)
  57. }
  58. func (m *GetFileRequest) XXX_Size() int {
  59. return xxx_messageInfo_GetFileRequest.Size(m)
  60. }
  61. func (m *GetFileRequest) XXX_DiscardUnknown() {
  62. xxx_messageInfo_GetFileRequest.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_GetFileRequest proto.InternalMessageInfo
  65. func (m *GetFileRequest) GetUri() string {
  66. if m != nil {
  67. return m.Uri
  68. }
  69. return ""
  70. }
  71. func (m *GetFileRequest) GetReadOffset() int64 {
  72. if m != nil {
  73. return m.ReadOffset
  74. }
  75. return 0
  76. }
  77. func (m *GetFileRequest) GetReadLimit() int64 {
  78. if m != nil {
  79. return m.ReadLimit
  80. }
  81. return 0
  82. }
  83. // Response object for GetFile
  84. type GetFileResponse struct {
  85. // The file data.
  86. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  87. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  88. XXX_unrecognized []byte `json:"-"`
  89. XXX_sizecache int32 `json:"-"`
  90. }
  91. func (m *GetFileResponse) Reset() { *m = GetFileResponse{} }
  92. func (m *GetFileResponse) String() string { return proto.CompactTextString(m) }
  93. func (*GetFileResponse) ProtoMessage() {}
  94. func (*GetFileResponse) Descriptor() ([]byte, []int) {
  95. return fileDescriptor_resultstore_file_download_9c06bd8b688e49bb, []int{1}
  96. }
  97. func (m *GetFileResponse) XXX_Unmarshal(b []byte) error {
  98. return xxx_messageInfo_GetFileResponse.Unmarshal(m, b)
  99. }
  100. func (m *GetFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  101. return xxx_messageInfo_GetFileResponse.Marshal(b, m, deterministic)
  102. }
  103. func (dst *GetFileResponse) XXX_Merge(src proto.Message) {
  104. xxx_messageInfo_GetFileResponse.Merge(dst, src)
  105. }
  106. func (m *GetFileResponse) XXX_Size() int {
  107. return xxx_messageInfo_GetFileResponse.Size(m)
  108. }
  109. func (m *GetFileResponse) XXX_DiscardUnknown() {
  110. xxx_messageInfo_GetFileResponse.DiscardUnknown(m)
  111. }
  112. var xxx_messageInfo_GetFileResponse proto.InternalMessageInfo
  113. func (m *GetFileResponse) GetData() []byte {
  114. if m != nil {
  115. return m.Data
  116. }
  117. return nil
  118. }
  119. // Request object for GetFileTail
  120. type GetFileTailRequest struct {
  121. // This corresponds to the uri field in the File message.
  122. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
  123. // The offset for the first byte to return in the read, relative to the end
  124. // of the resource.
  125. //
  126. // A `read_offset` that is negative or greater than the size of the resource
  127. // will cause an `OUT_OF_RANGE` error.
  128. ReadOffset int64 `protobuf:"varint,2,opt,name=read_offset,json=readOffset,proto3" json:"read_offset,omitempty"`
  129. // The maximum number of `data` bytes the server is allowed to return. The
  130. // server will return bytes starting from the tail of the file.
  131. //
  132. // A `read_limit` of zero indicates that there is no limit, and a negative
  133. // `read_limit` will cause an error.
  134. ReadLimit int64 `protobuf:"varint,3,opt,name=read_limit,json=readLimit,proto3" json:"read_limit,omitempty"`
  135. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  136. XXX_unrecognized []byte `json:"-"`
  137. XXX_sizecache int32 `json:"-"`
  138. }
  139. func (m *GetFileTailRequest) Reset() { *m = GetFileTailRequest{} }
  140. func (m *GetFileTailRequest) String() string { return proto.CompactTextString(m) }
  141. func (*GetFileTailRequest) ProtoMessage() {}
  142. func (*GetFileTailRequest) Descriptor() ([]byte, []int) {
  143. return fileDescriptor_resultstore_file_download_9c06bd8b688e49bb, []int{2}
  144. }
  145. func (m *GetFileTailRequest) XXX_Unmarshal(b []byte) error {
  146. return xxx_messageInfo_GetFileTailRequest.Unmarshal(m, b)
  147. }
  148. func (m *GetFileTailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  149. return xxx_messageInfo_GetFileTailRequest.Marshal(b, m, deterministic)
  150. }
  151. func (dst *GetFileTailRequest) XXX_Merge(src proto.Message) {
  152. xxx_messageInfo_GetFileTailRequest.Merge(dst, src)
  153. }
  154. func (m *GetFileTailRequest) XXX_Size() int {
  155. return xxx_messageInfo_GetFileTailRequest.Size(m)
  156. }
  157. func (m *GetFileTailRequest) XXX_DiscardUnknown() {
  158. xxx_messageInfo_GetFileTailRequest.DiscardUnknown(m)
  159. }
  160. var xxx_messageInfo_GetFileTailRequest proto.InternalMessageInfo
  161. func (m *GetFileTailRequest) GetUri() string {
  162. if m != nil {
  163. return m.Uri
  164. }
  165. return ""
  166. }
  167. func (m *GetFileTailRequest) GetReadOffset() int64 {
  168. if m != nil {
  169. return m.ReadOffset
  170. }
  171. return 0
  172. }
  173. func (m *GetFileTailRequest) GetReadLimit() int64 {
  174. if m != nil {
  175. return m.ReadLimit
  176. }
  177. return 0
  178. }
  179. // Response object for GetFileTail
  180. type GetFileTailResponse struct {
  181. // The file data, encoded with UTF-8.
  182. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  183. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  184. XXX_unrecognized []byte `json:"-"`
  185. XXX_sizecache int32 `json:"-"`
  186. }
  187. func (m *GetFileTailResponse) Reset() { *m = GetFileTailResponse{} }
  188. func (m *GetFileTailResponse) String() string { return proto.CompactTextString(m) }
  189. func (*GetFileTailResponse) ProtoMessage() {}
  190. func (*GetFileTailResponse) Descriptor() ([]byte, []int) {
  191. return fileDescriptor_resultstore_file_download_9c06bd8b688e49bb, []int{3}
  192. }
  193. func (m *GetFileTailResponse) XXX_Unmarshal(b []byte) error {
  194. return xxx_messageInfo_GetFileTailResponse.Unmarshal(m, b)
  195. }
  196. func (m *GetFileTailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  197. return xxx_messageInfo_GetFileTailResponse.Marshal(b, m, deterministic)
  198. }
  199. func (dst *GetFileTailResponse) XXX_Merge(src proto.Message) {
  200. xxx_messageInfo_GetFileTailResponse.Merge(dst, src)
  201. }
  202. func (m *GetFileTailResponse) XXX_Size() int {
  203. return xxx_messageInfo_GetFileTailResponse.Size(m)
  204. }
  205. func (m *GetFileTailResponse) XXX_DiscardUnknown() {
  206. xxx_messageInfo_GetFileTailResponse.DiscardUnknown(m)
  207. }
  208. var xxx_messageInfo_GetFileTailResponse proto.InternalMessageInfo
  209. func (m *GetFileTailResponse) GetData() []byte {
  210. if m != nil {
  211. return m.Data
  212. }
  213. return nil
  214. }
  215. func init() {
  216. proto.RegisterType((*GetFileRequest)(nil), "google.devtools.resultstore.v2.GetFileRequest")
  217. proto.RegisterType((*GetFileResponse)(nil), "google.devtools.resultstore.v2.GetFileResponse")
  218. proto.RegisterType((*GetFileTailRequest)(nil), "google.devtools.resultstore.v2.GetFileTailRequest")
  219. proto.RegisterType((*GetFileTailResponse)(nil), "google.devtools.resultstore.v2.GetFileTailResponse")
  220. }
  221. // Reference imports to suppress errors if they are not otherwise used.
  222. var _ context.Context
  223. var _ grpc.ClientConn
  224. // This is a compile-time assertion to ensure that this generated file
  225. // is compatible with the grpc package it is being compiled against.
  226. const _ = grpc.SupportPackageIsVersion4
  227. // ResultStoreFileDownloadClient is the client API for ResultStoreFileDownload service.
  228. //
  229. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  230. type ResultStoreFileDownloadClient interface {
  231. // Retrieves the File with the given uri.
  232. // returns a stream of bytes to be stitched together in order.
  233. //
  234. // An error will be reported in the following cases:
  235. // - If the File is not found.
  236. // - If the given File uri is badly formatted.
  237. GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error)
  238. // Retrieves the tail of a File with the given uri.
  239. //
  240. // An error will be reported in the following cases:
  241. // - If the File is not found.
  242. // - If the given File uri is badly formatted.
  243. GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error)
  244. }
  245. type resultStoreFileDownloadClient struct {
  246. cc *grpc.ClientConn
  247. }
  248. func NewResultStoreFileDownloadClient(cc *grpc.ClientConn) ResultStoreFileDownloadClient {
  249. return &resultStoreFileDownloadClient{cc}
  250. }
  251. func (c *resultStoreFileDownloadClient) GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (ResultStoreFileDownload_GetFileClient, error) {
  252. stream, err := c.cc.NewStream(ctx, &_ResultStoreFileDownload_serviceDesc.Streams[0], "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFile", opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. x := &resultStoreFileDownloadGetFileClient{stream}
  257. if err := x.ClientStream.SendMsg(in); err != nil {
  258. return nil, err
  259. }
  260. if err := x.ClientStream.CloseSend(); err != nil {
  261. return nil, err
  262. }
  263. return x, nil
  264. }
  265. type ResultStoreFileDownload_GetFileClient interface {
  266. Recv() (*GetFileResponse, error)
  267. grpc.ClientStream
  268. }
  269. type resultStoreFileDownloadGetFileClient struct {
  270. grpc.ClientStream
  271. }
  272. func (x *resultStoreFileDownloadGetFileClient) Recv() (*GetFileResponse, error) {
  273. m := new(GetFileResponse)
  274. if err := x.ClientStream.RecvMsg(m); err != nil {
  275. return nil, err
  276. }
  277. return m, nil
  278. }
  279. func (c *resultStoreFileDownloadClient) GetFileTail(ctx context.Context, in *GetFileTailRequest, opts ...grpc.CallOption) (*GetFileTailResponse, error) {
  280. out := new(GetFileTailResponse)
  281. err := c.cc.Invoke(ctx, "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail", in, out, opts...)
  282. if err != nil {
  283. return nil, err
  284. }
  285. return out, nil
  286. }
  287. // ResultStoreFileDownloadServer is the server API for ResultStoreFileDownload service.
  288. type ResultStoreFileDownloadServer interface {
  289. // Retrieves the File with the given uri.
  290. // returns a stream of bytes to be stitched together in order.
  291. //
  292. // An error will be reported in the following cases:
  293. // - If the File is not found.
  294. // - If the given File uri is badly formatted.
  295. GetFile(*GetFileRequest, ResultStoreFileDownload_GetFileServer) error
  296. // Retrieves the tail of a File with the given uri.
  297. //
  298. // An error will be reported in the following cases:
  299. // - If the File is not found.
  300. // - If the given File uri is badly formatted.
  301. GetFileTail(context.Context, *GetFileTailRequest) (*GetFileTailResponse, error)
  302. }
  303. func RegisterResultStoreFileDownloadServer(s *grpc.Server, srv ResultStoreFileDownloadServer) {
  304. s.RegisterService(&_ResultStoreFileDownload_serviceDesc, srv)
  305. }
  306. func _ResultStoreFileDownload_GetFile_Handler(srv interface{}, stream grpc.ServerStream) error {
  307. m := new(GetFileRequest)
  308. if err := stream.RecvMsg(m); err != nil {
  309. return err
  310. }
  311. return srv.(ResultStoreFileDownloadServer).GetFile(m, &resultStoreFileDownloadGetFileServer{stream})
  312. }
  313. type ResultStoreFileDownload_GetFileServer interface {
  314. Send(*GetFileResponse) error
  315. grpc.ServerStream
  316. }
  317. type resultStoreFileDownloadGetFileServer struct {
  318. grpc.ServerStream
  319. }
  320. func (x *resultStoreFileDownloadGetFileServer) Send(m *GetFileResponse) error {
  321. return x.ServerStream.SendMsg(m)
  322. }
  323. func _ResultStoreFileDownload_GetFileTail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  324. in := new(GetFileTailRequest)
  325. if err := dec(in); err != nil {
  326. return nil, err
  327. }
  328. if interceptor == nil {
  329. return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, in)
  330. }
  331. info := &grpc.UnaryServerInfo{
  332. Server: srv,
  333. FullMethod: "/google.devtools.resultstore.v2.ResultStoreFileDownload/GetFileTail",
  334. }
  335. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  336. return srv.(ResultStoreFileDownloadServer).GetFileTail(ctx, req.(*GetFileTailRequest))
  337. }
  338. return interceptor(ctx, in, info, handler)
  339. }
  340. var _ResultStoreFileDownload_serviceDesc = grpc.ServiceDesc{
  341. ServiceName: "google.devtools.resultstore.v2.ResultStoreFileDownload",
  342. HandlerType: (*ResultStoreFileDownloadServer)(nil),
  343. Methods: []grpc.MethodDesc{
  344. {
  345. MethodName: "GetFileTail",
  346. Handler: _ResultStoreFileDownload_GetFileTail_Handler,
  347. },
  348. },
  349. Streams: []grpc.StreamDesc{
  350. {
  351. StreamName: "GetFile",
  352. Handler: _ResultStoreFileDownload_GetFile_Handler,
  353. ServerStreams: true,
  354. },
  355. },
  356. Metadata: "google/devtools/resultstore/v2/resultstore_file_download.proto",
  357. }
  358. func init() {
  359. proto.RegisterFile("google/devtools/resultstore/v2/resultstore_file_download.proto", fileDescriptor_resultstore_file_download_9c06bd8b688e49bb)
  360. }
  361. var fileDescriptor_resultstore_file_download_9c06bd8b688e49bb = []byte{
  362. // 384 bytes of a gzipped FileDescriptorProto
  363. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x53, 0xc1, 0x4a, 0xe3, 0x40,
  364. 0x18, 0x26, 0xed, 0xb2, 0x4b, 0xa7, 0xcb, 0x6e, 0x99, 0x65, 0x69, 0x28, 0xdb, 0xb5, 0x04, 0x84,
  365. 0xda, 0xc3, 0x8c, 0xa4, 0x47, 0xd1, 0x83, 0x88, 0x22, 0x08, 0x4a, 0xf4, 0xe4, 0x25, 0x4c, 0xcd,
  366. 0x24, 0x0c, 0x4c, 0xf3, 0xa7, 0x99, 0x49, 0x3d, 0x48, 0x2f, 0x1e, 0x7c, 0x01, 0xf1, 0x65, 0x7c,
  367. 0x0d, 0x5f, 0xc1, 0x07, 0x91, 0x99, 0x44, 0x49, 0x0f, 0xd5, 0x7a, 0xf0, 0x36, 0xff, 0x37, 0xff,
  368. 0xf7, 0xfd, 0x5f, 0xbe, 0xfc, 0x83, 0xf6, 0x12, 0x80, 0x44, 0x72, 0x1a, 0xf1, 0xb9, 0x06, 0x90,
  369. 0x8a, 0xe6, 0x5c, 0x15, 0x52, 0x2b, 0x0d, 0x39, 0xa7, 0x73, 0xbf, 0x5e, 0x86, 0xb1, 0x90, 0x3c,
  370. 0x8c, 0xe0, 0x3a, 0x95, 0xc0, 0x22, 0x92, 0xe5, 0xa0, 0x01, 0xff, 0x2f, 0xf9, 0xe4, 0x95, 0x4f,
  371. 0x6a, 0x04, 0x32, 0xf7, 0x7b, 0xff, 0x2a, 0x7d, 0x96, 0x09, 0xca, 0xd2, 0x14, 0x34, 0xd3, 0x02,
  372. 0x52, 0x55, 0xb2, 0xbd, 0x09, 0xfa, 0x75, 0xc4, 0xf5, 0xa1, 0x90, 0x3c, 0xe0, 0xb3, 0x82, 0x2b,
  373. 0x8d, 0x3b, 0xa8, 0x59, 0xe4, 0xc2, 0x75, 0x06, 0xce, 0xb0, 0x15, 0x98, 0x23, 0xde, 0x40, 0xed,
  374. 0x9c, 0xb3, 0x28, 0x84, 0x38, 0x56, 0x5c, 0xbb, 0x8d, 0x81, 0x33, 0x6c, 0x06, 0xc8, 0x40, 0xa7,
  375. 0x16, 0xc1, 0x7d, 0x64, 0xab, 0x50, 0x8a, 0xa9, 0xd0, 0x6e, 0xd3, 0xde, 0xb7, 0x0c, 0x72, 0x62,
  376. 0x00, 0x6f, 0x13, 0xfd, 0x7e, 0x9b, 0xa1, 0x32, 0x48, 0x15, 0xc7, 0x18, 0x7d, 0x8b, 0x98, 0x66,
  377. 0x76, 0xca, 0xcf, 0xc0, 0x9e, 0xbd, 0x18, 0xe1, 0xaa, 0xed, 0x82, 0x09, 0xf9, 0x75, 0x76, 0xb6,
  378. 0xd0, 0x9f, 0xa5, 0x39, 0xab, 0x2d, 0xf9, 0x8f, 0x0d, 0xd4, 0x0d, 0x6c, 0x9c, 0xe7, 0x26, 0x4e,
  379. 0xc3, 0x39, 0xa8, 0xd2, 0xc7, 0x77, 0x0e, 0xfa, 0x51, 0xe9, 0x60, 0x42, 0xde, 0xff, 0x09, 0x64,
  380. 0x39, 0xe3, 0x1e, 0x5d, 0xbb, 0xbf, 0x34, 0xe7, 0xb9, 0xb7, 0x4f, 0xcf, 0xf7, 0x0d, 0x8c, 0x3b,
  381. 0x66, 0x23, 0x6e, 0x8a, 0x5c, 0xec, 0x9a, 0x55, 0xa0, 0xa3, 0xc5, 0xb6, 0x83, 0x1f, 0x1c, 0xd4,
  382. 0xae, 0x7d, 0x10, 0xf6, 0xd7, 0x14, 0xaf, 0xa5, 0xdc, 0x1b, 0x7f, 0x8a, 0x53, 0x99, 0xea, 0x5b,
  383. 0x53, 0x5d, 0xfc, 0x77, 0xd9, 0x94, 0x66, 0x42, 0xd2, 0xd1, 0x62, 0x7f, 0x86, 0xbc, 0x2b, 0x98,
  384. 0x7e, 0x20, 0x7c, 0xe6, 0x5c, 0x1e, 0x57, 0x1d, 0x09, 0x48, 0x96, 0x26, 0x04, 0xf2, 0x84, 0x26,
  385. 0x3c, 0xb5, 0xeb, 0x49, 0xcb, 0x2b, 0x96, 0x09, 0xb5, 0xea, 0x7d, 0xec, 0xd4, 0xca, 0xc9, 0x77,
  386. 0xcb, 0x1a, 0xbf, 0x04, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x3d, 0x87, 0x5d, 0x54, 0x03, 0x00, 0x00,
  387. }