854 lines
27 KiB
Go
854 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_script.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 添加脚本
|
|
type CreateScriptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Filename string `protobuf:"bytes,2,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateScriptRequest) Reset() {
|
|
*x = CreateScriptRequest{}
|
|
mi := &file_service_script_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateScriptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateScriptRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateScriptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateScriptRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateScriptRequest) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateScriptRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateScriptResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScriptId int64 `protobuf:"varint,1,opt,name=scriptId,proto3" json:"scriptId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateScriptResponse) Reset() {
|
|
*x = CreateScriptResponse{}
|
|
mi := &file_service_script_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateScriptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateScriptResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateScriptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateScriptResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateScriptResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateScriptResponse) GetScriptId() int64 {
|
|
if x != nil {
|
|
return x.ScriptId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 删除脚本
|
|
type DeleteScriptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScriptId int64 `protobuf:"varint,1,opt,name=scriptId,proto3" json:"scriptId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteScriptRequest) Reset() {
|
|
*x = DeleteScriptRequest{}
|
|
mi := &file_service_script_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteScriptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteScriptRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteScriptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *DeleteScriptRequest) GetScriptId() int64 {
|
|
if x != nil {
|
|
return x.ScriptId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 计算脚本数量
|
|
type CountAllEnabledScriptsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllEnabledScriptsRequest) Reset() {
|
|
*x = CountAllEnabledScriptsRequest{}
|
|
mi := &file_service_script_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAllEnabledScriptsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAllEnabledScriptsRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAllEnabledScriptsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAllEnabledScriptsRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAllEnabledScriptsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CountAllEnabledScriptsRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 列出单页脚本
|
|
type ListEnabledScriptsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledScriptsRequest) Reset() {
|
|
*x = ListEnabledScriptsRequest{}
|
|
mi := &file_service_script_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledScriptsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledScriptsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledScriptsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledScriptsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledScriptsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListEnabledScriptsRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledScriptsRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledScriptsRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListEnabledScriptsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Scripts []*Script `protobuf:"bytes,1,rep,name=scripts,proto3" json:"scripts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledScriptsResponse) Reset() {
|
|
*x = ListEnabledScriptsResponse{}
|
|
mi := &file_service_script_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledScriptsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledScriptsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledScriptsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledScriptsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledScriptsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListEnabledScriptsResponse) GetScripts() []*Script {
|
|
if x != nil {
|
|
return x.Scripts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 发布脚本
|
|
type PublishScriptsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PublishScriptsRequest) Reset() {
|
|
*x = PublishScriptsRequest{}
|
|
mi := &file_service_script_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PublishScriptsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PublishScriptsRequest) ProtoMessage() {}
|
|
|
|
func (x *PublishScriptsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PublishScriptsRequest.ProtoReflect.Descriptor instead.
|
|
func (*PublishScriptsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *PublishScriptsRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 检查脚本是否需要有更新
|
|
type CheckScriptUpdatesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesRequest) Reset() {
|
|
*x = CheckScriptUpdatesRequest{}
|
|
mi := &file_service_script_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckScriptUpdatesRequest) ProtoMessage() {}
|
|
|
|
func (x *CheckScriptUpdatesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckScriptUpdatesRequest.ProtoReflect.Descriptor instead.
|
|
func (*CheckScriptUpdatesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckScriptUpdatesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HasUpdates bool `protobuf:"varint,1,opt,name=hasUpdates,proto3" json:"hasUpdates,omitempty"`
|
|
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesResponse) Reset() {
|
|
*x = CheckScriptUpdatesResponse{}
|
|
mi := &file_service_script_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CheckScriptUpdatesResponse) ProtoMessage() {}
|
|
|
|
func (x *CheckScriptUpdatesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CheckScriptUpdatesResponse.ProtoReflect.Descriptor instead.
|
|
func (*CheckScriptUpdatesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesResponse) GetHasUpdates() bool {
|
|
if x != nil {
|
|
return x.HasUpdates
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CheckScriptUpdatesResponse) GetVersion() int64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 查找单个脚本
|
|
type FindEnabledScriptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScriptId int64 `protobuf:"varint,1,opt,name=scriptId,proto3" json:"scriptId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledScriptRequest) Reset() {
|
|
*x = FindEnabledScriptRequest{}
|
|
mi := &file_service_script_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledScriptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledScriptRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledScriptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *FindEnabledScriptRequest) GetScriptId() int64 {
|
|
if x != nil {
|
|
return x.ScriptId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledScriptResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Script *Script `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledScriptResponse) Reset() {
|
|
*x = FindEnabledScriptResponse{}
|
|
mi := &file_service_script_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledScriptResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledScriptResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledScriptResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledScriptResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledScriptResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FindEnabledScriptResponse) GetScript() *Script {
|
|
if x != nil {
|
|
return x.Script
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改脚本
|
|
type UpdateScriptRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScriptId int64 `protobuf:"varint,1,opt,name=scriptId,proto3" json:"scriptId,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"`
|
|
Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"`
|
|
IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) Reset() {
|
|
*x = UpdateScriptRequest{}
|
|
mi := &file_service_script_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateScriptRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateScriptRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateScriptRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateScriptRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) GetScriptId() int64 {
|
|
if x != nil {
|
|
return x.ScriptId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) GetFilename() string {
|
|
if x != nil {
|
|
return x.Filename
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) GetCode() string {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateScriptRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 组合脚本配置
|
|
type ComposeScriptConfigsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ComposeScriptConfigsRequest) Reset() {
|
|
*x = ComposeScriptConfigsRequest{}
|
|
mi := &file_service_script_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ComposeScriptConfigsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ComposeScriptConfigsRequest) ProtoMessage() {}
|
|
|
|
func (x *ComposeScriptConfigsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ComposeScriptConfigsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ComposeScriptConfigsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
type ComposeScriptConfigsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScriptConfigsJSON []byte `protobuf:"bytes,1,opt,name=scriptConfigsJSON,proto3" json:"scriptConfigsJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ComposeScriptConfigsResponse) Reset() {
|
|
*x = ComposeScriptConfigsResponse{}
|
|
mi := &file_service_script_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ComposeScriptConfigsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ComposeScriptConfigsResponse) ProtoMessage() {}
|
|
|
|
func (x *ComposeScriptConfigsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_script_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ComposeScriptConfigsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ComposeScriptConfigsResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_script_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ComposeScriptConfigsResponse) GetScriptConfigsJSON() []byte {
|
|
if x != nil {
|
|
return x.ScriptConfigsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_script_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_script_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14service_script.proto\x12\x02pb\x1a\x19models/model_script.proto\x1a\x19models/rpc_messages.proto\"Y\n" +
|
|
"\x13CreateScriptRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bfilename\x18\x02 \x01(\tR\bfilename\x12\x12\n" +
|
|
"\x04code\x18\x03 \x01(\tR\x04code\"2\n" +
|
|
"\x14CreateScriptResponse\x12\x1a\n" +
|
|
"\bscriptId\x18\x01 \x01(\x03R\bscriptId\"1\n" +
|
|
"\x13DeleteScriptRequest\x12\x1a\n" +
|
|
"\bscriptId\x18\x01 \x01(\x03R\bscriptId\"7\n" +
|
|
"\x1dCountAllEnabledScriptsRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\"_\n" +
|
|
"\x19ListEnabledScriptsRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06offset\x18\x02 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x03 \x01(\x03R\x04size\"B\n" +
|
|
"\x1aListEnabledScriptsResponse\x12$\n" +
|
|
"\ascripts\x18\x01 \x03(\v2\n" +
|
|
".pb.ScriptR\ascripts\"/\n" +
|
|
"\x15PublishScriptsRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\"3\n" +
|
|
"\x19CheckScriptUpdatesRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\"V\n" +
|
|
"\x1aCheckScriptUpdatesResponse\x12\x1e\n" +
|
|
"\n" +
|
|
"hasUpdates\x18\x01 \x01(\bR\n" +
|
|
"hasUpdates\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x03R\aversion\"6\n" +
|
|
"\x18FindEnabledScriptRequest\x12\x1a\n" +
|
|
"\bscriptId\x18\x01 \x01(\x03R\bscriptId\"?\n" +
|
|
"\x19FindEnabledScriptResponse\x12\"\n" +
|
|
"\x06script\x18\x01 \x01(\v2\n" +
|
|
".pb.ScriptR\x06script\"\x89\x01\n" +
|
|
"\x13UpdateScriptRequest\x12\x1a\n" +
|
|
"\bscriptId\x18\x01 \x01(\x03R\bscriptId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
|
|
"\bfilename\x18\x03 \x01(\tR\bfilename\x12\x12\n" +
|
|
"\x04code\x18\x04 \x01(\tR\x04code\x12\x12\n" +
|
|
"\x04isOn\x18\x05 \x01(\bR\x04isOn\"\x1d\n" +
|
|
"\x1bComposeScriptConfigsRequest\"L\n" +
|
|
"\x1cComposeScriptConfigsResponse\x12,\n" +
|
|
"\x11scriptConfigsJSON\x18\x01 \x01(\fR\x11scriptConfigsJSON2\xab\x05\n" +
|
|
"\rScriptService\x12A\n" +
|
|
"\fcreateScript\x12\x17.pb.CreateScriptRequest\x1a\x18.pb.CreateScriptResponse\x127\n" +
|
|
"\fdeleteScript\x12\x17.pb.DeleteScriptRequest\x1a\x0e.pb.RPCSuccess\x12Q\n" +
|
|
"\x16countAllEnabledScripts\x12!.pb.CountAllEnabledScriptsRequest\x1a\x14.pb.RPCCountResponse\x12S\n" +
|
|
"\x12listEnabledScripts\x12\x1d.pb.ListEnabledScriptsRequest\x1a\x1e.pb.ListEnabledScriptsResponse\x12;\n" +
|
|
"\x0epublishScripts\x12\x19.pb.PublishScriptsRequest\x1a\x0e.pb.RPCSuccess\x12S\n" +
|
|
"\x12checkScriptUpdates\x12\x1d.pb.CheckScriptUpdatesRequest\x1a\x1e.pb.CheckScriptUpdatesResponse\x12P\n" +
|
|
"\x11findEnabledScript\x12\x1c.pb.FindEnabledScriptRequest\x1a\x1d.pb.FindEnabledScriptResponse\x127\n" +
|
|
"\fupdateScript\x12\x17.pb.UpdateScriptRequest\x1a\x0e.pb.RPCSuccess\x12Y\n" +
|
|
"\x14composeScriptConfigs\x12\x1f.pb.ComposeScriptConfigsRequest\x1a .pb.ComposeScriptConfigsResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_script_proto_rawDescOnce sync.Once
|
|
file_service_script_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_script_proto_rawDescGZIP() []byte {
|
|
file_service_script_proto_rawDescOnce.Do(func() {
|
|
file_service_script_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_script_proto_rawDesc), len(file_service_script_proto_rawDesc)))
|
|
})
|
|
return file_service_script_proto_rawDescData
|
|
}
|
|
|
|
var file_service_script_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_service_script_proto_goTypes = []any{
|
|
(*CreateScriptRequest)(nil), // 0: pb.CreateScriptRequest
|
|
(*CreateScriptResponse)(nil), // 1: pb.CreateScriptResponse
|
|
(*DeleteScriptRequest)(nil), // 2: pb.DeleteScriptRequest
|
|
(*CountAllEnabledScriptsRequest)(nil), // 3: pb.CountAllEnabledScriptsRequest
|
|
(*ListEnabledScriptsRequest)(nil), // 4: pb.ListEnabledScriptsRequest
|
|
(*ListEnabledScriptsResponse)(nil), // 5: pb.ListEnabledScriptsResponse
|
|
(*PublishScriptsRequest)(nil), // 6: pb.PublishScriptsRequest
|
|
(*CheckScriptUpdatesRequest)(nil), // 7: pb.CheckScriptUpdatesRequest
|
|
(*CheckScriptUpdatesResponse)(nil), // 8: pb.CheckScriptUpdatesResponse
|
|
(*FindEnabledScriptRequest)(nil), // 9: pb.FindEnabledScriptRequest
|
|
(*FindEnabledScriptResponse)(nil), // 10: pb.FindEnabledScriptResponse
|
|
(*UpdateScriptRequest)(nil), // 11: pb.UpdateScriptRequest
|
|
(*ComposeScriptConfigsRequest)(nil), // 12: pb.ComposeScriptConfigsRequest
|
|
(*ComposeScriptConfigsResponse)(nil), // 13: pb.ComposeScriptConfigsResponse
|
|
(*Script)(nil), // 14: pb.Script
|
|
(*RPCSuccess)(nil), // 15: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 16: pb.RPCCountResponse
|
|
}
|
|
var file_service_script_proto_depIdxs = []int32{
|
|
14, // 0: pb.ListEnabledScriptsResponse.scripts:type_name -> pb.Script
|
|
14, // 1: pb.FindEnabledScriptResponse.script:type_name -> pb.Script
|
|
0, // 2: pb.ScriptService.createScript:input_type -> pb.CreateScriptRequest
|
|
2, // 3: pb.ScriptService.deleteScript:input_type -> pb.DeleteScriptRequest
|
|
3, // 4: pb.ScriptService.countAllEnabledScripts:input_type -> pb.CountAllEnabledScriptsRequest
|
|
4, // 5: pb.ScriptService.listEnabledScripts:input_type -> pb.ListEnabledScriptsRequest
|
|
6, // 6: pb.ScriptService.publishScripts:input_type -> pb.PublishScriptsRequest
|
|
7, // 7: pb.ScriptService.checkScriptUpdates:input_type -> pb.CheckScriptUpdatesRequest
|
|
9, // 8: pb.ScriptService.findEnabledScript:input_type -> pb.FindEnabledScriptRequest
|
|
11, // 9: pb.ScriptService.updateScript:input_type -> pb.UpdateScriptRequest
|
|
12, // 10: pb.ScriptService.composeScriptConfigs:input_type -> pb.ComposeScriptConfigsRequest
|
|
1, // 11: pb.ScriptService.createScript:output_type -> pb.CreateScriptResponse
|
|
15, // 12: pb.ScriptService.deleteScript:output_type -> pb.RPCSuccess
|
|
16, // 13: pb.ScriptService.countAllEnabledScripts:output_type -> pb.RPCCountResponse
|
|
5, // 14: pb.ScriptService.listEnabledScripts:output_type -> pb.ListEnabledScriptsResponse
|
|
15, // 15: pb.ScriptService.publishScripts:output_type -> pb.RPCSuccess
|
|
8, // 16: pb.ScriptService.checkScriptUpdates:output_type -> pb.CheckScriptUpdatesResponse
|
|
10, // 17: pb.ScriptService.findEnabledScript:output_type -> pb.FindEnabledScriptResponse
|
|
15, // 18: pb.ScriptService.updateScript:output_type -> pb.RPCSuccess
|
|
13, // 19: pb.ScriptService.composeScriptConfigs:output_type -> pb.ComposeScriptConfigsResponse
|
|
11, // [11:20] is the sub-list for method output_type
|
|
2, // [2:11] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_script_proto_init() }
|
|
func file_service_script_proto_init() {
|
|
if File_service_script_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_script_proto_init()
|
|
file_models_rpc_messages_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_script_proto_rawDesc), len(file_service_script_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_script_proto_goTypes,
|
|
DependencyIndexes: file_service_script_proto_depIdxs,
|
|
MessageInfos: file_service_script_proto_msgTypes,
|
|
}.Build()
|
|
File_service_script_proto = out.File
|
|
file_service_script_proto_goTypes = nil
|
|
file_service_script_proto_depIdxs = nil
|
|
}
|