262 lines
8.3 KiB
Go
262 lines
8.3 KiB
Go
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
|
// versions:
|
||
|
|
// protoc-gen-go v1.36.8
|
||
|
|
// protoc v6.32.1
|
||
|
|
// source: imageStorage.proto
|
||
|
|
|
||
|
|
package imageStorage
|
||
|
|
|
||
|
|
import (
|
||
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
|
emptypb "google.golang.org/protobuf/types/known/emptypb"
|
||
|
|
reflect "reflect"
|
||
|
|
sync "sync"
|
||
|
|
unsafe "unsafe"
|
||
|
|
)
|
||
|
|
|
||
|
|
const (
|
||
|
|
// Verify that this generated code is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
|
|
)
|
||
|
|
|
||
|
|
type UploadMerchImageRequest struct {
|
||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||
|
|
ImageData []byte `protobuf:"bytes,1,opt,name=imageData,proto3" json:"imageData,omitempty"`
|
||
|
|
UserUuid string `protobuf:"bytes,2,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
|
||
|
|
MerchUuid string `protobuf:"bytes,3,opt,name=merchUuid,proto3" json:"merchUuid,omitempty"`
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) Reset() {
|
||
|
|
*x = UploadMerchImageRequest{}
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[0]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*UploadMerchImageRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[0]
|
||
|
|
if x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use UploadMerchImageRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*UploadMerchImageRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_imageStorage_proto_rawDescGZIP(), []int{0}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) GetImageData() []byte {
|
||
|
|
if x != nil {
|
||
|
|
return x.ImageData
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) GetUserUuid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.UserUuid
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageRequest) GetMerchUuid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.MerchUuid
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
type UploadMerchImageResponse struct {
|
||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||
|
|
FullImage string `protobuf:"bytes,1,opt,name=fullImage,proto3" json:"fullImage,omitempty"`
|
||
|
|
Thumbnail string `protobuf:"bytes,2,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"`
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageResponse) Reset() {
|
||
|
|
*x = UploadMerchImageResponse{}
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[1]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageResponse) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*UploadMerchImageResponse) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageResponse) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[1]
|
||
|
|
if x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use UploadMerchImageResponse.ProtoReflect.Descriptor instead.
|
||
|
|
func (*UploadMerchImageResponse) Descriptor() ([]byte, []int) {
|
||
|
|
return file_imageStorage_proto_rawDescGZIP(), []int{1}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageResponse) GetFullImage() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.FullImage
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UploadMerchImageResponse) GetThumbnail() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.Thumbnail
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
type DeleteImageRequest struct {
|
||
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||
|
|
UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
|
||
|
|
MerchUuid string `protobuf:"bytes,2,opt,name=merchUuid,proto3" json:"merchUuid,omitempty"`
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteImageRequest) Reset() {
|
||
|
|
*x = DeleteImageRequest{}
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[2]
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteImageRequest) String() string {
|
||
|
|
return protoimpl.X.MessageStringOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*DeleteImageRequest) ProtoMessage() {}
|
||
|
|
|
||
|
|
func (x *DeleteImageRequest) ProtoReflect() protoreflect.Message {
|
||
|
|
mi := &file_imageStorage_proto_msgTypes[2]
|
||
|
|
if x != nil {
|
||
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
|
|
if ms.LoadMessageInfo() == nil {
|
||
|
|
ms.StoreMessageInfo(mi)
|
||
|
|
}
|
||
|
|
return ms
|
||
|
|
}
|
||
|
|
return mi.MessageOf(x)
|
||
|
|
}
|
||
|
|
|
||
|
|
// Deprecated: Use DeleteImageRequest.ProtoReflect.Descriptor instead.
|
||
|
|
func (*DeleteImageRequest) Descriptor() ([]byte, []int) {
|
||
|
|
return file_imageStorage_proto_rawDescGZIP(), []int{2}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteImageRequest) GetUserUuid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.UserUuid
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteImageRequest) GetMerchUuid() string {
|
||
|
|
if x != nil {
|
||
|
|
return x.MerchUuid
|
||
|
|
}
|
||
|
|
return ""
|
||
|
|
}
|
||
|
|
|
||
|
|
var File_imageStorage_proto protoreflect.FileDescriptor
|
||
|
|
|
||
|
|
const file_imageStorage_proto_rawDesc = "" +
|
||
|
|
"\n" +
|
||
|
|
"\x12imageStorage.proto\x12\fimageStorage\x1a\x1bgoogle/protobuf/empty.proto\"q\n" +
|
||
|
|
"\x17UploadMerchImageRequest\x12\x1c\n" +
|
||
|
|
"\timageData\x18\x01 \x01(\fR\timageData\x12\x1a\n" +
|
||
|
|
"\buserUuid\x18\x02 \x01(\tR\buserUuid\x12\x1c\n" +
|
||
|
|
"\tmerchUuid\x18\x03 \x01(\tR\tmerchUuid\"V\n" +
|
||
|
|
"\x18UploadMerchImageResponse\x12\x1c\n" +
|
||
|
|
"\tfullImage\x18\x01 \x01(\tR\tfullImage\x12\x1c\n" +
|
||
|
|
"\tthumbnail\x18\x02 \x01(\tR\tthumbnail\"N\n" +
|
||
|
|
"\x12DeleteImageRequest\x12\x1a\n" +
|
||
|
|
"\buserUuid\x18\x01 \x01(\tR\buserUuid\x12\x1c\n" +
|
||
|
|
"\tmerchUuid\x18\x02 \x01(\tR\tmerchUuid2\xb5\x01\n" +
|
||
|
|
"\fImageStorage\x12\\\n" +
|
||
|
|
"\vUploadImage\x12%.imageStorage.UploadMerchImageRequest\x1a&.imageStorage.UploadMerchImageResponse\x12G\n" +
|
||
|
|
"\vDeleteImage\x12 .imageStorage.DeleteImageRequest\x1a\x16.google.protobuf.EmptyB%Z#imageStorage/pkg/proto/imageStorageb\x06proto3"
|
||
|
|
|
||
|
|
var (
|
||
|
|
file_imageStorage_proto_rawDescOnce sync.Once
|
||
|
|
file_imageStorage_proto_rawDescData []byte
|
||
|
|
)
|
||
|
|
|
||
|
|
func file_imageStorage_proto_rawDescGZIP() []byte {
|
||
|
|
file_imageStorage_proto_rawDescOnce.Do(func() {
|
||
|
|
file_imageStorage_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_imageStorage_proto_rawDesc), len(file_imageStorage_proto_rawDesc)))
|
||
|
|
})
|
||
|
|
return file_imageStorage_proto_rawDescData
|
||
|
|
}
|
||
|
|
|
||
|
|
var file_imageStorage_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||
|
|
var file_imageStorage_proto_goTypes = []any{
|
||
|
|
(*UploadMerchImageRequest)(nil), // 0: imageStorage.UploadMerchImageRequest
|
||
|
|
(*UploadMerchImageResponse)(nil), // 1: imageStorage.UploadMerchImageResponse
|
||
|
|
(*DeleteImageRequest)(nil), // 2: imageStorage.DeleteImageRequest
|
||
|
|
(*emptypb.Empty)(nil), // 3: google.protobuf.Empty
|
||
|
|
}
|
||
|
|
var file_imageStorage_proto_depIdxs = []int32{
|
||
|
|
0, // 0: imageStorage.ImageStorage.UploadImage:input_type -> imageStorage.UploadMerchImageRequest
|
||
|
|
2, // 1: imageStorage.ImageStorage.DeleteImage:input_type -> imageStorage.DeleteImageRequest
|
||
|
|
1, // 2: imageStorage.ImageStorage.UploadImage:output_type -> imageStorage.UploadMerchImageResponse
|
||
|
|
3, // 3: imageStorage.ImageStorage.DeleteImage:output_type -> google.protobuf.Empty
|
||
|
|
2, // [2:4] is the sub-list for method output_type
|
||
|
|
0, // [0:2] is the sub-list for method input_type
|
||
|
|
0, // [0:0] is the sub-list for extension type_name
|
||
|
|
0, // [0:0] is the sub-list for extension extendee
|
||
|
|
0, // [0:0] is the sub-list for field type_name
|
||
|
|
}
|
||
|
|
|
||
|
|
func init() { file_imageStorage_proto_init() }
|
||
|
|
func file_imageStorage_proto_init() {
|
||
|
|
if File_imageStorage_proto != nil {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
type x struct{}
|
||
|
|
out := protoimpl.TypeBuilder{
|
||
|
|
File: protoimpl.DescBuilder{
|
||
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_imageStorage_proto_rawDesc), len(file_imageStorage_proto_rawDesc)),
|
||
|
|
NumEnums: 0,
|
||
|
|
NumMessages: 3,
|
||
|
|
NumExtensions: 0,
|
||
|
|
NumServices: 1,
|
||
|
|
},
|
||
|
|
GoTypes: file_imageStorage_proto_goTypes,
|
||
|
|
DependencyIndexes: file_imageStorage_proto_depIdxs,
|
||
|
|
MessageInfos: file_imageStorage_proto_msgTypes,
|
||
|
|
}.Build()
|
||
|
|
File_imageStorage_proto = out.File
|
||
|
|
file_imageStorage_proto_goTypes = nil
|
||
|
|
file_imageStorage_proto_depIdxs = nil
|
||
|
|
}
|