// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.35.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 CartType int32 const ( CartType_REGULAR CartType = 0 CartType_WISHLIST CartType = 1 CartType_OFFER CartType = 2 ) // Enum value maps for CartType. var ( CartType_name = map[int32]string{ 0: "REGULAR", 1: "WISHLIST", 2: "OFFER", } CartType_value = map[string]int32{ "REGULAR": 0, "WISHLIST": 1, "OFFER": 2, } ) func (x CartType) Enum() *CartType { p := new(CartType) *p = x return p } func (x CartType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (CartType) Descriptor() protoreflect.EnumDescriptor { return file_cart_proto_enumTypes[0].Descriptor() } func (CartType) Type() protoreflect.EnumType { return &file_cart_proto_enumTypes[0] } func (x CartType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use CartType.Descriptor instead. func (CartType) EnumDescriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{0} } 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"` // extra_json carries arbitrary product data (the flat product document minus // the fields mapped above) as raw JSON. It is stored losslessly and surfaced // as flattened keys on the cart item. ExtraJson []byte `protobuf:"bytes,27,opt,name=extra_json,json=extraJson,proto3" json:"extra_json,omitempty"` // custom_fields holds optional user-supplied input fields for this line // (e.g. engraving text, configurator notes), keyed by field name. CustomFields map[string]string `protobuf:"bytes,28,rep,name=custom_fields,json=customFields,proto3" json:"custom_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` InventoryTracked bool `protobuf:"varint,29,opt,name=inventory_tracked,json=inventoryTracked,proto3" json:"inventory_tracked,omitempty"` DropShip bool `protobuf:"varint,30,opt,name=drop_ship,json=dropShip,proto3" json:"drop_ship,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 } func (x *AddItem) GetExtraJson() []byte { if x != nil { return x.ExtraJson } return nil } func (x *AddItem) GetCustomFields() map[string]string { if x != nil { return x.CustomFields } return nil } func (x *AddItem) GetInventoryTracked() bool { if x != nil { return x.InventoryTracked } return false } func (x *AddItem) GetDropShip() bool { if x != nil { return x.DropShip } return false } 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 } // SetLineItemCustomFields sets/merges user-supplied custom input fields on an // existing cart line (the dict equivalent of a line item marking). type SetLineItemCustomFields struct { state protoimpl.MessageState `protogen:"open.v1"` Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CustomFields map[string]string `protobuf:"bytes,2,rep,name=custom_fields,json=customFields,proto3" json:"custom_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetLineItemCustomFields) Reset() { *x = SetLineItemCustomFields{} mi := &file_cart_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetLineItemCustomFields) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetLineItemCustomFields) ProtoMessage() {} func (x *SetLineItemCustomFields) 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 SetLineItemCustomFields.ProtoReflect.Descriptor instead. func (*SetLineItemCustomFields) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{7} } func (x *SetLineItemCustomFields) GetId() uint32 { if x != nil { return x.Id } return 0 } func (x *SetLineItemCustomFields) GetCustomFields() map[string]string { if x != nil { return x.CustomFields } return nil } 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[8] 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[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 SubscriptionAdded.ProtoReflect.Descriptor instead. func (*SubscriptionAdded) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{8} } 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[9] 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[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 AddVoucher.ProtoReflect.Descriptor instead. func (*AddVoucher) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{9} } 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[10] 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[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 RemoveVoucher.ProtoReflect.Descriptor instead. func (*RemoveVoucher) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{10} } 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[11] 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[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 UpsertSubscriptionDetails.ProtoReflect.Descriptor instead. func (*UpsertSubscriptionDetails) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{11} } 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 SetCartType struct { state protoimpl.MessageState `protogen:"open.v1"` Type CartType `protobuf:"varint,1,opt,name=type,proto3,enum=cart_messages.CartType" json:"type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetCartType) Reset() { *x = SetCartType{} mi := &file_cart_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetCartType) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetCartType) ProtoMessage() {} func (x *SetCartType) ProtoReflect() protoreflect.Message { mi := &file_cart_proto_msgTypes[12] 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 SetCartType.ProtoReflect.Descriptor instead. func (*SetCartType) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{12} } func (x *SetCartType) GetType() CartType { if x != nil { return x.Type } return CartType_REGULAR } // PushToken is a generic, provider-agnostic push-delivery target. The cart layer // only stores what it was given — actual delivery (FCM, APNs, Web Push) is the // notifier's job (see pkg/cart/recovery.LoggingNotifier for the v0 contract). // // Platform is free-form (e.g. "fcm", "apns", "webpush") so callers can record // multiple devices per cart without forcing a schema decision here. type PushToken struct { state protoimpl.MessageState `protogen:"open.v1"` Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PushToken) Reset() { *x = PushToken{} mi := &file_cart_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PushToken) String() string { return protoimpl.X.MessageStringOf(x) } func (*PushToken) ProtoMessage() {} func (x *PushToken) ProtoReflect() protoreflect.Message { mi := &file_cart_proto_msgTypes[13] 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 PushToken.ProtoReflect.Descriptor instead. func (*PushToken) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{13} } func (x *PushToken) GetPlatform() string { if x != nil { return x.Platform } return "" } func (x *PushToken) GetToken() string { if x != nil { return x.Token } return "" } // SetRecoveryContact attaches the contact bundle used by the abandoned-cart // recovery flow. PUT-style: replaces the entire contact in one event — empty // strings or empty token lists are persisted as "no contact". type SetRecoveryContact struct { state protoimpl.MessageState `protogen:"open.v1"` Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` PushTokens []*PushToken `protobuf:"bytes,2,rep,name=push_tokens,json=pushTokens,proto3" json:"push_tokens,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetRecoveryContact) Reset() { *x = SetRecoveryContact{} mi := &file_cart_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetRecoveryContact) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetRecoveryContact) ProtoMessage() {} func (x *SetRecoveryContact) ProtoReflect() protoreflect.Message { mi := &file_cart_proto_msgTypes[14] 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 SetRecoveryContact.ProtoReflect.Descriptor instead. func (*SetRecoveryContact) Descriptor() ([]byte, []int) { return file_cart_proto_rawDescGZIP(), []int{14} } func (x *SetRecoveryContact) GetEmail() string { if x != nil { return x.Email } return "" } func (x *SetRecoveryContact) GetPushTokens() []*PushToken { if x != nil { return x.PushTokens } 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_SetLineItemCustomFields // *Mutation_AddVoucher // *Mutation_RemoveVoucher // *Mutation_UpsertSubscriptionDetails // *Mutation_SetCartType // *Mutation_SetRecoveryContact Type isMutation_Type `protobuf_oneof:"type"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Mutation) Reset() { *x = Mutation{} mi := &file_cart_proto_msgTypes[15] 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[15] 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{15} } 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) GetSetLineItemCustomFields() *SetLineItemCustomFields { if x != nil { if x, ok := x.Type.(*Mutation_SetLineItemCustomFields); ok { return x.SetLineItemCustomFields } } 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 } func (x *Mutation) GetSetCartType() *SetCartType { if x != nil { if x, ok := x.Type.(*Mutation_SetCartType); ok { return x.SetCartType } } return nil } func (x *Mutation) GetSetRecoveryContact() *SetRecoveryContact { if x != nil { if x, ok := x.Type.(*Mutation_SetRecoveryContact); ok { return x.SetRecoveryContact } } 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_SetLineItemCustomFields struct { SetLineItemCustomFields *SetLineItemCustomFields `protobuf:"bytes,9,opt,name=set_line_item_custom_fields,json=setLineItemCustomFields,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"` } type Mutation_SetCartType struct { SetCartType *SetCartType `protobuf:"bytes,23,opt,name=set_cart_type,json=setCartType,proto3,oneof"` } type Mutation_SetRecoveryContact struct { SetRecoveryContact *SetRecoveryContact `protobuf:"bytes,24,opt,name=set_recovery_contact,json=setRecoveryContact,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_SetLineItemCustomFields) isMutation_Type() {} func (*Mutation_AddVoucher) isMutation_Type() {} func (*Mutation_RemoveVoucher) isMutation_Type() {} func (*Mutation_UpsertSubscriptionDetails) isMutation_Type() {} func (*Mutation_SetCartType) isMutation_Type() {} func (*Mutation_SetRecoveryContact) 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\"\xaa\b\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\x01\x12\x1d\n" + "\n" + "extra_json\x18\x1b \x01(\fR\textraJson\x12M\n" + "\rcustom_fields\x18\x1c \x03(\v2(.cart_messages.AddItem.CustomFieldsEntryR\fcustomFields\x12+\n" + "\x11inventory_tracked\x18\x1d \x01(\bR\x10inventoryTracked\x12\x1b\n" + "\tdrop_ship\x18\x1e \x01(\bR\bdropShip\x1a?\n" + "\x11CustomFieldsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\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\"\xc9\x01\n" + "\x17SetLineItemCustomFields\x12\x0e\n" + "\x02id\x18\x01 \x01(\rR\x02id\x12]\n" + "\rcustom_fields\x18\x02 \x03(\v28.cart_messages.SetLineItemCustomFields.CustomFieldsEntryR\fcustomFields\x1a?\n" + "\x11CustomFieldsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"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\":\n" + "\vSetCartType\x12+\n" + "\x04type\x18\x01 \x01(\x0e2\x17.cart_messages.CartTypeR\x04type\"=\n" + "\tPushToken\x12\x1a\n" + "\bplatform\x18\x01 \x01(\tR\bplatform\x12\x14\n" + "\x05token\x18\x02 \x01(\tR\x05token\"e\n" + "\x12SetRecoveryContact\x12\x14\n" + "\x05email\x18\x01 \x01(\tR\x05email\x129\n" + "\vpush_tokens\x18\x02 \x03(\v2\x18.cart_messages.PushTokenR\n" + "pushTokens\"\xc1\b\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\x12f\n" + "\x1bset_line_item_custom_fields\x18\t \x01(\v2&.cart_messages.SetLineItemCustomFieldsH\x00R\x17setLineItemCustomFields\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\x19upsertSubscriptionDetails\x12@\n" + "\rset_cart_type\x18\x17 \x01(\v2\x1a.cart_messages.SetCartTypeH\x00R\vsetCartType\x12U\n" + "\x14set_recovery_contact\x18\x18 \x01(\v2!.cart_messages.SetRecoveryContactH\x00R\x12setRecoveryContactB\x06\n" + "\x04type*0\n" + "\bCartType\x12\v\n" + "\aREGULAR\x10\x00\x12\f\n" + "\bWISHLIST\x10\x01\x12\t\n" + "\x05OFFER\x10\x02B9Z7git.k6n.net/mats/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_enumTypes = make([]protoimpl.EnumInfo, 1) var file_cart_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_cart_proto_goTypes = []any{ (CartType)(0), // 0: cart_messages.CartType (*ClearCartRequest)(nil), // 1: cart_messages.ClearCartRequest (*AddItem)(nil), // 2: cart_messages.AddItem (*RemoveItem)(nil), // 3: cart_messages.RemoveItem (*ChangeQuantity)(nil), // 4: cart_messages.ChangeQuantity (*SetUserId)(nil), // 5: cart_messages.SetUserId (*LineItemMarking)(nil), // 6: cart_messages.LineItemMarking (*RemoveLineItemMarking)(nil), // 7: cart_messages.RemoveLineItemMarking (*SetLineItemCustomFields)(nil), // 8: cart_messages.SetLineItemCustomFields (*SubscriptionAdded)(nil), // 9: cart_messages.SubscriptionAdded (*AddVoucher)(nil), // 10: cart_messages.AddVoucher (*RemoveVoucher)(nil), // 11: cart_messages.RemoveVoucher (*UpsertSubscriptionDetails)(nil), // 12: cart_messages.UpsertSubscriptionDetails (*SetCartType)(nil), // 13: cart_messages.SetCartType (*PushToken)(nil), // 14: cart_messages.PushToken (*SetRecoveryContact)(nil), // 15: cart_messages.SetRecoveryContact (*Mutation)(nil), // 16: cart_messages.Mutation nil, // 17: cart_messages.AddItem.CustomFieldsEntry nil, // 18: cart_messages.SetLineItemCustomFields.CustomFieldsEntry (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp (*anypb.Any)(nil), // 20: google.protobuf.Any } var file_cart_proto_depIdxs = []int32{ 19, // 0: cart_messages.AddItem.reservationEndTime:type_name -> google.protobuf.Timestamp 17, // 1: cart_messages.AddItem.custom_fields:type_name -> cart_messages.AddItem.CustomFieldsEntry 18, // 2: cart_messages.SetLineItemCustomFields.custom_fields:type_name -> cart_messages.SetLineItemCustomFields.CustomFieldsEntry 20, // 3: cart_messages.UpsertSubscriptionDetails.data:type_name -> google.protobuf.Any 0, // 4: cart_messages.SetCartType.type:type_name -> cart_messages.CartType 14, // 5: cart_messages.SetRecoveryContact.push_tokens:type_name -> cart_messages.PushToken 1, // 6: cart_messages.Mutation.clear_cart:type_name -> cart_messages.ClearCartRequest 2, // 7: cart_messages.Mutation.add_item:type_name -> cart_messages.AddItem 3, // 8: cart_messages.Mutation.remove_item:type_name -> cart_messages.RemoveItem 4, // 9: cart_messages.Mutation.change_quantity:type_name -> cart_messages.ChangeQuantity 5, // 10: cart_messages.Mutation.set_user_id:type_name -> cart_messages.SetUserId 6, // 11: cart_messages.Mutation.line_item_marking:type_name -> cart_messages.LineItemMarking 7, // 12: cart_messages.Mutation.remove_line_item_marking:type_name -> cart_messages.RemoveLineItemMarking 9, // 13: cart_messages.Mutation.subscription_added:type_name -> cart_messages.SubscriptionAdded 8, // 14: cart_messages.Mutation.set_line_item_custom_fields:type_name -> cart_messages.SetLineItemCustomFields 10, // 15: cart_messages.Mutation.add_voucher:type_name -> cart_messages.AddVoucher 11, // 16: cart_messages.Mutation.remove_voucher:type_name -> cart_messages.RemoveVoucher 12, // 17: cart_messages.Mutation.upsert_subscription_details:type_name -> cart_messages.UpsertSubscriptionDetails 13, // 18: cart_messages.Mutation.set_cart_type:type_name -> cart_messages.SetCartType 15, // 19: cart_messages.Mutation.set_recovery_contact:type_name -> cart_messages.SetRecoveryContact 20, // [20:20] is the sub-list for method output_type 20, // [20:20] is the sub-list for method input_type 20, // [20:20] is the sub-list for extension type_name 20, // [20:20] is the sub-list for extension extendee 0, // [0:20] 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[11].OneofWrappers = []any{} file_cart_proto_msgTypes[15].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_SetLineItemCustomFields)(nil), (*Mutation_AddVoucher)(nil), (*Mutation_RemoveVoucher)(nil), (*Mutation_UpsertSubscriptionDetails)(nil), (*Mutation_SetCartType)(nil), (*Mutation_SetRecoveryContact)(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: 1, NumMessages: 18, NumExtensions: 0, NumServices: 0, }, GoTypes: file_cart_proto_goTypes, DependencyIndexes: file_cart_proto_depIdxs, EnumInfos: file_cart_proto_enumTypes, MessageInfos: file_cart_proto_msgTypes, }.Build() File_cart_proto = out.File file_cart_proto_goTypes = nil file_cart_proto_depIdxs = nil }