882 lines
29 KiB
Go
882 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc (unknown)
|
|
// source: app/v1/catalog.proto
|
|
|
|
package appv1
|
|
|
|
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 ListDomainsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDomainsRequest) Reset() {
|
|
*x = ListDomainsRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDomainsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDomainsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListDomainsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 ListDomainsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListDomainsRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type ListDomainsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Domains []*Domain `protobuf:"bytes,1,rep,name=domains,proto3" json:"domains,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListDomainsResponse) Reset() {
|
|
*x = ListDomainsResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListDomainsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListDomainsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListDomainsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 ListDomainsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListDomainsResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ListDomainsResponse) GetDomains() []*Domain {
|
|
if x != nil {
|
|
return x.Domains
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateDomainRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateDomainRequest) Reset() {
|
|
*x = CreateDomainRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateDomainRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateDomainRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateDomainRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 CreateDomainRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateDomainRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateDomainRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CreateDomainResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Domain *Domain `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateDomainResponse) Reset() {
|
|
*x = CreateDomainResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateDomainResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateDomainResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateDomainResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 CreateDomainResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateDomainResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CreateDomainResponse) GetDomain() *Domain {
|
|
if x != nil {
|
|
return x.Domain
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteDomainRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteDomainRequest) Reset() {
|
|
*x = DeleteDomainRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteDomainRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteDomainRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteDomainRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 DeleteDomainRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteDomainRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *DeleteDomainRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListAdTemplatesRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAdTemplatesRequest) Reset() {
|
|
*x = ListAdTemplatesRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAdTemplatesRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAdTemplatesRequest) ProtoMessage() {}
|
|
|
|
func (x *ListAdTemplatesRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 ListAdTemplatesRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListAdTemplatesRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type ListAdTemplatesResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Templates []*AdTemplate `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListAdTemplatesResponse) Reset() {
|
|
*x = ListAdTemplatesResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListAdTemplatesResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListAdTemplatesResponse) ProtoMessage() {}
|
|
|
|
func (x *ListAdTemplatesResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 ListAdTemplatesResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListAdTemplatesResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListAdTemplatesResponse) GetTemplates() []*AdTemplate {
|
|
if x != nil {
|
|
return x.Templates
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateAdTemplateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
VastTagUrl string `protobuf:"bytes,3,opt,name=vast_tag_url,json=vastTagUrl,proto3" json:"vast_tag_url,omitempty"`
|
|
AdFormat *string `protobuf:"bytes,4,opt,name=ad_format,json=adFormat,proto3,oneof" json:"ad_format,omitempty"`
|
|
Duration *int32 `protobuf:"varint,5,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
|
|
IsActive *bool `protobuf:"varint,6,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
|
|
IsDefault *bool `protobuf:"varint,7,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) Reset() {
|
|
*x = CreateAdTemplateRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAdTemplateRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateAdTemplateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 CreateAdTemplateRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateAdTemplateRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetDescription() string {
|
|
if x != nil && x.Description != nil {
|
|
return *x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetVastTagUrl() string {
|
|
if x != nil {
|
|
return x.VastTagUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetAdFormat() string {
|
|
if x != nil && x.AdFormat != nil {
|
|
return *x.AdFormat
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetDuration() int32 {
|
|
if x != nil && x.Duration != nil {
|
|
return *x.Duration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetIsActive() bool {
|
|
if x != nil && x.IsActive != nil {
|
|
return *x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CreateAdTemplateRequest) GetIsDefault() bool {
|
|
if x != nil && x.IsDefault != nil {
|
|
return *x.IsDefault
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateAdTemplateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Template *AdTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateAdTemplateResponse) Reset() {
|
|
*x = CreateAdTemplateResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateAdTemplateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateAdTemplateResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateAdTemplateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 CreateAdTemplateResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateAdTemplateResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *CreateAdTemplateResponse) GetTemplate() *AdTemplate {
|
|
if x != nil {
|
|
return x.Template
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateAdTemplateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
|
VastTagUrl string `protobuf:"bytes,4,opt,name=vast_tag_url,json=vastTagUrl,proto3" json:"vast_tag_url,omitempty"`
|
|
AdFormat *string `protobuf:"bytes,5,opt,name=ad_format,json=adFormat,proto3,oneof" json:"ad_format,omitempty"`
|
|
Duration *int32 `protobuf:"varint,6,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
|
|
IsActive *bool `protobuf:"varint,7,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
|
|
IsDefault *bool `protobuf:"varint,8,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) Reset() {
|
|
*x = UpdateAdTemplateRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateAdTemplateRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateAdTemplateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 UpdateAdTemplateRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateAdTemplateRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetDescription() string {
|
|
if x != nil && x.Description != nil {
|
|
return *x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetVastTagUrl() string {
|
|
if x != nil {
|
|
return x.VastTagUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetAdFormat() string {
|
|
if x != nil && x.AdFormat != nil {
|
|
return *x.AdFormat
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetDuration() int32 {
|
|
if x != nil && x.Duration != nil {
|
|
return *x.Duration
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetIsActive() bool {
|
|
if x != nil && x.IsActive != nil {
|
|
return *x.IsActive
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateAdTemplateRequest) GetIsDefault() bool {
|
|
if x != nil && x.IsDefault != nil {
|
|
return *x.IsDefault
|
|
}
|
|
return false
|
|
}
|
|
|
|
type UpdateAdTemplateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Template *AdTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateAdTemplateResponse) Reset() {
|
|
*x = UpdateAdTemplateResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateAdTemplateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateAdTemplateResponse) ProtoMessage() {}
|
|
|
|
func (x *UpdateAdTemplateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 UpdateAdTemplateResponse.ProtoReflect.Descriptor instead.
|
|
func (*UpdateAdTemplateResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *UpdateAdTemplateResponse) GetTemplate() *AdTemplate {
|
|
if x != nil {
|
|
return x.Template
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteAdTemplateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteAdTemplateRequest) Reset() {
|
|
*x = DeleteAdTemplateRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteAdTemplateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteAdTemplateRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteAdTemplateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_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 DeleteAdTemplateRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteAdTemplateRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteAdTemplateRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListPlansRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPlansRequest) Reset() {
|
|
*x = ListPlansRequest{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPlansRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPlansRequest) ProtoMessage() {}
|
|
|
|
func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
|
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 ListPlansRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListPlansRequest) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
type ListPlansResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListPlansResponse) Reset() {
|
|
*x = ListPlansResponse{}
|
|
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListPlansResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListPlansResponse) ProtoMessage() {}
|
|
|
|
func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
|
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 ListPlansResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListPlansResponse) Descriptor() ([]byte, []int) {
|
|
return file_app_v1_catalog_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListPlansResponse) GetPlans() []*Plan {
|
|
if x != nil {
|
|
return x.Plans
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_app_v1_catalog_proto protoreflect.FileDescriptor
|
|
|
|
const file_app_v1_catalog_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x14app/v1/catalog.proto\x12\rstream.app.v1\x1a\x13app/v1/common.proto\"\x14\n" +
|
|
"\x12ListDomainsRequest\"F\n" +
|
|
"\x13ListDomainsResponse\x12/\n" +
|
|
"\adomains\x18\x01 \x03(\v2\x15.stream.app.v1.DomainR\adomains\")\n" +
|
|
"\x13CreateDomainRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\"E\n" +
|
|
"\x14CreateDomainResponse\x12-\n" +
|
|
"\x06domain\x18\x01 \x01(\v2\x15.stream.app.v1.DomainR\x06domain\"%\n" +
|
|
"\x13DeleteDomainRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x18\n" +
|
|
"\x16ListAdTemplatesRequest\"R\n" +
|
|
"\x17ListAdTemplatesResponse\x127\n" +
|
|
"\ttemplates\x18\x01 \x03(\v2\x19.stream.app.v1.AdTemplateR\ttemplates\"\xc7\x02\n" +
|
|
"\x17CreateAdTemplateRequest\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12%\n" +
|
|
"\vdescription\x18\x02 \x01(\tH\x00R\vdescription\x88\x01\x01\x12 \n" +
|
|
"\fvast_tag_url\x18\x03 \x01(\tR\n" +
|
|
"vastTagUrl\x12 \n" +
|
|
"\tad_format\x18\x04 \x01(\tH\x01R\badFormat\x88\x01\x01\x12\x1f\n" +
|
|
"\bduration\x18\x05 \x01(\x05H\x02R\bduration\x88\x01\x01\x12 \n" +
|
|
"\tis_active\x18\x06 \x01(\bH\x03R\bisActive\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"is_default\x18\a \x01(\bH\x04R\tisDefault\x88\x01\x01B\x0e\n" +
|
|
"\f_descriptionB\f\n" +
|
|
"\n" +
|
|
"_ad_formatB\v\n" +
|
|
"\t_durationB\f\n" +
|
|
"\n" +
|
|
"_is_activeB\r\n" +
|
|
"\v_is_default\"Q\n" +
|
|
"\x18CreateAdTemplateResponse\x125\n" +
|
|
"\btemplate\x18\x01 \x01(\v2\x19.stream.app.v1.AdTemplateR\btemplate\"\xd7\x02\n" +
|
|
"\x17UpdateAdTemplateRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
|
"\x04name\x18\x02 \x01(\tR\x04name\x12%\n" +
|
|
"\vdescription\x18\x03 \x01(\tH\x00R\vdescription\x88\x01\x01\x12 \n" +
|
|
"\fvast_tag_url\x18\x04 \x01(\tR\n" +
|
|
"vastTagUrl\x12 \n" +
|
|
"\tad_format\x18\x05 \x01(\tH\x01R\badFormat\x88\x01\x01\x12\x1f\n" +
|
|
"\bduration\x18\x06 \x01(\x05H\x02R\bduration\x88\x01\x01\x12 \n" +
|
|
"\tis_active\x18\a \x01(\bH\x03R\bisActive\x88\x01\x01\x12\"\n" +
|
|
"\n" +
|
|
"is_default\x18\b \x01(\bH\x04R\tisDefault\x88\x01\x01B\x0e\n" +
|
|
"\f_descriptionB\f\n" +
|
|
"\n" +
|
|
"_ad_formatB\v\n" +
|
|
"\t_durationB\f\n" +
|
|
"\n" +
|
|
"_is_activeB\r\n" +
|
|
"\v_is_default\"Q\n" +
|
|
"\x18UpdateAdTemplateResponse\x125\n" +
|
|
"\btemplate\x18\x01 \x01(\v2\x19.stream.app.v1.AdTemplateR\btemplate\")\n" +
|
|
"\x17DeleteAdTemplateRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"\x12\n" +
|
|
"\x10ListPlansRequest\">\n" +
|
|
"\x11ListPlansResponse\x12)\n" +
|
|
"\x05plans\x18\x01 \x03(\v2\x13.stream.app.v1.PlanR\x05plans2\x93\x02\n" +
|
|
"\x0eDomainsService\x12T\n" +
|
|
"\vListDomains\x12!.stream.app.v1.ListDomainsRequest\x1a\".stream.app.v1.ListDomainsResponse\x12W\n" +
|
|
"\fCreateDomain\x12\".stream.app.v1.CreateDomainRequest\x1a#.stream.app.v1.CreateDomainResponse\x12R\n" +
|
|
"\fDeleteDomain\x12\".stream.app.v1.DeleteDomainRequest\x1a\x1e.stream.app.v1.MessageResponse2\x9c\x03\n" +
|
|
"\x12AdTemplatesService\x12`\n" +
|
|
"\x0fListAdTemplates\x12%.stream.app.v1.ListAdTemplatesRequest\x1a&.stream.app.v1.ListAdTemplatesResponse\x12c\n" +
|
|
"\x10CreateAdTemplate\x12&.stream.app.v1.CreateAdTemplateRequest\x1a'.stream.app.v1.CreateAdTemplateResponse\x12c\n" +
|
|
"\x10UpdateAdTemplate\x12&.stream.app.v1.UpdateAdTemplateRequest\x1a'.stream.app.v1.UpdateAdTemplateResponse\x12Z\n" +
|
|
"\x10DeleteAdTemplate\x12&.stream.app.v1.DeleteAdTemplateRequest\x1a\x1e.stream.app.v1.MessageResponse2^\n" +
|
|
"\fPlansService\x12N\n" +
|
|
"\tListPlans\x12\x1f.stream.app.v1.ListPlansRequest\x1a .stream.app.v1.ListPlansResponseB,Z*stream.api/internal/gen/proto/app/v1;appv1b\x06proto3"
|
|
|
|
var (
|
|
file_app_v1_catalog_proto_rawDescOnce sync.Once
|
|
file_app_v1_catalog_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_app_v1_catalog_proto_rawDescGZIP() []byte {
|
|
file_app_v1_catalog_proto_rawDescOnce.Do(func() {
|
|
file_app_v1_catalog_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_v1_catalog_proto_rawDesc), len(file_app_v1_catalog_proto_rawDesc)))
|
|
})
|
|
return file_app_v1_catalog_proto_rawDescData
|
|
}
|
|
|
|
var file_app_v1_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
|
var file_app_v1_catalog_proto_goTypes = []any{
|
|
(*ListDomainsRequest)(nil), // 0: stream.app.v1.ListDomainsRequest
|
|
(*ListDomainsResponse)(nil), // 1: stream.app.v1.ListDomainsResponse
|
|
(*CreateDomainRequest)(nil), // 2: stream.app.v1.CreateDomainRequest
|
|
(*CreateDomainResponse)(nil), // 3: stream.app.v1.CreateDomainResponse
|
|
(*DeleteDomainRequest)(nil), // 4: stream.app.v1.DeleteDomainRequest
|
|
(*ListAdTemplatesRequest)(nil), // 5: stream.app.v1.ListAdTemplatesRequest
|
|
(*ListAdTemplatesResponse)(nil), // 6: stream.app.v1.ListAdTemplatesResponse
|
|
(*CreateAdTemplateRequest)(nil), // 7: stream.app.v1.CreateAdTemplateRequest
|
|
(*CreateAdTemplateResponse)(nil), // 8: stream.app.v1.CreateAdTemplateResponse
|
|
(*UpdateAdTemplateRequest)(nil), // 9: stream.app.v1.UpdateAdTemplateRequest
|
|
(*UpdateAdTemplateResponse)(nil), // 10: stream.app.v1.UpdateAdTemplateResponse
|
|
(*DeleteAdTemplateRequest)(nil), // 11: stream.app.v1.DeleteAdTemplateRequest
|
|
(*ListPlansRequest)(nil), // 12: stream.app.v1.ListPlansRequest
|
|
(*ListPlansResponse)(nil), // 13: stream.app.v1.ListPlansResponse
|
|
(*Domain)(nil), // 14: stream.app.v1.Domain
|
|
(*AdTemplate)(nil), // 15: stream.app.v1.AdTemplate
|
|
(*Plan)(nil), // 16: stream.app.v1.Plan
|
|
(*MessageResponse)(nil), // 17: stream.app.v1.MessageResponse
|
|
}
|
|
var file_app_v1_catalog_proto_depIdxs = []int32{
|
|
14, // 0: stream.app.v1.ListDomainsResponse.domains:type_name -> stream.app.v1.Domain
|
|
14, // 1: stream.app.v1.CreateDomainResponse.domain:type_name -> stream.app.v1.Domain
|
|
15, // 2: stream.app.v1.ListAdTemplatesResponse.templates:type_name -> stream.app.v1.AdTemplate
|
|
15, // 3: stream.app.v1.CreateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
|
15, // 4: stream.app.v1.UpdateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
|
16, // 5: stream.app.v1.ListPlansResponse.plans:type_name -> stream.app.v1.Plan
|
|
0, // 6: stream.app.v1.DomainsService.ListDomains:input_type -> stream.app.v1.ListDomainsRequest
|
|
2, // 7: stream.app.v1.DomainsService.CreateDomain:input_type -> stream.app.v1.CreateDomainRequest
|
|
4, // 8: stream.app.v1.DomainsService.DeleteDomain:input_type -> stream.app.v1.DeleteDomainRequest
|
|
5, // 9: stream.app.v1.AdTemplatesService.ListAdTemplates:input_type -> stream.app.v1.ListAdTemplatesRequest
|
|
7, // 10: stream.app.v1.AdTemplatesService.CreateAdTemplate:input_type -> stream.app.v1.CreateAdTemplateRequest
|
|
9, // 11: stream.app.v1.AdTemplatesService.UpdateAdTemplate:input_type -> stream.app.v1.UpdateAdTemplateRequest
|
|
11, // 12: stream.app.v1.AdTemplatesService.DeleteAdTemplate:input_type -> stream.app.v1.DeleteAdTemplateRequest
|
|
12, // 13: stream.app.v1.PlansService.ListPlans:input_type -> stream.app.v1.ListPlansRequest
|
|
1, // 14: stream.app.v1.DomainsService.ListDomains:output_type -> stream.app.v1.ListDomainsResponse
|
|
3, // 15: stream.app.v1.DomainsService.CreateDomain:output_type -> stream.app.v1.CreateDomainResponse
|
|
17, // 16: stream.app.v1.DomainsService.DeleteDomain:output_type -> stream.app.v1.MessageResponse
|
|
6, // 17: stream.app.v1.AdTemplatesService.ListAdTemplates:output_type -> stream.app.v1.ListAdTemplatesResponse
|
|
8, // 18: stream.app.v1.AdTemplatesService.CreateAdTemplate:output_type -> stream.app.v1.CreateAdTemplateResponse
|
|
10, // 19: stream.app.v1.AdTemplatesService.UpdateAdTemplate:output_type -> stream.app.v1.UpdateAdTemplateResponse
|
|
17, // 20: stream.app.v1.AdTemplatesService.DeleteAdTemplate:output_type -> stream.app.v1.MessageResponse
|
|
13, // 21: stream.app.v1.PlansService.ListPlans:output_type -> stream.app.v1.ListPlansResponse
|
|
14, // [14:22] is the sub-list for method output_type
|
|
6, // [6:14] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_app_v1_catalog_proto_init() }
|
|
func file_app_v1_catalog_proto_init() {
|
|
if File_app_v1_catalog_proto != nil {
|
|
return
|
|
}
|
|
file_app_v1_common_proto_init()
|
|
file_app_v1_catalog_proto_msgTypes[7].OneofWrappers = []any{}
|
|
file_app_v1_catalog_proto_msgTypes[9].OneofWrappers = []any{}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_v1_catalog_proto_rawDesc), len(file_app_v1_catalog_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 14,
|
|
NumExtensions: 0,
|
|
NumServices: 3,
|
|
},
|
|
GoTypes: file_app_v1_catalog_proto_goTypes,
|
|
DependencyIndexes: file_app_v1_catalog_proto_depIdxs,
|
|
MessageInfos: file_app_v1_catalog_proto_msgTypes,
|
|
}.Build()
|
|
File_app_v1_catalog_proto = out.File
|
|
file_app_v1_catalog_proto_goTypes = nil
|
|
file_app_v1_catalog_proto_depIdxs = nil
|
|
}
|