All checks were successful
Deploy Smart Search Backend Test / deploy (push) Successful in 1m36s
360 lines
11 KiB
Go
360 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v5.29.3
|
|
// source: invite/invite.proto
|
|
|
|
package invite
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
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 GenerateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
TtlDays int32 `protobuf:"varint,2,opt,name=ttl_days,json=ttlDays,proto3" json:"ttl_days,omitempty"`
|
|
MaxUses int32 `protobuf:"varint,3,opt,name=max_uses,json=maxUses,proto3" json:"max_uses,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateRequest) Reset() {
|
|
*x = GenerateRequest{}
|
|
mi := &file_invite_invite_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateRequest) ProtoMessage() {}
|
|
|
|
func (x *GenerateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_invite_invite_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 GenerateRequest.ProtoReflect.Descriptor instead.
|
|
func (*GenerateRequest) Descriptor() ([]byte, []int) {
|
|
return file_invite_invite_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *GenerateRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GenerateRequest) GetTtlDays() int32 {
|
|
if x != nil {
|
|
return x.TtlDays
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GenerateRequest) GetMaxUses() int32 {
|
|
if x != nil {
|
|
return x.MaxUses
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GenerateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
MaxUses int32 `protobuf:"varint,2,opt,name=max_uses,json=maxUses,proto3" json:"max_uses,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GenerateResponse) Reset() {
|
|
*x = GenerateResponse{}
|
|
mi := &file_invite_invite_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GenerateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GenerateResponse) ProtoMessage() {}
|
|
|
|
func (x *GenerateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_invite_invite_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 GenerateResponse.ProtoReflect.Descriptor instead.
|
|
func (*GenerateResponse) Descriptor() ([]byte, []int) {
|
|
return file_invite_invite_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GenerateResponse) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GenerateResponse) GetMaxUses() int32 {
|
|
if x != nil {
|
|
return x.MaxUses
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GenerateResponse) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetInfoRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetInfoRequest) Reset() {
|
|
*x = GetInfoRequest{}
|
|
mi := &file_invite_invite_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetInfoRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetInfoRequest) ProtoMessage() {}
|
|
|
|
func (x *GetInfoRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_invite_invite_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 GetInfoRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetInfoRequest) Descriptor() ([]byte, []int) {
|
|
return file_invite_invite_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetInfoRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetInfoResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
CanBeUsedCount int32 `protobuf:"varint,3,opt,name=can_be_used_count,json=canBeUsedCount,proto3" json:"can_be_used_count,omitempty"`
|
|
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
|
|
IsActive bool `protobuf:"varint,5,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
|
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetInfoResponse) Reset() {
|
|
*x = GetInfoResponse{}
|
|
mi := &file_invite_invite_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetInfoResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetInfoResponse) ProtoMessage() {}
|
|
|
|
func (x *GetInfoResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_invite_invite_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 GetInfoResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetInfoResponse) Descriptor() ([]byte, []int) {
|
|
return file_invite_invite_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetCanBeUsedCount() int32 {
|
|
if x != nil {
|
|
return x.CanBeUsedCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetExpiresAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpiresAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetIsActive() bool {
|
|
if x != nil {
|
|
return x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetInfoResponse) GetCreatedAt() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_invite_invite_proto protoreflect.FileDescriptor
|
|
|
|
const file_invite_invite_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x13invite/invite.proto\x12\x06invite\x1a\x1fgoogle/protobuf/timestamp.proto\"`\n" +
|
|
"\x0fGenerateRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x19\n" +
|
|
"\bttl_days\x18\x02 \x01(\x05R\attlDays\x12\x19\n" +
|
|
"\bmax_uses\x18\x03 \x01(\x05R\amaxUses\"|\n" +
|
|
"\x10GenerateResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12\x19\n" +
|
|
"\bmax_uses\x18\x02 \x01(\x05R\amaxUses\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"$\n" +
|
|
"\x0eGetInfoRequest\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\"\xfc\x01\n" +
|
|
"\x0fGetInfoResponse\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12)\n" +
|
|
"\x11can_be_used_count\x18\x03 \x01(\x05R\x0ecanBeUsedCount\x129\n" +
|
|
"\n" +
|
|
"expires_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12\x1b\n" +
|
|
"\tis_active\x18\x05 \x01(\bR\bisActive\x129\n" +
|
|
"\n" +
|
|
"created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt2\x8a\x01\n" +
|
|
"\rInviteService\x12=\n" +
|
|
"\bGenerate\x12\x17.invite.GenerateRequest\x1a\x18.invite.GenerateResponse\x12:\n" +
|
|
"\aGetInfo\x12\x16.invite.GetInfoRequest\x1a\x17.invite.GetInfoResponseB>Z<git.techease.ru/Smart-search/smart-search-back/pkg/pb/inviteb\x06proto3"
|
|
|
|
var (
|
|
file_invite_invite_proto_rawDescOnce sync.Once
|
|
file_invite_invite_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_invite_invite_proto_rawDescGZIP() []byte {
|
|
file_invite_invite_proto_rawDescOnce.Do(func() {
|
|
file_invite_invite_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_invite_invite_proto_rawDesc), len(file_invite_invite_proto_rawDesc)))
|
|
})
|
|
return file_invite_invite_proto_rawDescData
|
|
}
|
|
|
|
var file_invite_invite_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_invite_invite_proto_goTypes = []any{
|
|
(*GenerateRequest)(nil), // 0: invite.GenerateRequest
|
|
(*GenerateResponse)(nil), // 1: invite.GenerateResponse
|
|
(*GetInfoRequest)(nil), // 2: invite.GetInfoRequest
|
|
(*GetInfoResponse)(nil), // 3: invite.GetInfoResponse
|
|
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
|
}
|
|
var file_invite_invite_proto_depIdxs = []int32{
|
|
4, // 0: invite.GenerateResponse.expires_at:type_name -> google.protobuf.Timestamp
|
|
4, // 1: invite.GetInfoResponse.expires_at:type_name -> google.protobuf.Timestamp
|
|
4, // 2: invite.GetInfoResponse.created_at:type_name -> google.protobuf.Timestamp
|
|
0, // 3: invite.InviteService.Generate:input_type -> invite.GenerateRequest
|
|
2, // 4: invite.InviteService.GetInfo:input_type -> invite.GetInfoRequest
|
|
1, // 5: invite.InviteService.Generate:output_type -> invite.GenerateResponse
|
|
3, // 6: invite.InviteService.GetInfo:output_type -> invite.GetInfoResponse
|
|
5, // [5:7] is the sub-list for method output_type
|
|
3, // [3:5] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_invite_invite_proto_init() }
|
|
func file_invite_invite_proto_init() {
|
|
if File_invite_invite_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_invite_invite_proto_rawDesc), len(file_invite_invite_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_invite_invite_proto_goTypes,
|
|
DependencyIndexes: file_invite_invite_proto_depIdxs,
|
|
MessageInfos: file_invite_invite_proto_msgTypes,
|
|
}.Build()
|
|
File_invite_invite_proto = out.File
|
|
file_invite_invite_proto_goTypes = nil
|
|
file_invite_invite_proto_depIdxs = nil
|
|
}
|