789 lines
26 KiB
Go
789 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v7.36.0
|
|
// source: bd2/state/control/v2/control.proto
|
|
|
|
package controlv2
|
|
|
|
import (
|
|
v11 "bd2server/gen/state/control/v1"
|
|
v1 "bd2server/gen/state/v1"
|
|
v2 "bd2server/gen/state/v2"
|
|
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 MigrateV1ToV2Request struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Source *v1.Snapshot `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Request) Reset() {
|
|
*x = MigrateV1ToV2Request{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Request) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MigrateV1ToV2Request) ProtoMessage() {}
|
|
|
|
func (x *MigrateV1ToV2Request) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 MigrateV1ToV2Request.ProtoReflect.Descriptor instead.
|
|
func (*MigrateV1ToV2Request) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Request) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Request) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Request) GetSource() *v1.Snapshot {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MigrateV1ToV2Response struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Violations []*v11.Violation `protobuf:"bytes,3,rep,name=violations,proto3" json:"violations,omitempty"`
|
|
Migrated bool `protobuf:"varint,10,opt,name=migrated,proto3" json:"migrated,omitempty"`
|
|
Target *v2.Snapshot `protobuf:"bytes,11,opt,name=target,proto3" json:"target,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) Reset() {
|
|
*x = MigrateV1ToV2Response{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MigrateV1ToV2Response) ProtoMessage() {}
|
|
|
|
func (x *MigrateV1ToV2Response) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 MigrateV1ToV2Response.ProtoReflect.Descriptor instead.
|
|
func (*MigrateV1ToV2Response) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) GetViolations() []*v11.Violation {
|
|
if x != nil {
|
|
return x.Violations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) GetMigrated() bool {
|
|
if x != nil {
|
|
return x.Migrated
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *MigrateV1ToV2Response) GetTarget() *v2.Snapshot {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GachaGroupFact struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
GachaId uint64 `protobuf:"varint,1,opt,name=gacha_id,json=gachaId,proto3" json:"gacha_id,omitempty"`
|
|
GroupId uint64 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
FixedId uint64 `protobuf:"varint,3,opt,name=fixed_id,json=fixedId,proto3" json:"fixed_id,omitempty"`
|
|
PointCount uint64 `protobuf:"varint,4,opt,name=point_count,json=pointCount,proto3" json:"point_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GachaGroupFact) Reset() {
|
|
*x = GachaGroupFact{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GachaGroupFact) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GachaGroupFact) ProtoMessage() {}
|
|
|
|
func (x *GachaGroupFact) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 GachaGroupFact.ProtoReflect.Descriptor instead.
|
|
func (*GachaGroupFact) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GachaGroupFact) GetGachaId() uint64 {
|
|
if x != nil {
|
|
return x.GachaId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GachaGroupFact) GetGroupId() uint64 {
|
|
if x != nil {
|
|
return x.GroupId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GachaGroupFact) GetFixedId() uint64 {
|
|
if x != nil {
|
|
return x.FixedId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GachaGroupFact) GetPointCount() uint64 {
|
|
if x != nil {
|
|
return x.PointCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CostumeFact struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CostumeId uint64 `protobuf:"varint,1,opt,name=costume_id,json=costumeId,proto3" json:"costume_id,omitempty"`
|
|
Grade uint64 `protobuf:"varint,2,opt,name=grade,proto3" json:"grade,omitempty"`
|
|
MaxLevel uint64 `protobuf:"varint,3,opt,name=max_level,json=maxLevel,proto3" json:"max_level,omitempty"`
|
|
OverflowItemType uint64 `protobuf:"varint,4,opt,name=overflow_item_type,json=overflowItemType,proto3" json:"overflow_item_type,omitempty"`
|
|
OverflowItemId uint64 `protobuf:"varint,5,opt,name=overflow_item_id,json=overflowItemId,proto3" json:"overflow_item_id,omitempty"`
|
|
OverflowItemCount uint64 `protobuf:"varint,6,opt,name=overflow_item_count,json=overflowItemCount,proto3" json:"overflow_item_count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CostumeFact) Reset() {
|
|
*x = CostumeFact{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CostumeFact) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CostumeFact) ProtoMessage() {}
|
|
|
|
func (x *CostumeFact) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 CostumeFact.ProtoReflect.Descriptor instead.
|
|
func (*CostumeFact) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CostumeFact) GetCostumeId() uint64 {
|
|
if x != nil {
|
|
return x.CostumeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CostumeFact) GetGrade() uint64 {
|
|
if x != nil {
|
|
return x.Grade
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CostumeFact) GetMaxLevel() uint64 {
|
|
if x != nil {
|
|
return x.MaxLevel
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CostumeFact) GetOverflowItemType() uint64 {
|
|
if x != nil {
|
|
return x.OverflowItemType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CostumeFact) GetOverflowItemId() uint64 {
|
|
if x != nil {
|
|
return x.OverflowItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CostumeFact) GetOverflowItemCount() uint64 {
|
|
if x != nil {
|
|
return x.OverflowItemCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BaseCostumeFact struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
InventoryIndex uint64 `protobuf:"varint,1,opt,name=inventory_index,json=inventoryIndex,proto3" json:"inventory_index,omitempty"`
|
|
CostumeId uint64 `protobuf:"varint,2,opt,name=costume_id,json=costumeId,proto3" json:"costume_id,omitempty"`
|
|
Level uint64 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BaseCostumeFact) Reset() {
|
|
*x = BaseCostumeFact{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BaseCostumeFact) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BaseCostumeFact) ProtoMessage() {}
|
|
|
|
func (x *BaseCostumeFact) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 BaseCostumeFact.ProtoReflect.Descriptor instead.
|
|
func (*BaseCostumeFact) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *BaseCostumeFact) GetInventoryIndex() uint64 {
|
|
if x != nil {
|
|
return x.InventoryIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BaseCostumeFact) GetCostumeId() uint64 {
|
|
if x != nil {
|
|
return x.CostumeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BaseCostumeFact) GetLevel() uint64 {
|
|
if x != nil {
|
|
return x.Level
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StepUpFact struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
|
|
OrderedGachaIds []uint64 `protobuf:"varint,2,rep,packed,name=ordered_gacha_ids,json=orderedGachaIds,proto3" json:"ordered_gacha_ids,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StepUpFact) Reset() {
|
|
*x = StepUpFact{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StepUpFact) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StepUpFact) ProtoMessage() {}
|
|
|
|
func (x *StepUpFact) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 StepUpFact.ProtoReflect.Descriptor instead.
|
|
func (*StepUpFact) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *StepUpFact) GetGroupId() uint64 {
|
|
if x != nil {
|
|
return x.GroupId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StepUpFact) GetOrderedGachaIds() []uint64 {
|
|
if x != nil {
|
|
return x.OrderedGachaIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ValidationContext struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
GameDataVersion string `protobuf:"bytes,1,opt,name=game_data_version,json=gameDataVersion,proto3" json:"game_data_version,omitempty"`
|
|
GachaGroups []*GachaGroupFact `protobuf:"bytes,2,rep,name=gacha_groups,json=gachaGroups,proto3" json:"gacha_groups,omitempty"`
|
|
Costumes []*CostumeFact `protobuf:"bytes,3,rep,name=costumes,proto3" json:"costumes,omitempty"`
|
|
BaseCostumes []*BaseCostumeFact `protobuf:"bytes,4,rep,name=base_costumes,json=baseCostumes,proto3" json:"base_costumes,omitempty"`
|
|
StepUps []*StepUpFact `protobuf:"bytes,5,rep,name=step_ups,json=stepUps,proto3" json:"step_ups,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ValidationContext) Reset() {
|
|
*x = ValidationContext{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ValidationContext) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ValidationContext) ProtoMessage() {}
|
|
|
|
func (x *ValidationContext) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 ValidationContext.ProtoReflect.Descriptor instead.
|
|
func (*ValidationContext) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ValidationContext) GetGameDataVersion() string {
|
|
if x != nil {
|
|
return x.GameDataVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ValidationContext) GetGachaGroups() []*GachaGroupFact {
|
|
if x != nil {
|
|
return x.GachaGroups
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ValidationContext) GetCostumes() []*CostumeFact {
|
|
if x != nil {
|
|
return x.Costumes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ValidationContext) GetBaseCostumes() []*BaseCostumeFact {
|
|
if x != nil {
|
|
return x.BaseCostumes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ValidationContext) GetStepUps() []*StepUpFact {
|
|
if x != nil {
|
|
return x.StepUps
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RepairRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Source *v1.Snapshot `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"`
|
|
Context *ValidationContext `protobuf:"bytes,11,opt,name=context,proto3" json:"context,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RepairRequest) Reset() {
|
|
*x = RepairRequest{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RepairRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RepairRequest) ProtoMessage() {}
|
|
|
|
func (x *RepairRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 RepairRequest.ProtoReflect.Descriptor instead.
|
|
func (*RepairRequest) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *RepairRequest) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RepairRequest) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepairRequest) GetSource() *v1.Snapshot {
|
|
if x != nil {
|
|
return x.Source
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepairRequest) GetContext() *ValidationContext {
|
|
if x != nil {
|
|
return x.Context
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RepairResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BridgeApiVersion uint32 `protobuf:"varint,1,opt,name=bridge_api_version,json=bridgeApiVersion,proto3" json:"bridge_api_version,omitempty"`
|
|
SourceSha256 []byte `protobuf:"bytes,2,opt,name=source_sha256,json=sourceSha256,proto3" json:"source_sha256,omitempty"`
|
|
Violations []*v11.Violation `protobuf:"bytes,3,rep,name=violations,proto3" json:"violations,omitempty"`
|
|
Repaired bool `protobuf:"varint,10,opt,name=repaired,proto3" json:"repaired,omitempty"`
|
|
Changed bool `protobuf:"varint,11,opt,name=changed,proto3" json:"changed,omitempty"`
|
|
Target *v2.Snapshot `protobuf:"bytes,12,opt,name=target,proto3" json:"target,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RepairResponse) Reset() {
|
|
*x = RepairResponse{}
|
|
mi := &file_bd2_state_control_v2_control_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RepairResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RepairResponse) ProtoMessage() {}
|
|
|
|
func (x *RepairResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_bd2_state_control_v2_control_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 RepairResponse.ProtoReflect.Descriptor instead.
|
|
func (*RepairResponse) Descriptor() ([]byte, []int) {
|
|
return file_bd2_state_control_v2_control_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *RepairResponse) GetBridgeApiVersion() uint32 {
|
|
if x != nil {
|
|
return x.BridgeApiVersion
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RepairResponse) GetSourceSha256() []byte {
|
|
if x != nil {
|
|
return x.SourceSha256
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepairResponse) GetViolations() []*v11.Violation {
|
|
if x != nil {
|
|
return x.Violations
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *RepairResponse) GetRepaired() bool {
|
|
if x != nil {
|
|
return x.Repaired
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RepairResponse) GetChanged() bool {
|
|
if x != nil {
|
|
return x.Changed
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *RepairResponse) GetTarget() *v2.Snapshot {
|
|
if x != nil {
|
|
return x.Target
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_bd2_state_control_v2_control_proto protoreflect.FileDescriptor
|
|
|
|
const file_bd2_state_control_v2_control_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"bd2/state/control/v2/control.proto\x12\x14bd2.state.control.v2\x1a\"bd2/state/control/v1/control.proto\x1a\x18bd2/state/v1/state.proto\x1a\x18bd2/state/v2/state.proto\"\x99\x01\n" +
|
|
"\x14MigrateV1ToV2Request\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x12.\n" +
|
|
"\x06source\x18\n" +
|
|
" \x01(\v2\x16.bd2.state.v1.SnapshotR\x06source\"\xf7\x01\n" +
|
|
"\x15MigrateV1ToV2Response\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x12?\n" +
|
|
"\n" +
|
|
"violations\x18\x03 \x03(\v2\x1f.bd2.state.control.v1.ViolationR\n" +
|
|
"violations\x12\x1a\n" +
|
|
"\bmigrated\x18\n" +
|
|
" \x01(\bR\bmigrated\x12.\n" +
|
|
"\x06target\x18\v \x01(\v2\x16.bd2.state.v2.SnapshotR\x06target\"\x82\x01\n" +
|
|
"\x0eGachaGroupFact\x12\x19\n" +
|
|
"\bgacha_id\x18\x01 \x01(\x04R\agachaId\x12\x19\n" +
|
|
"\bgroup_id\x18\x02 \x01(\x04R\agroupId\x12\x19\n" +
|
|
"\bfixed_id\x18\x03 \x01(\x04R\afixedId\x12\x1f\n" +
|
|
"\vpoint_count\x18\x04 \x01(\x04R\n" +
|
|
"pointCount\"\xe7\x01\n" +
|
|
"\vCostumeFact\x12\x1d\n" +
|
|
"\n" +
|
|
"costume_id\x18\x01 \x01(\x04R\tcostumeId\x12\x14\n" +
|
|
"\x05grade\x18\x02 \x01(\x04R\x05grade\x12\x1b\n" +
|
|
"\tmax_level\x18\x03 \x01(\x04R\bmaxLevel\x12,\n" +
|
|
"\x12overflow_item_type\x18\x04 \x01(\x04R\x10overflowItemType\x12(\n" +
|
|
"\x10overflow_item_id\x18\x05 \x01(\x04R\x0eoverflowItemId\x12.\n" +
|
|
"\x13overflow_item_count\x18\x06 \x01(\x04R\x11overflowItemCount\"o\n" +
|
|
"\x0fBaseCostumeFact\x12'\n" +
|
|
"\x0finventory_index\x18\x01 \x01(\x04R\x0einventoryIndex\x12\x1d\n" +
|
|
"\n" +
|
|
"costume_id\x18\x02 \x01(\x04R\tcostumeId\x12\x14\n" +
|
|
"\x05level\x18\x03 \x01(\x04R\x05level\"S\n" +
|
|
"\n" +
|
|
"StepUpFact\x12\x19\n" +
|
|
"\bgroup_id\x18\x01 \x01(\x04R\agroupId\x12*\n" +
|
|
"\x11ordered_gacha_ids\x18\x02 \x03(\x04R\x0forderedGachaIds\"\xd0\x02\n" +
|
|
"\x11ValidationContext\x12*\n" +
|
|
"\x11game_data_version\x18\x01 \x01(\tR\x0fgameDataVersion\x12G\n" +
|
|
"\fgacha_groups\x18\x02 \x03(\v2$.bd2.state.control.v2.GachaGroupFactR\vgachaGroups\x12=\n" +
|
|
"\bcostumes\x18\x03 \x03(\v2!.bd2.state.control.v2.CostumeFactR\bcostumes\x12J\n" +
|
|
"\rbase_costumes\x18\x04 \x03(\v2%.bd2.state.control.v2.BaseCostumeFactR\fbaseCostumes\x12;\n" +
|
|
"\bstep_ups\x18\x05 \x03(\v2 .bd2.state.control.v2.StepUpFactR\astepUps\"\xd5\x01\n" +
|
|
"\rRepairRequest\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x12.\n" +
|
|
"\x06source\x18\n" +
|
|
" \x01(\v2\x16.bd2.state.v1.SnapshotR\x06source\x12A\n" +
|
|
"\acontext\x18\v \x01(\v2'.bd2.state.control.v2.ValidationContextR\acontext\"\x8a\x02\n" +
|
|
"\x0eRepairResponse\x12,\n" +
|
|
"\x12bridge_api_version\x18\x01 \x01(\rR\x10bridgeApiVersion\x12#\n" +
|
|
"\rsource_sha256\x18\x02 \x01(\fR\fsourceSha256\x12?\n" +
|
|
"\n" +
|
|
"violations\x18\x03 \x03(\v2\x1f.bd2.state.control.v1.ViolationR\n" +
|
|
"violations\x12\x1a\n" +
|
|
"\brepaired\x18\n" +
|
|
" \x01(\bR\brepaired\x12\x18\n" +
|
|
"\achanged\x18\v \x01(\bR\achanged\x12.\n" +
|
|
"\x06target\x18\f \x01(\v2\x16.bd2.state.v2.SnapshotR\x06targetB*Z(bd2server/gen/state/control/v2;controlv2b\x06proto3"
|
|
|
|
var (
|
|
file_bd2_state_control_v2_control_proto_rawDescOnce sync.Once
|
|
file_bd2_state_control_v2_control_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_bd2_state_control_v2_control_proto_rawDescGZIP() []byte {
|
|
file_bd2_state_control_v2_control_proto_rawDescOnce.Do(func() {
|
|
file_bd2_state_control_v2_control_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_bd2_state_control_v2_control_proto_rawDesc), len(file_bd2_state_control_v2_control_proto_rawDesc)))
|
|
})
|
|
return file_bd2_state_control_v2_control_proto_rawDescData
|
|
}
|
|
|
|
var file_bd2_state_control_v2_control_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_bd2_state_control_v2_control_proto_goTypes = []any{
|
|
(*MigrateV1ToV2Request)(nil), // 0: bd2.state.control.v2.MigrateV1ToV2Request
|
|
(*MigrateV1ToV2Response)(nil), // 1: bd2.state.control.v2.MigrateV1ToV2Response
|
|
(*GachaGroupFact)(nil), // 2: bd2.state.control.v2.GachaGroupFact
|
|
(*CostumeFact)(nil), // 3: bd2.state.control.v2.CostumeFact
|
|
(*BaseCostumeFact)(nil), // 4: bd2.state.control.v2.BaseCostumeFact
|
|
(*StepUpFact)(nil), // 5: bd2.state.control.v2.StepUpFact
|
|
(*ValidationContext)(nil), // 6: bd2.state.control.v2.ValidationContext
|
|
(*RepairRequest)(nil), // 7: bd2.state.control.v2.RepairRequest
|
|
(*RepairResponse)(nil), // 8: bd2.state.control.v2.RepairResponse
|
|
(*v1.Snapshot)(nil), // 9: bd2.state.v1.Snapshot
|
|
(*v11.Violation)(nil), // 10: bd2.state.control.v1.Violation
|
|
(*v2.Snapshot)(nil), // 11: bd2.state.v2.Snapshot
|
|
}
|
|
var file_bd2_state_control_v2_control_proto_depIdxs = []int32{
|
|
9, // 0: bd2.state.control.v2.MigrateV1ToV2Request.source:type_name -> bd2.state.v1.Snapshot
|
|
10, // 1: bd2.state.control.v2.MigrateV1ToV2Response.violations:type_name -> bd2.state.control.v1.Violation
|
|
11, // 2: bd2.state.control.v2.MigrateV1ToV2Response.target:type_name -> bd2.state.v2.Snapshot
|
|
2, // 3: bd2.state.control.v2.ValidationContext.gacha_groups:type_name -> bd2.state.control.v2.GachaGroupFact
|
|
3, // 4: bd2.state.control.v2.ValidationContext.costumes:type_name -> bd2.state.control.v2.CostumeFact
|
|
4, // 5: bd2.state.control.v2.ValidationContext.base_costumes:type_name -> bd2.state.control.v2.BaseCostumeFact
|
|
5, // 6: bd2.state.control.v2.ValidationContext.step_ups:type_name -> bd2.state.control.v2.StepUpFact
|
|
9, // 7: bd2.state.control.v2.RepairRequest.source:type_name -> bd2.state.v1.Snapshot
|
|
6, // 8: bd2.state.control.v2.RepairRequest.context:type_name -> bd2.state.control.v2.ValidationContext
|
|
10, // 9: bd2.state.control.v2.RepairResponse.violations:type_name -> bd2.state.control.v1.Violation
|
|
11, // 10: bd2.state.control.v2.RepairResponse.target:type_name -> bd2.state.v2.Snapshot
|
|
11, // [11:11] is the sub-list for method output_type
|
|
11, // [11:11] is the sub-list for method input_type
|
|
11, // [11:11] is the sub-list for extension type_name
|
|
11, // [11:11] is the sub-list for extension extendee
|
|
0, // [0:11] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_bd2_state_control_v2_control_proto_init() }
|
|
func file_bd2_state_control_v2_control_proto_init() {
|
|
if File_bd2_state_control_v2_control_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_bd2_state_control_v2_control_proto_rawDesc), len(file_bd2_state_control_v2_control_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_bd2_state_control_v2_control_proto_goTypes,
|
|
DependencyIndexes: file_bd2_state_control_v2_control_proto_depIdxs,
|
|
MessageInfos: file_bd2_state_control_v2_control_proto_msgTypes,
|
|
}.Build()
|
|
File_bd2_state_control_v2_control_proto = out.File
|
|
file_bd2_state_control_v2_control_proto_goTypes = nil
|
|
file_bd2_state_control_v2_control_proto_depIdxs = nil
|
|
}
|