customer/internal/proto/codeword/promo.pb.go

249 lines
7.5 KiB
Go
Raw Normal View History

2024-04-25 12:33:59 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-08-13 21:45:10 +00:00
// protoc-gen-go v1.36.7
// protoc (unknown)
// source: codeword/promo.proto
2024-04-25 12:33:59 +00:00
package codeword_rpc
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
2025-08-13 21:45:10 +00:00
unsafe "unsafe"
2024-04-25 12:33:59 +00:00
)
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 Time struct {
2025-08-13 21:45:10 +00:00
state protoimpl.MessageState `protogen:"open.v1"`
From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
To int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
2024-04-25 12:33:59 +00:00
unknownFields protoimpl.UnknownFields
2025-08-13 21:45:10 +00:00
sizeCache protoimpl.SizeCache
2024-04-25 12:33:59 +00:00
}
func (x *Time) Reset() {
*x = Time{}
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2024-04-25 12:33:59 +00:00
}
func (x *Time) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Time) ProtoMessage() {}
func (x *Time) ProtoReflect() protoreflect.Message {
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[0]
if x != nil {
2024-04-25 12:33:59 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Time.ProtoReflect.Descriptor instead.
func (*Time) Descriptor() ([]byte, []int) {
2025-08-13 21:45:10 +00:00
return file_codeword_promo_proto_rawDescGZIP(), []int{0}
2024-04-25 12:33:59 +00:00
}
func (x *Time) GetFrom() int64 {
if x != nil {
return x.From
}
return 0
}
func (x *Time) GetTo() int64 {
if x != nil {
return x.To
}
return 0
}
type PromoActivationResp struct {
2025-08-13 21:45:10 +00:00
state protoimpl.MessageState `protogen:"open.v1"`
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
Users []*PromoActivationResp_UserTime `protobuf:"bytes,2,rep,name=Users,proto3" json:"Users,omitempty"`
2024-04-25 12:33:59 +00:00
unknownFields protoimpl.UnknownFields
2025-08-13 21:45:10 +00:00
sizeCache protoimpl.SizeCache
2024-04-25 12:33:59 +00:00
}
func (x *PromoActivationResp) Reset() {
*x = PromoActivationResp{}
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2024-04-25 12:33:59 +00:00
}
func (x *PromoActivationResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PromoActivationResp) ProtoMessage() {}
func (x *PromoActivationResp) ProtoReflect() protoreflect.Message {
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[1]
if x != nil {
2024-04-25 12:33:59 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PromoActivationResp.ProtoReflect.Descriptor instead.
func (*PromoActivationResp) Descriptor() ([]byte, []int) {
2025-08-13 21:45:10 +00:00
return file_codeword_promo_proto_rawDescGZIP(), []int{1}
2024-04-25 12:33:59 +00:00
}
2024-04-28 07:19:32 +00:00
func (x *PromoActivationResp) GetID() string {
2024-04-25 12:33:59 +00:00
if x != nil {
2024-04-28 07:19:32 +00:00
return x.ID
}
return ""
}
func (x *PromoActivationResp) GetUsers() []*PromoActivationResp_UserTime {
if x != nil {
return x.Users
2024-04-25 12:33:59 +00:00
}
return nil
}
2024-04-25 17:43:02 +00:00
type PromoActivationResp_UserTime struct {
2025-08-13 21:45:10 +00:00
state protoimpl.MessageState `protogen:"open.v1"`
UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
Time int64 `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"`
2024-04-25 17:43:02 +00:00
unknownFields protoimpl.UnknownFields
2025-08-13 21:45:10 +00:00
sizeCache protoimpl.SizeCache
2024-04-25 17:43:02 +00:00
}
func (x *PromoActivationResp_UserTime) Reset() {
*x = PromoActivationResp_UserTime{}
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2024-04-25 17:43:02 +00:00
}
func (x *PromoActivationResp_UserTime) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PromoActivationResp_UserTime) ProtoMessage() {}
func (x *PromoActivationResp_UserTime) ProtoReflect() protoreflect.Message {
2025-08-13 21:45:10 +00:00
mi := &file_codeword_promo_proto_msgTypes[2]
if x != nil {
2024-04-25 17:43:02 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PromoActivationResp_UserTime.ProtoReflect.Descriptor instead.
func (*PromoActivationResp_UserTime) Descriptor() ([]byte, []int) {
2025-08-13 21:45:10 +00:00
return file_codeword_promo_proto_rawDescGZIP(), []int{1, 0}
2024-04-25 17:43:02 +00:00
}
func (x *PromoActivationResp_UserTime) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
func (x *PromoActivationResp_UserTime) GetTime() int64 {
if x != nil {
return x.Time
}
return 0
}
2025-08-13 21:45:10 +00:00
var File_codeword_promo_proto protoreflect.FileDescriptor
const file_codeword_promo_proto_rawDesc = "" +
"\n" +
"\x14codeword/promo.proto\x12\bcodeword\"*\n" +
"\x04Time\x12\x12\n" +
"\x04from\x18\x01 \x01(\x03R\x04from\x12\x0e\n" +
"\x02to\x18\x02 \x01(\x03R\x02to\"\x9b\x01\n" +
"\x13PromoActivationResp\x12\x0e\n" +
"\x02ID\x18\x01 \x01(\tR\x02ID\x12<\n" +
"\x05Users\x18\x02 \x03(\v2&.codeword.PromoActivationResp.UserTimeR\x05Users\x1a6\n" +
"\bUserTime\x12\x16\n" +
"\x06UserID\x18\x01 \x01(\tR\x06UserID\x12\x12\n" +
"\x04Time\x18\x02 \x01(\x03R\x04Time2]\n" +
"\x10PromoCodeService\x12I\n" +
"\x16GetAllPromoActivations\x12\x0e.codeword.Time\x1a\x1d.codeword.PromoActivationResp0\x01B\x10Z\x0e./codeword_rpcb\x06proto3"
2024-04-25 12:33:59 +00:00
var (
2025-08-13 21:45:10 +00:00
file_codeword_promo_proto_rawDescOnce sync.Once
file_codeword_promo_proto_rawDescData []byte
2024-04-25 12:33:59 +00:00
)
2025-08-13 21:45:10 +00:00
func file_codeword_promo_proto_rawDescGZIP() []byte {
file_codeword_promo_proto_rawDescOnce.Do(func() {
file_codeword_promo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_codeword_promo_proto_rawDesc), len(file_codeword_promo_proto_rawDesc)))
2024-04-25 12:33:59 +00:00
})
2025-08-13 21:45:10 +00:00
return file_codeword_promo_proto_rawDescData
2024-04-25 12:33:59 +00:00
}
2025-08-13 21:45:10 +00:00
var file_codeword_promo_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_codeword_promo_proto_goTypes = []any{
2024-04-28 07:19:32 +00:00
(*Time)(nil), // 0: codeword.Time
(*PromoActivationResp)(nil), // 1: codeword.PromoActivationResp
(*PromoActivationResp_UserTime)(nil), // 2: codeword.PromoActivationResp.UserTime
2024-04-25 12:33:59 +00:00
}
2025-08-13 21:45:10 +00:00
var file_codeword_promo_proto_depIdxs = []int32{
2024-04-28 07:19:32 +00:00
2, // 0: codeword.PromoActivationResp.Users:type_name -> codeword.PromoActivationResp.UserTime
0, // 1: codeword.PromoCodeService.GetAllPromoActivations:input_type -> codeword.Time
1, // 2: codeword.PromoCodeService.GetAllPromoActivations:output_type -> codeword.PromoActivationResp
2, // [2:3] is the sub-list for method output_type
1, // [1:2] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
2024-04-25 12:33:59 +00:00
}
2025-08-13 21:45:10 +00:00
func init() { file_codeword_promo_proto_init() }
func file_codeword_promo_proto_init() {
if File_codeword_promo_proto != nil {
2024-04-25 12:33:59 +00:00
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-08-13 21:45:10 +00:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_codeword_promo_proto_rawDesc), len(file_codeword_promo_proto_rawDesc)),
2024-04-25 12:33:59 +00:00
NumEnums: 0,
2024-04-28 07:19:32 +00:00
NumMessages: 3,
2024-04-25 12:33:59 +00:00
NumExtensions: 0,
NumServices: 1,
},
2025-08-13 21:45:10 +00:00
GoTypes: file_codeword_promo_proto_goTypes,
DependencyIndexes: file_codeword_promo_proto_depIdxs,
MessageInfos: file_codeword_promo_proto_msgTypes,
2024-04-25 12:33:59 +00:00
}.Build()
2025-08-13 21:45:10 +00:00
File_codeword_promo_proto = out.File
file_codeword_promo_proto_goTypes = nil
file_codeword_promo_proto_depIdxs = nil
2024-04-25 12:33:59 +00:00
}