blobstore_service.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. syntax = "proto2";
  2. option go_package = "blobstore";
  3. package appengine;
  4. message BlobstoreServiceError {
  5. enum ErrorCode {
  6. OK = 0;
  7. INTERNAL_ERROR = 1;
  8. URL_TOO_LONG = 2;
  9. PERMISSION_DENIED = 3;
  10. BLOB_NOT_FOUND = 4;
  11. DATA_INDEX_OUT_OF_RANGE = 5;
  12. BLOB_FETCH_SIZE_TOO_LARGE = 6;
  13. ARGUMENT_OUT_OF_RANGE = 8;
  14. INVALID_BLOB_KEY = 9;
  15. }
  16. }
  17. message CreateUploadURLRequest {
  18. required string success_path = 1;
  19. optional int64 max_upload_size_bytes = 2;
  20. optional int64 max_upload_size_per_blob_bytes = 3;
  21. optional string gs_bucket_name = 4;
  22. optional int32 url_expiry_time_seconds = 5;
  23. }
  24. message CreateUploadURLResponse {
  25. required string url = 1;
  26. }
  27. message DeleteBlobRequest {
  28. repeated string blob_key = 1;
  29. optional string token = 2;
  30. }
  31. message FetchDataRequest {
  32. required string blob_key = 1;
  33. required int64 start_index = 2;
  34. required int64 end_index = 3;
  35. }
  36. message FetchDataResponse {
  37. required bytes data = 1000 [ctype = CORD];
  38. }
  39. message CloneBlobRequest {
  40. required bytes blob_key = 1;
  41. required bytes mime_type = 2;
  42. required bytes target_app_id = 3;
  43. }
  44. message CloneBlobResponse {
  45. required bytes blob_key = 1;
  46. }
  47. message DecodeBlobKeyRequest {
  48. repeated string blob_key = 1;
  49. }
  50. message DecodeBlobKeyResponse {
  51. repeated string decoded = 1;
  52. }
  53. message CreateEncodedGoogleStorageKeyRequest {
  54. required string filename = 1;
  55. }
  56. message CreateEncodedGoogleStorageKeyResponse {
  57. required string blob_key = 1;
  58. }