775 lines
26 KiB
Go
775 lines
26 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_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 CreateADPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"`
|
|
ProtectionBandwidthSize int32 `protobuf:"varint,2,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"`
|
|
ProtectionBandwidthUnit string `protobuf:"bytes,3,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"`
|
|
ServerBandwidthSize int32 `protobuf:"varint,4,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"`
|
|
ServerBandwidthUnit string `protobuf:"bytes,5,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) Reset() {
|
|
*x = CreateADPackageRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateADPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateADPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_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 CreateADPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateADPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) GetProtectionBandwidthSize() int32 {
|
|
if x != nil {
|
|
return x.ProtectionBandwidthSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) GetProtectionBandwidthUnit() string {
|
|
if x != nil {
|
|
return x.ProtectionBandwidthUnit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) GetServerBandwidthSize() int32 {
|
|
if x != nil {
|
|
return x.ServerBandwidthSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateADPackageRequest) GetServerBandwidthUnit() string {
|
|
if x != nil {
|
|
return x.ServerBandwidthUnit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateADPackageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateADPackageResponse) Reset() {
|
|
*x = CreateADPackageResponse{}
|
|
mi := &file_service_ad_package_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateADPackageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateADPackageResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateADPackageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 CreateADPackageResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateADPackageResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateADPackageResponse) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改高防产品
|
|
type UpdateADPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) Reset() {
|
|
*x = UpdateADPackageRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateADPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateADPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 UpdateADPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateADPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetProtectionBandwidthSize() int32 {
|
|
if x != nil {
|
|
return x.ProtectionBandwidthSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetProtectionBandwidthUnit() string {
|
|
if x != nil {
|
|
return x.ProtectionBandwidthUnit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetServerBandwidthSize() int32 {
|
|
if x != nil {
|
|
return x.ServerBandwidthSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateADPackageRequest) GetServerBandwidthUnit() string {
|
|
if x != nil {
|
|
return x.ServerBandwidthUnit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 查找单个高防产品
|
|
type FindADPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindADPackageRequest) Reset() {
|
|
*x = FindADPackageRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindADPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindADPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *FindADPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 FindADPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindADPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FindADPackageRequest) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindADPackageResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackage *ADPackage `protobuf:"bytes,1,opt,name=adPackage,proto3" json:"adPackage,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindADPackageResponse) Reset() {
|
|
*x = FindADPackageResponse{}
|
|
mi := &file_service_ad_package_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindADPackageResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindADPackageResponse) ProtoMessage() {}
|
|
|
|
func (x *FindADPackageResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 FindADPackageResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindADPackageResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *FindADPackageResponse) GetAdPackage() *ADPackage {
|
|
if x != nil {
|
|
return x.AdPackage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查询高防产品数量
|
|
type CountADPackagesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountADPackagesRequest) Reset() {
|
|
*x = CountADPackagesRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountADPackagesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountADPackagesRequest) ProtoMessage() {}
|
|
|
|
func (x *CountADPackagesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 CountADPackagesRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountADPackagesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *CountADPackagesRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 查询可用的产品数量
|
|
type CountAllIdleADPackages struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllIdleADPackages) Reset() {
|
|
*x = CountAllIdleADPackages{}
|
|
mi := &file_service_ad_package_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAllIdleADPackages) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAllIdleADPackages) ProtoMessage() {}
|
|
|
|
func (x *CountAllIdleADPackages) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 CountAllIdleADPackages.ProtoReflect.Descriptor instead.
|
|
func (*CountAllIdleADPackages) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
// 列出单页高防产品
|
|
type ListADPackagesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,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 *ListADPackagesRequest) Reset() {
|
|
*x = ListADPackagesRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListADPackagesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListADPackagesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListADPackagesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 ListADPackagesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListADPackagesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ListADPackagesRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListADPackagesRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListADPackagesRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListADPackagesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListADPackagesResponse) Reset() {
|
|
*x = ListADPackagesResponse{}
|
|
mi := &file_service_ad_package_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListADPackagesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListADPackagesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListADPackagesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 ListADPackagesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListADPackagesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListADPackagesResponse) GetAdPackages() []*ADPackage {
|
|
if x != nil {
|
|
return x.AdPackages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 列出所有可用的高防产品
|
|
type FindAllIdleADPackagesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllIdleADPackagesRequest) Reset() {
|
|
*x = FindAllIdleADPackagesRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllIdleADPackagesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllIdleADPackagesRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllIdleADPackagesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 FindAllIdleADPackagesRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllIdleADPackagesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
type FindAllIdleADPackagesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllIdleADPackagesResponse) Reset() {
|
|
*x = FindAllIdleADPackagesResponse{}
|
|
mi := &file_service_ad_package_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllIdleADPackagesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllIdleADPackagesResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllIdleADPackagesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 FindAllIdleADPackagesResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllIdleADPackagesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FindAllIdleADPackagesResponse) GetAdPackages() []*ADPackage {
|
|
if x != nil {
|
|
return x.AdPackages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 删除高防产品
|
|
type DeleteADPackageRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteADPackageRequest) Reset() {
|
|
*x = DeleteADPackageRequest{}
|
|
mi := &file_service_ad_package_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteADPackageRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteADPackageRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteADPackageRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_ad_package_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 DeleteADPackageRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteADPackageRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_ad_package_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteADPackageRequest) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_service_ad_package_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_ad_package_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x18service_ad_package.proto\x12\x02pb\x1a\x1dmodels/model_ad_package.proto\x1a\x19models/rpc_messages.proto\"\x92\x02\n" +
|
|
"\x16CreateADPackageRequest\x12 \n" +
|
|
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x128\n" +
|
|
"\x17protectionBandwidthSize\x18\x02 \x01(\x05R\x17protectionBandwidthSize\x128\n" +
|
|
"\x17protectionBandwidthUnit\x18\x03 \x01(\tR\x17protectionBandwidthUnit\x120\n" +
|
|
"\x13serverBandwidthSize\x18\x04 \x01(\x05R\x13serverBandwidthSize\x120\n" +
|
|
"\x13serverBandwidthUnit\x18\x05 \x01(\tR\x13serverBandwidthUnit\";\n" +
|
|
"\x17CreateADPackageResponse\x12 \n" +
|
|
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\"\xc8\x02\n" +
|
|
"\x16UpdateADPackageRequest\x12 \n" +
|
|
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\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\"8\n" +
|
|
"\x14FindADPackageRequest\x12 \n" +
|
|
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\"D\n" +
|
|
"\x15FindADPackageResponse\x12+\n" +
|
|
"\tadPackage\x18\x01 \x01(\v2\r.pb.ADPackageR\tadPackage\":\n" +
|
|
"\x16CountADPackagesRequest\x12 \n" +
|
|
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\"\x18\n" +
|
|
"\x16CountAllIdleADPackages\"e\n" +
|
|
"\x15ListADPackagesRequest\x12 \n" +
|
|
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x12\x16\n" +
|
|
"\x06offset\x18\x02 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x03 \x01(\x03R\x04size\"G\n" +
|
|
"\x16ListADPackagesResponse\x12-\n" +
|
|
"\n" +
|
|
"adPackages\x18\x01 \x03(\v2\r.pb.ADPackageR\n" +
|
|
"adPackages\"\x1e\n" +
|
|
"\x1cFindAllIdleADPackagesRequest\"N\n" +
|
|
"\x1dFindAllIdleADPackagesResponse\x12-\n" +
|
|
"\n" +
|
|
"adPackages\x18\x01 \x03(\v2\r.pb.ADPackageR\n" +
|
|
"adPackages\":\n" +
|
|
"\x16DeleteADPackageRequest\x12 \n" +
|
|
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId2\xda\x04\n" +
|
|
"\x10ADPackageService\x12J\n" +
|
|
"\x0fcreateADPackage\x12\x1a.pb.CreateADPackageRequest\x1a\x1b.pb.CreateADPackageResponse\x12=\n" +
|
|
"\x0fupdateADPackage\x12\x1a.pb.UpdateADPackageRequest\x1a\x0e.pb.RPCSuccess\x12D\n" +
|
|
"\rfindADPackage\x12\x18.pb.FindADPackageRequest\x1a\x19.pb.FindADPackageResponse\x12C\n" +
|
|
"\x0fcountADPackages\x12\x1a.pb.CountADPackagesRequest\x1a\x14.pb.RPCCountResponse\x12J\n" +
|
|
"\x16countAllIdleADPackages\x12\x1a.pb.CountAllIdleADPackages\x1a\x14.pb.RPCCountResponse\x12G\n" +
|
|
"\x0elistADPackages\x12\x19.pb.ListADPackagesRequest\x1a\x1a.pb.ListADPackagesResponse\x12\\\n" +
|
|
"\x15findAllIdleADPackages\x12 .pb.FindAllIdleADPackagesRequest\x1a!.pb.FindAllIdleADPackagesResponse\x12=\n" +
|
|
"\x0fdeleteADPackage\x12\x1a.pb.DeleteADPackageRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_ad_package_proto_rawDescOnce sync.Once
|
|
file_service_ad_package_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_ad_package_proto_rawDescGZIP() []byte {
|
|
file_service_ad_package_proto_rawDescOnce.Do(func() {
|
|
file_service_ad_package_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_ad_package_proto_rawDesc), len(file_service_ad_package_proto_rawDesc)))
|
|
})
|
|
return file_service_ad_package_proto_rawDescData
|
|
}
|
|
|
|
var file_service_ad_package_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_service_ad_package_proto_goTypes = []any{
|
|
(*CreateADPackageRequest)(nil), // 0: pb.CreateADPackageRequest
|
|
(*CreateADPackageResponse)(nil), // 1: pb.CreateADPackageResponse
|
|
(*UpdateADPackageRequest)(nil), // 2: pb.UpdateADPackageRequest
|
|
(*FindADPackageRequest)(nil), // 3: pb.FindADPackageRequest
|
|
(*FindADPackageResponse)(nil), // 4: pb.FindADPackageResponse
|
|
(*CountADPackagesRequest)(nil), // 5: pb.CountADPackagesRequest
|
|
(*CountAllIdleADPackages)(nil), // 6: pb.CountAllIdleADPackages
|
|
(*ListADPackagesRequest)(nil), // 7: pb.ListADPackagesRequest
|
|
(*ListADPackagesResponse)(nil), // 8: pb.ListADPackagesResponse
|
|
(*FindAllIdleADPackagesRequest)(nil), // 9: pb.FindAllIdleADPackagesRequest
|
|
(*FindAllIdleADPackagesResponse)(nil), // 10: pb.FindAllIdleADPackagesResponse
|
|
(*DeleteADPackageRequest)(nil), // 11: pb.DeleteADPackageRequest
|
|
(*ADPackage)(nil), // 12: pb.ADPackage
|
|
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 14: pb.RPCCountResponse
|
|
}
|
|
var file_service_ad_package_proto_depIdxs = []int32{
|
|
12, // 0: pb.FindADPackageResponse.adPackage:type_name -> pb.ADPackage
|
|
12, // 1: pb.ListADPackagesResponse.adPackages:type_name -> pb.ADPackage
|
|
12, // 2: pb.FindAllIdleADPackagesResponse.adPackages:type_name -> pb.ADPackage
|
|
0, // 3: pb.ADPackageService.createADPackage:input_type -> pb.CreateADPackageRequest
|
|
2, // 4: pb.ADPackageService.updateADPackage:input_type -> pb.UpdateADPackageRequest
|
|
3, // 5: pb.ADPackageService.findADPackage:input_type -> pb.FindADPackageRequest
|
|
5, // 6: pb.ADPackageService.countADPackages:input_type -> pb.CountADPackagesRequest
|
|
6, // 7: pb.ADPackageService.countAllIdleADPackages:input_type -> pb.CountAllIdleADPackages
|
|
7, // 8: pb.ADPackageService.listADPackages:input_type -> pb.ListADPackagesRequest
|
|
9, // 9: pb.ADPackageService.findAllIdleADPackages:input_type -> pb.FindAllIdleADPackagesRequest
|
|
11, // 10: pb.ADPackageService.deleteADPackage:input_type -> pb.DeleteADPackageRequest
|
|
1, // 11: pb.ADPackageService.createADPackage:output_type -> pb.CreateADPackageResponse
|
|
13, // 12: pb.ADPackageService.updateADPackage:output_type -> pb.RPCSuccess
|
|
4, // 13: pb.ADPackageService.findADPackage:output_type -> pb.FindADPackageResponse
|
|
14, // 14: pb.ADPackageService.countADPackages:output_type -> pb.RPCCountResponse
|
|
14, // 15: pb.ADPackageService.countAllIdleADPackages:output_type -> pb.RPCCountResponse
|
|
8, // 16: pb.ADPackageService.listADPackages:output_type -> pb.ListADPackagesResponse
|
|
10, // 17: pb.ADPackageService.findAllIdleADPackages:output_type -> pb.FindAllIdleADPackagesResponse
|
|
13, // 18: pb.ADPackageService.deleteADPackage:output_type -> pb.RPCSuccess
|
|
11, // [11:19] is the sub-list for method output_type
|
|
3, // [3:11] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_ad_package_proto_init() }
|
|
func file_service_ad_package_proto_init() {
|
|
if File_service_ad_package_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_ad_package_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_ad_package_proto_rawDesc), len(file_service_ad_package_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_ad_package_proto_goTypes,
|
|
DependencyIndexes: file_service_ad_package_proto_depIdxs,
|
|
MessageInfos: file_service_ad_package_proto_msgTypes,
|
|
}.Build()
|
|
File_service_ad_package_proto = out.File
|
|
file_service_ad_package_proto_goTypes = nil
|
|
file_service_ad_package_proto_depIdxs = nil
|
|
}
|