816 lines
29 KiB
Go
816 lines
29 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_instance.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 CreateADPackageInstanceRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
||
NodeClusterId int64 `protobuf:"varint,2,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
|
||
NodeIds []int64 `protobuf:"varint,3,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"`
|
||
IpAddresses []string `protobuf:"bytes,4,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) Reset() {
|
||
*x = CreateADPackageInstanceRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateADPackageInstanceRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateADPackageInstanceRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 CreateADPackageInstanceRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateADPackageInstanceRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) GetAdPackageId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) GetNodeClusterId() int64 {
|
||
if x != nil {
|
||
return x.NodeClusterId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) GetNodeIds() []int64 {
|
||
if x != nil {
|
||
return x.NodeIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceRequest) GetIpAddresses() []string {
|
||
if x != nil {
|
||
return x.IpAddresses
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type CreateADPackageInstanceResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceResponse) Reset() {
|
||
*x = CreateADPackageInstanceResponse{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateADPackageInstanceResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateADPackageInstanceResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 CreateADPackageInstanceResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateADPackageInstanceResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *CreateADPackageInstanceResponse) GetAdPackageInstanceId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageInstanceId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 修改实例
|
||
type UpdateADPackageInstanceRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"`
|
||
NodeClusterId int64 `protobuf:"varint,2,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"`
|
||
NodeIds []int64 `protobuf:"varint,3,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"`
|
||
IpAddresses []string `protobuf:"bytes,4,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"`
|
||
IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) Reset() {
|
||
*x = UpdateADPackageInstanceRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateADPackageInstanceRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 UpdateADPackageInstanceRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateADPackageInstanceRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) GetAdPackageInstanceId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageInstanceId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) GetNodeClusterId() int64 {
|
||
if x != nil {
|
||
return x.NodeClusterId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) GetNodeIds() []int64 {
|
||
if x != nil {
|
||
return x.NodeIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) GetIpAddresses() []string {
|
||
if x != nil {
|
||
return x.IpAddresses
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateADPackageInstanceRequest) GetIsOn() bool {
|
||
if x != nil {
|
||
return x.IsOn
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 查找单个实例
|
||
type FindADPackageInstanceRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindADPackageInstanceRequest) Reset() {
|
||
*x = FindADPackageInstanceRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindADPackageInstanceRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindADPackageInstanceRequest) ProtoMessage() {}
|
||
|
||
func (x *FindADPackageInstanceRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 FindADPackageInstanceRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindADPackageInstanceRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *FindADPackageInstanceRequest) GetAdPackageInstanceId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageInstanceId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindADPackageInstanceResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstance *ADPackageInstance `protobuf:"bytes,1,opt,name=adPackageInstance,proto3" json:"adPackageInstance,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindADPackageInstanceResponse) Reset() {
|
||
*x = FindADPackageInstanceResponse{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindADPackageInstanceResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindADPackageInstanceResponse) ProtoMessage() {}
|
||
|
||
func (x *FindADPackageInstanceResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 FindADPackageInstanceResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindADPackageInstanceResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *FindADPackageInstanceResponse) GetAdPackageInstance() *ADPackageInstance {
|
||
if x != nil {
|
||
return x.AdPackageInstance
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 列出单个高防产品所有实例
|
||
type FindAllADPackageInstancesRequest 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 *FindAllADPackageInstancesRequest) Reset() {
|
||
*x = FindAllADPackageInstancesRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllADPackageInstancesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllADPackageInstancesRequest) ProtoMessage() {}
|
||
|
||
func (x *FindAllADPackageInstancesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 FindAllADPackageInstancesRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindAllADPackageInstancesRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *FindAllADPackageInstancesRequest) GetAdPackageId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindAllADPackageInstancesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstances []*ADPackageInstance `protobuf:"bytes,1,rep,name=adPackageInstances,proto3" json:"adPackageInstances,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAllADPackageInstancesResponse) Reset() {
|
||
*x = FindAllADPackageInstancesResponse{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllADPackageInstancesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllADPackageInstancesResponse) ProtoMessage() {}
|
||
|
||
func (x *FindAllADPackageInstancesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 FindAllADPackageInstancesResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindAllADPackageInstancesResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *FindAllADPackageInstancesResponse) GetAdPackageInstances() []*ADPackageInstance {
|
||
if x != nil {
|
||
return x.AdPackageInstances
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 删除实例
|
||
type DeleteADPackageInstanceRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteADPackageInstanceRequest) Reset() {
|
||
*x = DeleteADPackageInstanceRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteADPackageInstanceRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteADPackageInstanceRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteADPackageInstanceRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 DeleteADPackageInstanceRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteADPackageInstanceRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *DeleteADPackageInstanceRequest) GetAdPackageInstanceId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageInstanceId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 计算可购的实例数量
|
||
type CountIdleADPackageInstancesRequest 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 *CountIdleADPackageInstancesRequest) Reset() {
|
||
*x = CountIdleADPackageInstancesRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountIdleADPackageInstancesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountIdleADPackageInstancesRequest) ProtoMessage() {}
|
||
|
||
func (x *CountIdleADPackageInstancesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 CountIdleADPackageInstancesRequest.ProtoReflect.Descriptor instead.
|
||
func (*CountIdleADPackageInstancesRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *CountIdleADPackageInstancesRequest) GetAdPackageId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 计算实例数量
|
||
type CountADPackageInstancesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 可选,线路
|
||
AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` // 可选,如果不填则表示获取所有实例数量
|
||
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 可选,用户ID
|
||
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // 可选,高防IP
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) Reset() {
|
||
*x = CountADPackageInstancesRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountADPackageInstancesRequest) ProtoMessage() {}
|
||
|
||
func (x *CountADPackageInstancesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 CountADPackageInstancesRequest.ProtoReflect.Descriptor instead.
|
||
func (*CountADPackageInstancesRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) GetAdNetworkId() int64 {
|
||
if x != nil {
|
||
return x.AdNetworkId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) GetAdPackageId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CountADPackageInstancesRequest) GetIp() string {
|
||
if x != nil {
|
||
return x.Ip
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 列出单页实例
|
||
type ListADPackageInstancesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 可选,线路
|
||
AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` // 可选,如果不填则表示获取所有实例数量
|
||
UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 可选,用户ID
|
||
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // 可选,高防IP
|
||
Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
|
||
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) Reset() {
|
||
*x = ListADPackageInstancesRequest{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListADPackageInstancesRequest) ProtoMessage() {}
|
||
|
||
func (x *ListADPackageInstancesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 ListADPackageInstancesRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListADPackageInstancesRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetAdNetworkId() int64 {
|
||
if x != nil {
|
||
return x.AdNetworkId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetAdPackageId() int64 {
|
||
if x != nil {
|
||
return x.AdPackageId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetIp() string {
|
||
if x != nil {
|
||
return x.Ip
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetOffset() int64 {
|
||
if x != nil {
|
||
return x.Offset
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListADPackageInstancesRequest) GetSize() int64 {
|
||
if x != nil {
|
||
return x.Size
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ListADPackageInstancesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdPackageInstances []*ADPackageInstance `protobuf:"bytes,1,rep,name=adPackageInstances,proto3" json:"adPackageInstances,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListADPackageInstancesResponse) Reset() {
|
||
*x = ListADPackageInstancesResponse{}
|
||
mi := &file_service_ad_package_instance_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListADPackageInstancesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListADPackageInstancesResponse) ProtoMessage() {}
|
||
|
||
func (x *ListADPackageInstancesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_ad_package_instance_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 ListADPackageInstancesResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListADPackageInstancesResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_ad_package_instance_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *ListADPackageInstancesResponse) GetAdPackageInstances() []*ADPackageInstance {
|
||
if x != nil {
|
||
return x.AdPackageInstances
|
||
}
|
||
return nil
|
||
}
|
||
|
||
var File_service_ad_package_instance_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_ad_package_instance_proto_rawDesc = "" +
|
||
"\n" +
|
||
"!service_ad_package_instance.proto\x12\x02pb\x1a&models/model_ad_package_instance.proto\x1a\x19models/rpc_messages.proto\"\xa4\x01\n" +
|
||
"\x1eCreateADPackageInstanceRequest\x12 \n" +
|
||
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\x12$\n" +
|
||
"\rnodeClusterId\x18\x02 \x01(\x03R\rnodeClusterId\x12\x18\n" +
|
||
"\anodeIds\x18\x03 \x03(\x03R\anodeIds\x12 \n" +
|
||
"\vipAddresses\x18\x04 \x03(\tR\vipAddresses\"S\n" +
|
||
"\x1fCreateADPackageInstanceResponse\x120\n" +
|
||
"\x13adPackageInstanceId\x18\x01 \x01(\x03R\x13adPackageInstanceId\"\xc8\x01\n" +
|
||
"\x1eUpdateADPackageInstanceRequest\x120\n" +
|
||
"\x13adPackageInstanceId\x18\x01 \x01(\x03R\x13adPackageInstanceId\x12$\n" +
|
||
"\rnodeClusterId\x18\x02 \x01(\x03R\rnodeClusterId\x12\x18\n" +
|
||
"\anodeIds\x18\x03 \x03(\x03R\anodeIds\x12 \n" +
|
||
"\vipAddresses\x18\x04 \x03(\tR\vipAddresses\x12\x12\n" +
|
||
"\x04isOn\x18\x05 \x01(\bR\x04isOn\"P\n" +
|
||
"\x1cFindADPackageInstanceRequest\x120\n" +
|
||
"\x13adPackageInstanceId\x18\x01 \x01(\x03R\x13adPackageInstanceId\"d\n" +
|
||
"\x1dFindADPackageInstanceResponse\x12C\n" +
|
||
"\x11adPackageInstance\x18\x01 \x01(\v2\x15.pb.ADPackageInstanceR\x11adPackageInstance\"D\n" +
|
||
" FindAllADPackageInstancesRequest\x12 \n" +
|
||
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\"j\n" +
|
||
"!FindAllADPackageInstancesResponse\x12E\n" +
|
||
"\x12adPackageInstances\x18\x01 \x03(\v2\x15.pb.ADPackageInstanceR\x12adPackageInstances\"R\n" +
|
||
"\x1eDeleteADPackageInstanceRequest\x120\n" +
|
||
"\x13adPackageInstanceId\x18\x01 \x01(\x03R\x13adPackageInstanceId\"F\n" +
|
||
"\"CountIdleADPackageInstancesRequest\x12 \n" +
|
||
"\vadPackageId\x18\x01 \x01(\x03R\vadPackageId\"\x8c\x01\n" +
|
||
"\x1eCountADPackageInstancesRequest\x12 \n" +
|
||
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x12 \n" +
|
||
"\vadPackageId\x18\x02 \x01(\x03R\vadPackageId\x12\x16\n" +
|
||
"\x06userId\x18\x03 \x01(\x03R\x06userId\x12\x0e\n" +
|
||
"\x02ip\x18\x04 \x01(\tR\x02ip\"\xb7\x01\n" +
|
||
"\x1dListADPackageInstancesRequest\x12 \n" +
|
||
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x12 \n" +
|
||
"\vadPackageId\x18\x02 \x01(\x03R\vadPackageId\x12\x16\n" +
|
||
"\x06userId\x18\x03 \x01(\x03R\x06userId\x12\x0e\n" +
|
||
"\x02ip\x18\x04 \x01(\tR\x02ip\x12\x16\n" +
|
||
"\x06offset\x18\x05 \x01(\x03R\x06offset\x12\x12\n" +
|
||
"\x04size\x18\x06 \x01(\x03R\x04size\"g\n" +
|
||
"\x1eListADPackageInstancesResponse\x12E\n" +
|
||
"\x12adPackageInstances\x18\x01 \x03(\v2\x15.pb.ADPackageInstanceR\x12adPackageInstances2\xf7\x05\n" +
|
||
"\x18ADPackageInstanceService\x12b\n" +
|
||
"\x17createADPackageInstance\x12\".pb.CreateADPackageInstanceRequest\x1a#.pb.CreateADPackageInstanceResponse\x12M\n" +
|
||
"\x17updateADPackageInstance\x12\".pb.UpdateADPackageInstanceRequest\x1a\x0e.pb.RPCSuccess\x12\\\n" +
|
||
"\x15findADPackageInstance\x12 .pb.FindADPackageInstanceRequest\x1a!.pb.FindADPackageInstanceResponse\x12h\n" +
|
||
"\x19findAllADPackageInstances\x12$.pb.FindAllADPackageInstancesRequest\x1a%.pb.FindAllADPackageInstancesResponse\x12M\n" +
|
||
"\x17deleteADPackageInstance\x12\".pb.DeleteADPackageInstanceRequest\x1a\x0e.pb.RPCSuccess\x12[\n" +
|
||
"\x1bcountIdleADPackageInstances\x12&.pb.CountIdleADPackageInstancesRequest\x1a\x14.pb.RPCCountResponse\x12S\n" +
|
||
"\x17countADPackageInstances\x12\".pb.CountADPackageInstancesRequest\x1a\x14.pb.RPCCountResponse\x12_\n" +
|
||
"\x16listADPackageInstances\x12!.pb.ListADPackageInstancesRequest\x1a\".pb.ListADPackageInstancesResponseB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_ad_package_instance_proto_rawDescOnce sync.Once
|
||
file_service_ad_package_instance_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_ad_package_instance_proto_rawDescGZIP() []byte {
|
||
file_service_ad_package_instance_proto_rawDescOnce.Do(func() {
|
||
file_service_ad_package_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_ad_package_instance_proto_rawDesc), len(file_service_ad_package_instance_proto_rawDesc)))
|
||
})
|
||
return file_service_ad_package_instance_proto_rawDescData
|
||
}
|
||
|
||
var file_service_ad_package_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||
var file_service_ad_package_instance_proto_goTypes = []any{
|
||
(*CreateADPackageInstanceRequest)(nil), // 0: pb.CreateADPackageInstanceRequest
|
||
(*CreateADPackageInstanceResponse)(nil), // 1: pb.CreateADPackageInstanceResponse
|
||
(*UpdateADPackageInstanceRequest)(nil), // 2: pb.UpdateADPackageInstanceRequest
|
||
(*FindADPackageInstanceRequest)(nil), // 3: pb.FindADPackageInstanceRequest
|
||
(*FindADPackageInstanceResponse)(nil), // 4: pb.FindADPackageInstanceResponse
|
||
(*FindAllADPackageInstancesRequest)(nil), // 5: pb.FindAllADPackageInstancesRequest
|
||
(*FindAllADPackageInstancesResponse)(nil), // 6: pb.FindAllADPackageInstancesResponse
|
||
(*DeleteADPackageInstanceRequest)(nil), // 7: pb.DeleteADPackageInstanceRequest
|
||
(*CountIdleADPackageInstancesRequest)(nil), // 8: pb.CountIdleADPackageInstancesRequest
|
||
(*CountADPackageInstancesRequest)(nil), // 9: pb.CountADPackageInstancesRequest
|
||
(*ListADPackageInstancesRequest)(nil), // 10: pb.ListADPackageInstancesRequest
|
||
(*ListADPackageInstancesResponse)(nil), // 11: pb.ListADPackageInstancesResponse
|
||
(*ADPackageInstance)(nil), // 12: pb.ADPackageInstance
|
||
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
|
||
(*RPCCountResponse)(nil), // 14: pb.RPCCountResponse
|
||
}
|
||
var file_service_ad_package_instance_proto_depIdxs = []int32{
|
||
12, // 0: pb.FindADPackageInstanceResponse.adPackageInstance:type_name -> pb.ADPackageInstance
|
||
12, // 1: pb.FindAllADPackageInstancesResponse.adPackageInstances:type_name -> pb.ADPackageInstance
|
||
12, // 2: pb.ListADPackageInstancesResponse.adPackageInstances:type_name -> pb.ADPackageInstance
|
||
0, // 3: pb.ADPackageInstanceService.createADPackageInstance:input_type -> pb.CreateADPackageInstanceRequest
|
||
2, // 4: pb.ADPackageInstanceService.updateADPackageInstance:input_type -> pb.UpdateADPackageInstanceRequest
|
||
3, // 5: pb.ADPackageInstanceService.findADPackageInstance:input_type -> pb.FindADPackageInstanceRequest
|
||
5, // 6: pb.ADPackageInstanceService.findAllADPackageInstances:input_type -> pb.FindAllADPackageInstancesRequest
|
||
7, // 7: pb.ADPackageInstanceService.deleteADPackageInstance:input_type -> pb.DeleteADPackageInstanceRequest
|
||
8, // 8: pb.ADPackageInstanceService.countIdleADPackageInstances:input_type -> pb.CountIdleADPackageInstancesRequest
|
||
9, // 9: pb.ADPackageInstanceService.countADPackageInstances:input_type -> pb.CountADPackageInstancesRequest
|
||
10, // 10: pb.ADPackageInstanceService.listADPackageInstances:input_type -> pb.ListADPackageInstancesRequest
|
||
1, // 11: pb.ADPackageInstanceService.createADPackageInstance:output_type -> pb.CreateADPackageInstanceResponse
|
||
13, // 12: pb.ADPackageInstanceService.updateADPackageInstance:output_type -> pb.RPCSuccess
|
||
4, // 13: pb.ADPackageInstanceService.findADPackageInstance:output_type -> pb.FindADPackageInstanceResponse
|
||
6, // 14: pb.ADPackageInstanceService.findAllADPackageInstances:output_type -> pb.FindAllADPackageInstancesResponse
|
||
13, // 15: pb.ADPackageInstanceService.deleteADPackageInstance:output_type -> pb.RPCSuccess
|
||
14, // 16: pb.ADPackageInstanceService.countIdleADPackageInstances:output_type -> pb.RPCCountResponse
|
||
14, // 17: pb.ADPackageInstanceService.countADPackageInstances:output_type -> pb.RPCCountResponse
|
||
11, // 18: pb.ADPackageInstanceService.listADPackageInstances:output_type -> pb.ListADPackageInstancesResponse
|
||
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_instance_proto_init() }
|
||
func file_service_ad_package_instance_proto_init() {
|
||
if File_service_ad_package_instance_proto != nil {
|
||
return
|
||
}
|
||
file_models_model_ad_package_instance_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_instance_proto_rawDesc), len(file_service_ad_package_instance_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 12,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_ad_package_instance_proto_goTypes,
|
||
DependencyIndexes: file_service_ad_package_instance_proto_depIdxs,
|
||
MessageInfos: file_service_ad_package_instance_proto_msgTypes,
|
||
}.Build()
|
||
File_service_ad_package_instance_proto = out.File
|
||
file_service_ad_package_instance_proto_goTypes = nil
|
||
file_service_ad_package_instance_proto_depIdxs = nil
|
||
}
|