Files
waf-platform/EdgeCommon/pkg/rpc/pb/service_http_gzip.pb.go
2026-03-22 17:37:40 +08:00

401 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_gzip.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)
)
// 创建Gzip配置
type CreateHTTPGzipRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
MinLength *SizeCapacity `protobuf:"bytes,2,opt,name=minLength,proto3" json:"minLength,omitempty"`
MaxLength *SizeCapacity `protobuf:"bytes,3,opt,name=maxLength,proto3" json:"maxLength,omitempty"`
CondsJSON []byte `protobuf:"bytes,4,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateHTTPGzipRequest) Reset() {
*x = CreateHTTPGzipRequest{}
mi := &file_service_http_gzip_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateHTTPGzipRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPGzipRequest) ProtoMessage() {}
func (x *CreateHTTPGzipRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_gzip_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 CreateHTTPGzipRequest.ProtoReflect.Descriptor instead.
func (*CreateHTTPGzipRequest) Descriptor() ([]byte, []int) {
return file_service_http_gzip_proto_rawDescGZIP(), []int{0}
}
func (x *CreateHTTPGzipRequest) GetLevel() int32 {
if x != nil {
return x.Level
}
return 0
}
func (x *CreateHTTPGzipRequest) GetMinLength() *SizeCapacity {
if x != nil {
return x.MinLength
}
return nil
}
func (x *CreateHTTPGzipRequest) GetMaxLength() *SizeCapacity {
if x != nil {
return x.MaxLength
}
return nil
}
func (x *CreateHTTPGzipRequest) GetCondsJSON() []byte {
if x != nil {
return x.CondsJSON
}
return nil
}
type CreateHTTPGzipResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CreateHTTPGzipResponse) Reset() {
*x = CreateHTTPGzipResponse{}
mi := &file_service_http_gzip_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CreateHTTPGzipResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateHTTPGzipResponse) ProtoMessage() {}
func (x *CreateHTTPGzipResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_http_gzip_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 CreateHTTPGzipResponse.ProtoReflect.Descriptor instead.
func (*CreateHTTPGzipResponse) Descriptor() ([]byte, []int) {
return file_service_http_gzip_proto_rawDescGZIP(), []int{1}
}
func (x *CreateHTTPGzipResponse) GetHttpGzipId() int64 {
if x != nil {
return x.HttpGzipId
}
return 0
}
// 查找Gzip配置
type FindEnabledGzipConfigRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindEnabledGzipConfigRequest) Reset() {
*x = FindEnabledGzipConfigRequest{}
mi := &file_service_http_gzip_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindEnabledGzipConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledGzipConfigRequest) ProtoMessage() {}
func (x *FindEnabledGzipConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_gzip_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 FindEnabledGzipConfigRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledGzipConfigRequest) Descriptor() ([]byte, []int) {
return file_service_http_gzip_proto_rawDescGZIP(), []int{2}
}
func (x *FindEnabledGzipConfigRequest) GetHttpGzipId() int64 {
if x != nil {
return x.HttpGzipId
}
return 0
}
type FindEnabledGzipConfigResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
HttpGzipJSON []byte `protobuf:"bytes,1,opt,name=httpGzipJSON,proto3" json:"httpGzipJSON,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FindEnabledGzipConfigResponse) Reset() {
*x = FindEnabledGzipConfigResponse{}
mi := &file_service_http_gzip_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FindEnabledGzipConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindEnabledGzipConfigResponse) ProtoMessage() {}
func (x *FindEnabledGzipConfigResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_http_gzip_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 FindEnabledGzipConfigResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledGzipConfigResponse) Descriptor() ([]byte, []int) {
return file_service_http_gzip_proto_rawDescGZIP(), []int{3}
}
func (x *FindEnabledGzipConfigResponse) GetHttpGzipJSON() []byte {
if x != nil {
return x.HttpGzipJSON
}
return nil
}
// 修改Gzip配置
type UpdateHTTPGzipRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
HttpGzipId int64 `protobuf:"varint,1,opt,name=httpGzipId,proto3" json:"httpGzipId,omitempty"`
Level int32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
MinLength *SizeCapacity `protobuf:"bytes,3,opt,name=minLength,proto3" json:"minLength,omitempty"`
MaxLength *SizeCapacity `protobuf:"bytes,4,opt,name=maxLength,proto3" json:"maxLength,omitempty"`
CondsJSON []byte `protobuf:"bytes,5,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateHTTPGzipRequest) Reset() {
*x = UpdateHTTPGzipRequest{}
mi := &file_service_http_gzip_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateHTTPGzipRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateHTTPGzipRequest) ProtoMessage() {}
func (x *UpdateHTTPGzipRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_http_gzip_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 UpdateHTTPGzipRequest.ProtoReflect.Descriptor instead.
func (*UpdateHTTPGzipRequest) Descriptor() ([]byte, []int) {
return file_service_http_gzip_proto_rawDescGZIP(), []int{4}
}
func (x *UpdateHTTPGzipRequest) GetHttpGzipId() int64 {
if x != nil {
return x.HttpGzipId
}
return 0
}
func (x *UpdateHTTPGzipRequest) GetLevel() int32 {
if x != nil {
return x.Level
}
return 0
}
func (x *UpdateHTTPGzipRequest) GetMinLength() *SizeCapacity {
if x != nil {
return x.MinLength
}
return nil
}
func (x *UpdateHTTPGzipRequest) GetMaxLength() *SizeCapacity {
if x != nil {
return x.MaxLength
}
return nil
}
func (x *UpdateHTTPGzipRequest) GetCondsJSON() []byte {
if x != nil {
return x.CondsJSON
}
return nil
}
var File_service_http_gzip_proto protoreflect.FileDescriptor
const file_service_http_gzip_proto_rawDesc = "" +
"\n" +
"\x17service_http_gzip.proto\x12\x02pb\x1a models/model_size_capacity.proto\x1a\x19models/rpc_messages.proto\"\xab\x01\n" +
"\x15CreateHTTPGzipRequest\x12\x14\n" +
"\x05level\x18\x01 \x01(\x05R\x05level\x12.\n" +
"\tminLength\x18\x02 \x01(\v2\x10.pb.SizeCapacityR\tminLength\x12.\n" +
"\tmaxLength\x18\x03 \x01(\v2\x10.pb.SizeCapacityR\tmaxLength\x12\x1c\n" +
"\tcondsJSON\x18\x04 \x01(\fR\tcondsJSON\"8\n" +
"\x16CreateHTTPGzipResponse\x12\x1e\n" +
"\n" +
"httpGzipId\x18\x01 \x01(\x03R\n" +
"httpGzipId\">\n" +
"\x1cFindEnabledGzipConfigRequest\x12\x1e\n" +
"\n" +
"httpGzipId\x18\x01 \x01(\x03R\n" +
"httpGzipId\"C\n" +
"\x1dFindEnabledGzipConfigResponse\x12\"\n" +
"\fhttpGzipJSON\x18\x01 \x01(\fR\fhttpGzipJSON\"\xcb\x01\n" +
"\x15UpdateHTTPGzipRequest\x12\x1e\n" +
"\n" +
"httpGzipId\x18\x01 \x01(\x03R\n" +
"httpGzipId\x12\x14\n" +
"\x05level\x18\x02 \x01(\x05R\x05level\x12.\n" +
"\tminLength\x18\x03 \x01(\v2\x10.pb.SizeCapacityR\tminLength\x12.\n" +
"\tmaxLength\x18\x04 \x01(\v2\x10.pb.SizeCapacityR\tmaxLength\x12\x1c\n" +
"\tcondsJSON\x18\x05 \x01(\fR\tcondsJSON2\xf9\x01\n" +
"\x0fHTTPGzipService\x12G\n" +
"\x0ecreateHTTPGzip\x12\x19.pb.CreateHTTPGzipRequest\x1a\x1a.pb.CreateHTTPGzipResponse\x12`\n" +
"\x19findEnabledHTTPGzipConfig\x12 .pb.FindEnabledGzipConfigRequest\x1a!.pb.FindEnabledGzipConfigResponse\x12;\n" +
"\x0eupdateHTTPGzip\x12\x19.pb.UpdateHTTPGzipRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
var (
file_service_http_gzip_proto_rawDescOnce sync.Once
file_service_http_gzip_proto_rawDescData []byte
)
func file_service_http_gzip_proto_rawDescGZIP() []byte {
file_service_http_gzip_proto_rawDescOnce.Do(func() {
file_service_http_gzip_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_gzip_proto_rawDesc), len(file_service_http_gzip_proto_rawDesc)))
})
return file_service_http_gzip_proto_rawDescData
}
var file_service_http_gzip_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_service_http_gzip_proto_goTypes = []any{
(*CreateHTTPGzipRequest)(nil), // 0: pb.CreateHTTPGzipRequest
(*CreateHTTPGzipResponse)(nil), // 1: pb.CreateHTTPGzipResponse
(*FindEnabledGzipConfigRequest)(nil), // 2: pb.FindEnabledGzipConfigRequest
(*FindEnabledGzipConfigResponse)(nil), // 3: pb.FindEnabledGzipConfigResponse
(*UpdateHTTPGzipRequest)(nil), // 4: pb.UpdateHTTPGzipRequest
(*SizeCapacity)(nil), // 5: pb.SizeCapacity
(*RPCSuccess)(nil), // 6: pb.RPCSuccess
}
var file_service_http_gzip_proto_depIdxs = []int32{
5, // 0: pb.CreateHTTPGzipRequest.minLength:type_name -> pb.SizeCapacity
5, // 1: pb.CreateHTTPGzipRequest.maxLength:type_name -> pb.SizeCapacity
5, // 2: pb.UpdateHTTPGzipRequest.minLength:type_name -> pb.SizeCapacity
5, // 3: pb.UpdateHTTPGzipRequest.maxLength:type_name -> pb.SizeCapacity
0, // 4: pb.HTTPGzipService.createHTTPGzip:input_type -> pb.CreateHTTPGzipRequest
2, // 5: pb.HTTPGzipService.findEnabledHTTPGzipConfig:input_type -> pb.FindEnabledGzipConfigRequest
4, // 6: pb.HTTPGzipService.updateHTTPGzip:input_type -> pb.UpdateHTTPGzipRequest
1, // 7: pb.HTTPGzipService.createHTTPGzip:output_type -> pb.CreateHTTPGzipResponse
3, // 8: pb.HTTPGzipService.findEnabledHTTPGzipConfig:output_type -> pb.FindEnabledGzipConfigResponse
6, // 9: pb.HTTPGzipService.updateHTTPGzip:output_type -> pb.RPCSuccess
7, // [7:10] is the sub-list for method output_type
4, // [4:7] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_service_http_gzip_proto_init() }
func file_service_http_gzip_proto_init() {
if File_service_http_gzip_proto != nil {
return
}
file_models_model_size_capacity_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_gzip_proto_rawDesc), len(file_service_http_gzip_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_http_gzip_proto_goTypes,
DependencyIndexes: file_service_http_gzip_proto_depIdxs,
MessageInfos: file_service_http_gzip_proto_msgTypes,
}.Build()
File_service_http_gzip_proto = out.File
file_service_http_gzip_proto_goTypes = nil
file_service_http_gzip_proto_depIdxs = nil
}