Files
Turbine/pkg/shared/proto/gen/realm.pb.go
2025-12-13 22:51:11 +08:00

1061 lines
33 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.10
// protoc v6.33.1
// source: realm.proto
package gen
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
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 Realm struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Slug string `protobuf:"bytes,3,opt,name=slug,proto3" json:"slug,omitempty"`
IsCommunity bool `protobuf:"varint,4,opt,name=is_community,json=isCommunity,proto3" json:"is_community,omitempty"`
IsPublic bool `protobuf:"varint,5,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
Picture *CloudFile `protobuf:"bytes,7,opt,name=picture,proto3,oneof" json:"picture,omitempty"`
Background *CloudFile `protobuf:"bytes,8,opt,name=background,proto3,oneof" json:"background,omitempty"`
Verification *VerificationMark `protobuf:"bytes,9,opt,name=verification,proto3,oneof" json:"verification,omitempty"`
AccountId string `protobuf:"bytes,10,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Realm) Reset() {
*x = Realm{}
mi := &file_realm_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Realm) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Realm) ProtoMessage() {}
func (x *Realm) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 Realm.ProtoReflect.Descriptor instead.
func (*Realm) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{0}
}
func (x *Realm) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Realm) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Realm) GetSlug() string {
if x != nil {
return x.Slug
}
return ""
}
func (x *Realm) GetIsCommunity() bool {
if x != nil {
return x.IsCommunity
}
return false
}
func (x *Realm) GetIsPublic() bool {
if x != nil {
return x.IsPublic
}
return false
}
func (x *Realm) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Realm) GetPicture() *CloudFile {
if x != nil {
return x.Picture
}
return nil
}
func (x *Realm) GetBackground() *CloudFile {
if x != nil {
return x.Background
}
return nil
}
func (x *Realm) GetVerification() *VerificationMark {
if x != nil {
return x.Verification
}
return nil
}
func (x *Realm) GetAccountId() string {
if x != nil {
return x.AccountId
}
return ""
}
type RealmMember struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
RealmId string `protobuf:"bytes,2,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"`
Role int32 `protobuf:"varint,3,opt,name=role,proto3" json:"role,omitempty"`
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=joined_at,json=joinedAt,proto3,oneof" json:"joined_at,omitempty"`
LeaveAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=leave_at,json=leaveAt,proto3,oneof" json:"leave_at,omitempty"`
Account *Account `protobuf:"bytes,6,opt,name=account,proto3,oneof" json:"account,omitempty"`
Realm *Realm `protobuf:"bytes,7,opt,name=realm,proto3,oneof" json:"realm,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RealmMember) Reset() {
*x = RealmMember{}
mi := &file_realm_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RealmMember) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RealmMember) ProtoMessage() {}
func (x *RealmMember) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 RealmMember.ProtoReflect.Descriptor instead.
func (*RealmMember) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{1}
}
func (x *RealmMember) GetAccountId() string {
if x != nil {
return x.AccountId
}
return ""
}
func (x *RealmMember) GetRealmId() string {
if x != nil {
return x.RealmId
}
return ""
}
func (x *RealmMember) GetRole() int32 {
if x != nil {
return x.Role
}
return 0
}
func (x *RealmMember) GetJoinedAt() *timestamppb.Timestamp {
if x != nil {
return x.JoinedAt
}
return nil
}
func (x *RealmMember) GetLeaveAt() *timestamppb.Timestamp {
if x != nil {
return x.LeaveAt
}
return nil
}
func (x *RealmMember) GetAccount() *Account {
if x != nil {
return x.Account
}
return nil
}
func (x *RealmMember) GetRealm() *Realm {
if x != nil {
return x.Realm
}
return nil
}
type GetRealmRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Types that are valid to be assigned to Query:
//
// *GetRealmRequest_Id
// *GetRealmRequest_Slug
Query isGetRealmRequest_Query `protobuf_oneof:"query"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetRealmRequest) Reset() {
*x = GetRealmRequest{}
mi := &file_realm_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetRealmRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRealmRequest) ProtoMessage() {}
func (x *GetRealmRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetRealmRequest.ProtoReflect.Descriptor instead.
func (*GetRealmRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{2}
}
func (x *GetRealmRequest) GetQuery() isGetRealmRequest_Query {
if x != nil {
return x.Query
}
return nil
}
func (x *GetRealmRequest) GetId() string {
if x != nil {
if x, ok := x.Query.(*GetRealmRequest_Id); ok {
return x.Id
}
}
return ""
}
func (x *GetRealmRequest) GetSlug() string {
if x != nil {
if x, ok := x.Query.(*GetRealmRequest_Slug); ok {
return x.Slug
}
}
return ""
}
type isGetRealmRequest_Query interface {
isGetRealmRequest_Query()
}
type GetRealmRequest_Id struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3,oneof"`
}
type GetRealmRequest_Slug struct {
Slug string `protobuf:"bytes,2,opt,name=slug,proto3,oneof"`
}
func (*GetRealmRequest_Id) isGetRealmRequest_Query() {}
func (*GetRealmRequest_Slug) isGetRealmRequest_Query() {}
type GetUserRealmsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetUserRealmsRequest) Reset() {
*x = GetUserRealmsRequest{}
mi := &file_realm_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetUserRealmsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserRealmsRequest) ProtoMessage() {}
func (x *GetUserRealmsRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetUserRealmsRequest.ProtoReflect.Descriptor instead.
func (*GetUserRealmsRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{3}
}
func (x *GetUserRealmsRequest) GetAccountId() string {
if x != nil {
return x.AccountId
}
return ""
}
type GetRealmBatchRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetRealmBatchRequest) Reset() {
*x = GetRealmBatchRequest{}
mi := &file_realm_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetRealmBatchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRealmBatchRequest) ProtoMessage() {}
func (x *GetRealmBatchRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetRealmBatchRequest.ProtoReflect.Descriptor instead.
func (*GetRealmBatchRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{4}
}
func (x *GetRealmBatchRequest) GetIds() []string {
if x != nil {
return x.Ids
}
return nil
}
type GetRealmBatchResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Realms []*Realm `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetRealmBatchResponse) Reset() {
*x = GetRealmBatchResponse{}
mi := &file_realm_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetRealmBatchResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRealmBatchResponse) ProtoMessage() {}
func (x *GetRealmBatchResponse) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetRealmBatchResponse.ProtoReflect.Descriptor instead.
func (*GetRealmBatchResponse) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{5}
}
func (x *GetRealmBatchResponse) GetRealms() []*Realm {
if x != nil {
return x.Realms
}
return nil
}
type GetUserRealmsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
RealmIds []string `protobuf:"bytes,1,rep,name=realm_ids,json=realmIds,proto3" json:"realm_ids,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetUserRealmsResponse) Reset() {
*x = GetUserRealmsResponse{}
mi := &file_realm_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetUserRealmsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserRealmsResponse) ProtoMessage() {}
func (x *GetUserRealmsResponse) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetUserRealmsResponse.ProtoReflect.Descriptor instead.
func (*GetUserRealmsResponse) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{6}
}
func (x *GetUserRealmsResponse) GetRealmIds() []string {
if x != nil {
return x.RealmIds
}
return nil
}
type GetPublicRealmsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
OrderBy *string `protobuf:"bytes,1,opt,name=order_by,json=orderBy,proto3,oneof" json:"order_by,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPublicRealmsRequest) Reset() {
*x = GetPublicRealmsRequest{}
mi := &file_realm_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPublicRealmsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPublicRealmsRequest) ProtoMessage() {}
func (x *GetPublicRealmsRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetPublicRealmsRequest.ProtoReflect.Descriptor instead.
func (*GetPublicRealmsRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{7}
}
func (x *GetPublicRealmsRequest) GetOrderBy() string {
if x != nil && x.OrderBy != nil {
return *x.OrderBy
}
return ""
}
type GetPublicRealmsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Realms []*Realm `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetPublicRealmsResponse) Reset() {
*x = GetPublicRealmsResponse{}
mi := &file_realm_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetPublicRealmsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetPublicRealmsResponse) ProtoMessage() {}
func (x *GetPublicRealmsResponse) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 GetPublicRealmsResponse.ProtoReflect.Descriptor instead.
func (*GetPublicRealmsResponse) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{8}
}
func (x *GetPublicRealmsResponse) GetRealms() []*Realm {
if x != nil {
return x.Realms
}
return nil
}
type SearchRealmsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchRealmsRequest) Reset() {
*x = SearchRealmsRequest{}
mi := &file_realm_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchRealmsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchRealmsRequest) ProtoMessage() {}
func (x *SearchRealmsRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 SearchRealmsRequest.ProtoReflect.Descriptor instead.
func (*SearchRealmsRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{9}
}
func (x *SearchRealmsRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *SearchRealmsRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
type SendInviteNotifyRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Member *RealmMember `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SendInviteNotifyRequest) Reset() {
*x = SendInviteNotifyRequest{}
mi := &file_realm_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SendInviteNotifyRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SendInviteNotifyRequest) ProtoMessage() {}
func (x *SendInviteNotifyRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 SendInviteNotifyRequest.ProtoReflect.Descriptor instead.
func (*SendInviteNotifyRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{10}
}
func (x *SendInviteNotifyRequest) GetMember() *RealmMember {
if x != nil {
return x.Member
}
return nil
}
type IsMemberWithRoleRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
RealmId string `protobuf:"bytes,1,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"`
AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
RequiredRoles []int32 `protobuf:"varint,3,rep,packed,name=required_roles,json=requiredRoles,proto3" json:"required_roles,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IsMemberWithRoleRequest) Reset() {
*x = IsMemberWithRoleRequest{}
mi := &file_realm_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IsMemberWithRoleRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IsMemberWithRoleRequest) ProtoMessage() {}
func (x *IsMemberWithRoleRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_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 IsMemberWithRoleRequest.ProtoReflect.Descriptor instead.
func (*IsMemberWithRoleRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{11}
}
func (x *IsMemberWithRoleRequest) GetRealmId() string {
if x != nil {
return x.RealmId
}
return ""
}
func (x *IsMemberWithRoleRequest) GetAccountId() string {
if x != nil {
return x.AccountId
}
return ""
}
func (x *IsMemberWithRoleRequest) GetRequiredRoles() []int32 {
if x != nil {
return x.RequiredRoles
}
return nil
}
type LoadMemberAccountRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Member *RealmMember `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoadMemberAccountRequest) Reset() {
*x = LoadMemberAccountRequest{}
mi := &file_realm_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoadMemberAccountRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadMemberAccountRequest) ProtoMessage() {}
func (x *LoadMemberAccountRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_proto_msgTypes[12]
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 LoadMemberAccountRequest.ProtoReflect.Descriptor instead.
func (*LoadMemberAccountRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{12}
}
func (x *LoadMemberAccountRequest) GetMember() *RealmMember {
if x != nil {
return x.Member
}
return nil
}
type LoadMemberAccountsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Members []*RealmMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoadMemberAccountsRequest) Reset() {
*x = LoadMemberAccountsRequest{}
mi := &file_realm_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoadMemberAccountsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadMemberAccountsRequest) ProtoMessage() {}
func (x *LoadMemberAccountsRequest) ProtoReflect() protoreflect.Message {
mi := &file_realm_proto_msgTypes[13]
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 LoadMemberAccountsRequest.ProtoReflect.Descriptor instead.
func (*LoadMemberAccountsRequest) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{13}
}
func (x *LoadMemberAccountsRequest) GetMembers() []*RealmMember {
if x != nil {
return x.Members
}
return nil
}
type LoadMemberAccountsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Members []*RealmMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoadMemberAccountsResponse) Reset() {
*x = LoadMemberAccountsResponse{}
mi := &file_realm_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoadMemberAccountsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoadMemberAccountsResponse) ProtoMessage() {}
func (x *LoadMemberAccountsResponse) ProtoReflect() protoreflect.Message {
mi := &file_realm_proto_msgTypes[14]
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 LoadMemberAccountsResponse.ProtoReflect.Descriptor instead.
func (*LoadMemberAccountsResponse) Descriptor() ([]byte, []int) {
return file_realm_proto_rawDescGZIP(), []int{14}
}
func (x *LoadMemberAccountsResponse) GetMembers() []*RealmMember {
if x != nil {
return x.Members
}
return nil
}
var File_realm_proto protoreflect.FileDescriptor
const file_realm_proto_rawDesc = "" +
"\n" +
"\vrealm.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\raccount.proto\x1a\n" +
"file.proto\"\x96\x03\n" +
"\x05Realm\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
"\x04slug\x18\x03 \x01(\tR\x04slug\x12!\n" +
"\fis_community\x18\x04 \x01(\bR\visCommunity\x12\x1b\n" +
"\tis_public\x18\x05 \x01(\bR\bisPublic\x12 \n" +
"\vdescription\x18\x06 \x01(\tR\vdescription\x12/\n" +
"\apicture\x18\a \x01(\v2\x10.proto.CloudFileH\x00R\apicture\x88\x01\x01\x125\n" +
"\n" +
"background\x18\b \x01(\v2\x10.proto.CloudFileH\x01R\n" +
"background\x88\x01\x01\x12@\n" +
"\fverification\x18\t \x01(\v2\x17.proto.VerificationMarkH\x02R\fverification\x88\x01\x01\x12\x1d\n" +
"\n" +
"account_id\x18\n" +
" \x01(\tR\taccountIdB\n" +
"\n" +
"\b_pictureB\r\n" +
"\v_backgroundB\x0f\n" +
"\r_verification\"\xde\x02\n" +
"\vRealmMember\x12\x1d\n" +
"\n" +
"account_id\x18\x01 \x01(\tR\taccountId\x12\x19\n" +
"\brealm_id\x18\x02 \x01(\tR\arealmId\x12\x12\n" +
"\x04role\x18\x03 \x01(\x05R\x04role\x12<\n" +
"\tjoined_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampH\x00R\bjoinedAt\x88\x01\x01\x12:\n" +
"\bleave_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampH\x01R\aleaveAt\x88\x01\x01\x12-\n" +
"\aaccount\x18\x06 \x01(\v2\x0e.proto.AccountH\x02R\aaccount\x88\x01\x01\x12'\n" +
"\x05realm\x18\a \x01(\v2\f.proto.RealmH\x03R\x05realm\x88\x01\x01B\f\n" +
"\n" +
"_joined_atB\v\n" +
"\t_leave_atB\n" +
"\n" +
"\b_accountB\b\n" +
"\x06_realm\"B\n" +
"\x0fGetRealmRequest\x12\x10\n" +
"\x02id\x18\x01 \x01(\tH\x00R\x02id\x12\x14\n" +
"\x04slug\x18\x02 \x01(\tH\x00R\x04slugB\a\n" +
"\x05query\"5\n" +
"\x14GetUserRealmsRequest\x12\x1d\n" +
"\n" +
"account_id\x18\x01 \x01(\tR\taccountId\"(\n" +
"\x14GetRealmBatchRequest\x12\x10\n" +
"\x03ids\x18\x01 \x03(\tR\x03ids\"=\n" +
"\x15GetRealmBatchResponse\x12$\n" +
"\x06realms\x18\x01 \x03(\v2\f.proto.RealmR\x06realms\"4\n" +
"\x15GetUserRealmsResponse\x12\x1b\n" +
"\trealm_ids\x18\x01 \x03(\tR\brealmIds\"E\n" +
"\x16GetPublicRealmsRequest\x12\x1e\n" +
"\border_by\x18\x01 \x01(\tH\x00R\aorderBy\x88\x01\x01B\v\n" +
"\t_order_by\"?\n" +
"\x17GetPublicRealmsResponse\x12$\n" +
"\x06realms\x18\x01 \x03(\v2\f.proto.RealmR\x06realms\"A\n" +
"\x13SearchRealmsRequest\x12\x14\n" +
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
"\x05limit\x18\x02 \x01(\x05R\x05limit\"E\n" +
"\x17SendInviteNotifyRequest\x12*\n" +
"\x06member\x18\x01 \x01(\v2\x12.proto.RealmMemberR\x06member\"z\n" +
"\x17IsMemberWithRoleRequest\x12\x19\n" +
"\brealm_id\x18\x01 \x01(\tR\arealmId\x12\x1d\n" +
"\n" +
"account_id\x18\x02 \x01(\tR\taccountId\x12%\n" +
"\x0erequired_roles\x18\x03 \x03(\x05R\rrequiredRoles\"F\n" +
"\x18LoadMemberAccountRequest\x12*\n" +
"\x06member\x18\x01 \x01(\v2\x12.proto.RealmMemberR\x06member\"I\n" +
"\x19LoadMemberAccountsRequest\x12,\n" +
"\amembers\x18\x01 \x03(\v2\x12.proto.RealmMemberR\amembers\"J\n" +
"\x1aLoadMemberAccountsResponse\x12,\n" +
"\amembers\x18\x01 \x03(\v2\x12.proto.RealmMemberR\amembers2\xc9\x05\n" +
"\fRealmService\x122\n" +
"\bGetRealm\x12\x16.proto.GetRealmRequest\x1a\f.proto.Realm\"\x00\x12L\n" +
"\rGetRealmBatch\x12\x1b.proto.GetRealmBatchRequest\x1a\x1c.proto.GetRealmBatchResponse\"\x00\x12L\n" +
"\rGetUserRealms\x12\x1b.proto.GetUserRealmsRequest\x1a\x1c.proto.GetUserRealmsResponse\"\x00\x12R\n" +
"\x0fGetPublicRealms\x12\x1d.proto.GetPublicRealmsRequest\x1a\x1e.proto.GetPublicRealmsResponse\"\x00\x12L\n" +
"\fSearchRealms\x12\x1a.proto.SearchRealmsRequest\x1a\x1e.proto.GetPublicRealmsResponse\"\x00\x12L\n" +
"\x10SendInviteNotify\x12\x1e.proto.SendInviteNotifyRequest\x1a\x16.google.protobuf.Empty\"\x00\x12P\n" +
"\x10IsMemberWithRole\x12\x1e.proto.IsMemberWithRoleRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12J\n" +
"\x11LoadMemberAccount\x12\x1f.proto.LoadMemberAccountRequest\x1a\x12.proto.RealmMember\"\x00\x12[\n" +
"\x12LoadMemberAccounts\x12 .proto.LoadMemberAccountsRequest\x1a!.proto.LoadMemberAccountsResponse\"\x00BUZ7git.solsynth.dev/goatworks/turbine/pkg/shared/proto/gen\xaa\x02\x19DysonNetwork.Shared.Protob\x06proto3"
var (
file_realm_proto_rawDescOnce sync.Once
file_realm_proto_rawDescData []byte
)
func file_realm_proto_rawDescGZIP() []byte {
file_realm_proto_rawDescOnce.Do(func() {
file_realm_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_realm_proto_rawDesc), len(file_realm_proto_rawDesc)))
})
return file_realm_proto_rawDescData
}
var file_realm_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
var file_realm_proto_goTypes = []any{
(*Realm)(nil), // 0: proto.Realm
(*RealmMember)(nil), // 1: proto.RealmMember
(*GetRealmRequest)(nil), // 2: proto.GetRealmRequest
(*GetUserRealmsRequest)(nil), // 3: proto.GetUserRealmsRequest
(*GetRealmBatchRequest)(nil), // 4: proto.GetRealmBatchRequest
(*GetRealmBatchResponse)(nil), // 5: proto.GetRealmBatchResponse
(*GetUserRealmsResponse)(nil), // 6: proto.GetUserRealmsResponse
(*GetPublicRealmsRequest)(nil), // 7: proto.GetPublicRealmsRequest
(*GetPublicRealmsResponse)(nil), // 8: proto.GetPublicRealmsResponse
(*SearchRealmsRequest)(nil), // 9: proto.SearchRealmsRequest
(*SendInviteNotifyRequest)(nil), // 10: proto.SendInviteNotifyRequest
(*IsMemberWithRoleRequest)(nil), // 11: proto.IsMemberWithRoleRequest
(*LoadMemberAccountRequest)(nil), // 12: proto.LoadMemberAccountRequest
(*LoadMemberAccountsRequest)(nil), // 13: proto.LoadMemberAccountsRequest
(*LoadMemberAccountsResponse)(nil), // 14: proto.LoadMemberAccountsResponse
(*CloudFile)(nil), // 15: proto.CloudFile
(*VerificationMark)(nil), // 16: proto.VerificationMark
(*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
(*Account)(nil), // 18: proto.Account
(*emptypb.Empty)(nil), // 19: google.protobuf.Empty
(*wrapperspb.BoolValue)(nil), // 20: google.protobuf.BoolValue
}
var file_realm_proto_depIdxs = []int32{
15, // 0: proto.Realm.picture:type_name -> proto.CloudFile
15, // 1: proto.Realm.background:type_name -> proto.CloudFile
16, // 2: proto.Realm.verification:type_name -> proto.VerificationMark
17, // 3: proto.RealmMember.joined_at:type_name -> google.protobuf.Timestamp
17, // 4: proto.RealmMember.leave_at:type_name -> google.protobuf.Timestamp
18, // 5: proto.RealmMember.account:type_name -> proto.Account
0, // 6: proto.RealmMember.realm:type_name -> proto.Realm
0, // 7: proto.GetRealmBatchResponse.realms:type_name -> proto.Realm
0, // 8: proto.GetPublicRealmsResponse.realms:type_name -> proto.Realm
1, // 9: proto.SendInviteNotifyRequest.member:type_name -> proto.RealmMember
1, // 10: proto.LoadMemberAccountRequest.member:type_name -> proto.RealmMember
1, // 11: proto.LoadMemberAccountsRequest.members:type_name -> proto.RealmMember
1, // 12: proto.LoadMemberAccountsResponse.members:type_name -> proto.RealmMember
2, // 13: proto.RealmService.GetRealm:input_type -> proto.GetRealmRequest
4, // 14: proto.RealmService.GetRealmBatch:input_type -> proto.GetRealmBatchRequest
3, // 15: proto.RealmService.GetUserRealms:input_type -> proto.GetUserRealmsRequest
7, // 16: proto.RealmService.GetPublicRealms:input_type -> proto.GetPublicRealmsRequest
9, // 17: proto.RealmService.SearchRealms:input_type -> proto.SearchRealmsRequest
10, // 18: proto.RealmService.SendInviteNotify:input_type -> proto.SendInviteNotifyRequest
11, // 19: proto.RealmService.IsMemberWithRole:input_type -> proto.IsMemberWithRoleRequest
12, // 20: proto.RealmService.LoadMemberAccount:input_type -> proto.LoadMemberAccountRequest
13, // 21: proto.RealmService.LoadMemberAccounts:input_type -> proto.LoadMemberAccountsRequest
0, // 22: proto.RealmService.GetRealm:output_type -> proto.Realm
5, // 23: proto.RealmService.GetRealmBatch:output_type -> proto.GetRealmBatchResponse
6, // 24: proto.RealmService.GetUserRealms:output_type -> proto.GetUserRealmsResponse
8, // 25: proto.RealmService.GetPublicRealms:output_type -> proto.GetPublicRealmsResponse
8, // 26: proto.RealmService.SearchRealms:output_type -> proto.GetPublicRealmsResponse
19, // 27: proto.RealmService.SendInviteNotify:output_type -> google.protobuf.Empty
20, // 28: proto.RealmService.IsMemberWithRole:output_type -> google.protobuf.BoolValue
1, // 29: proto.RealmService.LoadMemberAccount:output_type -> proto.RealmMember
14, // 30: proto.RealmService.LoadMemberAccounts:output_type -> proto.LoadMemberAccountsResponse
22, // [22:31] is the sub-list for method output_type
13, // [13:22] is the sub-list for method input_type
13, // [13:13] is the sub-list for extension type_name
13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
}
func init() { file_realm_proto_init() }
func file_realm_proto_init() {
if File_realm_proto != nil {
return
}
file_account_proto_init()
file_file_proto_init()
file_realm_proto_msgTypes[0].OneofWrappers = []any{}
file_realm_proto_msgTypes[1].OneofWrappers = []any{}
file_realm_proto_msgTypes[2].OneofWrappers = []any{
(*GetRealmRequest_Id)(nil),
(*GetRealmRequest_Slug)(nil),
}
file_realm_proto_msgTypes[7].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_realm_proto_rawDesc), len(file_realm_proto_rawDesc)),
NumEnums: 0,
NumMessages: 15,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_realm_proto_goTypes,
DependencyIndexes: file_realm_proto_depIdxs,
MessageInfos: file_realm_proto_msgTypes,
}.Build()
File_realm_proto = out.File
file_realm_proto_goTypes = nil
file_realm_proto_depIdxs = nil
}