// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc v6.33.1 // source: leveling.proto package gen 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) ) // SocialCreditRecord represents a record of social credit changes for an account type SocialCreditRecord struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID string ReasonType string `protobuf:"bytes,2,opt,name=reason_type,json=reasonType,proto3" json:"reason_type,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` Delta float64 `protobuf:"fixed64,4,opt,name=delta,proto3" json:"delta,omitempty"` AccountId string `protobuf:"bytes,5,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // UUID string CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SocialCreditRecord) Reset() { *x = SocialCreditRecord{} mi := &file_leveling_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SocialCreditRecord) String() string { return protoimpl.X.MessageStringOf(x) } func (*SocialCreditRecord) ProtoMessage() {} func (x *SocialCreditRecord) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 SocialCreditRecord.ProtoReflect.Descriptor instead. func (*SocialCreditRecord) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{0} } func (x *SocialCreditRecord) GetId() string { if x != nil { return x.Id } return "" } func (x *SocialCreditRecord) GetReasonType() string { if x != nil { return x.ReasonType } return "" } func (x *SocialCreditRecord) GetReason() string { if x != nil { return x.Reason } return "" } func (x *SocialCreditRecord) GetDelta() float64 { if x != nil { return x.Delta } return 0 } func (x *SocialCreditRecord) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *SocialCreditRecord) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } func (x *SocialCreditRecord) GetUpdatedAt() *timestamppb.Timestamp { if x != nil { return x.UpdatedAt } return nil } // ExperienceRecord represents a record of experience points gained by an account type ExperienceRecord struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID string ReasonType string `protobuf:"bytes,2,opt,name=reason_type,json=reasonType,proto3" json:"reason_type,omitempty"` Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` Delta int64 `protobuf:"varint,4,opt,name=delta,proto3" json:"delta,omitempty"` BonusMultiplier float64 `protobuf:"fixed64,5,opt,name=bonus_multiplier,json=bonusMultiplier,proto3" json:"bonus_multiplier,omitempty"` AccountId string `protobuf:"bytes,6,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // UUID string CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ExperienceRecord) Reset() { *x = ExperienceRecord{} mi := &file_leveling_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ExperienceRecord) String() string { return protoimpl.X.MessageStringOf(x) } func (*ExperienceRecord) ProtoMessage() {} func (x *ExperienceRecord) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 ExperienceRecord.ProtoReflect.Descriptor instead. func (*ExperienceRecord) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{1} } func (x *ExperienceRecord) GetId() string { if x != nil { return x.Id } return "" } func (x *ExperienceRecord) GetReasonType() string { if x != nil { return x.ReasonType } return "" } func (x *ExperienceRecord) GetReason() string { if x != nil { return x.Reason } return "" } func (x *ExperienceRecord) GetDelta() int64 { if x != nil { return x.Delta } return 0 } func (x *ExperienceRecord) GetBonusMultiplier() float64 { if x != nil { return x.BonusMultiplier } return 0 } func (x *ExperienceRecord) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *ExperienceRecord) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } func (x *ExperienceRecord) GetUpdatedAt() *timestamppb.Timestamp { if x != nil { return x.UpdatedAt } return nil } // Social Credit Requests/Responses type AddSocialCreditRecordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ReasonType string `protobuf:"bytes,1,opt,name=reason_type,json=reasonType,proto3" json:"reason_type,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Delta float64 `protobuf:"fixed64,3,opt,name=delta,proto3" json:"delta,omitempty"` AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // UUID string ExpiredAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=expired_at,json=expiredAt,proto3" json:"expired_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AddSocialCreditRecordRequest) Reset() { *x = AddSocialCreditRecordRequest{} mi := &file_leveling_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AddSocialCreditRecordRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddSocialCreditRecordRequest) ProtoMessage() {} func (x *AddSocialCreditRecordRequest) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 AddSocialCreditRecordRequest.ProtoReflect.Descriptor instead. func (*AddSocialCreditRecordRequest) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{2} } func (x *AddSocialCreditRecordRequest) GetReasonType() string { if x != nil { return x.ReasonType } return "" } func (x *AddSocialCreditRecordRequest) GetReason() string { if x != nil { return x.Reason } return "" } func (x *AddSocialCreditRecordRequest) GetDelta() float64 { if x != nil { return x.Delta } return 0 } func (x *AddSocialCreditRecordRequest) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *AddSocialCreditRecordRequest) GetExpiredAt() *timestamppb.Timestamp { if x != nil { return x.ExpiredAt } return nil } type GetSocialCreditRequest struct { state protoimpl.MessageState `protogen:"open.v1"` AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // UUID string unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetSocialCreditRequest) Reset() { *x = GetSocialCreditRequest{} mi := &file_leveling_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetSocialCreditRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetSocialCreditRequest) ProtoMessage() {} func (x *GetSocialCreditRequest) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 GetSocialCreditRequest.ProtoReflect.Descriptor instead. func (*GetSocialCreditRequest) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{3} } func (x *GetSocialCreditRequest) GetAccountId() string { if x != nil { return x.AccountId } return "" } type SocialCreditResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Amount float64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SocialCreditResponse) Reset() { *x = SocialCreditResponse{} mi := &file_leveling_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SocialCreditResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SocialCreditResponse) ProtoMessage() {} func (x *SocialCreditResponse) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 SocialCreditResponse.ProtoReflect.Descriptor instead. func (*SocialCreditResponse) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{4} } func (x *SocialCreditResponse) GetAmount() float64 { if x != nil { return x.Amount } return 0 } // Experience Requests/Responses type AddExperienceRecordRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ReasonType string `protobuf:"bytes,1,opt,name=reason_type,json=reasonType,proto3" json:"reason_type,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Delta int64 `protobuf:"varint,3,opt,name=delta,proto3" json:"delta,omitempty"` AccountId string `protobuf:"bytes,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // UUID string unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AddExperienceRecordRequest) Reset() { *x = AddExperienceRecordRequest{} mi := &file_leveling_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AddExperienceRecordRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AddExperienceRecordRequest) ProtoMessage() {} func (x *AddExperienceRecordRequest) ProtoReflect() protoreflect.Message { mi := &file_leveling_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 AddExperienceRecordRequest.ProtoReflect.Descriptor instead. func (*AddExperienceRecordRequest) Descriptor() ([]byte, []int) { return file_leveling_proto_rawDescGZIP(), []int{5} } func (x *AddExperienceRecordRequest) GetReasonType() string { if x != nil { return x.ReasonType } return "" } func (x *AddExperienceRecordRequest) GetReason() string { if x != nil { return x.Reason } return "" } func (x *AddExperienceRecordRequest) GetDelta() int64 { if x != nil { return x.Delta } return 0 } func (x *AddExperienceRecordRequest) GetAccountId() string { if x != nil { return x.AccountId } return "" } var File_leveling_proto protoreflect.FileDescriptor const file_leveling_proto_rawDesc = "" + "\n" + "\x0eleveling.proto\x12\x05proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x88\x02\n" + "\x12SocialCreditRecord\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" + "\vreason_type\x18\x02 \x01(\tR\n" + "reasonType\x12\x16\n" + "\x06reason\x18\x03 \x01(\tR\x06reason\x12\x14\n" + "\x05delta\x18\x04 \x01(\x01R\x05delta\x12\x1d\n" + "\n" + "account_id\x18\x05 \x01(\tR\taccountId\x129\n" + "\n" + "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + "updated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xb1\x02\n" + "\x10ExperienceRecord\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1f\n" + "\vreason_type\x18\x02 \x01(\tR\n" + "reasonType\x12\x16\n" + "\x06reason\x18\x03 \x01(\tR\x06reason\x12\x14\n" + "\x05delta\x18\x04 \x01(\x03R\x05delta\x12)\n" + "\x10bonus_multiplier\x18\x05 \x01(\x01R\x0fbonusMultiplier\x12\x1d\n" + "\n" + "account_id\x18\x06 \x01(\tR\taccountId\x129\n" + "\n" + "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + "\n" + "updated_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xc7\x01\n" + "\x1cAddSocialCreditRecordRequest\x12\x1f\n" + "\vreason_type\x18\x01 \x01(\tR\n" + "reasonType\x12\x16\n" + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x14\n" + "\x05delta\x18\x03 \x01(\x01R\x05delta\x12\x1d\n" + "\n" + "account_id\x18\x04 \x01(\tR\taccountId\x129\n" + "\n" + "expired_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\texpiredAt\"7\n" + "\x16GetSocialCreditRequest\x12\x1d\n" + "\n" + "account_id\x18\x01 \x01(\tR\taccountId\".\n" + "\x14SocialCreditResponse\x12\x16\n" + "\x06amount\x18\x01 \x01(\x01R\x06amount\"\x8a\x01\n" + "\x1aAddExperienceRecordRequest\x12\x1f\n" + "\vreason_type\x18\x01 \x01(\tR\n" + "reasonType\x12\x16\n" + "\x06reason\x18\x02 \x01(\tR\x06reason\x12\x14\n" + "\x05delta\x18\x03 \x01(\x03R\x05delta\x12\x1d\n" + "\n" + "account_id\x18\x04 \x01(\tR\taccountId2\xb1\x01\n" + "\x13SocialCreditService\x12K\n" + "\tAddRecord\x12#.proto.AddSocialCreditRecordRequest\x1a\x19.proto.SocialCreditRecord\x12M\n" + "\x0fGetSocialCredit\x12\x1d.proto.GetSocialCreditRequest\x1a\x1b.proto.SocialCreditResponse2\\\n" + "\x11ExperienceService\x12G\n" + "\tAddRecord\x12!.proto.AddExperienceRecordRequest\x1a\x17.proto.ExperienceRecordBUZ7git.solsynth.dev/goatworks/turbine/pkg/shared/proto/gen\xaa\x02\x19DysonNetwork.Shared.Protob\x06proto3" var ( file_leveling_proto_rawDescOnce sync.Once file_leveling_proto_rawDescData []byte ) func file_leveling_proto_rawDescGZIP() []byte { file_leveling_proto_rawDescOnce.Do(func() { file_leveling_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_leveling_proto_rawDesc), len(file_leveling_proto_rawDesc))) }) return file_leveling_proto_rawDescData } var file_leveling_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_leveling_proto_goTypes = []any{ (*SocialCreditRecord)(nil), // 0: proto.SocialCreditRecord (*ExperienceRecord)(nil), // 1: proto.ExperienceRecord (*AddSocialCreditRecordRequest)(nil), // 2: proto.AddSocialCreditRecordRequest (*GetSocialCreditRequest)(nil), // 3: proto.GetSocialCreditRequest (*SocialCreditResponse)(nil), // 4: proto.SocialCreditResponse (*AddExperienceRecordRequest)(nil), // 5: proto.AddExperienceRecordRequest (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp } var file_leveling_proto_depIdxs = []int32{ 6, // 0: proto.SocialCreditRecord.created_at:type_name -> google.protobuf.Timestamp 6, // 1: proto.SocialCreditRecord.updated_at:type_name -> google.protobuf.Timestamp 6, // 2: proto.ExperienceRecord.created_at:type_name -> google.protobuf.Timestamp 6, // 3: proto.ExperienceRecord.updated_at:type_name -> google.protobuf.Timestamp 6, // 4: proto.AddSocialCreditRecordRequest.expired_at:type_name -> google.protobuf.Timestamp 2, // 5: proto.SocialCreditService.AddRecord:input_type -> proto.AddSocialCreditRecordRequest 3, // 6: proto.SocialCreditService.GetSocialCredit:input_type -> proto.GetSocialCreditRequest 5, // 7: proto.ExperienceService.AddRecord:input_type -> proto.AddExperienceRecordRequest 0, // 8: proto.SocialCreditService.AddRecord:output_type -> proto.SocialCreditRecord 4, // 9: proto.SocialCreditService.GetSocialCredit:output_type -> proto.SocialCreditResponse 1, // 10: proto.ExperienceService.AddRecord:output_type -> proto.ExperienceRecord 8, // [8:11] is the sub-list for method output_type 5, // [5:8] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] is the sub-list for field type_name } func init() { file_leveling_proto_init() } func file_leveling_proto_init() { if File_leveling_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_leveling_proto_rawDesc), len(file_leveling_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 2, }, GoTypes: file_leveling_proto_goTypes, DependencyIndexes: file_leveling_proto_depIdxs, MessageInfos: file_leveling_proto_msgTypes, }.Build() File_leveling_proto = out.File file_leveling_proto_goTypes = nil file_leveling_proto_depIdxs = nil }