From 99fb209d72bf1472242bc962850db53311ec697a Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 12 Nov 2024 16:40:03 +0800 Subject: [PATCH] perf: update terminal config api --- cmd/impl/jms.go | 13 +- pkg/jms-sdk-go/model/terminal.go | 2 + protobuf-go/protobuf/common.pb.go | 612 +++++++++--- protobuf-go/protobuf/service.pb.go | 910 ++++++++++++++---- protobuf-go/protobuf/service_grpc.pb.go | 212 ++-- protobuf-java/org/jumpserver/wisp/Common.java | 305 ++++-- .../jumpserver/wisp/ServiceOuterClass.java | 179 ++-- protobuf-rs/message.rs | 2 + protos/common.proto | 1 + 9 files changed, 1633 insertions(+), 603 deletions(-) diff --git a/cmd/impl/jms.go b/cmd/impl/jms.go index aed4184..f4f03c8 100644 --- a/cmd/impl/jms.go +++ b/cmd/impl/jms.go @@ -381,12 +381,13 @@ func (j *JMServer) GetPublicSetting(ctx context.Context, empty *pb.Empty) (*pb.P setting := j.uploader.GetTerminalSetting() status.Ok = true pbSetting := pb.PublicSetting{ - XpackEnabled: data.XpackEnabled, - ValidLicense: data.ValidLicense, - GptBaseUrl: setting.GPTBaseURL, - GptApiKey: setting.GPTApiKey, - GptProxy: setting.GPTProxy, - GptModel: setting.GPTModel, + XpackEnabled: data.XpackEnabled, + ValidLicense: data.ValidLicense, + GptBaseUrl: setting.GPTBaseURL, + GptApiKey: setting.GPTApiKey, + GptProxy: setting.GPTProxy, + GptModel: setting.GPTModel, + LicenseContent: setting.LicenseContent, } return &pb.PublicSettingResponse{Status: &status, Data: &pbSetting}, nil } diff --git a/pkg/jms-sdk-go/model/terminal.go b/pkg/jms-sdk-go/model/terminal.go index eef85ac..6007284 100644 --- a/pkg/jms-sdk-go/model/terminal.go +++ b/pkg/jms-sdk-go/model/terminal.go @@ -15,6 +15,8 @@ type TerminalConfig struct { HeartbeatDuration int `json:"TERMINAL_HEARTBEAT_INTERVAL"` HostKey string `json:"TERMINAL_HOST_KEY"` EnableSessionShare bool `json:"SECURITY_SESSION_SHARE"` + LicenseContent string `json:"XPACK_LICENSE_CONTENT"` + LicenseIsValid bool `json:"XPACK_LICENSE_IS_VALID"` GPTBaseURL string `json:"GPT_BASE_URL"` GPTApiKey string `json:"GPT_API_KEY"` diff --git a/protobuf-go/protobuf/common.pb.go b/protobuf-go/protobuf/common.pb.go index 9cdde98..8d46608 100644 --- a/protobuf-go/protobuf/common.pb.go +++ b/protobuf-go/protobuf/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.0 +// protoc-gen-go v1.28.1 +// protoc v5.26.1 // source: common.proto package protobuf @@ -337,9 +337,11 @@ type User struct { func (x *User) Reset() { *x = User{} - mi := &file_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *User) String() string { @@ -350,7 +352,7 @@ func (*User) ProtoMessage() {} func (x *User) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -421,9 +423,11 @@ type Account struct { func (x *Account) Reset() { *x = Account{} - mi := &file_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Account) String() string { @@ -434,7 +438,7 @@ func (*Account) ProtoMessage() {} func (x *Account) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -495,9 +499,11 @@ type LabelValue struct { func (x *LabelValue) Reset() { *x = LabelValue{} - mi := &file_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *LabelValue) String() string { @@ -508,7 +514,7 @@ func (*LabelValue) ProtoMessage() {} func (x *LabelValue) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -553,9 +559,11 @@ type Asset struct { func (x *Asset) Reset() { *x = Asset{} - mi := &file_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Asset) String() string { @@ -566,7 +574,7 @@ func (*Asset) ProtoMessage() {} func (x *Asset) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -642,9 +650,11 @@ type Protocol struct { func (x *Protocol) Reset() { *x = Protocol{} - mi := &file_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Protocol) String() string { @@ -655,7 +665,7 @@ func (*Protocol) ProtoMessage() {} func (x *Protocol) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -708,9 +718,11 @@ type Gateway struct { func (x *Gateway) Reset() { *x = Gateway{} - mi := &file_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Gateway) String() string { @@ -721,7 +733,7 @@ func (*Gateway) ProtoMessage() {} func (x *Gateway) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -806,9 +818,11 @@ type Permission struct { func (x *Permission) Reset() { *x = Permission{} - mi := &file_common_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Permission) String() string { @@ -819,7 +833,7 @@ func (*Permission) ProtoMessage() {} func (x *Permission) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -884,9 +898,11 @@ type CommandACL struct { func (x *CommandACL) Reset() { *x = CommandACL{} - mi := &file_common_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandACL) String() string { @@ -897,7 +913,7 @@ func (*CommandACL) ProtoMessage() {} func (x *CommandACL) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -969,9 +985,11 @@ type CommandGroup struct { func (x *CommandGroup) Reset() { *x = CommandGroup{} - mi := &file_common_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandGroup) String() string { @@ -982,7 +1000,7 @@ func (*CommandGroup) ProtoMessage() {} func (x *CommandGroup) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1049,9 +1067,11 @@ type ExpireInfo struct { func (x *ExpireInfo) Reset() { *x = ExpireInfo{} - mi := &file_common_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ExpireInfo) String() string { @@ -1062,7 +1082,7 @@ func (*ExpireInfo) ProtoMessage() {} func (x *ExpireInfo) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1106,9 +1126,11 @@ type Session struct { func (x *Session) Reset() { *x = Session{} - mi := &file_common_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Session) String() string { @@ -1119,7 +1141,7 @@ func (*Session) ProtoMessage() {} func (x *Session) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1237,9 +1259,11 @@ type TokenStatus struct { func (x *TokenStatus) Reset() { *x = TokenStatus{} - mi := &file_common_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TokenStatus) String() string { @@ -1250,7 +1274,7 @@ func (*TokenStatus) ProtoMessage() {} func (x *TokenStatus) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1301,9 +1325,11 @@ type TerminalTask struct { func (x *TerminalTask) Reset() { *x = TerminalTask{} - mi := &file_common_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TerminalTask) String() string { @@ -1314,7 +1340,7 @@ func (*TerminalTask) ProtoMessage() {} func (x *TerminalTask) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1391,9 +1417,11 @@ type TokenAuthInfo struct { func (x *TokenAuthInfo) Reset() { *x = TokenAuthInfo{} - mi := &file_common_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TokenAuthInfo) String() string { @@ -1404,7 +1432,7 @@ func (*TokenAuthInfo) ProtoMessage() {} func (x *TokenAuthInfo) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1511,9 +1539,11 @@ type Platform struct { func (x *Platform) Reset() { *x = Platform{} - mi := &file_common_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Platform) String() string { @@ -1524,7 +1554,7 @@ func (*Platform) ProtoMessage() {} func (x *Platform) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1594,9 +1624,11 @@ type PlatformProtocol struct { func (x *PlatformProtocol) Reset() { *x = PlatformProtocol{} - mi := &file_common_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PlatformProtocol) String() string { @@ -1607,7 +1639,7 @@ func (*PlatformProtocol) ProtoMessage() {} func (x *PlatformProtocol) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1661,9 +1693,11 @@ type ComponentSetting struct { func (x *ComponentSetting) Reset() { *x = ComponentSetting{} - mi := &file_common_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ComponentSetting) String() string { @@ -1674,7 +1708,7 @@ func (*ComponentSetting) ProtoMessage() {} func (x *ComponentSetting) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1715,9 +1749,11 @@ type Forward struct { func (x *Forward) Reset() { *x = Forward{} - mi := &file_common_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Forward) String() string { @@ -1728,7 +1764,7 @@ func (*Forward) ProtoMessage() {} func (x *Forward) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1769,19 +1805,22 @@ type PublicSetting struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - XpackEnabled bool `protobuf:"varint,1,opt,name=xpack_enabled,json=xpackEnabled,proto3" json:"xpack_enabled,omitempty"` - ValidLicense bool `protobuf:"varint,2,opt,name=valid_license,json=validLicense,proto3" json:"valid_license,omitempty"` - GptBaseUrl string `protobuf:"bytes,3,opt,name=gpt_base_url,json=gptBaseUrl,proto3" json:"gpt_base_url,omitempty"` - GptApiKey string `protobuf:"bytes,4,opt,name=gpt_api_key,json=gptApiKey,proto3" json:"gpt_api_key,omitempty"` - GptProxy string `protobuf:"bytes,5,opt,name=gpt_proxy,json=gptProxy,proto3" json:"gpt_proxy,omitempty"` - GptModel string `protobuf:"bytes,6,opt,name=gpt_model,json=gptModel,proto3" json:"gpt_model,omitempty"` + XpackEnabled bool `protobuf:"varint,1,opt,name=xpack_enabled,json=xpackEnabled,proto3" json:"xpack_enabled,omitempty"` + ValidLicense bool `protobuf:"varint,2,opt,name=valid_license,json=validLicense,proto3" json:"valid_license,omitempty"` + GptBaseUrl string `protobuf:"bytes,3,opt,name=gpt_base_url,json=gptBaseUrl,proto3" json:"gpt_base_url,omitempty"` + GptApiKey string `protobuf:"bytes,4,opt,name=gpt_api_key,json=gptApiKey,proto3" json:"gpt_api_key,omitempty"` + GptProxy string `protobuf:"bytes,5,opt,name=gpt_proxy,json=gptProxy,proto3" json:"gpt_proxy,omitempty"` + GptModel string `protobuf:"bytes,6,opt,name=gpt_model,json=gptModel,proto3" json:"gpt_model,omitempty"` + LicenseContent string `protobuf:"bytes,7,opt,name=license_content,json=licenseContent,proto3" json:"license_content,omitempty"` } func (x *PublicSetting) Reset() { *x = PublicSetting{} - mi := &file_common_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PublicSetting) String() string { @@ -1792,7 +1831,7 @@ func (*PublicSetting) ProtoMessage() {} func (x *PublicSetting) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1849,6 +1888,13 @@ func (x *PublicSetting) GetGptModel() string { return "" } +func (x *PublicSetting) GetLicenseContent() string { + if x != nil { + return x.LicenseContent + } + return "" +} + type Cookie struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1860,9 +1906,11 @@ type Cookie struct { func (x *Cookie) Reset() { *x = Cookie{} - mi := &file_common_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Cookie) String() string { @@ -1873,7 +1921,7 @@ func (*Cookie) ProtoMessage() {} func (x *Cookie) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1914,9 +1962,11 @@ type LifecycleLogData struct { func (x *LifecycleLogData) Reset() { *x = LifecycleLogData{} - mi := &file_common_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *LifecycleLogData) String() string { @@ -1927,7 +1977,7 @@ func (*LifecycleLogData) ProtoMessage() {} func (x *LifecycleLogData) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1985,9 +2035,11 @@ type Asset_Specific struct { func (x *Asset_Specific) Reset() { *x = Asset_Specific{} - mi := &file_common_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_common_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Asset_Specific) String() string { @@ -1998,7 +2050,7 @@ func (*Asset_Specific) ProtoMessage() {} func (x *Asset_Specific) ProtoReflect() protoreflect.Message { mi := &file_common_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2346,7 +2398,7 @@ var file_common_proto_rawDesc = []byte{ 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xd5, 0x01, 0x0a, 0x0d, 0x50, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0xfe, 0x01, 0x0a, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x78, 0x70, 0x61, 0x63, 0x6b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x78, 0x70, 0x61, 0x63, 0x6b, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, @@ -2360,54 +2412,56 @@ var file_common_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x70, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x70, 0x74, 0x4d, 0x6f, 0x64, - 0x65, 0x6c, 0x22, 0x32, 0x0a, 0x06, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbd, 0x03, 0x0a, 0x10, 0x4c, 0x69, 0x66, 0x65, 0x63, - 0x79, 0x63, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x05, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x4c, 0x6f, - 0x67, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, - 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, - 0x73, 0x65, 0x72, 0x22, 0xc0, 0x02, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x73, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, - 0x68, 0x65, 0x64, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x6e, 0x6b, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x73, - 0x65, 0x72, 0x4a, 0x6f, 0x69, 0x6e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x03, 0x12, - 0x14, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4a, 0x6f, - 0x69, 0x6e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x69, 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x10, - 0x06, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x76, 0x65, - 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x65, 0x70, - 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, - 0x76, 0x65, 0x72, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0x09, 0x12, 0x15, 0x0a, - 0x11, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, - 0x72, 0x74, 0x10, 0x0a, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x70, - 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x0b, 0x12, 0x17, 0x0a, - 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x61, 0x69, - 0x6c, 0x75, 0x72, 0x65, 0x10, 0x0c, 0x2a, 0x6b, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x53, 0x65, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4c, 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, - 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x10, 0x03, 0x12, - 0x12, 0x0a, 0x0e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x10, 0x04, 0x2a, 0x66, 0x0a, 0x09, 0x52, 0x69, 0x73, 0x6b, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x6a, - 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, - 0x65, 0x6a, 0x65, 0x63, 0x74, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, - 0x77, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, - 0x69, 0x65, 0x77, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x10, 0x05, 0x42, 0x20, 0x0a, 0x13, 0x6f, - 0x72, 0x67, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x77, 0x69, - 0x73, 0x70, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x6c, 0x12, 0x27, 0x0a, 0x0f, 0x6c, 0x69, 0x63, 0x65, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6c, 0x69, 0x63, + 0x65, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x32, 0x0a, 0x06, 0x43, + 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, + 0xbd, 0x03, 0x0a, 0x10, 0x4c, 0x69, 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x4c, 0x6f, 0x67, + 0x44, 0x61, 0x74, 0x61, 0x12, 0x3a, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4c, 0x69, + 0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x65, + 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0xc0, 0x02, 0x0a, + 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, + 0x73, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x73, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0x01, 0x12, 0x13, + 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x68, 0x61, 0x72, 0x65, 0x4c, 0x69, 0x6e, + 0x6b, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x6f, 0x69, 0x6e, 0x53, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, + 0x4c, 0x65, 0x61, 0x76, 0x65, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x04, 0x12, 0x14, + 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4a, 0x6f, 0x69, 0x6e, 0x4d, 0x6f, 0x6e, 0x69, 0x74, + 0x6f, 0x72, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x69, + 0x74, 0x4d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x10, 0x06, 0x12, 0x16, 0x0a, 0x12, 0x52, 0x65, + 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x10, 0x07, 0x12, 0x18, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x76, + 0x65, 0x72, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x08, 0x12, 0x18, 0x0a, 0x14, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x10, 0x09, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x74, 0x61, 0x72, 0x74, 0x10, 0x0a, 0x12, 0x17, 0x0a, + 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x10, 0x0b, 0x12, 0x17, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x79, + 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0x0c, 0x2a, + 0x6b, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, + 0x0b, 0x4b, 0x69, 0x6c, 0x6c, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x00, 0x12, 0x0f, + 0x0a, 0x0b, 0x4c, 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x10, 0x01, 0x12, + 0x11, 0x0a, 0x0d, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x45, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x50, 0x65, 0x72, 0x6d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x10, 0x04, 0x2a, 0x66, 0x0a, 0x09, + 0x52, 0x69, 0x73, 0x6b, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x72, + 0x6d, 0x61, 0x6c, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x61, 0x72, 0x6e, 0x69, 0x6e, 0x67, + 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x10, 0x02, 0x12, 0x10, + 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x10, 0x03, + 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, + 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x10, 0x05, 0x42, 0x20, 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x2e, 0x6a, 0x75, 0x6d, 0x70, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x77, 0x69, 0x73, 0x70, 0x5a, 0x09, 0x2f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2424,7 +2478,7 @@ func file_common_proto_rawDescGZIP() []byte { var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 5) var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 23) -var file_common_proto_goTypes = []any{ +var file_common_proto_goTypes = []interface{}{ (TaskAction)(0), // 0: message.TaskAction (RiskLevel)(0), // 1: message.RiskLevel (CommandACL_Action)(0), // 2: message.CommandACL.Action @@ -2487,6 +2541,272 @@ func file_common_proto_init() { if File_common_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Account); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LabelValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Asset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Protocol); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Gateway); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Permission); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandACL); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandGroup); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExpireInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Session); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenStatus); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TerminalTask); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenAuthInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Platform); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PlatformProtocol); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ComponentSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Forward); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Cookie); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LifecycleLogData); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_common_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Asset_Specific); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/protobuf-go/protobuf/service.pb.go b/protobuf-go/protobuf/service.pb.go index a423b47..e12f85b 100644 --- a/protobuf-go/protobuf/service.pb.go +++ b/protobuf-go/protobuf/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.28.0 +// protoc-gen-go v1.28.1 +// protoc v5.26.1 // source: service.proto package protobuf @@ -164,9 +164,11 @@ type FaceRecognitionCallbackRequest struct { func (x *FaceRecognitionCallbackRequest) Reset() { *x = FaceRecognitionCallbackRequest{} - mi := &file_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FaceRecognitionCallbackRequest) String() string { @@ -177,7 +179,7 @@ func (*FaceRecognitionCallbackRequest) ProtoMessage() {} func (x *FaceRecognitionCallbackRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -230,9 +232,11 @@ type FaceRecognitionCallbackResponse struct { func (x *FaceRecognitionCallbackResponse) Reset() { *x = FaceRecognitionCallbackResponse{} - mi := &file_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FaceRecognitionCallbackResponse) String() string { @@ -243,7 +247,7 @@ func (*FaceRecognitionCallbackResponse) ProtoMessage() {} func (x *FaceRecognitionCallbackResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -277,9 +281,11 @@ type AssetLoginTicketRequest struct { func (x *AssetLoginTicketRequest) Reset() { *x = AssetLoginTicketRequest{} - mi := &file_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AssetLoginTicketRequest) String() string { @@ -290,7 +296,7 @@ func (*AssetLoginTicketRequest) ProtoMessage() {} func (x *AssetLoginTicketRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -339,9 +345,11 @@ type AssetLoginTicketResponse struct { func (x *AssetLoginTicketResponse) Reset() { *x = AssetLoginTicketResponse{} - mi := &file_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *AssetLoginTicketResponse) String() string { @@ -352,7 +360,7 @@ func (*AssetLoginTicketResponse) ProtoMessage() {} func (x *AssetLoginTicketResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -406,9 +414,11 @@ type Status struct { func (x *Status) Reset() { *x = Status{} - mi := &file_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Status) String() string { @@ -419,7 +429,7 @@ func (*Status) ProtoMessage() {} func (x *Status) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -458,9 +468,11 @@ type TokenRequest struct { func (x *TokenRequest) Reset() { *x = TokenRequest{} - mi := &file_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TokenRequest) String() string { @@ -471,7 +483,7 @@ func (*TokenRequest) ProtoMessage() {} func (x *TokenRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -504,9 +516,11 @@ type TokenResponse struct { func (x *TokenResponse) Reset() { *x = TokenResponse{} - mi := &file_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TokenResponse) String() string { @@ -517,7 +531,7 @@ func (*TokenResponse) ProtoMessage() {} func (x *TokenResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -556,9 +570,11 @@ type SessionCreateRequest struct { func (x *SessionCreateRequest) Reset() { *x = SessionCreateRequest{} - mi := &file_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SessionCreateRequest) String() string { @@ -569,7 +585,7 @@ func (*SessionCreateRequest) ProtoMessage() {} func (x *SessionCreateRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -602,9 +618,11 @@ type SessionCreateResponse struct { func (x *SessionCreateResponse) Reset() { *x = SessionCreateResponse{} - mi := &file_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SessionCreateResponse) String() string { @@ -615,7 +633,7 @@ func (*SessionCreateResponse) ProtoMessage() {} func (x *SessionCreateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -657,9 +675,11 @@ type SessionFinishRequest struct { func (x *SessionFinishRequest) Reset() { *x = SessionFinishRequest{} - mi := &file_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SessionFinishRequest) String() string { @@ -670,7 +690,7 @@ func (*SessionFinishRequest) ProtoMessage() {} func (x *SessionFinishRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -723,9 +743,11 @@ type SessionFinishResp struct { func (x *SessionFinishResp) Reset() { *x = SessionFinishResp{} - mi := &file_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SessionFinishResp) String() string { @@ -736,7 +758,7 @@ func (*SessionFinishResp) ProtoMessage() {} func (x *SessionFinishResp) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -769,9 +791,11 @@ type ReplayRequest struct { func (x *ReplayRequest) Reset() { *x = ReplayRequest{} - mi := &file_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ReplayRequest) String() string { @@ -782,7 +806,7 @@ func (*ReplayRequest) ProtoMessage() {} func (x *ReplayRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -821,9 +845,11 @@ type ReplayResponse struct { func (x *ReplayResponse) Reset() { *x = ReplayResponse{} - mi := &file_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ReplayResponse) String() string { @@ -834,7 +860,7 @@ func (*ReplayResponse) ProtoMessage() {} func (x *ReplayResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -876,9 +902,11 @@ type CommandRequest struct { func (x *CommandRequest) Reset() { *x = CommandRequest{} - mi := &file_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandRequest) String() string { @@ -889,7 +917,7 @@ func (*CommandRequest) ProtoMessage() {} func (x *CommandRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -991,9 +1019,11 @@ type CommandResponse struct { func (x *CommandResponse) Reset() { *x = CommandResponse{} - mi := &file_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandResponse) String() string { @@ -1004,7 +1034,7 @@ func (*CommandResponse) ProtoMessage() {} func (x *CommandResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1036,9 +1066,11 @@ type FinishedTaskRequest struct { func (x *FinishedTaskRequest) Reset() { *x = FinishedTaskRequest{} - mi := &file_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FinishedTaskRequest) String() string { @@ -1049,7 +1081,7 @@ func (*FinishedTaskRequest) ProtoMessage() {} func (x *FinishedTaskRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1081,9 +1113,11 @@ type TaskResponse struct { func (x *TaskResponse) Reset() { *x = TaskResponse{} - mi := &file_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TaskResponse) String() string { @@ -1094,7 +1128,7 @@ func (*TaskResponse) ProtoMessage() {} func (x *TaskResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1126,9 +1160,11 @@ type RemainReplayRequest struct { func (x *RemainReplayRequest) Reset() { *x = RemainReplayRequest{} - mi := &file_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RemainReplayRequest) String() string { @@ -1139,7 +1175,7 @@ func (*RemainReplayRequest) ProtoMessage() {} func (x *RemainReplayRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1174,9 +1210,11 @@ type RemainReplayResponse struct { func (x *RemainReplayResponse) Reset() { *x = RemainReplayResponse{} - mi := &file_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *RemainReplayResponse) String() string { @@ -1187,7 +1225,7 @@ func (*RemainReplayResponse) ProtoMessage() {} func (x *RemainReplayResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1240,9 +1278,11 @@ type StatusResponse struct { func (x *StatusResponse) Reset() { *x = StatusResponse{} - mi := &file_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *StatusResponse) String() string { @@ -1253,7 +1293,7 @@ func (*StatusResponse) ProtoMessage() {} func (x *StatusResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1287,9 +1327,11 @@ type CommandConfirmRequest struct { func (x *CommandConfirmRequest) Reset() { *x = CommandConfirmRequest{} - mi := &file_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandConfirmRequest) String() string { @@ -1300,7 +1342,7 @@ func (*CommandConfirmRequest) ProtoMessage() {} func (x *CommandConfirmRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1347,9 +1389,11 @@ type ReqInfo struct { func (x *ReqInfo) Reset() { *x = ReqInfo{} - mi := &file_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ReqInfo) String() string { @@ -1360,7 +1404,7 @@ func (*ReqInfo) ProtoMessage() {} func (x *ReqInfo) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1400,9 +1444,11 @@ type CommandConfirmResponse struct { func (x *CommandConfirmResponse) Reset() { *x = CommandConfirmResponse{} - mi := &file_service_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommandConfirmResponse) String() string { @@ -1413,7 +1459,7 @@ func (*CommandConfirmResponse) ProtoMessage() {} func (x *CommandConfirmResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1455,9 +1501,11 @@ type TicketInfo struct { func (x *TicketInfo) Reset() { *x = TicketInfo{} - mi := &file_service_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TicketInfo) String() string { @@ -1468,7 +1516,7 @@ func (*TicketInfo) ProtoMessage() {} func (x *TicketInfo) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1521,9 +1569,11 @@ type TicketRequest struct { func (x *TicketRequest) Reset() { *x = TicketRequest{} - mi := &file_service_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TicketRequest) String() string { @@ -1534,7 +1584,7 @@ func (*TicketRequest) ProtoMessage() {} func (x *TicketRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1567,9 +1617,11 @@ type TicketStateResponse struct { func (x *TicketStateResponse) Reset() { *x = TicketStateResponse{} - mi := &file_service_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TicketStateResponse) String() string { @@ -1580,7 +1632,7 @@ func (*TicketStateResponse) ProtoMessage() {} func (x *TicketStateResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1620,9 +1672,11 @@ type TicketState struct { func (x *TicketState) Reset() { *x = TicketState{} - mi := &file_service_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *TicketState) String() string { @@ -1633,7 +1687,7 @@ func (*TicketState) ProtoMessage() {} func (x *TicketState) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1674,9 +1728,11 @@ type ForwardRequest struct { func (x *ForwardRequest) Reset() { *x = ForwardRequest{} - mi := &file_service_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ForwardRequest) String() string { @@ -1687,7 +1743,7 @@ func (*ForwardRequest) ProtoMessage() {} func (x *ForwardRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1733,9 +1789,11 @@ type ForwardDeleteRequest struct { func (x *ForwardDeleteRequest) Reset() { *x = ForwardDeleteRequest{} - mi := &file_service_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ForwardDeleteRequest) String() string { @@ -1746,7 +1804,7 @@ func (*ForwardDeleteRequest) ProtoMessage() {} func (x *ForwardDeleteRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1781,9 +1839,11 @@ type ForwardResponse struct { func (x *ForwardResponse) Reset() { *x = ForwardResponse{} - mi := &file_service_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ForwardResponse) String() string { @@ -1794,7 +1854,7 @@ func (*ForwardResponse) ProtoMessage() {} func (x *ForwardResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1848,9 +1908,11 @@ type PublicSettingResponse struct { func (x *PublicSettingResponse) Reset() { *x = PublicSettingResponse{} - mi := &file_service_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PublicSettingResponse) String() string { @@ -1861,7 +1923,7 @@ func (*PublicSettingResponse) ProtoMessage() {} func (x *PublicSettingResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1898,9 +1960,11 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - mi := &file_service_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *Empty) String() string { @@ -1911,7 +1975,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1937,9 +2001,11 @@ type ListenPortResponse struct { func (x *ListenPortResponse) Reset() { *x = ListenPortResponse{} - mi := &file_service_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ListenPortResponse) String() string { @@ -1950,7 +2016,7 @@ func (*ListenPortResponse) ProtoMessage() {} func (x *ListenPortResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[32] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1989,9 +2055,11 @@ type PortInfoRequest struct { func (x *PortInfoRequest) Reset() { *x = PortInfoRequest{} - mi := &file_service_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PortInfoRequest) String() string { @@ -2002,7 +2070,7 @@ func (*PortInfoRequest) ProtoMessage() {} func (x *PortInfoRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[33] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2035,9 +2103,11 @@ type PortInfoResponse struct { func (x *PortInfoResponse) Reset() { *x = PortInfoResponse{} - mi := &file_service_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PortInfoResponse) String() string { @@ -2048,7 +2118,7 @@ func (*PortInfoResponse) ProtoMessage() {} func (x *PortInfoResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[34] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2088,9 +2158,11 @@ type PortInfo struct { func (x *PortInfo) Reset() { *x = PortInfo{} - mi := &file_service_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PortInfo) String() string { @@ -2101,7 +2173,7 @@ func (*PortInfo) ProtoMessage() {} func (x *PortInfo) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[35] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2141,9 +2213,11 @@ type PortFailure struct { func (x *PortFailure) Reset() { *x = PortFailure{} - mi := &file_service_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PortFailure) String() string { @@ -2154,7 +2228,7 @@ func (*PortFailure) ProtoMessage() {} func (x *PortFailure) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[36] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2193,9 +2267,11 @@ type PortFailureRequest struct { func (x *PortFailureRequest) Reset() { *x = PortFailureRequest{} - mi := &file_service_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *PortFailureRequest) String() string { @@ -2206,7 +2282,7 @@ func (*PortFailureRequest) ProtoMessage() {} func (x *PortFailureRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[37] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2238,9 +2314,11 @@ type CookiesRequest struct { func (x *CookiesRequest) Reset() { *x = CookiesRequest{} - mi := &file_service_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CookiesRequest) String() string { @@ -2251,7 +2329,7 @@ func (*CookiesRequest) ProtoMessage() {} func (x *CookiesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[38] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2284,9 +2362,11 @@ type UserResponse struct { func (x *UserResponse) Reset() { *x = UserResponse{} - mi := &file_service_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *UserResponse) String() string { @@ -2297,7 +2377,7 @@ func (*UserResponse) ProtoMessage() {} func (x *UserResponse) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[39] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2339,9 +2419,11 @@ type SessionLifecycleLogRequest struct { func (x *SessionLifecycleLogRequest) Reset() { *x = SessionLifecycleLogRequest{} - mi := &file_service_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SessionLifecycleLogRequest) String() string { @@ -2352,7 +2434,7 @@ func (*SessionLifecycleLogRequest) ProtoMessage() {} func (x *SessionLifecycleLogRequest) ProtoReflect() protoreflect.Message { mi := &file_service_proto_msgTypes[40] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2786,7 +2868,7 @@ func file_service_proto_rawDescGZIP() []byte { var file_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_service_proto_msgTypes = make([]protoimpl.MessageInfo, 41) -var file_service_proto_goTypes = []any{ +var file_service_proto_goTypes = []interface{}{ (TicketState_State)(0), // 0: message.TicketState.State (SessionLifecycleLogRequest_EventType)(0), // 1: message.SessionLifecycleLogRequest.EventType (*FaceRecognitionCallbackRequest)(nil), // 2: message.FaceRecognitionCallbackRequest @@ -2933,6 +3015,500 @@ func file_service_proto_init() { return } file_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FaceRecognitionCallbackRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FaceRecognitionCallbackResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssetLoginTicketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AssetLoginTicketResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Status); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionCreateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionCreateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionFinishRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionFinishResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplayRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReplayResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinishedTaskRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TaskResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemainReplayRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemainReplayResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandConfirmRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReqInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandConfirmResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TicketInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TicketRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TicketStateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TicketState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardDeleteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ForwardResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublicSettingResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Empty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListenPortResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortInfoRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortInfoResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortFailure); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PortFailureRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CookiesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SessionLifecycleLogRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/protobuf-go/protobuf/service_grpc.pb.go b/protobuf-go/protobuf/service_grpc.pb.go index de93f51..afc2647 100644 --- a/protobuf-go/protobuf/service_grpc.pb.go +++ b/protobuf-go/protobuf/service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.5.1 -// - protoc v5.28.0 +// - protoc-gen-go-grpc v1.2.0 +// - protoc v5.26.1 // source: service.proto package protobuf @@ -15,32 +15,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.64.0 or later. -const _ = grpc.SupportPackageIsVersion9 - -const ( - Service_GetTokenAuthInfo_FullMethodName = "/message.Service/GetTokenAuthInfo" - Service_RenewToken_FullMethodName = "/message.Service/RenewToken" - Service_CreateSession_FullMethodName = "/message.Service/CreateSession" - Service_FinishSession_FullMethodName = "/message.Service/FinishSession" - Service_UploadReplayFile_FullMethodName = "/message.Service/UploadReplayFile" - Service_UploadCommand_FullMethodName = "/message.Service/UploadCommand" - Service_DispatchTask_FullMethodName = "/message.Service/DispatchTask" - Service_ScanRemainReplays_FullMethodName = "/message.Service/ScanRemainReplays" - Service_CreateCommandTicket_FullMethodName = "/message.Service/CreateCommandTicket" - Service_CheckOrCreateAssetLoginTicket_FullMethodName = "/message.Service/CheckOrCreateAssetLoginTicket" - Service_CheckTicketState_FullMethodName = "/message.Service/CheckTicketState" - Service_CancelTicket_FullMethodName = "/message.Service/CancelTicket" - Service_CreateForward_FullMethodName = "/message.Service/CreateForward" - Service_DeleteForward_FullMethodName = "/message.Service/DeleteForward" - Service_GetPublicSetting_FullMethodName = "/message.Service/GetPublicSetting" - Service_GetListenPorts_FullMethodName = "/message.Service/GetListenPorts" - Service_GetPortInfo_FullMethodName = "/message.Service/GetPortInfo" - Service_HandlePortFailure_FullMethodName = "/message.Service/HandlePortFailure" - Service_CheckUserByCookies_FullMethodName = "/message.Service/CheckUserByCookies" - Service_RecordSessionLifecycleLog_FullMethodName = "/message.Service/RecordSessionLifecycleLog" - Service_FaceRecognitionCallback_FullMethodName = "/message.Service/FaceRecognitionCallback" -) +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 // ServiceClient is the client API for Service service. // @@ -52,7 +28,7 @@ type ServiceClient interface { FinishSession(ctx context.Context, in *SessionFinishRequest, opts ...grpc.CallOption) (*SessionFinishResp, error) UploadReplayFile(ctx context.Context, in *ReplayRequest, opts ...grpc.CallOption) (*ReplayResponse, error) UploadCommand(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error) - DispatchTask(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[FinishedTaskRequest, TaskResponse], error) + DispatchTask(ctx context.Context, opts ...grpc.CallOption) (Service_DispatchTaskClient, error) ScanRemainReplays(ctx context.Context, in *RemainReplayRequest, opts ...grpc.CallOption) (*RemainReplayResponse, error) CreateCommandTicket(ctx context.Context, in *CommandConfirmRequest, opts ...grpc.CallOption) (*CommandConfirmResponse, error) CheckOrCreateAssetLoginTicket(ctx context.Context, in *AssetLoginTicketRequest, opts ...grpc.CallOption) (*AssetLoginTicketResponse, error) @@ -78,9 +54,8 @@ func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient { } func (c *serviceClient) GetTokenAuthInfo(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TokenResponse) - err := c.cc.Invoke(ctx, Service_GetTokenAuthInfo_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/GetTokenAuthInfo", in, out, opts...) if err != nil { return nil, err } @@ -88,9 +63,8 @@ func (c *serviceClient) GetTokenAuthInfo(ctx context.Context, in *TokenRequest, } func (c *serviceClient) RenewToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StatusResponse) - err := c.cc.Invoke(ctx, Service_RenewToken_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/RenewToken", in, out, opts...) if err != nil { return nil, err } @@ -98,9 +72,8 @@ func (c *serviceClient) RenewToken(ctx context.Context, in *TokenRequest, opts . } func (c *serviceClient) CreateSession(ctx context.Context, in *SessionCreateRequest, opts ...grpc.CallOption) (*SessionCreateResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SessionCreateResponse) - err := c.cc.Invoke(ctx, Service_CreateSession_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CreateSession", in, out, opts...) if err != nil { return nil, err } @@ -108,9 +81,8 @@ func (c *serviceClient) CreateSession(ctx context.Context, in *SessionCreateRequ } func (c *serviceClient) FinishSession(ctx context.Context, in *SessionFinishRequest, opts ...grpc.CallOption) (*SessionFinishResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SessionFinishResp) - err := c.cc.Invoke(ctx, Service_FinishSession_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/FinishSession", in, out, opts...) if err != nil { return nil, err } @@ -118,9 +90,8 @@ func (c *serviceClient) FinishSession(ctx context.Context, in *SessionFinishRequ } func (c *serviceClient) UploadReplayFile(ctx context.Context, in *ReplayRequest, opts ...grpc.CallOption) (*ReplayResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplayResponse) - err := c.cc.Invoke(ctx, Service_UploadReplayFile_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/UploadReplayFile", in, out, opts...) if err != nil { return nil, err } @@ -128,32 +99,48 @@ func (c *serviceClient) UploadReplayFile(ctx context.Context, in *ReplayRequest, } func (c *serviceClient) UploadCommand(ctx context.Context, in *CommandRequest, opts ...grpc.CallOption) (*CommandResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommandResponse) - err := c.cc.Invoke(ctx, Service_UploadCommand_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/UploadCommand", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *serviceClient) DispatchTask(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[FinishedTaskRequest, TaskResponse], error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[0], Service_DispatchTask_FullMethodName, cOpts...) +func (c *serviceClient) DispatchTask(ctx context.Context, opts ...grpc.CallOption) (Service_DispatchTaskClient, error) { + stream, err := c.cc.NewStream(ctx, &Service_ServiceDesc.Streams[0], "/message.Service/DispatchTask", opts...) if err != nil { return nil, err } - x := &grpc.GenericClientStream[FinishedTaskRequest, TaskResponse]{ClientStream: stream} + x := &serviceDispatchTaskClient{stream} return x, nil } -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type Service_DispatchTaskClient = grpc.BidiStreamingClient[FinishedTaskRequest, TaskResponse] +type Service_DispatchTaskClient interface { + Send(*FinishedTaskRequest) error + Recv() (*TaskResponse, error) + grpc.ClientStream +} + +type serviceDispatchTaskClient struct { + grpc.ClientStream +} + +func (x *serviceDispatchTaskClient) Send(m *FinishedTaskRequest) error { + return x.ClientStream.SendMsg(m) +} + +func (x *serviceDispatchTaskClient) Recv() (*TaskResponse, error) { + m := new(TaskResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} func (c *serviceClient) ScanRemainReplays(ctx context.Context, in *RemainReplayRequest, opts ...grpc.CallOption) (*RemainReplayResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemainReplayResponse) - err := c.cc.Invoke(ctx, Service_ScanRemainReplays_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/ScanRemainReplays", in, out, opts...) if err != nil { return nil, err } @@ -161,9 +148,8 @@ func (c *serviceClient) ScanRemainReplays(ctx context.Context, in *RemainReplayR } func (c *serviceClient) CreateCommandTicket(ctx context.Context, in *CommandConfirmRequest, opts ...grpc.CallOption) (*CommandConfirmResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CommandConfirmResponse) - err := c.cc.Invoke(ctx, Service_CreateCommandTicket_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CreateCommandTicket", in, out, opts...) if err != nil { return nil, err } @@ -171,9 +157,8 @@ func (c *serviceClient) CreateCommandTicket(ctx context.Context, in *CommandConf } func (c *serviceClient) CheckOrCreateAssetLoginTicket(ctx context.Context, in *AssetLoginTicketRequest, opts ...grpc.CallOption) (*AssetLoginTicketResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssetLoginTicketResponse) - err := c.cc.Invoke(ctx, Service_CheckOrCreateAssetLoginTicket_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CheckOrCreateAssetLoginTicket", in, out, opts...) if err != nil { return nil, err } @@ -181,9 +166,8 @@ func (c *serviceClient) CheckOrCreateAssetLoginTicket(ctx context.Context, in *A } func (c *serviceClient) CheckTicketState(ctx context.Context, in *TicketRequest, opts ...grpc.CallOption) (*TicketStateResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TicketStateResponse) - err := c.cc.Invoke(ctx, Service_CheckTicketState_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CheckTicketState", in, out, opts...) if err != nil { return nil, err } @@ -191,9 +175,8 @@ func (c *serviceClient) CheckTicketState(ctx context.Context, in *TicketRequest, } func (c *serviceClient) CancelTicket(ctx context.Context, in *TicketRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StatusResponse) - err := c.cc.Invoke(ctx, Service_CancelTicket_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CancelTicket", in, out, opts...) if err != nil { return nil, err } @@ -201,9 +184,8 @@ func (c *serviceClient) CancelTicket(ctx context.Context, in *TicketRequest, opt } func (c *serviceClient) CreateForward(ctx context.Context, in *ForwardRequest, opts ...grpc.CallOption) (*ForwardResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ForwardResponse) - err := c.cc.Invoke(ctx, Service_CreateForward_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CreateForward", in, out, opts...) if err != nil { return nil, err } @@ -211,9 +193,8 @@ func (c *serviceClient) CreateForward(ctx context.Context, in *ForwardRequest, o } func (c *serviceClient) DeleteForward(ctx context.Context, in *ForwardDeleteRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StatusResponse) - err := c.cc.Invoke(ctx, Service_DeleteForward_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/DeleteForward", in, out, opts...) if err != nil { return nil, err } @@ -221,9 +202,8 @@ func (c *serviceClient) DeleteForward(ctx context.Context, in *ForwardDeleteRequ } func (c *serviceClient) GetPublicSetting(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PublicSettingResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PublicSettingResponse) - err := c.cc.Invoke(ctx, Service_GetPublicSetting_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/GetPublicSetting", in, out, opts...) if err != nil { return nil, err } @@ -231,9 +211,8 @@ func (c *serviceClient) GetPublicSetting(ctx context.Context, in *Empty, opts .. } func (c *serviceClient) GetListenPorts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListenPortResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListenPortResponse) - err := c.cc.Invoke(ctx, Service_GetListenPorts_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/GetListenPorts", in, out, opts...) if err != nil { return nil, err } @@ -241,9 +220,8 @@ func (c *serviceClient) GetListenPorts(ctx context.Context, in *Empty, opts ...g } func (c *serviceClient) GetPortInfo(ctx context.Context, in *PortInfoRequest, opts ...grpc.CallOption) (*PortInfoResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PortInfoResponse) - err := c.cc.Invoke(ctx, Service_GetPortInfo_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/GetPortInfo", in, out, opts...) if err != nil { return nil, err } @@ -251,9 +229,8 @@ func (c *serviceClient) GetPortInfo(ctx context.Context, in *PortInfoRequest, op } func (c *serviceClient) HandlePortFailure(ctx context.Context, in *PortFailureRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StatusResponse) - err := c.cc.Invoke(ctx, Service_HandlePortFailure_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/HandlePortFailure", in, out, opts...) if err != nil { return nil, err } @@ -261,9 +238,8 @@ func (c *serviceClient) HandlePortFailure(ctx context.Context, in *PortFailureRe } func (c *serviceClient) CheckUserByCookies(ctx context.Context, in *CookiesRequest, opts ...grpc.CallOption) (*UserResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UserResponse) - err := c.cc.Invoke(ctx, Service_CheckUserByCookies_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/CheckUserByCookies", in, out, opts...) if err != nil { return nil, err } @@ -271,9 +247,8 @@ func (c *serviceClient) CheckUserByCookies(ctx context.Context, in *CookiesReque } func (c *serviceClient) RecordSessionLifecycleLog(ctx context.Context, in *SessionLifecycleLogRequest, opts ...grpc.CallOption) (*StatusResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(StatusResponse) - err := c.cc.Invoke(ctx, Service_RecordSessionLifecycleLog_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/RecordSessionLifecycleLog", in, out, opts...) if err != nil { return nil, err } @@ -281,9 +256,8 @@ func (c *serviceClient) RecordSessionLifecycleLog(ctx context.Context, in *Sessi } func (c *serviceClient) FaceRecognitionCallback(ctx context.Context, in *FaceRecognitionCallbackRequest, opts ...grpc.CallOption) (*FaceRecognitionCallbackResponse, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FaceRecognitionCallbackResponse) - err := c.cc.Invoke(ctx, Service_FaceRecognitionCallback_FullMethodName, in, out, cOpts...) + err := c.cc.Invoke(ctx, "/message.Service/FaceRecognitionCallback", in, out, opts...) if err != nil { return nil, err } @@ -292,7 +266,7 @@ func (c *serviceClient) FaceRecognitionCallback(ctx context.Context, in *FaceRec // ServiceServer is the server API for Service service. // All implementations must embed UnimplementedServiceServer -// for forward compatibility. +// for forward compatibility type ServiceServer interface { GetTokenAuthInfo(context.Context, *TokenRequest) (*TokenResponse, error) RenewToken(context.Context, *TokenRequest) (*StatusResponse, error) @@ -300,7 +274,7 @@ type ServiceServer interface { FinishSession(context.Context, *SessionFinishRequest) (*SessionFinishResp, error) UploadReplayFile(context.Context, *ReplayRequest) (*ReplayResponse, error) UploadCommand(context.Context, *CommandRequest) (*CommandResponse, error) - DispatchTask(grpc.BidiStreamingServer[FinishedTaskRequest, TaskResponse]) error + DispatchTask(Service_DispatchTaskServer) error ScanRemainReplays(context.Context, *RemainReplayRequest) (*RemainReplayResponse, error) CreateCommandTicket(context.Context, *CommandConfirmRequest) (*CommandConfirmResponse, error) CheckOrCreateAssetLoginTicket(context.Context, *AssetLoginTicketRequest) (*AssetLoginTicketResponse, error) @@ -318,12 +292,9 @@ type ServiceServer interface { mustEmbedUnimplementedServiceServer() } -// UnimplementedServiceServer must be embedded to have -// forward compatible implementations. -// -// NOTE: this should be embedded by value instead of pointer to avoid a nil -// pointer dereference when methods are called. -type UnimplementedServiceServer struct{} +// UnimplementedServiceServer must be embedded to have forward compatible implementations. +type UnimplementedServiceServer struct { +} func (UnimplementedServiceServer) GetTokenAuthInfo(context.Context, *TokenRequest) (*TokenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTokenAuthInfo not implemented") @@ -343,7 +314,7 @@ func (UnimplementedServiceServer) UploadReplayFile(context.Context, *ReplayReque func (UnimplementedServiceServer) UploadCommand(context.Context, *CommandRequest) (*CommandResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UploadCommand not implemented") } -func (UnimplementedServiceServer) DispatchTask(grpc.BidiStreamingServer[FinishedTaskRequest, TaskResponse]) error { +func (UnimplementedServiceServer) DispatchTask(Service_DispatchTaskServer) error { return status.Errorf(codes.Unimplemented, "method DispatchTask not implemented") } func (UnimplementedServiceServer) ScanRemainReplays(context.Context, *RemainReplayRequest) (*RemainReplayResponse, error) { @@ -389,7 +360,6 @@ func (UnimplementedServiceServer) FaceRecognitionCallback(context.Context, *Face return nil, status.Errorf(codes.Unimplemented, "method FaceRecognitionCallback not implemented") } func (UnimplementedServiceServer) mustEmbedUnimplementedServiceServer() {} -func (UnimplementedServiceServer) testEmbeddedByValue() {} // UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServiceServer will @@ -399,13 +369,6 @@ type UnsafeServiceServer interface { } func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer) { - // If the following call pancis, it indicates UnimplementedServiceServer was - // embedded by pointer and is nil. This will cause panics if an - // unimplemented method is ever invoked, so we test this at initialization - // time to prevent it from happening at runtime later due to I/O. - if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { - t.testEmbeddedByValue() - } s.RegisterService(&Service_ServiceDesc, srv) } @@ -419,7 +382,7 @@ func _Service_GetTokenAuthInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_GetTokenAuthInfo_FullMethodName, + FullMethod: "/message.Service/GetTokenAuthInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetTokenAuthInfo(ctx, req.(*TokenRequest)) @@ -437,7 +400,7 @@ func _Service_RenewToken_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_RenewToken_FullMethodName, + FullMethod: "/message.Service/RenewToken", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).RenewToken(ctx, req.(*TokenRequest)) @@ -455,7 +418,7 @@ func _Service_CreateSession_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CreateSession_FullMethodName, + FullMethod: "/message.Service/CreateSession", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CreateSession(ctx, req.(*SessionCreateRequest)) @@ -473,7 +436,7 @@ func _Service_FinishSession_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_FinishSession_FullMethodName, + FullMethod: "/message.Service/FinishSession", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).FinishSession(ctx, req.(*SessionFinishRequest)) @@ -491,7 +454,7 @@ func _Service_UploadReplayFile_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_UploadReplayFile_FullMethodName, + FullMethod: "/message.Service/UploadReplayFile", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).UploadReplayFile(ctx, req.(*ReplayRequest)) @@ -509,7 +472,7 @@ func _Service_UploadCommand_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_UploadCommand_FullMethodName, + FullMethod: "/message.Service/UploadCommand", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).UploadCommand(ctx, req.(*CommandRequest)) @@ -518,11 +481,30 @@ func _Service_UploadCommand_Handler(srv interface{}, ctx context.Context, dec fu } func _Service_DispatchTask_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ServiceServer).DispatchTask(&grpc.GenericServerStream[FinishedTaskRequest, TaskResponse]{ServerStream: stream}) + return srv.(ServiceServer).DispatchTask(&serviceDispatchTaskServer{stream}) +} + +type Service_DispatchTaskServer interface { + Send(*TaskResponse) error + Recv() (*FinishedTaskRequest, error) + grpc.ServerStream +} + +type serviceDispatchTaskServer struct { + grpc.ServerStream } -// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. -type Service_DispatchTaskServer = grpc.BidiStreamingServer[FinishedTaskRequest, TaskResponse] +func (x *serviceDispatchTaskServer) Send(m *TaskResponse) error { + return x.ServerStream.SendMsg(m) +} + +func (x *serviceDispatchTaskServer) Recv() (*FinishedTaskRequest, error) { + m := new(FinishedTaskRequest) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} func _Service_ScanRemainReplays_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RemainReplayRequest) @@ -534,7 +516,7 @@ func _Service_ScanRemainReplays_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_ScanRemainReplays_FullMethodName, + FullMethod: "/message.Service/ScanRemainReplays", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).ScanRemainReplays(ctx, req.(*RemainReplayRequest)) @@ -552,7 +534,7 @@ func _Service_CreateCommandTicket_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CreateCommandTicket_FullMethodName, + FullMethod: "/message.Service/CreateCommandTicket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CreateCommandTicket(ctx, req.(*CommandConfirmRequest)) @@ -570,7 +552,7 @@ func _Service_CheckOrCreateAssetLoginTicket_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CheckOrCreateAssetLoginTicket_FullMethodName, + FullMethod: "/message.Service/CheckOrCreateAssetLoginTicket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CheckOrCreateAssetLoginTicket(ctx, req.(*AssetLoginTicketRequest)) @@ -588,7 +570,7 @@ func _Service_CheckTicketState_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CheckTicketState_FullMethodName, + FullMethod: "/message.Service/CheckTicketState", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CheckTicketState(ctx, req.(*TicketRequest)) @@ -606,7 +588,7 @@ func _Service_CancelTicket_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CancelTicket_FullMethodName, + FullMethod: "/message.Service/CancelTicket", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CancelTicket(ctx, req.(*TicketRequest)) @@ -624,7 +606,7 @@ func _Service_CreateForward_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CreateForward_FullMethodName, + FullMethod: "/message.Service/CreateForward", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CreateForward(ctx, req.(*ForwardRequest)) @@ -642,7 +624,7 @@ func _Service_DeleteForward_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_DeleteForward_FullMethodName, + FullMethod: "/message.Service/DeleteForward", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).DeleteForward(ctx, req.(*ForwardDeleteRequest)) @@ -660,7 +642,7 @@ func _Service_GetPublicSetting_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_GetPublicSetting_FullMethodName, + FullMethod: "/message.Service/GetPublicSetting", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetPublicSetting(ctx, req.(*Empty)) @@ -678,7 +660,7 @@ func _Service_GetListenPorts_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_GetListenPorts_FullMethodName, + FullMethod: "/message.Service/GetListenPorts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetListenPorts(ctx, req.(*Empty)) @@ -696,7 +678,7 @@ func _Service_GetPortInfo_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_GetPortInfo_FullMethodName, + FullMethod: "/message.Service/GetPortInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).GetPortInfo(ctx, req.(*PortInfoRequest)) @@ -714,7 +696,7 @@ func _Service_HandlePortFailure_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_HandlePortFailure_FullMethodName, + FullMethod: "/message.Service/HandlePortFailure", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).HandlePortFailure(ctx, req.(*PortFailureRequest)) @@ -732,7 +714,7 @@ func _Service_CheckUserByCookies_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_CheckUserByCookies_FullMethodName, + FullMethod: "/message.Service/CheckUserByCookies", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).CheckUserByCookies(ctx, req.(*CookiesRequest)) @@ -750,7 +732,7 @@ func _Service_RecordSessionLifecycleLog_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_RecordSessionLifecycleLog_FullMethodName, + FullMethod: "/message.Service/RecordSessionLifecycleLog", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).RecordSessionLifecycleLog(ctx, req.(*SessionLifecycleLogRequest)) @@ -768,7 +750,7 @@ func _Service_FaceRecognitionCallback_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Service_FaceRecognitionCallback_FullMethodName, + FullMethod: "/message.Service/FaceRecognitionCallback", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ServiceServer).FaceRecognitionCallback(ctx, req.(*FaceRecognitionCallbackRequest)) diff --git a/protobuf-java/org/jumpserver/wisp/Common.java b/protobuf-java/org/jumpserver/wisp/Common.java index b31d955..9a5f423 100644 --- a/protobuf-java/org/jumpserver/wisp/Common.java +++ b/protobuf-java/org/jumpserver/wisp/Common.java @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE // source: common.proto -// Protobuf Java Version: 4.28.0 +// Protobuf Java Version: 4.26.1 package org.jumpserver.wisp; @@ -11,8 +10,8 @@ private Common() {} com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Common.class.getName()); } @@ -57,8 +56,8 @@ public enum TaskAction com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TaskAction.class.getName()); } @@ -205,8 +204,8 @@ public enum RiskLevel com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", RiskLevel.class.getName()); } @@ -398,8 +397,8 @@ public static final class User extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", User.class.getName()); } @@ -1501,8 +1500,8 @@ public static final class Account extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Account.class.getName()); } @@ -2624,8 +2623,8 @@ public static final class LabelValue extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", LabelValue.class.getName()); } @@ -3357,8 +3356,8 @@ public static final class Asset extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Asset.class.getName()); } @@ -3548,8 +3547,8 @@ public static final class Specific extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Specific.class.getName()); } @@ -7107,8 +7106,8 @@ public static final class Protocol extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Protocol.class.getName()); } @@ -7827,8 +7826,8 @@ public static final class Gateway extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Gateway.class.getName()); } @@ -9237,8 +9236,8 @@ public static final class Permission extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Permission.class.getName()); } @@ -10005,8 +10004,8 @@ public static final class CommandACL extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandACL.class.getName()); } @@ -10070,8 +10069,8 @@ public enum Action com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Action.class.getName()); } @@ -11439,8 +11438,8 @@ public static final class CommandGroup extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandGroup.class.getName()); } @@ -12554,8 +12553,8 @@ public static final class ExpireInfo extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ExpireInfo.class.getName()); } @@ -13132,8 +13131,8 @@ public static final class Session extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Session.class.getName()); } @@ -13197,8 +13196,8 @@ public enum LoginFrom com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", LoginFrom.class.getName()); } @@ -15316,8 +15315,8 @@ public static final class TokenStatus extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TokenStatus.class.getName()); } @@ -16091,8 +16090,8 @@ public static final class TerminalTask extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TerminalTask.class.getName()); } @@ -17461,8 +17460,8 @@ public static final class TokenAuthInfo extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TokenAuthInfo.class.getName()); } @@ -20182,8 +20181,8 @@ public static final class Platform extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Platform.class.getName()); } @@ -21566,8 +21565,8 @@ public static final class PlatformProtocol extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PlatformProtocol.class.getName()); } @@ -22487,8 +22486,8 @@ public static final class ComponentSetting extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ComponentSetting.class.getName()); } @@ -23011,8 +23010,8 @@ public static final class Forward extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Forward.class.getName()); } @@ -23758,6 +23757,18 @@ public interface PublicSettingOrBuilder extends */ com.google.protobuf.ByteString getGptModelBytes(); + + /** + * string license_content = 7; + * @return The licenseContent. + */ + java.lang.String getLicenseContent(); + /** + * string license_content = 7; + * @return The bytes for licenseContent. + */ + com.google.protobuf.ByteString + getLicenseContentBytes(); } /** * Protobuf type {@code message.PublicSetting} @@ -23771,8 +23782,8 @@ public static final class PublicSetting extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PublicSetting.class.getName()); } @@ -23785,6 +23796,7 @@ private PublicSetting() { gptApiKey_ = ""; gptProxy_ = ""; gptModel_ = ""; + licenseContent_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor @@ -23978,6 +23990,45 @@ public java.lang.String getGptModel() { } } + public static final int LICENSE_CONTENT_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object licenseContent_ = ""; + /** + * string license_content = 7; + * @return The licenseContent. + */ + @java.lang.Override + public java.lang.String getLicenseContent() { + java.lang.Object ref = licenseContent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseContent_ = s; + return s; + } + } + /** + * string license_content = 7; + * @return The bytes for licenseContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLicenseContentBytes() { + java.lang.Object ref = licenseContent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + licenseContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -24010,6 +24061,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptModel_)) { com.google.protobuf.GeneratedMessage.writeString(output, 6, gptModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseContent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, licenseContent_); + } getUnknownFields().writeTo(output); } @@ -24039,6 +24093,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptModel_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, gptModel_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseContent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, licenseContent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -24066,6 +24123,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getGptProxy())) return false; if (!getGptModel() .equals(other.getGptModel())) return false; + if (!getLicenseContent() + .equals(other.getLicenseContent())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -24091,6 +24150,8 @@ public int hashCode() { hash = (53 * hash) + getGptProxy().hashCode(); hash = (37 * hash) + GPT_MODEL_FIELD_NUMBER; hash = (53 * hash) + getGptModel().hashCode(); + hash = (37 * hash) + LICENSE_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getLicenseContent().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -24228,6 +24289,7 @@ public Builder clear() { gptApiKey_ = ""; gptProxy_ = ""; gptModel_ = ""; + licenseContent_ = ""; return this; } @@ -24279,6 +24341,9 @@ private void buildPartial0(org.jumpserver.wisp.Common.PublicSetting result) { if (((from_bitField0_ & 0x00000020) != 0)) { result.gptModel_ = gptModel_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.licenseContent_ = licenseContent_; + } } @java.lang.Override @@ -24319,6 +24384,11 @@ public Builder mergeFrom(org.jumpserver.wisp.Common.PublicSetting other) { bitField0_ |= 0x00000020; onChanged(); } + if (!other.getLicenseContent().isEmpty()) { + licenseContent_ = other.licenseContent_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -24375,6 +24445,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: { + licenseContent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -24744,6 +24819,78 @@ public Builder setGptModelBytes( return this; } + private java.lang.Object licenseContent_ = ""; + /** + * string license_content = 7; + * @return The licenseContent. + */ + public java.lang.String getLicenseContent() { + java.lang.Object ref = licenseContent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseContent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string license_content = 7; + * @return The bytes for licenseContent. + */ + public com.google.protobuf.ByteString + getLicenseContentBytes() { + java.lang.Object ref = licenseContent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + licenseContent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string license_content = 7; + * @param value The licenseContent to set. + * @return This builder for chaining. + */ + public Builder setLicenseContent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + licenseContent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string license_content = 7; + * @return This builder for chaining. + */ + public Builder clearLicenseContent() { + licenseContent_ = getDefaultInstance().getLicenseContent(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string license_content = 7; + * @param value The bytes for licenseContent to set. + * @return This builder for chaining. + */ + public Builder setLicenseContentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + licenseContent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:message.PublicSetting) } @@ -24835,8 +24982,8 @@ public static final class Cookie extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Cookie.class.getName()); } @@ -25504,8 +25651,8 @@ public static final class LifecycleLogData extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", LifecycleLogData.class.getName()); } @@ -25596,8 +25743,8 @@ public enum event_type com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", event_type.class.getName()); } @@ -26626,29 +26773,29 @@ public org.jumpserver.wisp.Common.LifecycleLogData getDefaultInstanceForType() { "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"C\n\020ComponentS" + "etting\022\025\n\rmax_idle_time\030\001 \001(\005\022\030\n\020max_ses" + "sion_time\030\002 \001(\005\"1\n\007Forward\022\n\n\002id\030\001 \001(\t\022\014" + - "\n\004Host\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\"\216\001\n\rPublicSet" + + "\n\004Host\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\"\247\001\n\rPublicSet" + "ting\022\025\n\rxpack_enabled\030\001 \001(\010\022\025\n\rvalid_lic" + "ense\030\002 \001(\010\022\024\n\014gpt_base_url\030\003 \001(\t\022\023\n\013gpt_" + "api_key\030\004 \001(\t\022\021\n\tgpt_proxy\030\005 \001(\t\022\021\n\tgpt_" + - "model\030\006 \001(\t\"%\n\006Cookie\022\014\n\004name\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t\"\250\003\n\020LifecycleLogData\0223\n\005event" + - "\030\001 \001(\0162$.message.LifecycleLogData.event_" + - "type\022\016\n\006reason\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\"\300\002\n\ne" + - "vent_type\022\027\n\023AssetConnectSuccess\020\000\022\030\n\024As" + - "setConnectFinished\020\001\022\023\n\017CreateShareLink\020" + - "\002\022\023\n\017UserJoinSession\020\003\022\024\n\020UserLeaveSessi" + - "on\020\004\022\024\n\020AdminJoinMonitor\020\005\022\024\n\020AdminExitM" + - "onitor\020\006\022\026\n\022ReplayConvertStart\020\007\022\030\n\024Repl" + - "ayConvertSuccess\020\010\022\030\n\024ReplayConvertFailu" + - "re\020\t\022\025\n\021ReplayUploadStart\020\n\022\027\n\023ReplayUpl" + - "oadSuccess\020\013\022\027\n\023ReplayUploadFailure\020\014*k\n" + - "\nTaskAction\022\017\n\013KillSession\020\000\022\017\n\013LockSess" + - "ion\020\001\022\021\n\rUnlockSession\020\002\022\024\n\020TokenPermExp" + - "ired\020\003\022\022\n\016TokenPermValid\020\004*f\n\tRiskLevel\022" + - "\n\n\006Normal\020\000\022\013\n\007Warning\020\001\022\n\n\006Reject\020\002\022\020\n\014" + - "ReviewReject\020\003\022\020\n\014ReviewAccept\020\004\022\020\n\014Revi" + - "ewCancel\020\005B \n\023org.jumpserver.wispZ\t/prot" + - "obufb\006proto3" + "model\030\006 \001(\t\022\027\n\017license_content\030\007 \001(\t\"%\n\006" + + "Cookie\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\250\003\n\020" + + "LifecycleLogData\0223\n\005event\030\001 \001(\0162$.messag" + + "e.LifecycleLogData.event_type\022\016\n\006reason\030" + + "\002 \001(\t\022\014\n\004user\030\003 \001(\t\"\300\002\n\nevent_type\022\027\n\023As" + + "setConnectSuccess\020\000\022\030\n\024AssetConnectFinis" + + "hed\020\001\022\023\n\017CreateShareLink\020\002\022\023\n\017UserJoinSe" + + "ssion\020\003\022\024\n\020UserLeaveSession\020\004\022\024\n\020AdminJo" + + "inMonitor\020\005\022\024\n\020AdminExitMonitor\020\006\022\026\n\022Rep" + + "layConvertStart\020\007\022\030\n\024ReplayConvertSucces" + + "s\020\010\022\030\n\024ReplayConvertFailure\020\t\022\025\n\021ReplayU" + + "ploadStart\020\n\022\027\n\023ReplayUploadSuccess\020\013\022\027\n" + + "\023ReplayUploadFailure\020\014*k\n\nTaskAction\022\017\n\013" + + "KillSession\020\000\022\017\n\013LockSession\020\001\022\021\n\rUnlock" + + "Session\020\002\022\024\n\020TokenPermExpired\020\003\022\022\n\016Token" + + "PermValid\020\004*f\n\tRiskLevel\022\n\n\006Normal\020\000\022\013\n\007" + + "Warning\020\001\022\n\n\006Reject\020\002\022\020\n\014ReviewReject\020\003\022" + + "\020\n\014ReviewAccept\020\004\022\020\n\014ReviewCancel\020\005B \n\023o" + + "rg.jumpserver.wispZ\t/protobufb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -26779,7 +26926,7 @@ public org.jumpserver.wisp.Common.LifecycleLogData getDefaultInstanceForType() { internal_static_message_PublicSetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_message_PublicSetting_descriptor, - new java.lang.String[] { "XpackEnabled", "ValidLicense", "GptBaseUrl", "GptApiKey", "GptProxy", "GptModel", }); + new java.lang.String[] { "XpackEnabled", "ValidLicense", "GptBaseUrl", "GptApiKey", "GptProxy", "GptModel", "LicenseContent", }); internal_static_message_Cookie_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_message_Cookie_fieldAccessorTable = new diff --git a/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java b/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java index 54979bd..6fe8860 100644 --- a/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java +++ b/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java @@ -1,7 +1,6 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE // source: service.proto -// Protobuf Java Version: 4.28.0 +// Protobuf Java Version: 4.26.1 package org.jumpserver.wisp; @@ -11,8 +10,8 @@ private ServiceOuterClass() {} com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ServiceOuterClass.class.getName()); } @@ -83,8 +82,8 @@ public static final class FaceRecognitionCallbackRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", FaceRecognitionCallbackRequest.class.getName()); } @@ -935,8 +934,8 @@ public static final class FaceRecognitionCallbackResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", FaceRecognitionCallbackResponse.class.getName()); } @@ -1526,8 +1525,8 @@ public static final class AssetLoginTicketRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", AssetLoginTicketRequest.class.getName()); } @@ -2344,8 +2343,8 @@ public static final class AssetLoginTicketResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", AssetLoginTicketResponse.class.getName()); } @@ -3305,8 +3304,8 @@ public static final class Status extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Status.class.getName()); } @@ -3882,8 +3881,8 @@ public static final class TokenRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TokenRequest.class.getName()); } @@ -4410,8 +4409,8 @@ public static final class TokenResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TokenResponse.class.getName()); } @@ -5165,8 +5164,8 @@ public static final class SessionCreateRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", SessionCreateRequest.class.getName()); } @@ -5750,8 +5749,8 @@ public static final class SessionCreateResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", SessionCreateResponse.class.getName()); } @@ -6526,8 +6525,8 @@ public static final class SessionFinishRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", SessionFinishRequest.class.getName()); } @@ -7309,8 +7308,8 @@ public static final class SessionFinishResp extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", SessionFinishResp.class.getName()); } @@ -7888,8 +7887,8 @@ public static final class ReplayRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ReplayRequest.class.getName()); } @@ -8537,8 +8536,8 @@ public static final class ReplayResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ReplayResponse.class.getName()); } @@ -9217,8 +9216,8 @@ public static final class CommandRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandRequest.class.getName()); } @@ -10979,8 +10978,8 @@ public static final class CommandResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandResponse.class.getName()); } @@ -11546,8 +11545,8 @@ public static final class FinishedTaskRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", FinishedTaskRequest.class.getName()); } @@ -12059,8 +12058,8 @@ public static final class TaskResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TaskResponse.class.getName()); } @@ -12626,8 +12625,8 @@ public static final class RemainReplayRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", RemainReplayRequest.class.getName()); } @@ -13214,8 +13213,8 @@ public static final class RemainReplayResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", RemainReplayResponse.class.getName()); } @@ -14351,8 +14350,8 @@ public static final class StatusResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", StatusResponse.class.getName()); } @@ -14942,8 +14941,8 @@ public static final class CommandConfirmRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandConfirmRequest.class.getName()); } @@ -15736,8 +15735,8 @@ public static final class ReqInfo extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ReqInfo.class.getName()); } @@ -16400,8 +16399,8 @@ public static final class CommandConfirmResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CommandConfirmResponse.class.getName()); } @@ -17207,8 +17206,8 @@ public static final class TicketInfo extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TicketInfo.class.getName()); } @@ -18287,8 +18286,8 @@ public static final class TicketRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TicketRequest.class.getName()); } @@ -18872,8 +18871,8 @@ public static final class TicketStateResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TicketStateResponse.class.getName()); } @@ -19635,8 +19634,8 @@ public static final class TicketState extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", TicketState.class.getName()); } @@ -19690,8 +19689,8 @@ public enum State com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", State.class.getName()); } @@ -20404,8 +20403,8 @@ public static final class ForwardRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ForwardRequest.class.getName()); } @@ -21334,8 +21333,8 @@ public static final class ForwardDeleteRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ForwardDeleteRequest.class.getName()); } @@ -21877,8 +21876,8 @@ public static final class ForwardResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ForwardResponse.class.getName()); } @@ -22800,8 +22799,8 @@ public static final class PublicSettingResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PublicSettingResponse.class.getName()); } @@ -23540,8 +23539,8 @@ public static final class Empty extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", Empty.class.getName()); } @@ -23927,8 +23926,8 @@ public static final class ListenPortResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", ListenPortResponse.class.getName()); } @@ -24663,8 +24662,8 @@ public static final class PortInfoRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PortInfoRequest.class.getName()); } @@ -25121,8 +25120,8 @@ public static final class PortInfoResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PortInfoResponse.class.getName()); } @@ -25900,8 +25899,8 @@ public static final class PortInfo extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PortInfo.class.getName()); } @@ -26828,8 +26827,8 @@ public static final class PortFailure extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PortFailure.class.getName()); } @@ -27416,8 +27415,8 @@ public static final class PortFailureRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", PortFailureRequest.class.getName()); } @@ -28156,8 +28155,8 @@ public static final class CookiesRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", CookiesRequest.class.getName()); } @@ -28902,8 +28901,8 @@ public static final class UserResponse extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", UserResponse.class.getName()); } @@ -29689,8 +29688,8 @@ public static final class SessionLifecycleLogRequest extends com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", SessionLifecycleLogRequest.class.getName()); } @@ -29782,8 +29781,8 @@ public enum EventType com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, - /* minor= */ 28, - /* patch= */ 0, + /* minor= */ 26, + /* patch= */ 1, /* suffix= */ "", EventType.class.getName()); } diff --git a/protobuf-rs/message.rs b/protobuf-rs/message.rs index 9d71314..06ddced 100644 --- a/protobuf-rs/message.rs +++ b/protobuf-rs/message.rs @@ -370,6 +370,8 @@ pub struct PublicSetting { pub gpt_proxy: ::prost::alloc::string::String, #[prost(string, tag="6")] pub gpt_model: ::prost::alloc::string::String, + #[prost(string, tag="7")] + pub license_content: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct Cookie { diff --git a/protos/common.proto b/protos/common.proto index 14e721d..3002406 100644 --- a/protos/common.proto +++ b/protos/common.proto @@ -210,6 +210,7 @@ message PublicSetting { string gpt_api_key = 4; string gpt_proxy = 5; string gpt_model = 6; + string license_content = 7; } message Cookie {