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

208 lines
7.0 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.19.6
// source: models/model_ad_package.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 ADPackage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"`
AdNetworkId int64 `protobuf:"varint,3,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"`
ProtectionBandwidthSize int32 `protobuf:"varint,4,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"`
ProtectionBandwidthUnit string `protobuf:"bytes,5,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"`
ServerBandwidthSize int32 `protobuf:"varint,6,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"`
ServerBandwidthUnit string `protobuf:"bytes,7,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"`
AdNetwork *ADNetwork `protobuf:"bytes,30,opt,name=adNetwork,proto3" json:"adNetwork,omitempty"`
Summary string `protobuf:"bytes,31,opt,name=summary,proto3" json:"summary,omitempty"` // 概述
CountIdleADPackageInstances int64 `protobuf:"varint,32,opt,name=countIdleADPackageInstances,proto3" json:"countIdleADPackageInstances,omitempty"` // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ADPackage) Reset() {
*x = ADPackage{}
mi := &file_models_model_ad_package_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ADPackage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ADPackage) ProtoMessage() {}
func (x *ADPackage) ProtoReflect() protoreflect.Message {
mi := &file_models_model_ad_package_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 ADPackage.ProtoReflect.Descriptor instead.
func (*ADPackage) Descriptor() ([]byte, []int) {
return file_models_model_ad_package_proto_rawDescGZIP(), []int{0}
}
func (x *ADPackage) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *ADPackage) GetIsOn() bool {
if x != nil {
return x.IsOn
}
return false
}
func (x *ADPackage) GetAdNetworkId() int64 {
if x != nil {
return x.AdNetworkId
}
return 0
}
func (x *ADPackage) GetProtectionBandwidthSize() int32 {
if x != nil {
return x.ProtectionBandwidthSize
}
return 0
}
func (x *ADPackage) GetProtectionBandwidthUnit() string {
if x != nil {
return x.ProtectionBandwidthUnit
}
return ""
}
func (x *ADPackage) GetServerBandwidthSize() int32 {
if x != nil {
return x.ServerBandwidthSize
}
return 0
}
func (x *ADPackage) GetServerBandwidthUnit() string {
if x != nil {
return x.ServerBandwidthUnit
}
return ""
}
func (x *ADPackage) GetAdNetwork() *ADNetwork {
if x != nil {
return x.AdNetwork
}
return nil
}
func (x *ADPackage) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
func (x *ADPackage) GetCountIdleADPackageInstances() int64 {
if x != nil {
return x.CountIdleADPackageInstances
}
return 0
}
var File_models_model_ad_package_proto protoreflect.FileDescriptor
const file_models_model_ad_package_proto_rawDesc = "" +
"\n" +
"\x1dmodels/model_ad_package.proto\x12\x02pb\x1a\x1dmodels/model_ad_network.proto\"\xb2\x03\n" +
"\tADPackage\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04isOn\x18\x02 \x01(\bR\x04isOn\x12 \n" +
"\vadNetworkId\x18\x03 \x01(\x03R\vadNetworkId\x128\n" +
"\x17protectionBandwidthSize\x18\x04 \x01(\x05R\x17protectionBandwidthSize\x128\n" +
"\x17protectionBandwidthUnit\x18\x05 \x01(\tR\x17protectionBandwidthUnit\x120\n" +
"\x13serverBandwidthSize\x18\x06 \x01(\x05R\x13serverBandwidthSize\x120\n" +
"\x13serverBandwidthUnit\x18\a \x01(\tR\x13serverBandwidthUnit\x12+\n" +
"\tadNetwork\x18\x1e \x01(\v2\r.pb.ADNetworkR\tadNetwork\x12\x18\n" +
"\asummary\x18\x1f \x01(\tR\asummary\x12@\n" +
"\x1bcountIdleADPackageInstances\x18 \x01(\x03R\x1bcountIdleADPackageInstancesB\x06Z\x04./pbb\x06proto3"
var (
file_models_model_ad_package_proto_rawDescOnce sync.Once
file_models_model_ad_package_proto_rawDescData []byte
)
func file_models_model_ad_package_proto_rawDescGZIP() []byte {
file_models_model_ad_package_proto_rawDescOnce.Do(func() {
file_models_model_ad_package_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_models_model_ad_package_proto_rawDesc), len(file_models_model_ad_package_proto_rawDesc)))
})
return file_models_model_ad_package_proto_rawDescData
}
var file_models_model_ad_package_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_models_model_ad_package_proto_goTypes = []any{
(*ADPackage)(nil), // 0: pb.ADPackage
(*ADNetwork)(nil), // 1: pb.ADNetwork
}
var file_models_model_ad_package_proto_depIdxs = []int32{
1, // 0: pb.ADPackage.adNetwork:type_name -> pb.ADNetwork
1, // [1:1] is the sub-list for method output_type
1, // [1:1] 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_models_model_ad_package_proto_init() }
func file_models_model_ad_package_proto_init() {
if File_models_model_ad_package_proto != nil {
return
}
file_models_model_ad_network_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_models_model_ad_package_proto_rawDesc), len(file_models_model_ad_package_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_models_model_ad_package_proto_goTypes,
DependencyIndexes: file_models_model_ad_package_proto_depIdxs,
MessageInfos: file_models_model_ad_package_proto_msgTypes,
}.Build()
File_models_model_ad_package_proto = out.File
file_models_model_ad_package_proto_goTypes = nil
file_models_model_ad_package_proto_depIdxs = nil
}