generated from PenaSide/GolangTemplate
249 lines
7.5 KiB
Go
249 lines
7.5 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.7
|
|
// protoc (unknown)
|
|
// source: codeword/promo.proto
|
|
|
|
package codeword_rpc
|
|
|
|
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 Time struct {
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Time) Reset() {
|
|
*x = Time{}
|
|
mi := &file_codeword_promo_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Time) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Time) ProtoMessage() {}
|
|
|
|
func (x *Time) ProtoReflect() protoreflect.Message {
|
|
mi := &file_codeword_promo_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 Time.ProtoReflect.Descriptor instead.
|
|
func (*Time) Descriptor() ([]byte, []int) {
|
|
return file_codeword_promo_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
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 {
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PromoActivationResp) Reset() {
|
|
*x = PromoActivationResp{}
|
|
mi := &file_codeword_promo_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PromoActivationResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PromoActivationResp) ProtoMessage() {}
|
|
|
|
func (x *PromoActivationResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_codeword_promo_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 PromoActivationResp.ProtoReflect.Descriptor instead.
|
|
func (*PromoActivationResp) Descriptor() ([]byte, []int) {
|
|
return file_codeword_promo_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *PromoActivationResp) GetID() string {
|
|
if x != nil {
|
|
return x.ID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PromoActivationResp) GetUsers() []*PromoActivationResp_UserTime {
|
|
if x != nil {
|
|
return x.Users
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PromoActivationResp_UserTime struct {
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PromoActivationResp_UserTime) Reset() {
|
|
*x = PromoActivationResp_UserTime{}
|
|
mi := &file_codeword_promo_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PromoActivationResp_UserTime) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PromoActivationResp_UserTime) ProtoMessage() {}
|
|
|
|
func (x *PromoActivationResp_UserTime) ProtoReflect() protoreflect.Message {
|
|
mi := &file_codeword_promo_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 PromoActivationResp_UserTime.ProtoReflect.Descriptor instead.
|
|
func (*PromoActivationResp_UserTime) Descriptor() ([]byte, []int) {
|
|
return file_codeword_promo_proto_rawDescGZIP(), []int{1, 0}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
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"
|
|
|
|
var (
|
|
file_codeword_promo_proto_rawDescOnce sync.Once
|
|
file_codeword_promo_proto_rawDescData []byte
|
|
)
|
|
|
|
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)))
|
|
})
|
|
return file_codeword_promo_proto_rawDescData
|
|
}
|
|
|
|
var file_codeword_promo_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_codeword_promo_proto_goTypes = []any{
|
|
(*Time)(nil), // 0: codeword.Time
|
|
(*PromoActivationResp)(nil), // 1: codeword.PromoActivationResp
|
|
(*PromoActivationResp_UserTime)(nil), // 2: codeword.PromoActivationResp.UserTime
|
|
}
|
|
var file_codeword_promo_proto_depIdxs = []int32{
|
|
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
|
|
}
|
|
|
|
func init() { file_codeword_promo_proto_init() }
|
|
func file_codeword_promo_proto_init() {
|
|
if File_codeword_promo_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_codeword_promo_proto_rawDesc), len(file_codeword_promo_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_codeword_promo_proto_goTypes,
|
|
DependencyIndexes: file_codeword_promo_proto_depIdxs,
|
|
MessageInfos: file_codeword_promo_proto_msgTypes,
|
|
}.Build()
|
|
File_codeword_promo_proto = out.File
|
|
file_codeword_promo_proto_goTypes = nil
|
|
file_codeword_promo_proto_depIdxs = nil
|
|
}
|