378 lines
13 KiB
Go
378 lines
13 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_http_auth_policy.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 CreateHTTPAuthPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
ParamsJSON []byte `protobuf:"bytes,3,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) Reset() {
|
|
*x = CreateHTTPAuthPolicyRequest{}
|
|
mi := &file_service_http_auth_policy_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPAuthPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_auth_policy_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 CreateHTTPAuthPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPAuthPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_auth_policy_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyRequest) GetParamsJSON() []byte {
|
|
if x != nil {
|
|
return x.ParamsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateHTTPAuthPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpAuthPolicyId int64 `protobuf:"varint,1,opt,name=httpAuthPolicyId,proto3" json:"httpAuthPolicyId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyResponse) Reset() {
|
|
*x = CreateHTTPAuthPolicyResponse{}
|
|
mi := &file_service_http_auth_policy_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateHTTPAuthPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateHTTPAuthPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_auth_policy_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 CreateHTTPAuthPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateHTTPAuthPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_auth_policy_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateHTTPAuthPolicyResponse) GetHttpAuthPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpAuthPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改策略
|
|
type UpdateHTTPAuthPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpAuthPolicyId int64 `protobuf:"varint,1,opt,name=httpAuthPolicyId,proto3" json:"httpAuthPolicyId,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
ParamsJSON []byte `protobuf:"bytes,3,opt,name=paramsJSON,proto3" json:"paramsJSON,omitempty"`
|
|
IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) Reset() {
|
|
*x = UpdateHTTPAuthPolicyRequest{}
|
|
mi := &file_service_http_auth_policy_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateHTTPAuthPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_auth_policy_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 UpdateHTTPAuthPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateHTTPAuthPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_auth_policy_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) GetHttpAuthPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpAuthPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) GetParamsJSON() []byte {
|
|
if x != nil {
|
|
return x.ParamsJSON
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateHTTPAuthPolicyRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 查找策略信息
|
|
type FindEnabledHTTPAuthPolicyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpAuthPolicyId int64 `protobuf:"varint,1,opt,name=httpAuthPolicyId,proto3" json:"httpAuthPolicyId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyRequest) Reset() {
|
|
*x = FindEnabledHTTPAuthPolicyRequest{}
|
|
mi := &file_service_http_auth_policy_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPAuthPolicyRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_auth_policy_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 FindEnabledHTTPAuthPolicyRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPAuthPolicyRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_http_auth_policy_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyRequest) GetHttpAuthPolicyId() int64 {
|
|
if x != nil {
|
|
return x.HttpAuthPolicyId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledHTTPAuthPolicyResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
HttpAuthPolicy *HTTPAuthPolicy `protobuf:"bytes,1,opt,name=httpAuthPolicy,proto3" json:"httpAuthPolicy,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyResponse) Reset() {
|
|
*x = FindEnabledHTTPAuthPolicyResponse{}
|
|
mi := &file_service_http_auth_policy_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledHTTPAuthPolicyResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_http_auth_policy_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 FindEnabledHTTPAuthPolicyResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledHTTPAuthPolicyResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_http_auth_policy_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *FindEnabledHTTPAuthPolicyResponse) GetHttpAuthPolicy() *HTTPAuthPolicy {
|
|
if x != nil {
|
|
return x.HttpAuthPolicy
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_http_auth_policy_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_http_auth_policy_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1eservice_http_auth_policy.proto\x12\x02pb\x1a#models/model_http_auth_policy.proto\x1a\x19models/rpc_messages.proto\"e\n" +
|
|
"\x1bCreateHTTPAuthPolicyRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12\x1e\n" +
|
|
"\n" +
|
|
"paramsJSON\x18\x03 \x01(\fR\n" +
|
|
"paramsJSON\"J\n" +
|
|
"\x1cCreateHTTPAuthPolicyResponse\x12*\n" +
|
|
"\x10httpAuthPolicyId\x18\x01 \x01(\x03R\x10httpAuthPolicyId\"\x91\x01\n" +
|
|
"\x1bUpdateHTTPAuthPolicyRequest\x12*\n" +
|
|
"\x10httpAuthPolicyId\x18\x01 \x01(\x03R\x10httpAuthPolicyId\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1e\n" +
|
|
"\n" +
|
|
"paramsJSON\x18\x03 \x01(\fR\n" +
|
|
"paramsJSON\x12\x12\n" +
|
|
"\x04isOn\x18\x04 \x01(\bR\x04isOn\"N\n" +
|
|
" FindEnabledHTTPAuthPolicyRequest\x12*\n" +
|
|
"\x10httpAuthPolicyId\x18\x01 \x01(\x03R\x10httpAuthPolicyId\"_\n" +
|
|
"!FindEnabledHTTPAuthPolicyResponse\x12:\n" +
|
|
"\x0ehttpAuthPolicy\x18\x01 \x01(\v2\x12.pb.HTTPAuthPolicyR\x0ehttpAuthPolicy2\xa5\x02\n" +
|
|
"\x15HTTPAuthPolicyService\x12Y\n" +
|
|
"\x14createHTTPAuthPolicy\x12\x1f.pb.CreateHTTPAuthPolicyRequest\x1a .pb.CreateHTTPAuthPolicyResponse\x12G\n" +
|
|
"\x14updateHTTPAuthPolicy\x12\x1f.pb.UpdateHTTPAuthPolicyRequest\x1a\x0e.pb.RPCSuccess\x12h\n" +
|
|
"\x19findEnabledHTTPAuthPolicy\x12$.pb.FindEnabledHTTPAuthPolicyRequest\x1a%.pb.FindEnabledHTTPAuthPolicyResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_http_auth_policy_proto_rawDescOnce sync.Once
|
|
file_service_http_auth_policy_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_http_auth_policy_proto_rawDescGZIP() []byte {
|
|
file_service_http_auth_policy_proto_rawDescOnce.Do(func() {
|
|
file_service_http_auth_policy_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_auth_policy_proto_rawDesc), len(file_service_http_auth_policy_proto_rawDesc)))
|
|
})
|
|
return file_service_http_auth_policy_proto_rawDescData
|
|
}
|
|
|
|
var file_service_http_auth_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_service_http_auth_policy_proto_goTypes = []any{
|
|
(*CreateHTTPAuthPolicyRequest)(nil), // 0: pb.CreateHTTPAuthPolicyRequest
|
|
(*CreateHTTPAuthPolicyResponse)(nil), // 1: pb.CreateHTTPAuthPolicyResponse
|
|
(*UpdateHTTPAuthPolicyRequest)(nil), // 2: pb.UpdateHTTPAuthPolicyRequest
|
|
(*FindEnabledHTTPAuthPolicyRequest)(nil), // 3: pb.FindEnabledHTTPAuthPolicyRequest
|
|
(*FindEnabledHTTPAuthPolicyResponse)(nil), // 4: pb.FindEnabledHTTPAuthPolicyResponse
|
|
(*HTTPAuthPolicy)(nil), // 5: pb.HTTPAuthPolicy
|
|
(*RPCSuccess)(nil), // 6: pb.RPCSuccess
|
|
}
|
|
var file_service_http_auth_policy_proto_depIdxs = []int32{
|
|
5, // 0: pb.FindEnabledHTTPAuthPolicyResponse.httpAuthPolicy:type_name -> pb.HTTPAuthPolicy
|
|
0, // 1: pb.HTTPAuthPolicyService.createHTTPAuthPolicy:input_type -> pb.CreateHTTPAuthPolicyRequest
|
|
2, // 2: pb.HTTPAuthPolicyService.updateHTTPAuthPolicy:input_type -> pb.UpdateHTTPAuthPolicyRequest
|
|
3, // 3: pb.HTTPAuthPolicyService.findEnabledHTTPAuthPolicy:input_type -> pb.FindEnabledHTTPAuthPolicyRequest
|
|
1, // 4: pb.HTTPAuthPolicyService.createHTTPAuthPolicy:output_type -> pb.CreateHTTPAuthPolicyResponse
|
|
6, // 5: pb.HTTPAuthPolicyService.updateHTTPAuthPolicy:output_type -> pb.RPCSuccess
|
|
4, // 6: pb.HTTPAuthPolicyService.findEnabledHTTPAuthPolicy:output_type -> pb.FindEnabledHTTPAuthPolicyResponse
|
|
4, // [4:7] is the sub-list for method output_type
|
|
1, // [1:4] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_http_auth_policy_proto_init() }
|
|
func file_service_http_auth_policy_proto_init() {
|
|
if File_service_http_auth_policy_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_http_auth_policy_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_http_auth_policy_proto_rawDesc), len(file_service_http_auth_policy_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_http_auth_policy_proto_goTypes,
|
|
DependencyIndexes: file_service_http_auth_policy_proto_depIdxs,
|
|
MessageInfos: file_service_http_auth_policy_proto_msgTypes,
|
|
}.Build()
|
|
File_service_http_auth_policy_proto = out.File
|
|
file_service_http_auth_policy_proto_goTypes = nil
|
|
file_service_http_auth_policy_proto_depIdxs = nil
|
|
}
|