/appengine_internal/blobstore/blobstore_service.pb.go

https://code.google.com/p/appengine-go/ · Go · 166 lines · 131 code · 32 blank · 3 comment · 0 complexity · 759387997be1bb2a1b7f78b8de0f77ba MD5 · raw file

  1. // Code generated by protoc-gen-go from "blobstore_service.proto"
  2. // DO NOT EDIT!
  3. package appengine
  4. import proto "code.google.com/p/goprotobuf/proto"
  5. import "math"
  6. // Reference proto and math imports to suppress error if they are not otherwise used.
  7. var _ = proto.GetString
  8. var _ = math.Inf
  9. type BlobstoreServiceError_ErrorCode int32
  10. const (
  11. BlobstoreServiceError_OK BlobstoreServiceError_ErrorCode = 0
  12. BlobstoreServiceError_INTERNAL_ERROR BlobstoreServiceError_ErrorCode = 1
  13. BlobstoreServiceError_URL_TOO_LONG BlobstoreServiceError_ErrorCode = 2
  14. BlobstoreServiceError_PERMISSION_DENIED BlobstoreServiceError_ErrorCode = 3
  15. BlobstoreServiceError_BLOB_NOT_FOUND BlobstoreServiceError_ErrorCode = 4
  16. BlobstoreServiceError_DATA_INDEX_OUT_OF_RANGE BlobstoreServiceError_ErrorCode = 5
  17. BlobstoreServiceError_BLOB_FETCH_SIZE_TOO_LARGE BlobstoreServiceError_ErrorCode = 6
  18. BlobstoreServiceError_ARGUMENT_OUT_OF_RANGE BlobstoreServiceError_ErrorCode = 8
  19. )
  20. var BlobstoreServiceError_ErrorCode_name = map[int32]string{
  21. 0: "OK",
  22. 1: "INTERNAL_ERROR",
  23. 2: "URL_TOO_LONG",
  24. 3: "PERMISSION_DENIED",
  25. 4: "BLOB_NOT_FOUND",
  26. 5: "DATA_INDEX_OUT_OF_RANGE",
  27. 6: "BLOB_FETCH_SIZE_TOO_LARGE",
  28. 8: "ARGUMENT_OUT_OF_RANGE",
  29. }
  30. var BlobstoreServiceError_ErrorCode_value = map[string]int32{
  31. "OK": 0,
  32. "INTERNAL_ERROR": 1,
  33. "URL_TOO_LONG": 2,
  34. "PERMISSION_DENIED": 3,
  35. "BLOB_NOT_FOUND": 4,
  36. "DATA_INDEX_OUT_OF_RANGE": 5,
  37. "BLOB_FETCH_SIZE_TOO_LARGE": 6,
  38. "ARGUMENT_OUT_OF_RANGE": 8,
  39. }
  40. func NewBlobstoreServiceError_ErrorCode(x BlobstoreServiceError_ErrorCode) *BlobstoreServiceError_ErrorCode {
  41. e := BlobstoreServiceError_ErrorCode(x)
  42. return &e
  43. }
  44. func (x BlobstoreServiceError_ErrorCode) String() string {
  45. return proto.EnumName(BlobstoreServiceError_ErrorCode_name, int32(x))
  46. }
  47. type BlobstoreServiceError struct {
  48. XXX_unrecognized []byte `json:"-"`
  49. }
  50. func (this *BlobstoreServiceError) Reset() { *this = BlobstoreServiceError{} }
  51. func (this *BlobstoreServiceError) String() string { return proto.CompactTextString(this) }
  52. type CreateUploadURLRequest struct {
  53. SuccessPath *string `protobuf:"bytes,1,req,name=success_path" json:"success_path,omitempty"`
  54. MaxUploadSizeBytes *int64 `protobuf:"varint,2,opt,name=max_upload_size_bytes" json:"max_upload_size_bytes,omitempty"`
  55. MaxUploadSizePerBlobBytes *int64 `protobuf:"varint,3,opt,name=max_upload_size_per_blob_bytes" json:"max_upload_size_per_blob_bytes,omitempty"`
  56. XXX_unrecognized []byte `json:"-"`
  57. }
  58. func (this *CreateUploadURLRequest) Reset() { *this = CreateUploadURLRequest{} }
  59. func (this *CreateUploadURLRequest) String() string { return proto.CompactTextString(this) }
  60. type CreateUploadURLResponse struct {
  61. Url *string `protobuf:"bytes,1,req,name=url" json:"url,omitempty"`
  62. XXX_unrecognized []byte `json:"-"`
  63. }
  64. func (this *CreateUploadURLResponse) Reset() { *this = CreateUploadURLResponse{} }
  65. func (this *CreateUploadURLResponse) String() string { return proto.CompactTextString(this) }
  66. type DeleteBlobRequest struct {
  67. BlobKey []string `protobuf:"bytes,1,rep,name=blob_key" json:"blob_key,omitempty"`
  68. XXX_unrecognized []byte `json:"-"`
  69. }
  70. func (this *DeleteBlobRequest) Reset() { *this = DeleteBlobRequest{} }
  71. func (this *DeleteBlobRequest) String() string { return proto.CompactTextString(this) }
  72. type FetchDataRequest struct {
  73. BlobKey *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
  74. StartIndex *int64 `protobuf:"varint,2,req,name=start_index" json:"start_index,omitempty"`
  75. EndIndex *int64 `protobuf:"varint,3,req,name=end_index" json:"end_index,omitempty"`
  76. XXX_unrecognized []byte `json:"-"`
  77. }
  78. func (this *FetchDataRequest) Reset() { *this = FetchDataRequest{} }
  79. func (this *FetchDataRequest) String() string { return proto.CompactTextString(this) }
  80. type FetchDataResponse struct {
  81. Data []byte `protobuf:"bytes,1000,req,name=data" json:"data,omitempty"`
  82. XXX_unrecognized []byte `json:"-"`
  83. }
  84. func (this *FetchDataResponse) Reset() { *this = FetchDataResponse{} }
  85. func (this *FetchDataResponse) String() string { return proto.CompactTextString(this) }
  86. type CloneBlobRequest struct {
  87. BlobKey []byte `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
  88. MimeType []byte `protobuf:"bytes,2,req,name=mime_type" json:"mime_type,omitempty"`
  89. TargetAppId []byte `protobuf:"bytes,3,req,name=target_app_id" json:"target_app_id,omitempty"`
  90. XXX_unrecognized []byte `json:"-"`
  91. }
  92. func (this *CloneBlobRequest) Reset() { *this = CloneBlobRequest{} }
  93. func (this *CloneBlobRequest) String() string { return proto.CompactTextString(this) }
  94. type CloneBlobResponse struct {
  95. BlobKey []byte `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
  96. XXX_unrecognized []byte `json:"-"`
  97. }
  98. func (this *CloneBlobResponse) Reset() { *this = CloneBlobResponse{} }
  99. func (this *CloneBlobResponse) String() string { return proto.CompactTextString(this) }
  100. type DecodeBlobKeyRequest struct {
  101. BlobKey []string `protobuf:"bytes,1,rep,name=blob_key" json:"blob_key,omitempty"`
  102. XXX_unrecognized []byte `json:"-"`
  103. }
  104. func (this *DecodeBlobKeyRequest) Reset() { *this = DecodeBlobKeyRequest{} }
  105. func (this *DecodeBlobKeyRequest) String() string { return proto.CompactTextString(this) }
  106. type DecodeBlobKeyResponse struct {
  107. Decoded []string `protobuf:"bytes,1,rep,name=decoded" json:"decoded,omitempty"`
  108. XXX_unrecognized []byte `json:"-"`
  109. }
  110. func (this *DecodeBlobKeyResponse) Reset() { *this = DecodeBlobKeyResponse{} }
  111. func (this *DecodeBlobKeyResponse) String() string { return proto.CompactTextString(this) }
  112. type CreateEncodedGoogleStorageKeyRequest struct {
  113. Filename *string `protobuf:"bytes,1,req,name=filename" json:"filename,omitempty"`
  114. XXX_unrecognized []byte `json:"-"`
  115. }
  116. func (this *CreateEncodedGoogleStorageKeyRequest) Reset() {
  117. *this = CreateEncodedGoogleStorageKeyRequest{}
  118. }
  119. func (this *CreateEncodedGoogleStorageKeyRequest) String() string {
  120. return proto.CompactTextString(this)
  121. }
  122. type CreateEncodedGoogleStorageKeyResponse struct {
  123. BlobKey *string `protobuf:"bytes,1,req,name=blob_key" json:"blob_key,omitempty"`
  124. XXX_unrecognized []byte `json:"-"`
  125. }
  126. func (this *CreateEncodedGoogleStorageKeyResponse) Reset() {
  127. *this = CreateEncodedGoogleStorageKeyResponse{}
  128. }
  129. func (this *CreateEncodedGoogleStorageKeyResponse) String() string {
  130. return proto.CompactTextString(this)
  131. }
  132. func init() {
  133. proto.RegisterEnum("appengine.BlobstoreServiceError_ErrorCode", BlobstoreServiceError_ErrorCode_name, BlobstoreServiceError_ErrorCode_value)
  134. }