github.com/timstclair/heapster@v0.20.0-alpha1/Godeps/_workspace/src/google.golang.org/appengine/internal/blobstore/blobstore_service.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: google.golang.org/appengine/internal/blobstore/blobstore_service.proto 3 // DO NOT EDIT! 4 5 /* 6 Package blobstore is a generated protocol buffer package. 7 8 It is generated from these files: 9 google.golang.org/appengine/internal/blobstore/blobstore_service.proto 10 11 It 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 */ 25 package blobstore 26 27 import proto "github.com/golang/protobuf/proto" 28 import fmt "fmt" 29 import math "math" 30 31 // Reference imports to suppress errors if they are not otherwise used. 32 var _ = proto.Marshal 33 var _ = fmt.Errorf 34 var _ = math.Inf 35 36 type BlobstoreServiceError_ErrorCode int32 37 38 const ( 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 50 var 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 } 61 var 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 73 func (x BlobstoreServiceError_ErrorCode) Enum() *BlobstoreServiceError_ErrorCode { 74 p := new(BlobstoreServiceError_ErrorCode) 75 *p = x 76 return p 77 } 78 func (x BlobstoreServiceError_ErrorCode) String() string { 79 return proto.EnumName(BlobstoreServiceError_ErrorCode_name, int32(x)) 80 } 81 func (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 90 type BlobstoreServiceError struct { 91 XXX_unrecognized []byte `json:"-"` 92 } 93 94 func (m *BlobstoreServiceError) Reset() { *m = BlobstoreServiceError{} } 95 func (m *BlobstoreServiceError) String() string { return proto.CompactTextString(m) } 96 func (*BlobstoreServiceError) ProtoMessage() {} 97 98 type 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 107 func (m *CreateUploadURLRequest) Reset() { *m = CreateUploadURLRequest{} } 108 func (m *CreateUploadURLRequest) String() string { return proto.CompactTextString(m) } 109 func (*CreateUploadURLRequest) ProtoMessage() {} 110 111 func (m *CreateUploadURLRequest) GetSuccessPath() string { 112 if m != nil && m.SuccessPath != nil { 113 return *m.SuccessPath 114 } 115 return "" 116 } 117 118 func (m *CreateUploadURLRequest) GetMaxUploadSizeBytes() int64 { 119 if m != nil && m.MaxUploadSizeBytes != nil { 120 return *m.MaxUploadSizeBytes 121 } 122 return 0 123 } 124 125 func (m *CreateUploadURLRequest) GetMaxUploadSizePerBlobBytes() int64 { 126 if m != nil && m.MaxUploadSizePerBlobBytes != nil { 127 return *m.MaxUploadSizePerBlobBytes 128 } 129 return 0 130 } 131 132 func (m *CreateUploadURLRequest) GetGsBucketName() string { 133 if m != nil && m.GsBucketName != nil { 134 return *m.GsBucketName 135 } 136 return "" 137 } 138 139 func (m *CreateUploadURLRequest) GetUrlExpiryTimeSeconds() int32 { 140 if m != nil && m.UrlExpiryTimeSeconds != nil { 141 return *m.UrlExpiryTimeSeconds 142 } 143 return 0 144 } 145 146 type CreateUploadURLResponse struct { 147 Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"` 148 XXX_unrecognized []byte `json:"-"` 149 } 150 151 func (m *CreateUploadURLResponse) Reset() { *m = CreateUploadURLResponse{} } 152 func (m *CreateUploadURLResponse) String() string { return proto.CompactTextString(m) } 153 func (*CreateUploadURLResponse) ProtoMessage() {} 154 155 func (m *CreateUploadURLResponse) GetUrl() string { 156 if m != nil && m.Url != nil { 157 return *m.Url 158 } 159 return "" 160 } 161 162 type 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 168 func (m *DeleteBlobRequest) Reset() { *m = DeleteBlobRequest{} } 169 func (m *DeleteBlobRequest) String() string { return proto.CompactTextString(m) } 170 func (*DeleteBlobRequest) ProtoMessage() {} 171 172 func (m *DeleteBlobRequest) GetBlobKey() []string { 173 if m != nil { 174 return m.BlobKey 175 } 176 return nil 177 } 178 179 func (m *DeleteBlobRequest) GetToken() string { 180 if m != nil && m.Token != nil { 181 return *m.Token 182 } 183 return "" 184 } 185 186 type 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 193 func (m *FetchDataRequest) Reset() { *m = FetchDataRequest{} } 194 func (m *FetchDataRequest) String() string { return proto.CompactTextString(m) } 195 func (*FetchDataRequest) ProtoMessage() {} 196 197 func (m *FetchDataRequest) GetBlobKey() string { 198 if m != nil && m.BlobKey != nil { 199 return *m.BlobKey 200 } 201 return "" 202 } 203 204 func (m *FetchDataRequest) GetStartIndex() int64 { 205 if m != nil && m.StartIndex != nil { 206 return *m.StartIndex 207 } 208 return 0 209 } 210 211 func (m *FetchDataRequest) GetEndIndex() int64 { 212 if m != nil && m.EndIndex != nil { 213 return *m.EndIndex 214 } 215 return 0 216 } 217 218 type FetchDataResponse struct { 219 Data []byte `protobuf:"bytes,1000,req,name=data" json:"data,omitempty"` 220 XXX_unrecognized []byte `json:"-"` 221 } 222 223 func (m *FetchDataResponse) Reset() { *m = FetchDataResponse{} } 224 func (m *FetchDataResponse) String() string { return proto.CompactTextString(m) } 225 func (*FetchDataResponse) ProtoMessage() {} 226 227 func (m *FetchDataResponse) GetData() []byte { 228 if m != nil { 229 return m.Data 230 } 231 return nil 232 } 233 234 type 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 241 func (m *CloneBlobRequest) Reset() { *m = CloneBlobRequest{} } 242 func (m *CloneBlobRequest) String() string { return proto.CompactTextString(m) } 243 func (*CloneBlobRequest) ProtoMessage() {} 244 245 func (m *CloneBlobRequest) GetBlobKey() []byte { 246 if m != nil { 247 return m.BlobKey 248 } 249 return nil 250 } 251 252 func (m *CloneBlobRequest) GetMimeType() []byte { 253 if m != nil { 254 return m.MimeType 255 } 256 return nil 257 } 258 259 func (m *CloneBlobRequest) GetTargetAppId() []byte { 260 if m != nil { 261 return m.TargetAppId 262 } 263 return nil 264 } 265 266 type CloneBlobResponse struct { 267 BlobKey []byte `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"` 268 XXX_unrecognized []byte `json:"-"` 269 } 270 271 func (m *CloneBlobResponse) Reset() { *m = CloneBlobResponse{} } 272 func (m *CloneBlobResponse) String() string { return proto.CompactTextString(m) } 273 func (*CloneBlobResponse) ProtoMessage() {} 274 275 func (m *CloneBlobResponse) GetBlobKey() []byte { 276 if m != nil { 277 return m.BlobKey 278 } 279 return nil 280 } 281 282 type DecodeBlobKeyRequest struct { 283 BlobKey []string `protobuf:"bytes,1,rep,name=blob_key" json:"blob_key,omitempty"` 284 XXX_unrecognized []byte `json:"-"` 285 } 286 287 func (m *DecodeBlobKeyRequest) Reset() { *m = DecodeBlobKeyRequest{} } 288 func (m *DecodeBlobKeyRequest) String() string { return proto.CompactTextString(m) } 289 func (*DecodeBlobKeyRequest) ProtoMessage() {} 290 291 func (m *DecodeBlobKeyRequest) GetBlobKey() []string { 292 if m != nil { 293 return m.BlobKey 294 } 295 return nil 296 } 297 298 type DecodeBlobKeyResponse struct { 299 Decoded []string `protobuf:"bytes,1,rep,name=decoded" json:"decoded,omitempty"` 300 XXX_unrecognized []byte `json:"-"` 301 } 302 303 func (m *DecodeBlobKeyResponse) Reset() { *m = DecodeBlobKeyResponse{} } 304 func (m *DecodeBlobKeyResponse) String() string { return proto.CompactTextString(m) } 305 func (*DecodeBlobKeyResponse) ProtoMessage() {} 306 307 func (m *DecodeBlobKeyResponse) GetDecoded() []string { 308 if m != nil { 309 return m.Decoded 310 } 311 return nil 312 } 313 314 type CreateEncodedGoogleStorageKeyRequest struct { 315 Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"` 316 XXX_unrecognized []byte `json:"-"` 317 } 318 319 func (m *CreateEncodedGoogleStorageKeyRequest) Reset() { *m = CreateEncodedGoogleStorageKeyRequest{} } 320 func (m *CreateEncodedGoogleStorageKeyRequest) String() string { return proto.CompactTextString(m) } 321 func (*CreateEncodedGoogleStorageKeyRequest) ProtoMessage() {} 322 323 func (m *CreateEncodedGoogleStorageKeyRequest) GetFilename() string { 324 if m != nil && m.Filename != nil { 325 return *m.Filename 326 } 327 return "" 328 } 329 330 type CreateEncodedGoogleStorageKeyResponse struct { 331 BlobKey *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"` 332 XXX_unrecognized []byte `json:"-"` 333 } 334 335 func (m *CreateEncodedGoogleStorageKeyResponse) Reset() { *m = CreateEncodedGoogleStorageKeyResponse{} } 336 func (m *CreateEncodedGoogleStorageKeyResponse) String() string { return proto.CompactTextString(m) } 337 func (*CreateEncodedGoogleStorageKeyResponse) ProtoMessage() {} 338 339 func (m *CreateEncodedGoogleStorageKeyResponse) GetBlobKey() string { 340 if m != nil && m.BlobKey != nil { 341 return *m.BlobKey 342 } 343 return "" 344 } 345 346 func init() { 347 }