mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-10 09:20:24 +08:00
1386 lines
52 KiB
Go
1386 lines
52 KiB
Go
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
|
// versions:
|
||
|
|
// protoc-gen-go v1.25.0
|
||
|
|
// protoc v3.19.4
|
||
|
|
// source: service_ad_package.proto
|
||
|
|
|
||
|
|
package pb
|
||
|
|
|
||
|
|
import (
|
||
|
|
context "context"
|
||
|
|
proto "github.com/golang/protobuf/proto"
|
||
|
|
grpc "google.golang.org/grpc"
|
||
|
|
codes "google.golang.org/grpc/codes"
|
||
|
|
status "google.golang.org/grpc/status"
|
||
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
|
|
reflect "reflect"
|
||
|
|
sync "sync"
|
||
|
|
)
|
||
|
|
|
||
|
|
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)
|
||
|
|
)
|
||
|
|
|
||
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
||
|
|
// of the legacy proto package is being used.
|
||
|
|
const _ = proto.ProtoPackageIsVersion4
|
||
|
|
|
||
|
|
// 创建高防产品
|
||
|
|
type CreateADPackageRequest struct {
|
||
|
|
state protoimpl.MessageState
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
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"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateADPackageRequest) Reset() {
|
||
|
|
*x = CreateADPackageRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CreateADPackageResponse) Reset() {
|
||
|
|
*x = CreateADPackageResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
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"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *UpdateADPackageRequest) Reset() {
|
||
|
|
*x = UpdateADPackageRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindADPackageRequest) Reset() {
|
||
|
|
*x = FindADPackageRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackage *ADPackage `protobuf:"bytes,1,opt,name=adPackage,proto3" json:"adPackage,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindADPackageResponse) Reset() {
|
||
|
|
*x = FindADPackageResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountADPackagesRequest) Reset() {
|
||
|
|
*x = CountADPackagesRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *CountAllIdleADPackages) Reset() {
|
||
|
|
*x = CountAllIdleADPackages{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
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"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *ListADPackagesRequest) Reset() {
|
||
|
|
*x = ListADPackagesRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *ListADPackagesResponse) Reset() {
|
||
|
|
*x = ListADPackagesResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllIdleADPackagesRequest) Reset() {
|
||
|
|
*x = FindAllIdleADPackagesRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *FindAllIdleADPackagesResponse) Reset() {
|
||
|
|
*x = FindAllIdleADPackagesResponse{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
sizeCache protoimpl.SizeCache
|
||
|
|
unknownFields protoimpl.UnknownFields
|
||
|
|
|
||
|
|
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
func (x *DeleteADPackageRequest) Reset() {
|
||
|
|
*x = DeleteADPackageRequest{}
|
||
|
|
if protoimpl.UnsafeEnabled {
|
||
|
|
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 protoimpl.UnsafeEnabled && 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
|
||
|
|
|
||
|
|
var file_service_ad_package_proto_rawDesc = []byte{
|
||
|
|
0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63,
|
||
|
|
0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1d,
|
||
|
|
0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f,
|
||
|
|
0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d,
|
||
|
|
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||
|
|
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65,
|
||
|
|
0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
|
||
|
|
0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b,
|
||
|
|
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77,
|
||
|
|
0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74,
|
||
|
|
0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65,
|
||
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69,
|
||
|
|
0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12,
|
||
|
|
0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e,
|
||
|
|
0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64,
|
||
|
|
0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72,
|
||
|
|
0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65,
|
||
|
|
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61,
|
||
|
|
0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x73,
|
||
|
|
0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e,
|
||
|
|
0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
|
||
|
|
0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x3b, 0x0a,
|
||
|
|
0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61,
|
||
|
|
0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xc8, 0x02, 0x0a, 0x16, 0x55,
|
||
|
|
0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65,
|
||
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||
|
|
0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18,
|
||
|
|
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61,
|
||
|
|
0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
|
||
|
|
0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a,
|
||
|
|
0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77,
|
||
|
|
0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17,
|
||
|
|
0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69,
|
||
|
|
0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65,
|
||
|
|
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e,
|
||
|
|
0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63,
|
||
|
|
0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69,
|
||
|
|
0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77,
|
||
|
|
0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13,
|
||
|
|
0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53,
|
||
|
|
0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e,
|
||
|
|
0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
||
|
|
0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74,
|
||
|
|
0x68, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x38, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50,
|
||
|
|
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a,
|
||
|
|
0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||
|
|
0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22,
|
||
|
|
0x44, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x64, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x09, 0x61, 0x64, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x3a, 0x0a, 0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44,
|
||
|
|
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
||
|
|
0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01,
|
||
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49,
|
||
|
|
0x64, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c,
|
||
|
|
0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x65, 0x0a, 0x15, 0x4c,
|
||
|
|
0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71,
|
||
|
|
0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72,
|
||
|
|
0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74,
|
||
|
|
0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74,
|
||
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12,
|
||
|
|
0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69,
|
||
|
|
0x7a, 0x65, 0x22, 0x47, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
|
||
|
|
0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a,
|
||
|
|
0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||
|
|
0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52,
|
||
|
|
0x0a, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x46,
|
||
|
|
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
|
||
|
|
0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x1d, 0x46,
|
||
|
|
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
|
||
|
|
0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a,
|
||
|
|
0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
|
||
|
|
0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52,
|
||
|
|
0x0a, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x3a, 0x0a, 0x16, 0x44,
|
||
|
|
0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65,
|
||
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61,
|
||
|
|
0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x32, 0xda, 0x04, 0x0a, 0x10, 0x41, 0x44, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f,
|
||
|
|
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12,
|
||
|
|
0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63,
|
||
|
|
0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||
|
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61,
|
||
|
|
0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65,
|
||
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
|
||
|
|
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x64, 0x41,
|
||
|
|
0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||
|
|
0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
|
|
0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61,
|
||
|
|
0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a,
|
||
|
|
0x0f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73,
|
||
|
|
0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63,
|
||
|
|
0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70,
|
||
|
|
0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||
|
|
0x73, 0x65, 0x12, 0x4a, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64,
|
||
|
|
0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70,
|
||
|
|
0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44,
|
||
|
|
0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50,
|
||
|
|
0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47,
|
||
|
|
0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73,
|
||
|
|
0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b,
|
||
|
|
0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62,
|
||
|
|
0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52,
|
||
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x41,
|
||
|
|
0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73,
|
||
|
|
0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c,
|
||
|
|
0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||
|
|
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49,
|
||
|
|
0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73,
|
||
|
|
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41,
|
||
|
|
0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65,
|
||
|
|
0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
|
||
|
|
0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63,
|
||
|
|
0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||
|
|
0x6f, 0x74, 0x6f, 0x33,
|
||
|
|
}
|
||
|
|
|
||
|
|
var (
|
||
|
|
file_service_ad_package_proto_rawDescOnce sync.Once
|
||
|
|
file_service_ad_package_proto_rawDescData = file_service_ad_package_proto_rawDesc
|
||
|
|
)
|
||
|
|
|
||
|
|
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(file_service_ad_package_proto_rawDescData)
|
||
|
|
})
|
||
|
|
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 = []interface{}{
|
||
|
|
(*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()
|
||
|
|
if !protoimpl.UnsafeEnabled {
|
||
|
|
file_service_ad_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CreateADPackageRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CreateADPackageResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*UpdateADPackageRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindADPackageRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindADPackageResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CountADPackagesRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*CountAllIdleADPackages); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*ListADPackagesRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*ListADPackagesResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindAllIdleADPackagesRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*FindAllIdleADPackagesResponse); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
file_service_ad_package_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||
|
|
switch v := v.(*DeleteADPackageRequest); i {
|
||
|
|
case 0:
|
||
|
|
return &v.state
|
||
|
|
case 1:
|
||
|
|
return &v.sizeCache
|
||
|
|
case 2:
|
||
|
|
return &v.unknownFields
|
||
|
|
default:
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
type x struct{}
|
||
|
|
out := protoimpl.TypeBuilder{
|
||
|
|
File: protoimpl.DescBuilder{
|
||
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
|
|
RawDescriptor: 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_rawDesc = nil
|
||
|
|
file_service_ad_package_proto_goTypes = nil
|
||
|
|
file_service_ad_package_proto_depIdxs = nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
|
var _ context.Context
|
||
|
|
var _ grpc.ClientConnInterface
|
||
|
|
|
||
|
|
// This is a compile-time assertion to ensure that this generated file
|
||
|
|
// is compatible with the grpc package it is being compiled against.
|
||
|
|
const _ = grpc.SupportPackageIsVersion6
|
||
|
|
|
||
|
|
// ADPackageServiceClient is the client API for ADPackageService service.
|
||
|
|
//
|
||
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||
|
|
type ADPackageServiceClient interface {
|
||
|
|
// 创建高防产品
|
||
|
|
CreateADPackage(ctx context.Context, in *CreateADPackageRequest, opts ...grpc.CallOption) (*CreateADPackageResponse, error)
|
||
|
|
// 修改高防产品
|
||
|
|
UpdateADPackage(ctx context.Context, in *UpdateADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||
|
|
// 查找单个高防产品
|
||
|
|
FindADPackage(ctx context.Context, in *FindADPackageRequest, opts ...grpc.CallOption) (*FindADPackageResponse, error)
|
||
|
|
// 查询高防产品数量
|
||
|
|
CountADPackages(ctx context.Context, in *CountADPackagesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||
|
|
// 查询可用的产品数量
|
||
|
|
CountAllIdleADPackages(ctx context.Context, in *CountAllIdleADPackages, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||
|
|
// 列出单页高防产品
|
||
|
|
ListADPackages(ctx context.Context, in *ListADPackagesRequest, opts ...grpc.CallOption) (*ListADPackagesResponse, error)
|
||
|
|
// 列出所有可用的高防产品
|
||
|
|
FindAllIdleADPackages(ctx context.Context, in *FindAllIdleADPackagesRequest, opts ...grpc.CallOption) (*FindAllIdleADPackagesResponse, error)
|
||
|
|
// 删除高防产品
|
||
|
|
DeleteADPackage(ctx context.Context, in *DeleteADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
type aDPackageServiceClient struct {
|
||
|
|
cc grpc.ClientConnInterface
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewADPackageServiceClient(cc grpc.ClientConnInterface) ADPackageServiceClient {
|
||
|
|
return &aDPackageServiceClient{cc}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) CreateADPackage(ctx context.Context, in *CreateADPackageRequest, opts ...grpc.CallOption) (*CreateADPackageResponse, error) {
|
||
|
|
out := new(CreateADPackageResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/createADPackage", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) UpdateADPackage(ctx context.Context, in *UpdateADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||
|
|
out := new(RPCSuccess)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/updateADPackage", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) FindADPackage(ctx context.Context, in *FindADPackageRequest, opts ...grpc.CallOption) (*FindADPackageResponse, error) {
|
||
|
|
out := new(FindADPackageResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/findADPackage", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) CountADPackages(ctx context.Context, in *CountADPackagesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||
|
|
out := new(RPCCountResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/countADPackages", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) CountAllIdleADPackages(ctx context.Context, in *CountAllIdleADPackages, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||
|
|
out := new(RPCCountResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/countAllIdleADPackages", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) ListADPackages(ctx context.Context, in *ListADPackagesRequest, opts ...grpc.CallOption) (*ListADPackagesResponse, error) {
|
||
|
|
out := new(ListADPackagesResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/listADPackages", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) FindAllIdleADPackages(ctx context.Context, in *FindAllIdleADPackagesRequest, opts ...grpc.CallOption) (*FindAllIdleADPackagesResponse, error) {
|
||
|
|
out := new(FindAllIdleADPackagesResponse)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/findAllIdleADPackages", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func (c *aDPackageServiceClient) DeleteADPackage(ctx context.Context, in *DeleteADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||
|
|
out := new(RPCSuccess)
|
||
|
|
err := c.cc.Invoke(ctx, "/pb.ADPackageService/deleteADPackage", in, out, opts...)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return out, nil
|
||
|
|
}
|
||
|
|
|
||
|
|
// ADPackageServiceServer is the server API for ADPackageService service.
|
||
|
|
type ADPackageServiceServer interface {
|
||
|
|
// 创建高防产品
|
||
|
|
CreateADPackage(context.Context, *CreateADPackageRequest) (*CreateADPackageResponse, error)
|
||
|
|
// 修改高防产品
|
||
|
|
UpdateADPackage(context.Context, *UpdateADPackageRequest) (*RPCSuccess, error)
|
||
|
|
// 查找单个高防产品
|
||
|
|
FindADPackage(context.Context, *FindADPackageRequest) (*FindADPackageResponse, error)
|
||
|
|
// 查询高防产品数量
|
||
|
|
CountADPackages(context.Context, *CountADPackagesRequest) (*RPCCountResponse, error)
|
||
|
|
// 查询可用的产品数量
|
||
|
|
CountAllIdleADPackages(context.Context, *CountAllIdleADPackages) (*RPCCountResponse, error)
|
||
|
|
// 列出单页高防产品
|
||
|
|
ListADPackages(context.Context, *ListADPackagesRequest) (*ListADPackagesResponse, error)
|
||
|
|
// 列出所有可用的高防产品
|
||
|
|
FindAllIdleADPackages(context.Context, *FindAllIdleADPackagesRequest) (*FindAllIdleADPackagesResponse, error)
|
||
|
|
// 删除高防产品
|
||
|
|
DeleteADPackage(context.Context, *DeleteADPackageRequest) (*RPCSuccess, error)
|
||
|
|
}
|
||
|
|
|
||
|
|
// UnimplementedADPackageServiceServer can be embedded to have forward compatible implementations.
|
||
|
|
type UnimplementedADPackageServiceServer struct {
|
||
|
|
}
|
||
|
|
|
||
|
|
func (*UnimplementedADPackageServiceServer) CreateADPackage(context.Context, *CreateADPackageRequest) (*CreateADPackageResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateADPackage not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) UpdateADPackage(context.Context, *UpdateADPackageRequest) (*RPCSuccess, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackage not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) FindADPackage(context.Context, *FindADPackageRequest) (*FindADPackageResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindADPackage not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) CountADPackages(context.Context, *CountADPackagesRequest) (*RPCCountResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method CountADPackages not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) CountAllIdleADPackages(context.Context, *CountAllIdleADPackages) (*RPCCountResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method CountAllIdleADPackages not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) ListADPackages(context.Context, *ListADPackagesRequest) (*ListADPackagesResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListADPackages not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) FindAllIdleADPackages(context.Context, *FindAllIdleADPackagesRequest) (*FindAllIdleADPackagesResponse, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindAllIdleADPackages not implemented")
|
||
|
|
}
|
||
|
|
func (*UnimplementedADPackageServiceServer) DeleteADPackage(context.Context, *DeleteADPackageRequest) (*RPCSuccess, error) {
|
||
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteADPackage not implemented")
|
||
|
|
}
|
||
|
|
|
||
|
|
func RegisterADPackageServiceServer(s *grpc.Server, srv ADPackageServiceServer) {
|
||
|
|
s.RegisterService(&_ADPackageService_serviceDesc, srv)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_CreateADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(CreateADPackageRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).CreateADPackage(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/CreateADPackage",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).CreateADPackage(ctx, req.(*CreateADPackageRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_UpdateADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(UpdateADPackageRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).UpdateADPackage(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/UpdateADPackage",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).UpdateADPackage(ctx, req.(*UpdateADPackageRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_FindADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(FindADPackageRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).FindADPackage(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/FindADPackage",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).FindADPackage(ctx, req.(*FindADPackageRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_CountADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(CountADPackagesRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).CountADPackages(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/CountADPackages",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).CountADPackages(ctx, req.(*CountADPackagesRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_CountAllIdleADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(CountAllIdleADPackages)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).CountAllIdleADPackages(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/CountAllIdleADPackages",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).CountAllIdleADPackages(ctx, req.(*CountAllIdleADPackages))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_ListADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(ListADPackagesRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).ListADPackages(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/ListADPackages",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).ListADPackages(ctx, req.(*ListADPackagesRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_FindAllIdleADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(FindAllIdleADPackagesRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).FindAllIdleADPackages(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/FindAllIdleADPackages",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).FindAllIdleADPackages(ctx, req.(*FindAllIdleADPackagesRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
func _ADPackageService_DeleteADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||
|
|
in := new(DeleteADPackageRequest)
|
||
|
|
if err := dec(in); err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
if interceptor == nil {
|
||
|
|
return srv.(ADPackageServiceServer).DeleteADPackage(ctx, in)
|
||
|
|
}
|
||
|
|
info := &grpc.UnaryServerInfo{
|
||
|
|
Server: srv,
|
||
|
|
FullMethod: "/pb.ADPackageService/DeleteADPackage",
|
||
|
|
}
|
||
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||
|
|
return srv.(ADPackageServiceServer).DeleteADPackage(ctx, req.(*DeleteADPackageRequest))
|
||
|
|
}
|
||
|
|
return interceptor(ctx, in, info, handler)
|
||
|
|
}
|
||
|
|
|
||
|
|
var _ADPackageService_serviceDesc = grpc.ServiceDesc{
|
||
|
|
ServiceName: "pb.ADPackageService",
|
||
|
|
HandlerType: (*ADPackageServiceServer)(nil),
|
||
|
|
Methods: []grpc.MethodDesc{
|
||
|
|
{
|
||
|
|
MethodName: "createADPackage",
|
||
|
|
Handler: _ADPackageService_CreateADPackage_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "updateADPackage",
|
||
|
|
Handler: _ADPackageService_UpdateADPackage_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "findADPackage",
|
||
|
|
Handler: _ADPackageService_FindADPackage_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "countADPackages",
|
||
|
|
Handler: _ADPackageService_CountADPackages_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "countAllIdleADPackages",
|
||
|
|
Handler: _ADPackageService_CountAllIdleADPackages_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "listADPackages",
|
||
|
|
Handler: _ADPackageService_ListADPackages_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "findAllIdleADPackages",
|
||
|
|
Handler: _ADPackageService_FindAllIdleADPackages_Handler,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
MethodName: "deleteADPackage",
|
||
|
|
Handler: _ADPackageService_DeleteADPackage_Handler,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
Streams: []grpc.StreamDesc{},
|
||
|
|
Metadata: "service_ad_package.proto",
|
||
|
|
}
|