1
0
mirror of https://github.com/hexolan/stocklet.git synced 2026-12-01 03:09:10 +00:00
Files
stocklet/internal/pkg/protogen/events/v1/user.pb.go
T
2026-11-19 06:45:42 +00:00

305 lines
9.5 KiB
Go

// Copyright (C) 2024 Declan Teevan
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: stocklet/events/v1/user.proto
package events_v1
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 UserCreatedEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Revision int32 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserCreatedEvent) Reset() {
*x = UserCreatedEvent{}
mi := &file_stocklet_events_v1_user_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserCreatedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserCreatedEvent) ProtoMessage() {}
func (x *UserCreatedEvent) ProtoReflect() protoreflect.Message {
mi := &file_stocklet_events_v1_user_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 UserCreatedEvent.ProtoReflect.Descriptor instead.
func (*UserCreatedEvent) Descriptor() ([]byte, []int) {
return file_stocklet_events_v1_user_proto_rawDescGZIP(), []int{0}
}
func (x *UserCreatedEvent) GetRevision() int32 {
if x != nil {
return x.Revision
}
return 0
}
func (x *UserCreatedEvent) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UserCreatedEvent) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *UserCreatedEvent) GetFirstName() string {
if x != nil {
return x.FirstName
}
return ""
}
func (x *UserCreatedEvent) GetLastName() string {
if x != nil {
return x.LastName
}
return ""
}
type UserEmailUpdatedEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Revision int32 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserEmailUpdatedEvent) Reset() {
*x = UserEmailUpdatedEvent{}
mi := &file_stocklet_events_v1_user_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserEmailUpdatedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserEmailUpdatedEvent) ProtoMessage() {}
func (x *UserEmailUpdatedEvent) ProtoReflect() protoreflect.Message {
mi := &file_stocklet_events_v1_user_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 UserEmailUpdatedEvent.ProtoReflect.Descriptor instead.
func (*UserEmailUpdatedEvent) Descriptor() ([]byte, []int) {
return file_stocklet_events_v1_user_proto_rawDescGZIP(), []int{1}
}
func (x *UserEmailUpdatedEvent) GetRevision() int32 {
if x != nil {
return x.Revision
}
return 0
}
func (x *UserEmailUpdatedEvent) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UserEmailUpdatedEvent) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
type UserDeletedEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Revision int32 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UserDeletedEvent) Reset() {
*x = UserDeletedEvent{}
mi := &file_stocklet_events_v1_user_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UserDeletedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UserDeletedEvent) ProtoMessage() {}
func (x *UserDeletedEvent) ProtoReflect() protoreflect.Message {
mi := &file_stocklet_events_v1_user_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 UserDeletedEvent.ProtoReflect.Descriptor instead.
func (*UserDeletedEvent) Descriptor() ([]byte, []int) {
return file_stocklet_events_v1_user_proto_rawDescGZIP(), []int{2}
}
func (x *UserDeletedEvent) GetRevision() int32 {
if x != nil {
return x.Revision
}
return 0
}
func (x *UserDeletedEvent) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *UserDeletedEvent) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
var File_stocklet_events_v1_user_proto protoreflect.FileDescriptor
const file_stocklet_events_v1_user_proto_rawDesc = "" +
"\n" +
"\x1dstocklet/events/v1/user.proto\x12\x12stocklet.events.v1\"\x99\x01\n" +
"\x10UserCreatedEvent\x12\x1a\n" +
"\brevision\x18\x01 \x01(\x05R\brevision\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x14\n" +
"\x05email\x18\x03 \x01(\tR\x05email\x12\x1d\n" +
"\n" +
"first_name\x18\x04 \x01(\tR\tfirstName\x12\x1b\n" +
"\tlast_name\x18\x05 \x01(\tR\blastName\"b\n" +
"\x15UserEmailUpdatedEvent\x12\x1a\n" +
"\brevision\x18\x01 \x01(\x05R\brevision\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x14\n" +
"\x05email\x18\x03 \x01(\tR\x05email\"]\n" +
"\x10UserDeletedEvent\x12\x1a\n" +
"\brevision\x18\x01 \x01(\x05R\brevision\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x14\n" +
"\x05email\x18\x03 \x01(\tR\x05emailBGZEgithub.com/hexolan/stocklet/internal/pkg/protogen/events/v1;events_v1b\x06proto3"
var (
file_stocklet_events_v1_user_proto_rawDescOnce sync.Once
file_stocklet_events_v1_user_proto_rawDescData []byte
)
func file_stocklet_events_v1_user_proto_rawDescGZIP() []byte {
file_stocklet_events_v1_user_proto_rawDescOnce.Do(func() {
file_stocklet_events_v1_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_stocklet_events_v1_user_proto_rawDesc), len(file_stocklet_events_v1_user_proto_rawDesc)))
})
return file_stocklet_events_v1_user_proto_rawDescData
}
var file_stocklet_events_v1_user_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_stocklet_events_v1_user_proto_goTypes = []any{
(*UserCreatedEvent)(nil), // 0: stocklet.events.v1.UserCreatedEvent
(*UserEmailUpdatedEvent)(nil), // 1: stocklet.events.v1.UserEmailUpdatedEvent
(*UserDeletedEvent)(nil), // 2: stocklet.events.v1.UserDeletedEvent
}
var file_stocklet_events_v1_user_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_stocklet_events_v1_user_proto_init() }
func file_stocklet_events_v1_user_proto_init() {
if File_stocklet_events_v1_user_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_stocklet_events_v1_user_proto_rawDesc), len(file_stocklet_events_v1_user_proto_rawDesc)),
NumEnums: 0,
NumMessages: 3,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_stocklet_events_v1_user_proto_goTypes,
DependencyIndexes: file_stocklet_events_v1_user_proto_depIdxs,
MessageInfos: file_stocklet_events_v1_user_proto_msgTypes,
}.Build()
File_stocklet_events_v1_user_proto = out.File
file_stocklet_events_v1_user_proto_goTypes = nil
file_stocklet_events_v1_user_proto_depIdxs = nil
}