// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc (unknown) // source: mandant/v1/mandant.proto package mandantv1 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 GetCurrentTenantRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetCurrentTenantRequest) Reset() { *x = GetCurrentTenantRequest{} mi := &file_mandant_v1_mandant_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetCurrentTenantRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetCurrentTenantRequest) ProtoMessage() {} func (x *GetCurrentTenantRequest) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 GetCurrentTenantRequest.ProtoReflect.Descriptor instead. func (*GetCurrentTenantRequest) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{0} } type GetTenantRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTenantRequest) Reset() { *x = GetTenantRequest{} mi := &file_mandant_v1_mandant_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTenantRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTenantRequest) ProtoMessage() {} func (x *GetTenantRequest) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 GetTenantRequest.ProtoReflect.Descriptor instead. func (*GetTenantRequest) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{1} } func (x *GetTenantRequest) GetId() int64 { if x != nil { return x.Id } return 0 } type GetTenantResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Plan string `protobuf:"bytes,3,opt,name=plan,proto3" json:"plan,omitempty"` Logo string `protobuf:"bytes,4,opt,name=logo,proto3" json:"logo,omitempty"` Color string `protobuf:"bytes,5,opt,name=color,proto3" json:"color,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetTenantResponse) Reset() { *x = GetTenantResponse{} mi := &file_mandant_v1_mandant_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetTenantResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetTenantResponse) ProtoMessage() {} func (x *GetTenantResponse) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 GetTenantResponse.ProtoReflect.Descriptor instead. func (*GetTenantResponse) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{2} } func (x *GetTenantResponse) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *GetTenantResponse) GetName() string { if x != nil { return x.Name } return "" } func (x *GetTenantResponse) GetPlan() string { if x != nil { return x.Plan } return "" } func (x *GetTenantResponse) GetLogo() string { if x != nil { return x.Logo } return "" } func (x *GetTenantResponse) GetColor() string { if x != nil { return x.Color } return "" } type ListTenantRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PerPage int32 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` OrberBy string `protobuf:"bytes,3,opt,name=orber_by,json=orberBy,proto3" json:"orber_by,omitempty"` Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListTenantRequest) Reset() { *x = ListTenantRequest{} mi := &file_mandant_v1_mandant_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListTenantRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListTenantRequest) ProtoMessage() {} func (x *ListTenantRequest) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 ListTenantRequest.ProtoReflect.Descriptor instead. func (*ListTenantRequest) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{3} } func (x *ListTenantRequest) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *ListTenantRequest) GetPerPage() int32 { if x != nil { return x.PerPage } return 0 } func (x *ListTenantRequest) GetOrberBy() string { if x != nil { return x.OrberBy } return "" } func (x *ListTenantRequest) GetAsc() bool { if x != nil { return x.Asc } return false } type Metadata struct { state protoimpl.MessageState `protogen:"open.v1"` TotalCount int32 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Metadata) Reset() { *x = Metadata{} mi := &file_mandant_v1_mandant_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Metadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*Metadata) ProtoMessage() {} func (x *Metadata) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 Metadata.ProtoReflect.Descriptor instead. func (*Metadata) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{4} } func (x *Metadata) GetTotalCount() int32 { if x != nil { return x.TotalCount } return 0 } type ListProjectsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Data []*GetTenantResponse `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListProjectsResponse) Reset() { *x = ListProjectsResponse{} mi := &file_mandant_v1_mandant_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListProjectsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListProjectsResponse) ProtoMessage() {} func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 ListProjectsResponse.ProtoReflect.Descriptor instead. func (*ListProjectsResponse) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{5} } func (x *ListProjectsResponse) GetData() []*GetTenantResponse { if x != nil { return x.Data } return nil } func (x *ListProjectsResponse) GetMeta() *Metadata { if x != nil { return x.Meta } return nil } type SetCurrentTenantRequest struct { state protoimpl.MessageState `protogen:"open.v1"` TenantId int64 `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetCurrentTenantRequest) Reset() { *x = SetCurrentTenantRequest{} mi := &file_mandant_v1_mandant_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetCurrentTenantRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetCurrentTenantRequest) ProtoMessage() {} func (x *SetCurrentTenantRequest) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 SetCurrentTenantRequest.ProtoReflect.Descriptor instead. func (*SetCurrentTenantRequest) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{6} } func (x *SetCurrentTenantRequest) GetTenantId() int64 { if x != nil { return x.TenantId } return 0 } type SetCurrentTenantResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetCurrentTenantResponse) Reset() { *x = SetCurrentTenantResponse{} mi := &file_mandant_v1_mandant_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetCurrentTenantResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetCurrentTenantResponse) ProtoMessage() {} func (x *SetCurrentTenantResponse) ProtoReflect() protoreflect.Message { mi := &file_mandant_v1_mandant_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 SetCurrentTenantResponse.ProtoReflect.Descriptor instead. func (*SetCurrentTenantResponse) Descriptor() ([]byte, []int) { return file_mandant_v1_mandant_proto_rawDescGZIP(), []int{7} } func (x *SetCurrentTenantResponse) GetSuccess() bool { if x != nil { return x.Success } return false } var File_mandant_v1_mandant_proto protoreflect.FileDescriptor const file_mandant_v1_mandant_proto_rawDesc = "" + "\n" + "\x18mandant/v1/mandant.proto\x12\n" + "mandant.v1\"\x19\n" + "\x17GetCurrentTenantRequest\"\"\n" + "\x10GetTenantRequest\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\"u\n" + "\x11GetTenantResponse\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + "\x04plan\x18\x03 \x01(\tR\x04plan\x12\x12\n" + "\x04logo\x18\x04 \x01(\tR\x04logo\x12\x14\n" + "\x05color\x18\x05 \x01(\tR\x05color\"o\n" + "\x11ListTenantRequest\x12\x12\n" + "\x04page\x18\x01 \x01(\x05R\x04page\x12\x19\n" + "\bper_page\x18\x02 \x01(\x05R\aperPage\x12\x19\n" + "\borber_by\x18\x03 \x01(\tR\aorberBy\x12\x10\n" + "\x03asc\x18\x04 \x01(\bR\x03asc\"*\n" + "\bMetadata\x12\x1e\n" + "\n" + "totalCount\x18\x01 \x01(\x05R\n" + "totalCount\"s\n" + "\x14ListProjectsResponse\x121\n" + "\x04data\x18\x01 \x03(\v2\x1d.mandant.v1.GetTenantResponseR\x04data\x12(\n" + "\x04meta\x18\x02 \x01(\v2\x14.mandant.v1.MetadataR\x04meta\"6\n" + "\x17SetCurrentTenantRequest\x12\x1b\n" + "\ttenant_id\x18\x01 \x01(\x03R\btenantId\"4\n" + "\x18SetCurrentTenantResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess2\x99\x02\n" + "\x0eMandantService\x12V\n" + "\x10GetCurrentTenant\x12#.mandant.v1.GetCurrentTenantRequest\x1a\x1d.mandant.v1.GetTenantResponse\x12P\n" + "\rGetAllTenants\x12\x1d.mandant.v1.ListTenantRequest\x1a .mandant.v1.ListProjectsResponse\x12]\n" + "\x10SetCurrentTenant\x12#.mandant.v1.SetCurrentTenantRequest\x1a$.mandant.v1.SetCurrentTenantResponseB\x9c\x01\n" + "\x0ecom.mandant.v1B\fMandantProtoP\x01Z3git.kocoder.xyz/kocoded/vt/gen/mandant/v1;mandantv1\xa2\x02\x03MXX\xaa\x02\n" + "Mandant.V1\xca\x02\n" + "Mandant\\V1\xe2\x02\x16Mandant\\V1\\GPBMetadata\xea\x02\vMandant::V1b\x06proto3" var ( file_mandant_v1_mandant_proto_rawDescOnce sync.Once file_mandant_v1_mandant_proto_rawDescData []byte ) func file_mandant_v1_mandant_proto_rawDescGZIP() []byte { file_mandant_v1_mandant_proto_rawDescOnce.Do(func() { file_mandant_v1_mandant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_mandant_v1_mandant_proto_rawDesc), len(file_mandant_v1_mandant_proto_rawDesc))) }) return file_mandant_v1_mandant_proto_rawDescData } var file_mandant_v1_mandant_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_mandant_v1_mandant_proto_goTypes = []any{ (*GetCurrentTenantRequest)(nil), // 0: mandant.v1.GetCurrentTenantRequest (*GetTenantRequest)(nil), // 1: mandant.v1.GetTenantRequest (*GetTenantResponse)(nil), // 2: mandant.v1.GetTenantResponse (*ListTenantRequest)(nil), // 3: mandant.v1.ListTenantRequest (*Metadata)(nil), // 4: mandant.v1.Metadata (*ListProjectsResponse)(nil), // 5: mandant.v1.ListProjectsResponse (*SetCurrentTenantRequest)(nil), // 6: mandant.v1.SetCurrentTenantRequest (*SetCurrentTenantResponse)(nil), // 7: mandant.v1.SetCurrentTenantResponse } var file_mandant_v1_mandant_proto_depIdxs = []int32{ 2, // 0: mandant.v1.ListProjectsResponse.data:type_name -> mandant.v1.GetTenantResponse 4, // 1: mandant.v1.ListProjectsResponse.meta:type_name -> mandant.v1.Metadata 0, // 2: mandant.v1.MandantService.GetCurrentTenant:input_type -> mandant.v1.GetCurrentTenantRequest 3, // 3: mandant.v1.MandantService.GetAllTenants:input_type -> mandant.v1.ListTenantRequest 6, // 4: mandant.v1.MandantService.SetCurrentTenant:input_type -> mandant.v1.SetCurrentTenantRequest 2, // 5: mandant.v1.MandantService.GetCurrentTenant:output_type -> mandant.v1.GetTenantResponse 5, // 6: mandant.v1.MandantService.GetAllTenants:output_type -> mandant.v1.ListProjectsResponse 7, // 7: mandant.v1.MandantService.SetCurrentTenant:output_type -> mandant.v1.SetCurrentTenantResponse 5, // [5:8] is the sub-list for method output_type 2, // [2:5] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_mandant_v1_mandant_proto_init() } func file_mandant_v1_mandant_proto_init() { if File_mandant_v1_mandant_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_mandant_v1_mandant_proto_rawDesc), len(file_mandant_v1_mandant_proto_rawDesc)), NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 1, }, GoTypes: file_mandant_v1_mandant_proto_goTypes, DependencyIndexes: file_mandant_v1_mandant_proto_depIdxs, MessageInfos: file_mandant_v1_mandant_proto_msgTypes, }.Build() File_mandant_v1_mandant_proto = out.File file_mandant_v1_mandant_proto_goTypes = nil file_mandant_v1_mandant_proto_depIdxs = nil }