// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_http_page.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) ) // 创建Page type CreateHTTPPageRequest struct { state protoimpl.MessageState `protogen:"open.v1"` StatusList []string `protobuf:"bytes,1,rep,name=statusList,proto3" json:"statusList,omitempty"` // 状态码列表 BodyType string `protobuf:"bytes,5,opt,name=bodyType,proto3" json:"bodyType,omitempty"` // 页面类型:html|url|redirectURL Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // 读取或者跳转的URL Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // HTML内容 NewStatus int32 `protobuf:"varint,3,opt,name=newStatus,proto3" json:"newStatus,omitempty"` // 新的状态码 ExceptURLPatternsJSON []byte `protobuf:"bytes,6,opt,name=exceptURLPatternsJSON,proto3" json:"exceptURLPatternsJSON,omitempty"` // 例外URL列表 OnlyURLPatternsJSON []byte `protobuf:"bytes,7,opt,name=onlyURLPatternsJSON,proto3" json:"onlyURLPatternsJSON,omitempty"` // 限制URL列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPPageRequest) Reset() { *x = CreateHTTPPageRequest{} mi := &file_service_http_page_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPPageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPPageRequest) ProtoMessage() {} func (x *CreateHTTPPageRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_page_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 CreateHTTPPageRequest.ProtoReflect.Descriptor instead. func (*CreateHTTPPageRequest) Descriptor() ([]byte, []int) { return file_service_http_page_proto_rawDescGZIP(), []int{0} } func (x *CreateHTTPPageRequest) GetStatusList() []string { if x != nil { return x.StatusList } return nil } func (x *CreateHTTPPageRequest) GetBodyType() string { if x != nil { return x.BodyType } return "" } func (x *CreateHTTPPageRequest) GetUrl() string { if x != nil { return x.Url } return "" } func (x *CreateHTTPPageRequest) GetBody() string { if x != nil { return x.Body } return "" } func (x *CreateHTTPPageRequest) GetNewStatus() int32 { if x != nil { return x.NewStatus } return 0 } func (x *CreateHTTPPageRequest) GetExceptURLPatternsJSON() []byte { if x != nil { return x.ExceptURLPatternsJSON } return nil } func (x *CreateHTTPPageRequest) GetOnlyURLPatternsJSON() []byte { if x != nil { return x.OnlyURLPatternsJSON } return nil } type CreateHTTPPageResponse struct { state protoimpl.MessageState `protogen:"open.v1"` HttpPageId int64 `protobuf:"varint,1,opt,name=httpPageId,proto3" json:"httpPageId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPPageResponse) Reset() { *x = CreateHTTPPageResponse{} mi := &file_service_http_page_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPPageResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPPageResponse) ProtoMessage() {} func (x *CreateHTTPPageResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_page_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 CreateHTTPPageResponse.ProtoReflect.Descriptor instead. func (*CreateHTTPPageResponse) Descriptor() ([]byte, []int) { return file_service_http_page_proto_rawDescGZIP(), []int{1} } func (x *CreateHTTPPageResponse) GetHttpPageId() int64 { if x != nil { return x.HttpPageId } return 0 } // 修改Page type UpdateHTTPPageRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpPageId int64 `protobuf:"varint,1,opt,name=httpPageId,proto3" json:"httpPageId,omitempty"` StatusList []string `protobuf:"bytes,2,rep,name=statusList,proto3" json:"statusList,omitempty"` BodyType string `protobuf:"bytes,6,opt,name=bodyType,proto3" json:"bodyType,omitempty"` // 页面类型:html|url|redirectURL Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Body string `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` NewStatus int32 `protobuf:"varint,4,opt,name=newStatus,proto3" json:"newStatus,omitempty"` ExceptURLPatternsJSON []byte `protobuf:"bytes,7,opt,name=exceptURLPatternsJSON,proto3" json:"exceptURLPatternsJSON,omitempty"` // 例外URL列表 OnlyURLPatternsJSON []byte `protobuf:"bytes,8,opt,name=onlyURLPatternsJSON,proto3" json:"onlyURLPatternsJSON,omitempty"` // 限制URL列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateHTTPPageRequest) Reset() { *x = UpdateHTTPPageRequest{} mi := &file_service_http_page_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateHTTPPageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateHTTPPageRequest) ProtoMessage() {} func (x *UpdateHTTPPageRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_page_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 UpdateHTTPPageRequest.ProtoReflect.Descriptor instead. func (*UpdateHTTPPageRequest) Descriptor() ([]byte, []int) { return file_service_http_page_proto_rawDescGZIP(), []int{2} } func (x *UpdateHTTPPageRequest) GetHttpPageId() int64 { if x != nil { return x.HttpPageId } return 0 } func (x *UpdateHTTPPageRequest) GetStatusList() []string { if x != nil { return x.StatusList } return nil } func (x *UpdateHTTPPageRequest) GetBodyType() string { if x != nil { return x.BodyType } return "" } func (x *UpdateHTTPPageRequest) GetUrl() string { if x != nil { return x.Url } return "" } func (x *UpdateHTTPPageRequest) GetBody() string { if x != nil { return x.Body } return "" } func (x *UpdateHTTPPageRequest) GetNewStatus() int32 { if x != nil { return x.NewStatus } return 0 } func (x *UpdateHTTPPageRequest) GetExceptURLPatternsJSON() []byte { if x != nil { return x.ExceptURLPatternsJSON } return nil } func (x *UpdateHTTPPageRequest) GetOnlyURLPatternsJSON() []byte { if x != nil { return x.OnlyURLPatternsJSON } return nil } // 查找单个Page配置 type FindEnabledHTTPPageConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HttpPageId int64 `protobuf:"varint,1,opt,name=httpPageId,proto3" json:"httpPageId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPPageConfigRequest) Reset() { *x = FindEnabledHTTPPageConfigRequest{} mi := &file_service_http_page_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPPageConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPPageConfigRequest) ProtoMessage() {} func (x *FindEnabledHTTPPageConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_page_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 FindEnabledHTTPPageConfigRequest.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPPageConfigRequest) Descriptor() ([]byte, []int) { return file_service_http_page_proto_rawDescGZIP(), []int{3} } func (x *FindEnabledHTTPPageConfigRequest) GetHttpPageId() int64 { if x != nil { return x.HttpPageId } return 0 } type FindEnabledHTTPPageConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` PageJSON []byte `protobuf:"bytes,1,opt,name=pageJSON,proto3" json:"pageJSON,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindEnabledHTTPPageConfigResponse) Reset() { *x = FindEnabledHTTPPageConfigResponse{} mi := &file_service_http_page_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindEnabledHTTPPageConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindEnabledHTTPPageConfigResponse) ProtoMessage() {} func (x *FindEnabledHTTPPageConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_page_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 FindEnabledHTTPPageConfigResponse.ProtoReflect.Descriptor instead. func (*FindEnabledHTTPPageConfigResponse) Descriptor() ([]byte, []int) { return file_service_http_page_proto_rawDescGZIP(), []int{4} } func (x *FindEnabledHTTPPageConfigResponse) GetPageJSON() []byte { if x != nil { return x.PageJSON } return nil } var File_service_http_page_proto protoreflect.FileDescriptor const file_service_http_page_proto_rawDesc = "" + "\n" + "\x17service_http_page.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\"\xff\x01\n" + "\x15CreateHTTPPageRequest\x12\x1e\n" + "\n" + "statusList\x18\x01 \x03(\tR\n" + "statusList\x12\x1a\n" + "\bbodyType\x18\x05 \x01(\tR\bbodyType\x12\x10\n" + "\x03url\x18\x02 \x01(\tR\x03url\x12\x12\n" + "\x04body\x18\x04 \x01(\tR\x04body\x12\x1c\n" + "\tnewStatus\x18\x03 \x01(\x05R\tnewStatus\x124\n" + "\x15exceptURLPatternsJSON\x18\x06 \x01(\fR\x15exceptURLPatternsJSON\x120\n" + "\x13onlyURLPatternsJSON\x18\a \x01(\fR\x13onlyURLPatternsJSON\"8\n" + "\x16CreateHTTPPageResponse\x12\x1e\n" + "\n" + "httpPageId\x18\x01 \x01(\x03R\n" + "httpPageId\"\x9f\x02\n" + "\x15UpdateHTTPPageRequest\x12\x1e\n" + "\n" + "httpPageId\x18\x01 \x01(\x03R\n" + "httpPageId\x12\x1e\n" + "\n" + "statusList\x18\x02 \x03(\tR\n" + "statusList\x12\x1a\n" + "\bbodyType\x18\x06 \x01(\tR\bbodyType\x12\x10\n" + "\x03url\x18\x03 \x01(\tR\x03url\x12\x12\n" + "\x04body\x18\x05 \x01(\tR\x04body\x12\x1c\n" + "\tnewStatus\x18\x04 \x01(\x05R\tnewStatus\x124\n" + "\x15exceptURLPatternsJSON\x18\a \x01(\fR\x15exceptURLPatternsJSON\x120\n" + "\x13onlyURLPatternsJSON\x18\b \x01(\fR\x13onlyURLPatternsJSON\"B\n" + " FindEnabledHTTPPageConfigRequest\x12\x1e\n" + "\n" + "httpPageId\x18\x01 \x01(\x03R\n" + "httpPageId\"?\n" + "!FindEnabledHTTPPageConfigResponse\x12\x1a\n" + "\bpageJSON\x18\x01 \x01(\fR\bpageJSON2\x81\x02\n" + "\x0fHTTPPageService\x12G\n" + "\x0ecreateHTTPPage\x12\x19.pb.CreateHTTPPageRequest\x1a\x1a.pb.CreateHTTPPageResponse\x12;\n" + "\x0eupdateHTTPPage\x12\x19.pb.UpdateHTTPPageRequest\x1a\x0e.pb.RPCSuccess\x12h\n" + "\x19findEnabledHTTPPageConfig\x12$.pb.FindEnabledHTTPPageConfigRequest\x1a%.pb.FindEnabledHTTPPageConfigResponseB\x06Z\x04./pbb\x06proto3" var ( file_service_http_page_proto_rawDescOnce sync.Once file_service_http_page_proto_rawDescData []byte ) func file_service_http_page_proto_rawDescGZIP() []byte { file_service_http_page_proto_rawDescOnce.Do(func() { file_service_http_page_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_page_proto_rawDesc), len(file_service_http_page_proto_rawDesc))) }) return file_service_http_page_proto_rawDescData } var file_service_http_page_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_service_http_page_proto_goTypes = []any{ (*CreateHTTPPageRequest)(nil), // 0: pb.CreateHTTPPageRequest (*CreateHTTPPageResponse)(nil), // 1: pb.CreateHTTPPageResponse (*UpdateHTTPPageRequest)(nil), // 2: pb.UpdateHTTPPageRequest (*FindEnabledHTTPPageConfigRequest)(nil), // 3: pb.FindEnabledHTTPPageConfigRequest (*FindEnabledHTTPPageConfigResponse)(nil), // 4: pb.FindEnabledHTTPPageConfigResponse (*RPCSuccess)(nil), // 5: pb.RPCSuccess } var file_service_http_page_proto_depIdxs = []int32{ 0, // 0: pb.HTTPPageService.createHTTPPage:input_type -> pb.CreateHTTPPageRequest 2, // 1: pb.HTTPPageService.updateHTTPPage:input_type -> pb.UpdateHTTPPageRequest 3, // 2: pb.HTTPPageService.findEnabledHTTPPageConfig:input_type -> pb.FindEnabledHTTPPageConfigRequest 1, // 3: pb.HTTPPageService.createHTTPPage:output_type -> pb.CreateHTTPPageResponse 5, // 4: pb.HTTPPageService.updateHTTPPage:output_type -> pb.RPCSuccess 4, // 5: pb.HTTPPageService.findEnabledHTTPPageConfig:output_type -> pb.FindEnabledHTTPPageConfigResponse 3, // [3:6] is the sub-list for method output_type 0, // [0:3] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_service_http_page_proto_init() } func file_service_http_page_proto_init() { if File_service_http_page_proto != nil { return } 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_http_page_proto_rawDesc), len(file_service_http_page_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_http_page_proto_goTypes, DependencyIndexes: file_service_http_page_proto_depIdxs, MessageInfos: file_service_http_page_proto_msgTypes, }.Build() File_service_http_page_proto = out.File file_service_http_page_proto_goTypes = nil file_service_http_page_proto_depIdxs = nil }