846 lines
29 KiB
Go
846 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_user_ad_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 CreateUserADInstanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
|
AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
|
|
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) Reset() {
|
|
*x = CreateUserADInstanceRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserADInstanceRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateUserADInstanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 CreateUserADInstanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserADInstanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) GetAdPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.AdPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateUserADInstanceRequest) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateUserADInstanceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceIds []int64 `protobuf:"varint,1,rep,packed,name=userADInstanceIds,proto3" json:"userADInstanceIds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateUserADInstanceResponse) Reset() {
|
|
*x = CreateUserADInstanceResponse{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateUserADInstanceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateUserADInstanceResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateUserADInstanceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 CreateUserADInstanceResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateUserADInstanceResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateUserADInstanceResponse) GetUserADInstanceIds() []int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 购买用户高防实例
|
|
type BuyUserADInstanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"`
|
|
AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
|
|
Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) Reset() {
|
|
*x = BuyUserADInstanceRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserADInstanceRequest) ProtoMessage() {}
|
|
|
|
func (x *BuyUserADInstanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 BuyUserADInstanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserADInstanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) GetAdPackageId() int64 {
|
|
if x != nil {
|
|
return x.AdPackageId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) GetAdPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.AdPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserADInstanceRequest) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BuyUserADInstanceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceIds []int64 `protobuf:"varint,1,rep,packed,name=userADInstanceIds,proto3" json:"userADInstanceIds,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserADInstanceResponse) Reset() {
|
|
*x = BuyUserADInstanceResponse{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserADInstanceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserADInstanceResponse) ProtoMessage() {}
|
|
|
|
func (x *BuyUserADInstanceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 BuyUserADInstanceResponse.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserADInstanceResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *BuyUserADInstanceResponse) GetUserADInstanceIds() []int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查询用户高防实例数量
|
|
type CountUserADInstancesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 线路ID
|
|
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID
|
|
AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
|
|
ExpiresDay string `protobuf:"bytes,4,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"`
|
|
AvailableOnly bool `protobuf:"varint,5,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的高防实例
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) Reset() {
|
|
*x = CountUserADInstancesRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountUserADInstancesRequest) ProtoMessage() {}
|
|
|
|
func (x *CountUserADInstancesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 CountUserADInstancesRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountUserADInstancesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) GetAdPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.AdPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) GetExpiresDay() string {
|
|
if x != nil {
|
|
return x.ExpiresDay
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CountUserADInstancesRequest) GetAvailableOnly() bool {
|
|
if x != nil {
|
|
return x.AvailableOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 列出单页用户高防实例
|
|
type ListUserADInstancesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 线路ID
|
|
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID
|
|
AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
|
|
ExpiresDay string `protobuf:"bytes,4,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"`
|
|
AvailableOnly bool `protobuf:"varint,5,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的高防实例
|
|
Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) Reset() {
|
|
*x = ListUserADInstancesRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserADInstancesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListUserADInstancesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 ListUserADInstancesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListUserADInstancesRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetAdNetworkId() int64 {
|
|
if x != nil {
|
|
return x.AdNetworkId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetAdPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.AdPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetExpiresDay() string {
|
|
if x != nil {
|
|
return x.ExpiresDay
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetAvailableOnly() bool {
|
|
if x != nil {
|
|
return x.AvailableOnly
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListUserADInstancesRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListUserADInstancesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstances []*UserADInstance `protobuf:"bytes,1,rep,name=userADInstances,proto3" json:"userADInstances,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListUserADInstancesResponse) Reset() {
|
|
*x = ListUserADInstancesResponse{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListUserADInstancesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListUserADInstancesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListUserADInstancesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 ListUserADInstancesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListUserADInstancesResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListUserADInstancesResponse) GetUserADInstances() []*UserADInstance {
|
|
if x != nil {
|
|
return x.UserADInstances
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查找单个用户高防实例
|
|
type FindUserADInstanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindUserADInstanceRequest) Reset() {
|
|
*x = FindUserADInstanceRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindUserADInstanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindUserADInstanceRequest) ProtoMessage() {}
|
|
|
|
func (x *FindUserADInstanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 FindUserADInstanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindUserADInstanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *FindUserADInstanceRequest) GetUserADInstanceId() int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindUserADInstanceResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstance *UserADInstance `protobuf:"bytes,1,opt,name=userADInstance,proto3" json:"userADInstance,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindUserADInstanceResponse) Reset() {
|
|
*x = FindUserADInstanceResponse{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindUserADInstanceResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindUserADInstanceResponse) ProtoMessage() {}
|
|
|
|
func (x *FindUserADInstanceResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 FindUserADInstanceResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindUserADInstanceResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *FindUserADInstanceResponse) GetUserADInstance() *UserADInstance {
|
|
if x != nil {
|
|
return x.UserADInstance
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 删除用户高防实例
|
|
type DeleteUserADInstanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserADInstanceRequest) Reset() {
|
|
*x = DeleteUserADInstanceRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserADInstanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserADInstanceRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserADInstanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 DeleteUserADInstanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserADInstanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *DeleteUserADInstanceRequest) GetUserADInstanceId() int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 续期用户高防实例
|
|
type RenewUserADInstanceRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"`
|
|
AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RenewUserADInstanceRequest) Reset() {
|
|
*x = RenewUserADInstanceRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RenewUserADInstanceRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RenewUserADInstanceRequest) ProtoMessage() {}
|
|
|
|
func (x *RenewUserADInstanceRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 RenewUserADInstanceRequest.ProtoReflect.Descriptor instead.
|
|
func (*RenewUserADInstanceRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *RenewUserADInstanceRequest) GetUserADInstanceId() int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RenewUserADInstanceRequest) GetAdPackagePeriodId() int64 {
|
|
if x != nil {
|
|
return x.AdPackagePeriodId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 修改实例防护对象
|
|
type UpdateUserADInstanceObjectsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"`
|
|
ObjectCodes []string `protobuf:"bytes,2,rep,name=objectCodes,proto3" json:"objectCodes,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserADInstanceObjectsRequest) Reset() {
|
|
*x = UpdateUserADInstanceObjectsRequest{}
|
|
mi := &file_service_user_ad_instance_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserADInstanceObjectsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserADInstanceObjectsRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserADInstanceObjectsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_ad_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 UpdateUserADInstanceObjectsRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserADInstanceObjectsRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_ad_instance_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *UpdateUserADInstanceObjectsRequest) GetUserADInstanceId() int64 {
|
|
if x != nil {
|
|
return x.UserADInstanceId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateUserADInstanceObjectsRequest) GetObjectCodes() []string {
|
|
if x != nil {
|
|
return x.ObjectCodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_user_ad_instance_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_user_ad_instance_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1eservice_user_ad_instance.proto\x12\x02pb\x1a#models/model_user_ad_instance.proto\x1a\x19models/rpc_messages.proto\"\x9b\x01\n" +
|
|
"\x1bCreateUserADInstanceRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12 \n" +
|
|
"\vadPackageId\x18\x02 \x01(\x03R\vadPackageId\x12,\n" +
|
|
"\x11adPackagePeriodId\x18\x03 \x01(\x03R\x11adPackagePeriodId\x12\x14\n" +
|
|
"\x05count\x18\x04 \x01(\x05R\x05count\"L\n" +
|
|
"\x1cCreateUserADInstanceResponse\x12,\n" +
|
|
"\x11userADInstanceIds\x18\x01 \x03(\x03R\x11userADInstanceIds\"\x98\x01\n" +
|
|
"\x18BuyUserADInstanceRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12 \n" +
|
|
"\vadPackageId\x18\x02 \x01(\x03R\vadPackageId\x12,\n" +
|
|
"\x11adPackagePeriodId\x18\x03 \x01(\x03R\x11adPackagePeriodId\x12\x14\n" +
|
|
"\x05count\x18\x04 \x01(\x05R\x05count\"I\n" +
|
|
"\x19BuyUserADInstanceResponse\x12,\n" +
|
|
"\x11userADInstanceIds\x18\x01 \x03(\x03R\x11userADInstanceIds\"\xcb\x01\n" +
|
|
"\x1bCountUserADInstancesRequest\x12 \n" +
|
|
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x12\x16\n" +
|
|
"\x06userId\x18\x02 \x01(\x03R\x06userId\x12,\n" +
|
|
"\x11adPackagePeriodId\x18\x03 \x01(\x03R\x11adPackagePeriodId\x12\x1e\n" +
|
|
"\n" +
|
|
"expiresDay\x18\x04 \x01(\tR\n" +
|
|
"expiresDay\x12$\n" +
|
|
"\ravailableOnly\x18\x05 \x01(\bR\ravailableOnly\"\xf6\x01\n" +
|
|
"\x1aListUserADInstancesRequest\x12 \n" +
|
|
"\vadNetworkId\x18\x01 \x01(\x03R\vadNetworkId\x12\x16\n" +
|
|
"\x06userId\x18\x02 \x01(\x03R\x06userId\x12,\n" +
|
|
"\x11adPackagePeriodId\x18\x03 \x01(\x03R\x11adPackagePeriodId\x12\x1e\n" +
|
|
"\n" +
|
|
"expiresDay\x18\x04 \x01(\tR\n" +
|
|
"expiresDay\x12$\n" +
|
|
"\ravailableOnly\x18\x05 \x01(\bR\ravailableOnly\x12\x16\n" +
|
|
"\x06offset\x18\x06 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\a \x01(\x03R\x04size\"[\n" +
|
|
"\x1bListUserADInstancesResponse\x12<\n" +
|
|
"\x0fuserADInstances\x18\x01 \x03(\v2\x12.pb.UserADInstanceR\x0fuserADInstances\"G\n" +
|
|
"\x19FindUserADInstanceRequest\x12*\n" +
|
|
"\x10userADInstanceId\x18\x01 \x01(\x03R\x10userADInstanceId\"X\n" +
|
|
"\x1aFindUserADInstanceResponse\x12:\n" +
|
|
"\x0euserADInstance\x18\x01 \x01(\v2\x12.pb.UserADInstanceR\x0euserADInstance\"I\n" +
|
|
"\x1bDeleteUserADInstanceRequest\x12*\n" +
|
|
"\x10userADInstanceId\x18\x01 \x01(\x03R\x10userADInstanceId\"v\n" +
|
|
"\x1aRenewUserADInstanceRequest\x12*\n" +
|
|
"\x10userADInstanceId\x18\x01 \x01(\x03R\x10userADInstanceId\x12,\n" +
|
|
"\x11adPackagePeriodId\x18\x02 \x01(\x03R\x11adPackagePeriodId\"r\n" +
|
|
"\"UpdateUserADInstanceObjectsRequest\x12*\n" +
|
|
"\x10userADInstanceId\x18\x01 \x01(\x03R\x10userADInstanceId\x12 \n" +
|
|
"\vobjectCodes\x18\x02 \x03(\tR\vobjectCodes2\xa7\x05\n" +
|
|
"\x15UserADInstanceService\x12Y\n" +
|
|
"\x14createUserADInstance\x12\x1f.pb.CreateUserADInstanceRequest\x1a .pb.CreateUserADInstanceResponse\x12P\n" +
|
|
"\x11buyUserADInstance\x12\x1c.pb.BuyUserADInstanceRequest\x1a\x1d.pb.BuyUserADInstanceResponse\x12M\n" +
|
|
"\x14countUserADInstances\x12\x1f.pb.CountUserADInstancesRequest\x1a\x14.pb.RPCCountResponse\x12V\n" +
|
|
"\x13listUserADInstances\x12\x1e.pb.ListUserADInstancesRequest\x1a\x1f.pb.ListUserADInstancesResponse\x12S\n" +
|
|
"\x12findUserADInstance\x12\x1d.pb.FindUserADInstanceRequest\x1a\x1e.pb.FindUserADInstanceResponse\x12G\n" +
|
|
"\x14deleteUserADInstance\x12\x1f.pb.DeleteUserADInstanceRequest\x1a\x0e.pb.RPCSuccess\x12E\n" +
|
|
"\x13renewUserADInstance\x12\x1e.pb.RenewUserADInstanceRequest\x1a\x0e.pb.RPCSuccess\x12U\n" +
|
|
"\x1bupdateUserADInstanceObjects\x12&.pb.UpdateUserADInstanceObjectsRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_user_ad_instance_proto_rawDescOnce sync.Once
|
|
file_service_user_ad_instance_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_user_ad_instance_proto_rawDescGZIP() []byte {
|
|
file_service_user_ad_instance_proto_rawDescOnce.Do(func() {
|
|
file_service_user_ad_instance_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_ad_instance_proto_rawDesc), len(file_service_user_ad_instance_proto_rawDesc)))
|
|
})
|
|
return file_service_user_ad_instance_proto_rawDescData
|
|
}
|
|
|
|
var file_service_user_ad_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_service_user_ad_instance_proto_goTypes = []any{
|
|
(*CreateUserADInstanceRequest)(nil), // 0: pb.CreateUserADInstanceRequest
|
|
(*CreateUserADInstanceResponse)(nil), // 1: pb.CreateUserADInstanceResponse
|
|
(*BuyUserADInstanceRequest)(nil), // 2: pb.BuyUserADInstanceRequest
|
|
(*BuyUserADInstanceResponse)(nil), // 3: pb.BuyUserADInstanceResponse
|
|
(*CountUserADInstancesRequest)(nil), // 4: pb.CountUserADInstancesRequest
|
|
(*ListUserADInstancesRequest)(nil), // 5: pb.ListUserADInstancesRequest
|
|
(*ListUserADInstancesResponse)(nil), // 6: pb.ListUserADInstancesResponse
|
|
(*FindUserADInstanceRequest)(nil), // 7: pb.FindUserADInstanceRequest
|
|
(*FindUserADInstanceResponse)(nil), // 8: pb.FindUserADInstanceResponse
|
|
(*DeleteUserADInstanceRequest)(nil), // 9: pb.DeleteUserADInstanceRequest
|
|
(*RenewUserADInstanceRequest)(nil), // 10: pb.RenewUserADInstanceRequest
|
|
(*UpdateUserADInstanceObjectsRequest)(nil), // 11: pb.UpdateUserADInstanceObjectsRequest
|
|
(*UserADInstance)(nil), // 12: pb.UserADInstance
|
|
(*RPCCountResponse)(nil), // 13: pb.RPCCountResponse
|
|
(*RPCSuccess)(nil), // 14: pb.RPCSuccess
|
|
}
|
|
var file_service_user_ad_instance_proto_depIdxs = []int32{
|
|
12, // 0: pb.ListUserADInstancesResponse.userADInstances:type_name -> pb.UserADInstance
|
|
12, // 1: pb.FindUserADInstanceResponse.userADInstance:type_name -> pb.UserADInstance
|
|
0, // 2: pb.UserADInstanceService.createUserADInstance:input_type -> pb.CreateUserADInstanceRequest
|
|
2, // 3: pb.UserADInstanceService.buyUserADInstance:input_type -> pb.BuyUserADInstanceRequest
|
|
4, // 4: pb.UserADInstanceService.countUserADInstances:input_type -> pb.CountUserADInstancesRequest
|
|
5, // 5: pb.UserADInstanceService.listUserADInstances:input_type -> pb.ListUserADInstancesRequest
|
|
7, // 6: pb.UserADInstanceService.findUserADInstance:input_type -> pb.FindUserADInstanceRequest
|
|
9, // 7: pb.UserADInstanceService.deleteUserADInstance:input_type -> pb.DeleteUserADInstanceRequest
|
|
10, // 8: pb.UserADInstanceService.renewUserADInstance:input_type -> pb.RenewUserADInstanceRequest
|
|
11, // 9: pb.UserADInstanceService.updateUserADInstanceObjects:input_type -> pb.UpdateUserADInstanceObjectsRequest
|
|
1, // 10: pb.UserADInstanceService.createUserADInstance:output_type -> pb.CreateUserADInstanceResponse
|
|
3, // 11: pb.UserADInstanceService.buyUserADInstance:output_type -> pb.BuyUserADInstanceResponse
|
|
13, // 12: pb.UserADInstanceService.countUserADInstances:output_type -> pb.RPCCountResponse
|
|
6, // 13: pb.UserADInstanceService.listUserADInstances:output_type -> pb.ListUserADInstancesResponse
|
|
8, // 14: pb.UserADInstanceService.findUserADInstance:output_type -> pb.FindUserADInstanceResponse
|
|
14, // 15: pb.UserADInstanceService.deleteUserADInstance:output_type -> pb.RPCSuccess
|
|
14, // 16: pb.UserADInstanceService.renewUserADInstance:output_type -> pb.RPCSuccess
|
|
14, // 17: pb.UserADInstanceService.updateUserADInstanceObjects:output_type -> pb.RPCSuccess
|
|
10, // [10:18] is the sub-list for method output_type
|
|
2, // [2:10] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_user_ad_instance_proto_init() }
|
|
func file_service_user_ad_instance_proto_init() {
|
|
if File_service_user_ad_instance_proto != nil {
|
|
return
|
|
}
|
|
file_models_model_user_ad_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_user_ad_instance_proto_rawDesc), len(file_service_user_ad_instance_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_user_ad_instance_proto_goTypes,
|
|
DependencyIndexes: file_service_user_ad_instance_proto_depIdxs,
|
|
MessageInfos: file_service_user_ad_instance_proto_msgTypes,
|
|
}.Build()
|
|
File_service_user_ad_instance_proto = out.File
|
|
file_service_user_ad_instance_proto_goTypes = nil
|
|
file_service_user_ad_instance_proto_depIdxs = nil
|
|
}
|