Files
go-cart-actor/proto/cart/cart.pb.go
matst80 b4ffb9da85
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Failing after 30s
Build and Publish / BuildAndDeployArm64 (push) Failing after 13m2s
update
2025-12-05 07:44:34 +01:00

1199 lines
34 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc v6.33.1
// source: cart.proto
package cart_messages
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 ClearCartRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ClearCartRequest) Reset() {
*x = ClearCartRequest{}
mi := &file_cart_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ClearCartRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClearCartRequest) ProtoMessage() {}
func (x *ClearCartRequest) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 ClearCartRequest.ProtoReflect.Descriptor instead.
func (*ClearCartRequest) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{0}
}
type AddItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
ItemId uint32 `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"`
SaleStatus string `protobuf:"bytes,24,opt,name=saleStatus,proto3" json:"saleStatus,omitempty"`
Outlet *string `protobuf:"bytes,12,opt,name=outlet,proto3,oneof" json:"outlet,omitempty"`
StoreId *string `protobuf:"bytes,22,opt,name=storeId,proto3,oneof" json:"storeId,omitempty"`
ParentId *uint32 `protobuf:"varint,23,opt,name=parentId,proto3,oneof" json:"parentId,omitempty"`
Cgm string `protobuf:"bytes,25,opt,name=cgm,proto3" json:"cgm,omitempty"`
ReservationEndTime *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=reservationEndTime,proto3,oneof" json:"reservationEndTime,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddItem) Reset() {
*x = AddItem{}
mi := &file_cart_proto_msgTypes[1]
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_cart_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 AddItem.ProtoReflect.Descriptor instead.
func (*AddItem) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{1}
}
func (x *AddItem) GetItemId() uint32 {
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) GetSaleStatus() string {
if x != nil {
return x.SaleStatus
}
return ""
}
func (x *AddItem) GetOutlet() string {
if x != nil && x.Outlet != nil {
return *x.Outlet
}
return ""
}
func (x *AddItem) GetStoreId() string {
if x != nil && x.StoreId != nil {
return *x.StoreId
}
return ""
}
func (x *AddItem) GetParentId() uint32 {
if x != nil && x.ParentId != nil {
return *x.ParentId
}
return 0
}
func (x *AddItem) GetCgm() string {
if x != nil {
return x.Cgm
}
return ""
}
func (x *AddItem) GetReservationEndTime() *timestamppb.Timestamp {
if x != nil {
return x.ReservationEndTime
}
return nil
}
type RemoveItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id uint32 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemoveItem) Reset() {
*x = RemoveItem{}
mi := &file_cart_proto_msgTypes[2]
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_cart_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 RemoveItem.ProtoReflect.Descriptor instead.
func (*RemoveItem) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{2}
}
func (x *RemoveItem) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
type ChangeQuantity struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id uint32 `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_cart_proto_msgTypes[3]
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_cart_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 ChangeQuantity.ProtoReflect.Descriptor instead.
func (*ChangeQuantity) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{3}
}
func (x *ChangeQuantity) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *ChangeQuantity) GetQuantity() int32 {
if x != nil {
return x.Quantity
}
return 0
}
type SetUserId struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetUserId) Reset() {
*x = SetUserId{}
mi := &file_cart_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetUserId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetUserId) ProtoMessage() {}
func (x *SetUserId) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 SetUserId.ProtoReflect.Descriptor instead.
func (*SetUserId) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{4}
}
func (x *SetUserId) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
type LineItemMarking struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
Marking string `protobuf:"bytes,3,opt,name=marking,proto3" json:"marking,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LineItemMarking) Reset() {
*x = LineItemMarking{}
mi := &file_cart_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LineItemMarking) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LineItemMarking) ProtoMessage() {}
func (x *LineItemMarking) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 LineItemMarking.ProtoReflect.Descriptor instead.
func (*LineItemMarking) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{5}
}
func (x *LineItemMarking) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
func (x *LineItemMarking) GetType() uint32 {
if x != nil {
return x.Type
}
return 0
}
func (x *LineItemMarking) GetMarking() string {
if x != nil {
return x.Marking
}
return ""
}
type RemoveLineItemMarking struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemoveLineItemMarking) Reset() {
*x = RemoveLineItemMarking{}
mi := &file_cart_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemoveLineItemMarking) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveLineItemMarking) ProtoMessage() {}
func (x *RemoveLineItemMarking) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 RemoveLineItemMarking.ProtoReflect.Descriptor instead.
func (*RemoveLineItemMarking) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{6}
}
func (x *RemoveLineItemMarking) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
type SubscriptionAdded struct {
state protoimpl.MessageState `protogen:"open.v1"`
ItemId uint32 `protobuf:"varint,1,opt,name=itemId,proto3" json:"itemId,omitempty"`
DetailsId string `protobuf:"bytes,3,opt,name=detailsId,proto3" json:"detailsId,omitempty"`
OrderReference string `protobuf:"bytes,4,opt,name=orderReference,proto3" json:"orderReference,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SubscriptionAdded) Reset() {
*x = SubscriptionAdded{}
mi := &file_cart_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SubscriptionAdded) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscriptionAdded) ProtoMessage() {}
func (x *SubscriptionAdded) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 SubscriptionAdded.ProtoReflect.Descriptor instead.
func (*SubscriptionAdded) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{7}
}
func (x *SubscriptionAdded) GetItemId() uint32 {
if x != nil {
return x.ItemId
}
return 0
}
func (x *SubscriptionAdded) GetDetailsId() string {
if x != nil {
return x.DetailsId
}
return ""
}
func (x *SubscriptionAdded) GetOrderReference() string {
if x != nil {
return x.OrderReference
}
return ""
}
type AddVoucher struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
VoucherRules []string `protobuf:"bytes,3,rep,name=voucherRules,proto3" json:"voucherRules,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AddVoucher) Reset() {
*x = AddVoucher{}
mi := &file_cart_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AddVoucher) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AddVoucher) ProtoMessage() {}
func (x *AddVoucher) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 AddVoucher.ProtoReflect.Descriptor instead.
func (*AddVoucher) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{8}
}
func (x *AddVoucher) GetCode() string {
if x != nil {
return x.Code
}
return ""
}
func (x *AddVoucher) GetValue() int64 {
if x != nil {
return x.Value
}
return 0
}
func (x *AddVoucher) GetVoucherRules() []string {
if x != nil {
return x.VoucherRules
}
return nil
}
func (x *AddVoucher) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type RemoveVoucher struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemoveVoucher) Reset() {
*x = RemoveVoucher{}
mi := &file_cart_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemoveVoucher) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveVoucher) ProtoMessage() {}
func (x *RemoveVoucher) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 RemoveVoucher.ProtoReflect.Descriptor instead.
func (*RemoveVoucher) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{9}
}
func (x *RemoveVoucher) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
type UpsertSubscriptionDetails struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
OfferingCode string `protobuf:"bytes,2,opt,name=offeringCode,proto3" json:"offeringCode,omitempty"`
SigningType string `protobuf:"bytes,3,opt,name=signingType,proto3" json:"signingType,omitempty"`
Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpsertSubscriptionDetails) Reset() {
*x = UpsertSubscriptionDetails{}
mi := &file_cart_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpsertSubscriptionDetails) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpsertSubscriptionDetails) ProtoMessage() {}
func (x *UpsertSubscriptionDetails) ProtoReflect() protoreflect.Message {
mi := &file_cart_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 UpsertSubscriptionDetails.ProtoReflect.Descriptor instead.
func (*UpsertSubscriptionDetails) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{10}
}
func (x *UpsertSubscriptionDetails) GetId() string {
if x != nil && x.Id != nil {
return *x.Id
}
return ""
}
func (x *UpsertSubscriptionDetails) GetOfferingCode() string {
if x != nil {
return x.OfferingCode
}
return ""
}
func (x *UpsertSubscriptionDetails) GetSigningType() string {
if x != nil {
return x.SigningType
}
return ""
}
func (x *UpsertSubscriptionDetails) GetData() *anypb.Any {
if x != nil {
return x.Data
}
return nil
}
type Mutation struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Type:
//
// *Mutation_ClearCart
// *Mutation_AddItem
// *Mutation_RemoveItem
// *Mutation_ChangeQuantity
// *Mutation_SetUserId
// *Mutation_LineItemMarking
// *Mutation_RemoveLineItemMarking
// *Mutation_SubscriptionAdded
// *Mutation_AddVoucher
// *Mutation_RemoveVoucher
// *Mutation_UpsertSubscriptionDetails
Type isMutation_Type `protobuf_oneof:"type"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Mutation) Reset() {
*x = Mutation{}
mi := &file_cart_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Mutation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Mutation) ProtoMessage() {}
func (x *Mutation) ProtoReflect() protoreflect.Message {
mi := &file_cart_proto_msgTypes[11]
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 Mutation.ProtoReflect.Descriptor instead.
func (*Mutation) Descriptor() ([]byte, []int) {
return file_cart_proto_rawDescGZIP(), []int{11}
}
func (x *Mutation) GetType() isMutation_Type {
if x != nil {
return x.Type
}
return nil
}
func (x *Mutation) GetClearCart() *ClearCartRequest {
if x != nil {
if x, ok := x.Type.(*Mutation_ClearCart); ok {
return x.ClearCart
}
}
return nil
}
func (x *Mutation) GetAddItem() *AddItem {
if x != nil {
if x, ok := x.Type.(*Mutation_AddItem); ok {
return x.AddItem
}
}
return nil
}
func (x *Mutation) GetRemoveItem() *RemoveItem {
if x != nil {
if x, ok := x.Type.(*Mutation_RemoveItem); ok {
return x.RemoveItem
}
}
return nil
}
func (x *Mutation) GetChangeQuantity() *ChangeQuantity {
if x != nil {
if x, ok := x.Type.(*Mutation_ChangeQuantity); ok {
return x.ChangeQuantity
}
}
return nil
}
func (x *Mutation) GetSetUserId() *SetUserId {
if x != nil {
if x, ok := x.Type.(*Mutation_SetUserId); ok {
return x.SetUserId
}
}
return nil
}
func (x *Mutation) GetLineItemMarking() *LineItemMarking {
if x != nil {
if x, ok := x.Type.(*Mutation_LineItemMarking); ok {
return x.LineItemMarking
}
}
return nil
}
func (x *Mutation) GetRemoveLineItemMarking() *RemoveLineItemMarking {
if x != nil {
if x, ok := x.Type.(*Mutation_RemoveLineItemMarking); ok {
return x.RemoveLineItemMarking
}
}
return nil
}
func (x *Mutation) GetSubscriptionAdded() *SubscriptionAdded {
if x != nil {
if x, ok := x.Type.(*Mutation_SubscriptionAdded); ok {
return x.SubscriptionAdded
}
}
return nil
}
func (x *Mutation) GetAddVoucher() *AddVoucher {
if x != nil {
if x, ok := x.Type.(*Mutation_AddVoucher); ok {
return x.AddVoucher
}
}
return nil
}
func (x *Mutation) GetRemoveVoucher() *RemoveVoucher {
if x != nil {
if x, ok := x.Type.(*Mutation_RemoveVoucher); ok {
return x.RemoveVoucher
}
}
return nil
}
func (x *Mutation) GetUpsertSubscriptionDetails() *UpsertSubscriptionDetails {
if x != nil {
if x, ok := x.Type.(*Mutation_UpsertSubscriptionDetails); ok {
return x.UpsertSubscriptionDetails
}
}
return nil
}
type isMutation_Type interface {
isMutation_Type()
}
type Mutation_ClearCart struct {
ClearCart *ClearCartRequest `protobuf:"bytes,1,opt,name=clear_cart,json=clearCart,proto3,oneof"`
}
type Mutation_AddItem struct {
AddItem *AddItem `protobuf:"bytes,2,opt,name=add_item,json=addItem,proto3,oneof"`
}
type Mutation_RemoveItem struct {
RemoveItem *RemoveItem `protobuf:"bytes,3,opt,name=remove_item,json=removeItem,proto3,oneof"`
}
type Mutation_ChangeQuantity struct {
ChangeQuantity *ChangeQuantity `protobuf:"bytes,4,opt,name=change_quantity,json=changeQuantity,proto3,oneof"`
}
type Mutation_SetUserId struct {
SetUserId *SetUserId `protobuf:"bytes,5,opt,name=set_user_id,json=setUserId,proto3,oneof"`
}
type Mutation_LineItemMarking struct {
LineItemMarking *LineItemMarking `protobuf:"bytes,6,opt,name=line_item_marking,json=lineItemMarking,proto3,oneof"`
}
type Mutation_RemoveLineItemMarking struct {
RemoveLineItemMarking *RemoveLineItemMarking `protobuf:"bytes,7,opt,name=remove_line_item_marking,json=removeLineItemMarking,proto3,oneof"`
}
type Mutation_SubscriptionAdded struct {
SubscriptionAdded *SubscriptionAdded `protobuf:"bytes,8,opt,name=subscription_added,json=subscriptionAdded,proto3,oneof"`
}
type Mutation_AddVoucher struct {
AddVoucher *AddVoucher `protobuf:"bytes,20,opt,name=add_voucher,json=addVoucher,proto3,oneof"`
}
type Mutation_RemoveVoucher struct {
RemoveVoucher *RemoveVoucher `protobuf:"bytes,21,opt,name=remove_voucher,json=removeVoucher,proto3,oneof"`
}
type Mutation_UpsertSubscriptionDetails struct {
UpsertSubscriptionDetails *UpsertSubscriptionDetails `protobuf:"bytes,22,opt,name=upsert_subscription_details,json=upsertSubscriptionDetails,proto3,oneof"`
}
func (*Mutation_ClearCart) isMutation_Type() {}
func (*Mutation_AddItem) isMutation_Type() {}
func (*Mutation_RemoveItem) isMutation_Type() {}
func (*Mutation_ChangeQuantity) isMutation_Type() {}
func (*Mutation_SetUserId) isMutation_Type() {}
func (*Mutation_LineItemMarking) isMutation_Type() {}
func (*Mutation_RemoveLineItemMarking) isMutation_Type() {}
func (*Mutation_SubscriptionAdded) isMutation_Type() {}
func (*Mutation_AddVoucher) isMutation_Type() {}
func (*Mutation_RemoveVoucher) isMutation_Type() {}
func (*Mutation_UpsertSubscriptionDetails) isMutation_Type() {}
var File_cart_proto protoreflect.FileDescriptor
const file_cart_proto_rawDesc = "" +
"\n" +
"\n" +
"cart.proto\x12\rcart_messages\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x12\n" +
"\x10ClearCartRequest\"\xb1\x06\n" +
"\aAddItem\x12\x17\n" +
"\aitem_id\x18\x01 \x01(\rR\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\x1e\n" +
"\n" +
"saleStatus\x18\x18 \x01(\tR\n" +
"saleStatus\x12\x1b\n" +
"\x06outlet\x18\f \x01(\tH\x00R\x06outlet\x88\x01\x01\x12\x1d\n" +
"\astoreId\x18\x16 \x01(\tH\x01R\astoreId\x88\x01\x01\x12\x1f\n" +
"\bparentId\x18\x17 \x01(\rH\x02R\bparentId\x88\x01\x01\x12\x10\n" +
"\x03cgm\x18\x19 \x01(\tR\x03cgm\x12O\n" +
"\x12reservationEndTime\x18\x1a \x01(\v2\x1a.google.protobuf.TimestampH\x03R\x12reservationEndTime\x88\x01\x01B\t\n" +
"\a_outletB\n" +
"\n" +
"\b_storeIdB\v\n" +
"\t_parentIdB\x15\n" +
"\x13_reservationEndTime\"\x1c\n" +
"\n" +
"RemoveItem\x12\x0e\n" +
"\x02Id\x18\x01 \x01(\rR\x02Id\"<\n" +
"\x0eChangeQuantity\x12\x0e\n" +
"\x02Id\x18\x01 \x01(\rR\x02Id\x12\x1a\n" +
"\bquantity\x18\x02 \x01(\x05R\bquantity\"#\n" +
"\tSetUserId\x12\x16\n" +
"\x06userId\x18\x01 \x01(\tR\x06userId\"O\n" +
"\x0fLineItemMarking\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\x12\x12\n" +
"\x04type\x18\x02 \x01(\rR\x04type\x12\x18\n" +
"\amarking\x18\x03 \x01(\tR\amarking\"'\n" +
"\x15RemoveLineItemMarking\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\"q\n" +
"\x11SubscriptionAdded\x12\x16\n" +
"\x06itemId\x18\x01 \x01(\rR\x06itemId\x12\x1c\n" +
"\tdetailsId\x18\x03 \x01(\tR\tdetailsId\x12&\n" +
"\x0eorderReference\x18\x04 \x01(\tR\x0eorderReference\"|\n" +
"\n" +
"AddVoucher\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\x12\x14\n" +
"\x05value\x18\x02 \x01(\x03R\x05value\x12\"\n" +
"\fvoucherRules\x18\x03 \x03(\tR\fvoucherRules\x12 \n" +
"\vdescription\x18\x04 \x01(\tR\vdescription\"\x1f\n" +
"\rRemoveVoucher\x12\x0e\n" +
"\x02id\x18\x01 \x01(\rR\x02id\"\xa7\x01\n" +
"\x19UpsertSubscriptionDetails\x12\x13\n" +
"\x02id\x18\x01 \x01(\tH\x00R\x02id\x88\x01\x01\x12\"\n" +
"\fofferingCode\x18\x02 \x01(\tR\fofferingCode\x12 \n" +
"\vsigningType\x18\x03 \x01(\tR\vsigningType\x12(\n" +
"\x04data\x18\x04 \x01(\v2\x14.google.protobuf.AnyR\x04dataB\x05\n" +
"\x03_id\"\xc0\x06\n" +
"\bMutation\x12@\n" +
"\n" +
"clear_cart\x18\x01 \x01(\v2\x1f.cart_messages.ClearCartRequestH\x00R\tclearCart\x123\n" +
"\badd_item\x18\x02 \x01(\v2\x16.cart_messages.AddItemH\x00R\aaddItem\x12<\n" +
"\vremove_item\x18\x03 \x01(\v2\x19.cart_messages.RemoveItemH\x00R\n" +
"removeItem\x12H\n" +
"\x0fchange_quantity\x18\x04 \x01(\v2\x1d.cart_messages.ChangeQuantityH\x00R\x0echangeQuantity\x12:\n" +
"\vset_user_id\x18\x05 \x01(\v2\x18.cart_messages.SetUserIdH\x00R\tsetUserId\x12L\n" +
"\x11line_item_marking\x18\x06 \x01(\v2\x1e.cart_messages.LineItemMarkingH\x00R\x0flineItemMarking\x12_\n" +
"\x18remove_line_item_marking\x18\a \x01(\v2$.cart_messages.RemoveLineItemMarkingH\x00R\x15removeLineItemMarking\x12Q\n" +
"\x12subscription_added\x18\b \x01(\v2 .cart_messages.SubscriptionAddedH\x00R\x11subscriptionAdded\x12<\n" +
"\vadd_voucher\x18\x14 \x01(\v2\x19.cart_messages.AddVoucherH\x00R\n" +
"addVoucher\x12E\n" +
"\x0eremove_voucher\x18\x15 \x01(\v2\x1c.cart_messages.RemoveVoucherH\x00R\rremoveVoucher\x12j\n" +
"\x1bupsert_subscription_details\x18\x16 \x01(\v2(.cart_messages.UpsertSubscriptionDetailsH\x00R\x19upsertSubscriptionDetailsB\x06\n" +
"\x04typeB4Z2git.k6n.net/go-cart-actor/proto/cart;cart_messagesb\x06proto3"
var (
file_cart_proto_rawDescOnce sync.Once
file_cart_proto_rawDescData []byte
)
func file_cart_proto_rawDescGZIP() []byte {
file_cart_proto_rawDescOnce.Do(func() {
file_cart_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cart_proto_rawDesc), len(file_cart_proto_rawDesc)))
})
return file_cart_proto_rawDescData
}
var file_cart_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
var file_cart_proto_goTypes = []any{
(*ClearCartRequest)(nil), // 0: cart_messages.ClearCartRequest
(*AddItem)(nil), // 1: cart_messages.AddItem
(*RemoveItem)(nil), // 2: cart_messages.RemoveItem
(*ChangeQuantity)(nil), // 3: cart_messages.ChangeQuantity
(*SetUserId)(nil), // 4: cart_messages.SetUserId
(*LineItemMarking)(nil), // 5: cart_messages.LineItemMarking
(*RemoveLineItemMarking)(nil), // 6: cart_messages.RemoveLineItemMarking
(*SubscriptionAdded)(nil), // 7: cart_messages.SubscriptionAdded
(*AddVoucher)(nil), // 8: cart_messages.AddVoucher
(*RemoveVoucher)(nil), // 9: cart_messages.RemoveVoucher
(*UpsertSubscriptionDetails)(nil), // 10: cart_messages.UpsertSubscriptionDetails
(*Mutation)(nil), // 11: cart_messages.Mutation
(*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
(*anypb.Any)(nil), // 13: google.protobuf.Any
}
var file_cart_proto_depIdxs = []int32{
12, // 0: cart_messages.AddItem.reservationEndTime:type_name -> google.protobuf.Timestamp
13, // 1: cart_messages.UpsertSubscriptionDetails.data:type_name -> google.protobuf.Any
0, // 2: cart_messages.Mutation.clear_cart:type_name -> cart_messages.ClearCartRequest
1, // 3: cart_messages.Mutation.add_item:type_name -> cart_messages.AddItem
2, // 4: cart_messages.Mutation.remove_item:type_name -> cart_messages.RemoveItem
3, // 5: cart_messages.Mutation.change_quantity:type_name -> cart_messages.ChangeQuantity
4, // 6: cart_messages.Mutation.set_user_id:type_name -> cart_messages.SetUserId
5, // 7: cart_messages.Mutation.line_item_marking:type_name -> cart_messages.LineItemMarking
6, // 8: cart_messages.Mutation.remove_line_item_marking:type_name -> cart_messages.RemoveLineItemMarking
7, // 9: cart_messages.Mutation.subscription_added:type_name -> cart_messages.SubscriptionAdded
8, // 10: cart_messages.Mutation.add_voucher:type_name -> cart_messages.AddVoucher
9, // 11: cart_messages.Mutation.remove_voucher:type_name -> cart_messages.RemoveVoucher
10, // 12: cart_messages.Mutation.upsert_subscription_details:type_name -> cart_messages.UpsertSubscriptionDetails
13, // [13:13] is the sub-list for method output_type
13, // [13:13] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name
13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
}
func init() { file_cart_proto_init() }
func file_cart_proto_init() {
if File_cart_proto != nil {
return
}
file_cart_proto_msgTypes[1].OneofWrappers = []any{}
file_cart_proto_msgTypes[10].OneofWrappers = []any{}
file_cart_proto_msgTypes[11].OneofWrappers = []any{
(*Mutation_ClearCart)(nil),
(*Mutation_AddItem)(nil),
(*Mutation_RemoveItem)(nil),
(*Mutation_ChangeQuantity)(nil),
(*Mutation_SetUserId)(nil),
(*Mutation_LineItemMarking)(nil),
(*Mutation_RemoveLineItemMarking)(nil),
(*Mutation_SubscriptionAdded)(nil),
(*Mutation_AddVoucher)(nil),
(*Mutation_RemoveVoucher)(nil),
(*Mutation_UpsertSubscriptionDetails)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cart_proto_rawDesc), len(file_cart_proto_rawDesc)),
NumEnums: 0,
NumMessages: 12,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cart_proto_goTypes,
DependencyIndexes: file_cart_proto_depIdxs,
MessageInfos: file_cart_proto_msgTypes,
}.Build()
File_cart_proto = out.File
file_cart_proto_goTypes = nil
file_cart_proto_depIdxs = nil
}