- Introduced a new test file for setting up an in-memory SQLite database for testing purposes. - Added helper functions for seeding test data, including users, plans, subscriptions, and wallet transactions. - Implemented usage helpers to load user video counts and storage usage. - Created user payload struct and functions to build user payloads with preferences and wallet balance. - Refactored gRPC server setup to include new services and handlers. - Updated proto files to simplify service definitions by removing redundant service prefixes.
720 lines
23 KiB
Go
720 lines
23 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: app/v1/auth.proto
|
|
|
|
package appv1
|
|
|
|
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 LoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginRequest) Reset() {
|
|
*x = LoginRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginRequest) ProtoMessage() {}
|
|
|
|
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 LoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *LoginRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *LoginRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type LoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LoginResponse) Reset() {
|
|
*x = LoginResponse{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LoginResponse) ProtoMessage() {}
|
|
|
|
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 LoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *LoginResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
|
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
|
RefUsername *string `protobuf:"bytes,4,opt,name=ref_username,json=refUsername,proto3,oneof" json:"ref_username,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterRequest) Reset() {
|
|
*x = RegisterRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 RegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *RegisterRequest) GetUsername() string {
|
|
if x != nil {
|
|
return x.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetRefUsername() string {
|
|
if x != nil && x.RefUsername != nil {
|
|
return *x.RefUsername
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RegisterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterResponse) Reset() {
|
|
*x = RegisterResponse{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 RegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *RegisterResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LogoutRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *LogoutRequest) Reset() {
|
|
*x = LogoutRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *LogoutRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*LogoutRequest) ProtoMessage() {}
|
|
|
|
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 LogoutRequest.ProtoReflect.Descriptor instead.
|
|
func (*LogoutRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type ChangePasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"`
|
|
NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) Reset() {
|
|
*x = ChangePasswordRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangePasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 ChangePasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangePasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetCurrentPassword() string {
|
|
if x != nil {
|
|
return x.CurrentPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangePasswordRequest) GetNewPassword() string {
|
|
if x != nil {
|
|
return x.NewPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ForgotPasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ForgotPasswordRequest) Reset() {
|
|
*x = ForgotPasswordRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ForgotPasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ForgotPasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ForgotPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 ForgotPasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ForgotPasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ForgotPasswordRequest) GetEmail() string {
|
|
if x != nil {
|
|
return x.Email
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ResetPasswordRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
|
|
NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) Reset() {
|
|
*x = ResetPasswordRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ResetPasswordRequest) ProtoMessage() {}
|
|
|
|
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 ResetPasswordRequest.ProtoReflect.Descriptor instead.
|
|
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetToken() string {
|
|
if x != nil {
|
|
return x.Token
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ResetPasswordRequest) GetNewPassword() string {
|
|
if x != nil {
|
|
return x.NewPassword
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetGoogleLoginUrlRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetGoogleLoginUrlRequest) Reset() {
|
|
*x = GetGoogleLoginUrlRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetGoogleLoginUrlRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetGoogleLoginUrlRequest) ProtoMessage() {}
|
|
|
|
func (x *GetGoogleLoginUrlRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 GetGoogleLoginUrlRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetGoogleLoginUrlRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
type GetGoogleLoginUrlResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetGoogleLoginUrlResponse) Reset() {
|
|
*x = GetGoogleLoginUrlResponse{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetGoogleLoginUrlResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetGoogleLoginUrlResponse) ProtoMessage() {}
|
|
|
|
func (x *GetGoogleLoginUrlResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 GetGoogleLoginUrlResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetGoogleLoginUrlResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetGoogleLoginUrlResponse) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CompleteGoogleLoginRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
RefUsername *string `protobuf:"bytes,2,opt,name=ref_username,json=refUsername,proto3,oneof" json:"ref_username,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginRequest) Reset() {
|
|
*x = CompleteGoogleLoginRequest{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CompleteGoogleLoginRequest) ProtoMessage() {}
|
|
|
|
func (x *CompleteGoogleLoginRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 CompleteGoogleLoginRequest.ProtoReflect.Descriptor instead.
|
|
func (*CompleteGoogleLoginRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginRequest) GetRefUsername() string {
|
|
if x != nil && x.RefUsername != nil {
|
|
return *x.RefUsername
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CompleteGoogleLoginResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginResponse) Reset() {
|
|
*x = CompleteGoogleLoginResponse{}
|
|
mi := &file_app_v1_auth_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CompleteGoogleLoginResponse) ProtoMessage() {}
|
|
|
|
func (x *CompleteGoogleLoginResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_auth_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 CompleteGoogleLoginResponse.ProtoReflect.Descriptor instead.
|
|
func (*CompleteGoogleLoginResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_auth_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *CompleteGoogleLoginResponse) GetUser() *User {
|
|
if x != nil {
|
|
return x.User
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_app_v1_auth_proto protoreflect.FileDescriptor
|
|
|
|
const file_app_v1_auth_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x11app/v1/auth.proto\x12\rstream.app.v1\x1a\x13app/v1/common.proto\"@\n" +
|
|
"\fLoginRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"8\n" +
|
|
"\rLoginResponse\x12'\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\x98\x01\n" +
|
|
"\x0fRegisterRequest\x12\x1a\n" +
|
|
"\busername\x18\x01 \x01(\tR\busername\x12\x14\n" +
|
|
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1a\n" +
|
|
"\bpassword\x18\x03 \x01(\tR\bpassword\x12&\n" +
|
|
"\fref_username\x18\x04 \x01(\tH\x00R\vrefUsername\x88\x01\x01B\x0f\n" +
|
|
"\r_ref_username\";\n" +
|
|
"\x10RegisterResponse\x12'\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\x0f\n" +
|
|
"\rLogoutRequest\"e\n" +
|
|
"\x15ChangePasswordRequest\x12)\n" +
|
|
"\x10current_password\x18\x01 \x01(\tR\x0fcurrentPassword\x12!\n" +
|
|
"\fnew_password\x18\x02 \x01(\tR\vnewPassword\"-\n" +
|
|
"\x15ForgotPasswordRequest\x12\x14\n" +
|
|
"\x05email\x18\x01 \x01(\tR\x05email\"O\n" +
|
|
"\x14ResetPasswordRequest\x12\x14\n" +
|
|
"\x05token\x18\x01 \x01(\tR\x05token\x12!\n" +
|
|
"\fnew_password\x18\x02 \x01(\tR\vnewPassword\"\x1a\n" +
|
|
"\x18GetGoogleLoginUrlRequest\"-\n" +
|
|
"\x19GetGoogleLoginUrlResponse\x12\x10\n" +
|
|
"\x03url\x18\x01 \x01(\tR\x03url\"i\n" +
|
|
"\x1aCompleteGoogleLoginRequest\x12\x12\n" +
|
|
"\x04code\x18\x01 \x01(\tR\x04code\x12&\n" +
|
|
"\fref_username\x18\x02 \x01(\tH\x00R\vrefUsername\x88\x01\x01B\x0f\n" +
|
|
"\r_ref_username\"F\n" +
|
|
"\x1bCompleteGoogleLoginResponse\x12'\n" +
|
|
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user2\xbb\x05\n" +
|
|
"\x04Auth\x12B\n" +
|
|
"\x05Login\x12\x1b.stream.app.v1.LoginRequest\x1a\x1c.stream.app.v1.LoginResponse\x12K\n" +
|
|
"\bRegister\x12\x1e.stream.app.v1.RegisterRequest\x1a\x1f.stream.app.v1.RegisterResponse\x12F\n" +
|
|
"\x06Logout\x12\x1c.stream.app.v1.LogoutRequest\x1a\x1e.stream.app.v1.MessageResponse\x12V\n" +
|
|
"\x0eChangePassword\x12$.stream.app.v1.ChangePasswordRequest\x1a\x1e.stream.app.v1.MessageResponse\x12V\n" +
|
|
"\x0eForgotPassword\x12$.stream.app.v1.ForgotPasswordRequest\x1a\x1e.stream.app.v1.MessageResponse\x12T\n" +
|
|
"\rResetPassword\x12#.stream.app.v1.ResetPasswordRequest\x1a\x1e.stream.app.v1.MessageResponse\x12f\n" +
|
|
"\x11GetGoogleLoginUrl\x12'.stream.app.v1.GetGoogleLoginUrlRequest\x1a(.stream.app.v1.GetGoogleLoginUrlResponse\x12l\n" +
|
|
"\x13CompleteGoogleLogin\x12).stream.app.v1.CompleteGoogleLoginRequest\x1a*.stream.app.v1.CompleteGoogleLoginResponseB,Z*stream.api/internal/gen/proto/app/v1;appv1b\x06proto3"
|
|
|
|
var (
|
|
file_app_v1_auth_proto_rawDescOnce sync.Once
|
|
file_app_v1_auth_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_app_v1_auth_proto_rawDescGZIP() []byte {
|
|
file_app_v1_auth_proto_rawDescOnce.Do(func() {
|
|
file_app_v1_auth_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_v1_auth_proto_rawDesc), len(file_app_v1_auth_proto_rawDesc)))
|
|
})
|
|
return file_app_v1_auth_proto_rawDescData
|
|
}
|
|
|
|
var file_app_v1_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_app_v1_auth_proto_goTypes = []any{
|
|
(*LoginRequest)(nil), // 0: stream.app.v1.LoginRequest
|
|
(*LoginResponse)(nil), // 1: stream.app.v1.LoginResponse
|
|
(*RegisterRequest)(nil), // 2: stream.app.v1.RegisterRequest
|
|
(*RegisterResponse)(nil), // 3: stream.app.v1.RegisterResponse
|
|
(*LogoutRequest)(nil), // 4: stream.app.v1.LogoutRequest
|
|
(*ChangePasswordRequest)(nil), // 5: stream.app.v1.ChangePasswordRequest
|
|
(*ForgotPasswordRequest)(nil), // 6: stream.app.v1.ForgotPasswordRequest
|
|
(*ResetPasswordRequest)(nil), // 7: stream.app.v1.ResetPasswordRequest
|
|
(*GetGoogleLoginUrlRequest)(nil), // 8: stream.app.v1.GetGoogleLoginUrlRequest
|
|
(*GetGoogleLoginUrlResponse)(nil), // 9: stream.app.v1.GetGoogleLoginUrlResponse
|
|
(*CompleteGoogleLoginRequest)(nil), // 10: stream.app.v1.CompleteGoogleLoginRequest
|
|
(*CompleteGoogleLoginResponse)(nil), // 11: stream.app.v1.CompleteGoogleLoginResponse
|
|
(*User)(nil), // 12: stream.app.v1.User
|
|
(*MessageResponse)(nil), // 13: stream.app.v1.MessageResponse
|
|
}
|
|
var file_app_v1_auth_proto_depIdxs = []int32{
|
|
12, // 0: stream.app.v1.LoginResponse.user:type_name -> stream.app.v1.User
|
|
12, // 1: stream.app.v1.RegisterResponse.user:type_name -> stream.app.v1.User
|
|
12, // 2: stream.app.v1.CompleteGoogleLoginResponse.user:type_name -> stream.app.v1.User
|
|
0, // 3: stream.app.v1.Auth.Login:input_type -> stream.app.v1.LoginRequest
|
|
2, // 4: stream.app.v1.Auth.Register:input_type -> stream.app.v1.RegisterRequest
|
|
4, // 5: stream.app.v1.Auth.Logout:input_type -> stream.app.v1.LogoutRequest
|
|
5, // 6: stream.app.v1.Auth.ChangePassword:input_type -> stream.app.v1.ChangePasswordRequest
|
|
6, // 7: stream.app.v1.Auth.ForgotPassword:input_type -> stream.app.v1.ForgotPasswordRequest
|
|
7, // 8: stream.app.v1.Auth.ResetPassword:input_type -> stream.app.v1.ResetPasswordRequest
|
|
8, // 9: stream.app.v1.Auth.GetGoogleLoginUrl:input_type -> stream.app.v1.GetGoogleLoginUrlRequest
|
|
10, // 10: stream.app.v1.Auth.CompleteGoogleLogin:input_type -> stream.app.v1.CompleteGoogleLoginRequest
|
|
1, // 11: stream.app.v1.Auth.Login:output_type -> stream.app.v1.LoginResponse
|
|
3, // 12: stream.app.v1.Auth.Register:output_type -> stream.app.v1.RegisterResponse
|
|
13, // 13: stream.app.v1.Auth.Logout:output_type -> stream.app.v1.MessageResponse
|
|
13, // 14: stream.app.v1.Auth.ChangePassword:output_type -> stream.app.v1.MessageResponse
|
|
13, // 15: stream.app.v1.Auth.ForgotPassword:output_type -> stream.app.v1.MessageResponse
|
|
13, // 16: stream.app.v1.Auth.ResetPassword:output_type -> stream.app.v1.MessageResponse
|
|
9, // 17: stream.app.v1.Auth.GetGoogleLoginUrl:output_type -> stream.app.v1.GetGoogleLoginUrlResponse
|
|
11, // 18: stream.app.v1.Auth.CompleteGoogleLogin:output_type -> stream.app.v1.CompleteGoogleLoginResponse
|
|
11, // [11:19] is the sub-list for method output_type
|
|
3, // [3:11] 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_app_v1_auth_proto_init() }
|
|
func file_app_v1_auth_proto_init() {
|
|
if File_app_v1_auth_proto != nil {
|
|
return
|
|
}
|
|
file_app_v1_common_proto_init()
|
|
file_app_v1_auth_proto_msgTypes[2].OneofWrappers = []any{}
|
|
file_app_v1_auth_proto_msgTypes[10].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_v1_auth_proto_rawDesc), len(file_app_v1_auth_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_app_v1_auth_proto_goTypes,
|
|
DependencyIndexes: file_app_v1_auth_proto_depIdxs,
|
|
MessageInfos: file_app_v1_auth_proto_msgTypes,
|
|
}.Build()
|
|
File_app_v1_auth_proto = out.File
|
|
file_app_v1_auth_proto_goTypes = nil
|
|
file_app_v1_auth_proto_depIdxs = nil
|
|
}
|