aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/google.golang.org/appengine/internal/blobstore/blobstore_service.proto
blob: 33b265032c9d826e784cd38517a2392a9a1d37c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
syntax = "proto2";
option go_package = "blobstore";

package appengine;

message BlobstoreServiceError {
  enum ErrorCode {
    OK = 0;
    INTERNAL_ERROR = 1;
    URL_TOO_LONG = 2;
    PERMISSION_DENIED = 3;
    BLOB_NOT_FOUND = 4;
    DATA_INDEX_OUT_OF_RANGE = 5;
    BLOB_FETCH_SIZE_TOO_LARGE = 6;
    ARGUMENT_OUT_OF_RANGE = 8;
    INVALID_BLOB_KEY = 9;
  }
}

message CreateUploadURLRequest {
  required string success_path = 1;
  optional int64 max_upload_size_bytes = 2;
  optional int64 max_upload_size_per_blob_bytes = 3;
  optional string gs_bucket_name = 4;
  optional int32 url_expiry_time_seconds = 5;
}

message CreateUploadURLResponse {
  required string url = 1;
}

message DeleteBlobRequest {
  repeated string blob_key = 1;
  optional string token = 2;
}

message FetchDataRequest {
  required string blob_key = 1;
  required int64 start_index = 2;
  required int64 end_index = 3;
}

message FetchDataResponse {
  required bytes data = 1000 [ctype = CORD];
}

message CloneBlobRequest {
  required bytes blob_key = 1;
  required bytes mime_type = 2;
  required bytes target_app_id = 3;
}

message CloneBlobResponse {
  required bytes blob_key = 1;
}

message DecodeBlobKeyRequest {
  repeated string blob_key = 1;
}

message DecodeBlobKeyResponse {
  repeated string decoded = 1;
}

message CreateEncodedGoogleStorageKeyRequest {
  required string filename = 1;
}

message CreateEncodedGoogleStorageKeyResponse {
  required string blob_key = 1;
}