1056 lines
29 KiB
Go
1056 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.9
|
|
// protoc v6.32.1
|
|
// source: messages.proto
|
|
|
|
package messages
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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 AddRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Quantity int32 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
Sku string `protobuf:"bytes,2,opt,name=sku,proto3" json:"sku,omitempty"`
|
|
Country string `protobuf:"bytes,3,opt,name=country,proto3" json:"country,omitempty"`
|
|
StoreId *string `protobuf:"bytes,4,opt,name=storeId,proto3,oneof" json:"storeId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddRequest) Reset() {
|
|
*x = AddRequest{}
|
|
mi := &file_messages_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddRequest) ProtoMessage() {}
|
|
|
|
func (x *AddRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_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 AddRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddRequest) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AddRequest) GetQuantity() int32 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddRequest) GetSku() string {
|
|
if x != nil {
|
|
return x.Sku
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddRequest) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddRequest) GetStoreId() string {
|
|
if x != nil && x.StoreId != nil {
|
|
return *x.StoreId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetCartRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Items []*AddRequest `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetCartRequest) Reset() {
|
|
*x = SetCartRequest{}
|
|
mi := &file_messages_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetCartRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetCartRequest) ProtoMessage() {}
|
|
|
|
func (x *SetCartRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_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 SetCartRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetCartRequest) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SetCartRequest) GetItems() []*AddRequest {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ItemId int64 `protobuf:"varint,1,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
|
|
Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
|
|
OrgPrice int64 `protobuf:"varint,9,opt,name=orgPrice,proto3" json:"orgPrice,omitempty"`
|
|
Sku string `protobuf:"bytes,4,opt,name=sku,proto3" json:"sku,omitempty"`
|
|
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
|
Image string `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
|
|
Stock int32 `protobuf:"varint,7,opt,name=stock,proto3" json:"stock,omitempty"`
|
|
Tax int32 `protobuf:"varint,8,opt,name=tax,proto3" json:"tax,omitempty"`
|
|
Brand string `protobuf:"bytes,13,opt,name=brand,proto3" json:"brand,omitempty"`
|
|
Category string `protobuf:"bytes,14,opt,name=category,proto3" json:"category,omitempty"`
|
|
Category2 string `protobuf:"bytes,15,opt,name=category2,proto3" json:"category2,omitempty"`
|
|
Category3 string `protobuf:"bytes,16,opt,name=category3,proto3" json:"category3,omitempty"`
|
|
Category4 string `protobuf:"bytes,17,opt,name=category4,proto3" json:"category4,omitempty"`
|
|
Category5 string `protobuf:"bytes,18,opt,name=category5,proto3" json:"category5,omitempty"`
|
|
Disclaimer string `protobuf:"bytes,10,opt,name=disclaimer,proto3" json:"disclaimer,omitempty"`
|
|
ArticleType string `protobuf:"bytes,11,opt,name=articleType,proto3" json:"articleType,omitempty"`
|
|
SellerId string `protobuf:"bytes,19,opt,name=sellerId,proto3" json:"sellerId,omitempty"`
|
|
SellerName string `protobuf:"bytes,20,opt,name=sellerName,proto3" json:"sellerName,omitempty"`
|
|
Country string `protobuf:"bytes,21,opt,name=country,proto3" json:"country,omitempty"`
|
|
Outlet *string `protobuf:"bytes,12,opt,name=outlet,proto3,oneof" json:"outlet,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddItem) Reset() {
|
|
*x = AddItem{}
|
|
mi := &file_messages_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddItem) ProtoMessage() {}
|
|
|
|
func (x *AddItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_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 AddItem.ProtoReflect.Descriptor instead.
|
|
func (*AddItem) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AddItem) GetItemId() int64 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetQuantity() int32 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetPrice() int64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetOrgPrice() int64 {
|
|
if x != nil {
|
|
return x.OrgPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetSku() string {
|
|
if x != nil {
|
|
return x.Sku
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetImage() string {
|
|
if x != nil {
|
|
return x.Image
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetStock() int32 {
|
|
if x != nil {
|
|
return x.Stock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetTax() int32 {
|
|
if x != nil {
|
|
return x.Tax
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItem) GetBrand() string {
|
|
if x != nil {
|
|
return x.Brand
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCategory2() string {
|
|
if x != nil {
|
|
return x.Category2
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCategory3() string {
|
|
if x != nil {
|
|
return x.Category3
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCategory4() string {
|
|
if x != nil {
|
|
return x.Category4
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCategory5() string {
|
|
if x != nil {
|
|
return x.Category5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetDisclaimer() string {
|
|
if x != nil {
|
|
return x.Disclaimer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetArticleType() string {
|
|
if x != nil {
|
|
return x.ArticleType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetSellerId() string {
|
|
if x != nil {
|
|
return x.SellerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetSellerName() string {
|
|
if x != nil {
|
|
return x.SellerName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItem) GetOutlet() string {
|
|
if x != nil && x.Outlet != nil {
|
|
return *x.Outlet
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveItem struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveItem) Reset() {
|
|
*x = RemoveItem{}
|
|
mi := &file_messages_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveItem) ProtoMessage() {}
|
|
|
|
func (x *RemoveItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[3]
|
|
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 RemoveItem.ProtoReflect.Descriptor instead.
|
|
func (*RemoveItem) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RemoveItem) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChangeQuantity struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangeQuantity) Reset() {
|
|
*x = ChangeQuantity{}
|
|
mi := &file_messages_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangeQuantity) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangeQuantity) ProtoMessage() {}
|
|
|
|
func (x *ChangeQuantity) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[4]
|
|
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 ChangeQuantity.ProtoReflect.Descriptor instead.
|
|
func (*ChangeQuantity) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ChangeQuantity) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChangeQuantity) GetQuantity() int32 {
|
|
if x != nil {
|
|
return x.Quantity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetDelivery struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
Items []int64 `protobuf:"varint,2,rep,packed,name=items,proto3" json:"items,omitempty"`
|
|
PickupPoint *PickupPoint `protobuf:"bytes,3,opt,name=pickupPoint,proto3,oneof" json:"pickupPoint,omitempty"`
|
|
Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
|
|
Zip string `protobuf:"bytes,5,opt,name=zip,proto3" json:"zip,omitempty"`
|
|
Address *string `protobuf:"bytes,6,opt,name=address,proto3,oneof" json:"address,omitempty"`
|
|
City *string `protobuf:"bytes,7,opt,name=city,proto3,oneof" json:"city,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDelivery) Reset() {
|
|
*x = SetDelivery{}
|
|
mi := &file_messages_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDelivery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDelivery) ProtoMessage() {}
|
|
|
|
func (x *SetDelivery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[5]
|
|
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 SetDelivery.ProtoReflect.Descriptor instead.
|
|
func (*SetDelivery) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *SetDelivery) GetProvider() string {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetDelivery) GetItems() []int64 {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDelivery) GetPickupPoint() *PickupPoint {
|
|
if x != nil {
|
|
return x.PickupPoint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SetDelivery) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetDelivery) GetZip() string {
|
|
if x != nil {
|
|
return x.Zip
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetDelivery) GetAddress() string {
|
|
if x != nil && x.Address != nil {
|
|
return *x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetDelivery) GetCity() string {
|
|
if x != nil && x.City != nil {
|
|
return *x.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SetPickupPoint struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
DeliveryId int64 `protobuf:"varint,1,opt,name=deliveryId,proto3" json:"deliveryId,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
Address *string `protobuf:"bytes,4,opt,name=address,proto3,oneof" json:"address,omitempty"`
|
|
City *string `protobuf:"bytes,5,opt,name=city,proto3,oneof" json:"city,omitempty"`
|
|
Zip *string `protobuf:"bytes,6,opt,name=zip,proto3,oneof" json:"zip,omitempty"`
|
|
Country *string `protobuf:"bytes,7,opt,name=country,proto3,oneof" json:"country,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetPickupPoint) Reset() {
|
|
*x = SetPickupPoint{}
|
|
mi := &file_messages_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetPickupPoint) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetPickupPoint) ProtoMessage() {}
|
|
|
|
func (x *SetPickupPoint) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[6]
|
|
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 SetPickupPoint.ProtoReflect.Descriptor instead.
|
|
func (*SetPickupPoint) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetDeliveryId() int64 {
|
|
if x != nil {
|
|
return x.DeliveryId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetAddress() string {
|
|
if x != nil && x.Address != nil {
|
|
return *x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetCity() string {
|
|
if x != nil && x.City != nil {
|
|
return *x.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetZip() string {
|
|
if x != nil && x.Zip != nil {
|
|
return *x.Zip
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPoint) GetCountry() string {
|
|
if x != nil && x.Country != nil {
|
|
return *x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PickupPoint struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
|
|
Address *string `protobuf:"bytes,3,opt,name=address,proto3,oneof" json:"address,omitempty"`
|
|
City *string `protobuf:"bytes,4,opt,name=city,proto3,oneof" json:"city,omitempty"`
|
|
Zip *string `protobuf:"bytes,5,opt,name=zip,proto3,oneof" json:"zip,omitempty"`
|
|
Country *string `protobuf:"bytes,6,opt,name=country,proto3,oneof" json:"country,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PickupPoint) Reset() {
|
|
*x = PickupPoint{}
|
|
mi := &file_messages_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PickupPoint) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PickupPoint) ProtoMessage() {}
|
|
|
|
func (x *PickupPoint) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[7]
|
|
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 PickupPoint.ProtoReflect.Descriptor instead.
|
|
func (*PickupPoint) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *PickupPoint) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PickupPoint) GetName() string {
|
|
if x != nil && x.Name != nil {
|
|
return *x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PickupPoint) GetAddress() string {
|
|
if x != nil && x.Address != nil {
|
|
return *x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PickupPoint) GetCity() string {
|
|
if x != nil && x.City != nil {
|
|
return *x.City
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PickupPoint) GetZip() string {
|
|
if x != nil && x.Zip != nil {
|
|
return *x.Zip
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PickupPoint) GetCountry() string {
|
|
if x != nil && x.Country != nil {
|
|
return *x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RemoveDelivery struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveDelivery) Reset() {
|
|
*x = RemoveDelivery{}
|
|
mi := &file_messages_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveDelivery) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveDelivery) ProtoMessage() {}
|
|
|
|
func (x *RemoveDelivery) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[8]
|
|
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 RemoveDelivery.ProtoReflect.Descriptor instead.
|
|
func (*RemoveDelivery) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RemoveDelivery) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateCheckoutOrder struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Terms string `protobuf:"bytes,1,opt,name=terms,proto3" json:"terms,omitempty"`
|
|
Checkout string `protobuf:"bytes,2,opt,name=checkout,proto3" json:"checkout,omitempty"`
|
|
Confirmation string `protobuf:"bytes,3,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
|
|
Push string `protobuf:"bytes,4,opt,name=push,proto3" json:"push,omitempty"`
|
|
Validation string `protobuf:"bytes,5,opt,name=validation,proto3" json:"validation,omitempty"`
|
|
Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) Reset() {
|
|
*x = CreateCheckoutOrder{}
|
|
mi := &file_messages_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCheckoutOrder) ProtoMessage() {}
|
|
|
|
func (x *CreateCheckoutOrder) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[9]
|
|
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 CreateCheckoutOrder.ProtoReflect.Descriptor instead.
|
|
func (*CreateCheckoutOrder) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetTerms() string {
|
|
if x != nil {
|
|
return x.Terms
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetCheckout() string {
|
|
if x != nil {
|
|
return x.Checkout
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetConfirmation() string {
|
|
if x != nil {
|
|
return x.Confirmation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetPush() string {
|
|
if x != nil {
|
|
return x.Push
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetValidation() string {
|
|
if x != nil {
|
|
return x.Validation
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrder) GetCountry() string {
|
|
if x != nil {
|
|
return x.Country
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type OrderCreated struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrderCreated) Reset() {
|
|
*x = OrderCreated{}
|
|
mi := &file_messages_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrderCreated) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderCreated) ProtoMessage() {}
|
|
|
|
func (x *OrderCreated) ProtoReflect() protoreflect.Message {
|
|
mi := &file_messages_proto_msgTypes[10]
|
|
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 OrderCreated.ProtoReflect.Descriptor instead.
|
|
func (*OrderCreated) Descriptor() ([]byte, []int) {
|
|
return file_messages_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *OrderCreated) GetOrderId() string {
|
|
if x != nil {
|
|
return x.OrderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrderCreated) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_messages_proto protoreflect.FileDescriptor
|
|
|
|
const file_messages_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x0emessages.proto\x12\bmessages\"\x7f\n" +
|
|
"\n" +
|
|
"AddRequest\x12\x1a\n" +
|
|
"\bquantity\x18\x01 \x01(\x05R\bquantity\x12\x10\n" +
|
|
"\x03sku\x18\x02 \x01(\tR\x03sku\x12\x18\n" +
|
|
"\acountry\x18\x03 \x01(\tR\acountry\x12\x1d\n" +
|
|
"\astoreId\x18\x04 \x01(\tH\x00R\astoreId\x88\x01\x01B\n" +
|
|
"\n" +
|
|
"\b_storeId\"<\n" +
|
|
"\x0eSetCartRequest\x12*\n" +
|
|
"\x05items\x18\x01 \x03(\v2\x14.messages.AddRequestR\x05items\"\xbe\x04\n" +
|
|
"\aAddItem\x12\x17\n" +
|
|
"\aitem_id\x18\x01 \x01(\x03R\x06itemId\x12\x1a\n" +
|
|
"\bquantity\x18\x02 \x01(\x05R\bquantity\x12\x14\n" +
|
|
"\x05price\x18\x03 \x01(\x03R\x05price\x12\x1a\n" +
|
|
"\borgPrice\x18\t \x01(\x03R\borgPrice\x12\x10\n" +
|
|
"\x03sku\x18\x04 \x01(\tR\x03sku\x12\x12\n" +
|
|
"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05image\x18\x06 \x01(\tR\x05image\x12\x14\n" +
|
|
"\x05stock\x18\a \x01(\x05R\x05stock\x12\x10\n" +
|
|
"\x03tax\x18\b \x01(\x05R\x03tax\x12\x14\n" +
|
|
"\x05brand\x18\r \x01(\tR\x05brand\x12\x1a\n" +
|
|
"\bcategory\x18\x0e \x01(\tR\bcategory\x12\x1c\n" +
|
|
"\tcategory2\x18\x0f \x01(\tR\tcategory2\x12\x1c\n" +
|
|
"\tcategory3\x18\x10 \x01(\tR\tcategory3\x12\x1c\n" +
|
|
"\tcategory4\x18\x11 \x01(\tR\tcategory4\x12\x1c\n" +
|
|
"\tcategory5\x18\x12 \x01(\tR\tcategory5\x12\x1e\n" +
|
|
"\n" +
|
|
"disclaimer\x18\n" +
|
|
" \x01(\tR\n" +
|
|
"disclaimer\x12 \n" +
|
|
"\varticleType\x18\v \x01(\tR\varticleType\x12\x1a\n" +
|
|
"\bsellerId\x18\x13 \x01(\tR\bsellerId\x12\x1e\n" +
|
|
"\n" +
|
|
"sellerName\x18\x14 \x01(\tR\n" +
|
|
"sellerName\x12\x18\n" +
|
|
"\acountry\x18\x15 \x01(\tR\acountry\x12\x1b\n" +
|
|
"\x06outlet\x18\f \x01(\tH\x00R\x06outlet\x88\x01\x01B\t\n" +
|
|
"\a_outlet\"\x1c\n" +
|
|
"\n" +
|
|
"RemoveItem\x12\x0e\n" +
|
|
"\x02Id\x18\x01 \x01(\x03R\x02Id\"<\n" +
|
|
"\x0eChangeQuantity\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
|
"\bquantity\x18\x02 \x01(\x05R\bquantity\"\x86\x02\n" +
|
|
"\vSetDelivery\x12\x1a\n" +
|
|
"\bprovider\x18\x01 \x01(\tR\bprovider\x12\x14\n" +
|
|
"\x05items\x18\x02 \x03(\x03R\x05items\x12<\n" +
|
|
"\vpickupPoint\x18\x03 \x01(\v2\x15.messages.PickupPointH\x00R\vpickupPoint\x88\x01\x01\x12\x18\n" +
|
|
"\acountry\x18\x04 \x01(\tR\acountry\x12\x10\n" +
|
|
"\x03zip\x18\x05 \x01(\tR\x03zip\x12\x1d\n" +
|
|
"\aaddress\x18\x06 \x01(\tH\x01R\aaddress\x88\x01\x01\x12\x17\n" +
|
|
"\x04city\x18\a \x01(\tH\x02R\x04city\x88\x01\x01B\x0e\n" +
|
|
"\f_pickupPointB\n" +
|
|
"\n" +
|
|
"\b_addressB\a\n" +
|
|
"\x05_city\"\xf9\x01\n" +
|
|
"\x0eSetPickupPoint\x12\x1e\n" +
|
|
"\n" +
|
|
"deliveryId\x18\x01 \x01(\x03R\n" +
|
|
"deliveryId\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\tR\x02id\x12\x17\n" +
|
|
"\x04name\x18\x03 \x01(\tH\x00R\x04name\x88\x01\x01\x12\x1d\n" +
|
|
"\aaddress\x18\x04 \x01(\tH\x01R\aaddress\x88\x01\x01\x12\x17\n" +
|
|
"\x04city\x18\x05 \x01(\tH\x02R\x04city\x88\x01\x01\x12\x15\n" +
|
|
"\x03zip\x18\x06 \x01(\tH\x03R\x03zip\x88\x01\x01\x12\x1d\n" +
|
|
"\acountry\x18\a \x01(\tH\x04R\acountry\x88\x01\x01B\a\n" +
|
|
"\x05_nameB\n" +
|
|
"\n" +
|
|
"\b_addressB\a\n" +
|
|
"\x05_cityB\x06\n" +
|
|
"\x04_zipB\n" +
|
|
"\n" +
|
|
"\b_country\"\xd6\x01\n" +
|
|
"\vPickupPoint\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
|
"\x04name\x18\x02 \x01(\tH\x00R\x04name\x88\x01\x01\x12\x1d\n" +
|
|
"\aaddress\x18\x03 \x01(\tH\x01R\aaddress\x88\x01\x01\x12\x17\n" +
|
|
"\x04city\x18\x04 \x01(\tH\x02R\x04city\x88\x01\x01\x12\x15\n" +
|
|
"\x03zip\x18\x05 \x01(\tH\x03R\x03zip\x88\x01\x01\x12\x1d\n" +
|
|
"\acountry\x18\x06 \x01(\tH\x04R\acountry\x88\x01\x01B\a\n" +
|
|
"\x05_nameB\n" +
|
|
"\n" +
|
|
"\b_addressB\a\n" +
|
|
"\x05_cityB\x06\n" +
|
|
"\x04_zipB\n" +
|
|
"\n" +
|
|
"\b_country\" \n" +
|
|
"\x0eRemoveDelivery\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\"\xb9\x01\n" +
|
|
"\x13CreateCheckoutOrder\x12\x14\n" +
|
|
"\x05terms\x18\x01 \x01(\tR\x05terms\x12\x1a\n" +
|
|
"\bcheckout\x18\x02 \x01(\tR\bcheckout\x12\"\n" +
|
|
"\fconfirmation\x18\x03 \x01(\tR\fconfirmation\x12\x12\n" +
|
|
"\x04push\x18\x04 \x01(\tR\x04push\x12\x1e\n" +
|
|
"\n" +
|
|
"validation\x18\x05 \x01(\tR\n" +
|
|
"validation\x12\x18\n" +
|
|
"\acountry\x18\x06 \x01(\tR\acountry\"@\n" +
|
|
"\fOrderCreated\x12\x18\n" +
|
|
"\aorderId\x18\x01 \x01(\tR\aorderId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06statusB\fZ\n" +
|
|
".;messagesb\x06proto3"
|
|
|
|
var (
|
|
file_messages_proto_rawDescOnce sync.Once
|
|
file_messages_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_messages_proto_rawDescGZIP() []byte {
|
|
file_messages_proto_rawDescOnce.Do(func() {
|
|
file_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)))
|
|
})
|
|
return file_messages_proto_rawDescData
|
|
}
|
|
|
|
var file_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
var file_messages_proto_goTypes = []any{
|
|
(*AddRequest)(nil), // 0: messages.AddRequest
|
|
(*SetCartRequest)(nil), // 1: messages.SetCartRequest
|
|
(*AddItem)(nil), // 2: messages.AddItem
|
|
(*RemoveItem)(nil), // 3: messages.RemoveItem
|
|
(*ChangeQuantity)(nil), // 4: messages.ChangeQuantity
|
|
(*SetDelivery)(nil), // 5: messages.SetDelivery
|
|
(*SetPickupPoint)(nil), // 6: messages.SetPickupPoint
|
|
(*PickupPoint)(nil), // 7: messages.PickupPoint
|
|
(*RemoveDelivery)(nil), // 8: messages.RemoveDelivery
|
|
(*CreateCheckoutOrder)(nil), // 9: messages.CreateCheckoutOrder
|
|
(*OrderCreated)(nil), // 10: messages.OrderCreated
|
|
}
|
|
var file_messages_proto_depIdxs = []int32{
|
|
0, // 0: messages.SetCartRequest.items:type_name -> messages.AddRequest
|
|
7, // 1: messages.SetDelivery.pickupPoint:type_name -> messages.PickupPoint
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_messages_proto_init() }
|
|
func file_messages_proto_init() {
|
|
if File_messages_proto != nil {
|
|
return
|
|
}
|
|
file_messages_proto_msgTypes[0].OneofWrappers = []any{}
|
|
file_messages_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_messages_proto_msgTypes[5].OneofWrappers = []any{}
|
|
file_messages_proto_msgTypes[6].OneofWrappers = []any{}
|
|
file_messages_proto_msgTypes[7].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_messages_proto_rawDesc), len(file_messages_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 11,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_messages_proto_goTypes,
|
|
DependencyIndexes: file_messages_proto_depIdxs,
|
|
MessageInfos: file_messages_proto_msgTypes,
|
|
}.Build()
|
|
File_messages_proto = out.File
|
|
file_messages_proto_goTypes = nil
|
|
file_messages_proto_depIdxs = nil
|
|
}
|