1// Code generated by protoc-gen-go.
2// source: google.golang.org/appengine/internal/blobstore/blobstore_service.proto
3// DO NOT EDIT!
4
5/*
6Package blobstore is a generated protocol buffer package.
7
8It is generated from these files:
9	google.golang.org/appengine/internal/blobstore/blobstore_service.proto
10
11It has these top-level messages:
12	BlobstoreServiceError
13	CreateUploadURLRequest
14	CreateUploadURLResponse
15	DeleteBlobRequest
16	FetchDataRequest
17	FetchDataResponse
18	CloneBlobRequest
19	CloneBlobResponse
20	DecodeBlobKeyRequest
21	DecodeBlobKeyResponse
22	CreateEncodedGoogleStorageKeyRequest
23	CreateEncodedGoogleStorageKeyResponse
24*/
25package blobstore
26
27import proto "github.com/golang/protobuf/proto"
28import fmt "fmt"
29import math "math"
30
31// Reference imports to suppress errors if they are not otherwise used.
32var _ = proto.Marshal
33var _ = fmt.Errorf
34var _ = math.Inf
35
36type BlobstoreServiceError_ErrorCode int32
37
38const (
39	BlobstoreServiceError_OK                        BlobstoreServiceError_ErrorCode = 0
40	BlobstoreServiceError_INTERNAL_ERROR            BlobstoreServiceError_ErrorCode = 1
41	BlobstoreServiceError_URL_TOO_LONG              BlobstoreServiceError_ErrorCode = 2
42	BlobstoreServiceError_PERMISSION_DENIED         BlobstoreServiceError_ErrorCode = 3
43	BlobstoreServiceError_BLOB_NOT_FOUND            BlobstoreServiceError_ErrorCode = 4
44	BlobstoreServiceError_DATA_INDEX_OUT_OF_RANGE   BlobstoreServiceError_ErrorCode = 5
45	BlobstoreServiceError_BLOB_FETCH_SIZE_TOO_LARGE BlobstoreServiceError_ErrorCode = 6
46	BlobstoreServiceError_ARGUMENT_OUT_OF_RANGE     BlobstoreServiceError_ErrorCode = 8
47	BlobstoreServiceError_INVALID_BLOB_KEY          BlobstoreServiceError_ErrorCode = 9
48)
49
50var BlobstoreServiceError_ErrorCode_name = map[int32]string{
51	0: "OK",
52	1: "INTERNAL_ERROR",
53	2: "URL_TOO_LONG",
54	3: "PERMISSION_DENIED",
55	4: "BLOB_NOT_FOUND",
56	5: "DATA_INDEX_OUT_OF_RANGE",
57	6: "BLOB_FETCH_SIZE_TOO_LARGE",
58	8: "ARGUMENT_OUT_OF_RANGE",
59	9: "INVALID_BLOB_KEY",
60}
61var BlobstoreServiceError_ErrorCode_value = map[string]int32{
62	"OK":                        0,
63	"INTERNAL_ERROR":            1,
64	"URL_TOO_LONG":              2,
65	"PERMISSION_DENIED":         3,
66	"BLOB_NOT_FOUND":            4,
67	"DATA_INDEX_OUT_OF_RANGE":   5,
68	"BLOB_FETCH_SIZE_TOO_LARGE": 6,
69	"ARGUMENT_OUT_OF_RANGE":     8,
70	"INVALID_BLOB_KEY":          9,
71}
72
73func (x BlobstoreServiceError_ErrorCode) Enum() *BlobstoreServiceError_ErrorCode {
74	p := new(BlobstoreServiceError_ErrorCode)
75	*p = x
76	return p
77}
78func (x BlobstoreServiceError_ErrorCode) String() string {
79	return proto.EnumName(BlobstoreServiceError_ErrorCode_name, int32(x))
80}
81func (x *BlobstoreServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
82	value, err := proto.UnmarshalJSONEnum(BlobstoreServiceError_ErrorCode_value, data, "BlobstoreServiceError_ErrorCode")
83	if err != nil {
84		return err
85	}
86	*x = BlobstoreServiceError_ErrorCode(value)
87	return nil
88}
89
90type BlobstoreServiceError struct {
91	XXX_unrecognized []byte `json:"-"`
92}
93
94func (m *BlobstoreServiceError) Reset()         { *m = BlobstoreServiceError{} }
95func (m *BlobstoreServiceError) String() string { return proto.CompactTextString(m) }
96func (*BlobstoreServiceError) ProtoMessage()    {}
97
98type CreateUploadURLRequest struct {
99	SuccessPath               *string `protobuf:"bytes,1,req,name=success_path" json:"success_path,omitempty"`
100	MaxUploadSizeBytes        *int64  `protobuf:"varint,2,opt,name=max_upload_size_bytes" json:"max_upload_size_bytes,omitempty"`
101	MaxUploadSizePerBlobBytes *int64  `protobuf:"varint,3,opt,name=max_upload_size_per_blob_bytes" json:"max_upload_size_per_blob_bytes,omitempty"`
102	GsBucketName              *string `protobuf:"bytes,4,opt,name=gs_bucket_name" json:"gs_bucket_name,omitempty"`
103	UrlExpiryTimeSeconds      *int32  `protobuf:"varint,5,opt,name=url_expiry_time_seconds" json:"url_expiry_time_seconds,omitempty"`
104	XXX_unrecognized          []byte  `json:"-"`
105}
106
107func (m *CreateUploadURLRequest) Reset()         { *m = CreateUploadURLRequest{} }
108func (m *CreateUploadURLRequest) String() string { return proto.CompactTextString(m) }
109func (*CreateUploadURLRequest) ProtoMessage()    {}
110
111func (m *CreateUploadURLRequest) GetSuccessPath() string {
112	if m != nil && m.SuccessPath != nil {
113		return *m.SuccessPath
114	}
115	return ""
116}
117
118func (m *CreateUploadURLRequest) GetMaxUploadSizeBytes() int64 {
119	if m != nil && m.MaxUploadSizeBytes != nil {
120		return *m.MaxUploadSizeBytes
121	}
122	return 0
123}
124
125func (m *CreateUploadURLRequest) GetMaxUploadSizePerBlobBytes() int64 {
126	if m != nil && m.MaxUploadSizePerBlobBytes != nil {
127		return *m.MaxUploadSizePerBlobBytes
128	}
129	return 0
130}
131
132func (m *CreateUploadURLRequest) GetGsBucketName() string {
133	if m != nil && m.GsBucketName != nil {
134		return *m.GsBucketName
135	}
136	return ""
137}
138
139func (m *CreateUploadURLRequest) GetUrlExpiryTimeSeconds() int32 {
140	if m != nil && m.UrlExpiryTimeSeconds != nil {
141		return *m.UrlExpiryTimeSeconds
142	}
143	return 0
144}
145
146type CreateUploadURLResponse struct {
147	Url              *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"`
148	XXX_unrecognized []byte  `json:"-"`
149}
150
151func (m *CreateUploadURLResponse) Reset()         { *m = CreateUploadURLResponse{} }
152func (m *CreateUploadURLResponse) String() string { return proto.CompactTextString(m) }
153func (*CreateUploadURLResponse) ProtoMessage()    {}
154
155func (m *CreateUploadURLResponse) GetUrl() string {
156	if m != nil && m.Url != nil {
157		return *m.Url
158	}
159	return ""
160}
161
162type DeleteBlobRequest struct {
163	BlobKey          []string `protobuf:"bytes,1,rep,name=blob_key" json:"blob_key,omitempty"`
164	Token            *string  `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
165	XXX_unrecognized []byte   `json:"-"`
166}
167
168func (m *DeleteBlobRequest) Reset()         { *m = DeleteBlobRequest{} }
169func (m *DeleteBlobRequest) String() string { return proto.CompactTextString(m) }
170func (*DeleteBlobRequest) ProtoMessage()    {}
171
172func (m *DeleteBlobRequest) GetBlobKey() []string {
173	if m != nil {
174		return m.BlobKey
175	}
176	return nil
177}
178
179func (m *DeleteBlobRequest) GetToken() string {
180	if m != nil && m.Token != nil {
181		return *m.Token
182	}
183	return ""
184}
185
186type FetchDataRequest struct {
187	BlobKey          *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
188	StartIndex       *int64  `protobuf:"varint,2,req,name=start_index" json:"start_index,omitempty"`
189	EndIndex         *int64  `protobuf:"varint,3,req,name=end_index" json:"end_index,omitempty"`
190	XXX_unrecognized []byte  `json:"-"`
191}
192
193func (m *FetchDataRequest) Reset()         { *m = FetchDataRequest{} }
194func (m *FetchDataRequest) String() string { return proto.CompactTextString(m) }
195func (*FetchDataRequest) ProtoMessage()    {}
196
197func (m *FetchDataRequest) GetBlobKey() string {
198	if m != nil && m.BlobKey != nil {
199		return *m.BlobKey
200	}
201	return ""
202}
203
204func (m *FetchDataRequest) GetStartIndex() int64 {
205	if m != nil && m.StartIndex != nil {
206		return *m.StartIndex
207	}
208	return 0
209}
210
211func (m *FetchDataRequest) GetEndIndex() int64 {
212	if m != nil && m.EndIndex != nil {
213		return *m.EndIndex
214	}
215	return 0
216}
217
218type FetchDataResponse struct {
219	Data             []byte `protobuf:"bytes,1000,req,name=data" json:"data,omitempty"`
220	XXX_unrecognized []byte `json:"-"`
221}
222
223func (m *FetchDataResponse) Reset()         { *m = FetchDataResponse{} }
224func (m *FetchDataResponse) String() string { return proto.CompactTextString(m) }
225func (*FetchDataResponse) ProtoMessage()    {}
226
227func (m *FetchDataResponse) GetData() []byte {
228	if m != nil {
229		return m.Data
230	}
231	return nil
232}
233
234type CloneBlobRequest struct {
235	BlobKey          []byte `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
236	MimeType         []byte `protobuf:"bytes,2,req,name=mime_type" json:"mime_type,omitempty"`
237	TargetAppId      []byte `protobuf:"bytes,3,req,name=target_app_id" json:"target_app_id,omitempty"`
238	XXX_unrecognized []byte `json:"-"`
239}
240
241func (m *CloneBlobRequest) Reset()         { *m = CloneBlobRequest{} }
242func (m *CloneBlobRequest) String() string { return proto.CompactTextString(m) }
243func (*CloneBlobRequest) ProtoMessage()    {}
244
245func (m *CloneBlobRequest) GetBlobKey() []byte {
246	if m != nil {
247		return m.BlobKey
248	}
249	return nil
250}
251
252func (m *CloneBlobRequest) GetMimeType() []byte {
253	if m != nil {
254		return m.MimeType
255	}
256	return nil
257}
258
259func (m *CloneBlobRequest) GetTargetAppId() []byte {
260	if m != nil {
261		return m.TargetAppId
262	}
263	return nil
264}
265
266type CloneBlobResponse struct {
267	BlobKey          []byte `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
268	XXX_unrecognized []byte `json:"-"`
269}
270
271func (m *CloneBlobResponse) Reset()         { *m = CloneBlobResponse{} }
272func (m *CloneBlobResponse) String() string { return proto.CompactTextString(m) }
273func (*CloneBlobResponse) ProtoMessage()    {}
274
275func (m *CloneBlobResponse) GetBlobKey() []byte {
276	if m != nil {
277		return m.BlobKey
278	}
279	return nil
280}
281
282type DecodeBlobKeyRequest struct {
283	BlobKey          []string `protobuf:"bytes,1,rep,name=blob_key" json:"blob_key,omitempty"`
284	XXX_unrecognized []byte   `json:"-"`
285}
286
287func (m *DecodeBlobKeyRequest) Reset()         { *m = DecodeBlobKeyRequest{} }
288func (m *DecodeBlobKeyRequest) String() string { return proto.CompactTextString(m) }
289func (*DecodeBlobKeyRequest) ProtoMessage()    {}
290
291func (m *DecodeBlobKeyRequest) GetBlobKey() []string {
292	if m != nil {
293		return m.BlobKey
294	}
295	return nil
296}
297
298type DecodeBlobKeyResponse struct {
299	Decoded          []string `protobuf:"bytes,1,rep,name=decoded" json:"decoded,omitempty"`
300	XXX_unrecognized []byte   `json:"-"`
301}
302
303func (m *DecodeBlobKeyResponse) Reset()         { *m = DecodeBlobKeyResponse{} }
304func (m *DecodeBlobKeyResponse) String() string { return proto.CompactTextString(m) }
305func (*DecodeBlobKeyResponse) ProtoMessage()    {}
306
307func (m *DecodeBlobKeyResponse) GetDecoded() []string {
308	if m != nil {
309		return m.Decoded
310	}
311	return nil
312}
313
314type CreateEncodedGoogleStorageKeyRequest struct {
315	Filename         *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"`
316	XXX_unrecognized []byte  `json:"-"`
317}
318
319func (m *CreateEncodedGoogleStorageKeyRequest) Reset()         { *m = CreateEncodedGoogleStorageKeyRequest{} }
320func (m *CreateEncodedGoogleStorageKeyRequest) String() string { return proto.CompactTextString(m) }
321func (*CreateEncodedGoogleStorageKeyRequest) ProtoMessage()    {}
322
323func (m *CreateEncodedGoogleStorageKeyRequest) GetFilename() string {
324	if m != nil && m.Filename != nil {
325		return *m.Filename
326	}
327	return ""
328}
329
330type CreateEncodedGoogleStorageKeyResponse struct {
331	BlobKey          *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
332	XXX_unrecognized []byte  `json:"-"`
333}
334
335func (m *CreateEncodedGoogleStorageKeyResponse) Reset()         { *m = CreateEncodedGoogleStorageKeyResponse{} }
336func (m *CreateEncodedGoogleStorageKeyResponse) String() string { return proto.CompactTextString(m) }
337func (*CreateEncodedGoogleStorageKeyResponse) ProtoMessage()    {}
338
339func (m *CreateEncodedGoogleStorageKeyResponse) GetBlobKey() string {
340	if m != nil && m.BlobKey != nil {
341		return *m.BlobKey
342	}
343	return ""
344}
345
346func init() {
347}
348