Files
stream.api/internal/gen/proto/app/v1/common.pb.go
2026-03-13 02:17:18 +00:00

3188 lines
96 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: app/v1/common.proto
package appv1
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
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 MessageResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageResponse) Reset() {
*x = MessageResponse{}
mi := &file_app_v1_common_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MessageResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageResponse) ProtoMessage() {}
func (x *MessageResponse) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 MessageResponse.ProtoReflect.Descriptor instead.
func (*MessageResponse) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{0}
}
func (x *MessageResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
type User struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"`
Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
Role *string `protobuf:"bytes,5,opt,name=role,proto3,oneof" json:"role,omitempty"`
GoogleId *string `protobuf:"bytes,6,opt,name=google_id,json=googleId,proto3,oneof" json:"google_id,omitempty"`
StorageUsed int64 `protobuf:"varint,7,opt,name=storage_used,json=storageUsed,proto3" json:"storage_used,omitempty"`
PlanId *string `protobuf:"bytes,8,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
PlanStartedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=plan_started_at,json=planStartedAt,proto3" json:"plan_started_at,omitempty"`
PlanExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=plan_expires_at,json=planExpiresAt,proto3" json:"plan_expires_at,omitempty"`
PlanTermMonths *int32 `protobuf:"varint,11,opt,name=plan_term_months,json=planTermMonths,proto3,oneof" json:"plan_term_months,omitempty"`
PlanPaymentMethod *string `protobuf:"bytes,12,opt,name=plan_payment_method,json=planPaymentMethod,proto3,oneof" json:"plan_payment_method,omitempty"`
PlanExpiringSoon bool `protobuf:"varint,13,opt,name=plan_expiring_soon,json=planExpiringSoon,proto3" json:"plan_expiring_soon,omitempty"`
WalletBalance float64 `protobuf:"fixed64,14,opt,name=wallet_balance,json=walletBalance,proto3" json:"wallet_balance,omitempty"`
Language string `protobuf:"bytes,15,opt,name=language,proto3" json:"language,omitempty"`
Locale string `protobuf:"bytes,16,opt,name=locale,proto3" json:"locale,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *User) Reset() {
*x = User{}
mi := &file_app_v1_common_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *User) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*User) ProtoMessage() {}
func (x *User) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 User.ProtoReflect.Descriptor instead.
func (*User) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{1}
}
func (x *User) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *User) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *User) GetUsername() string {
if x != nil && x.Username != nil {
return *x.Username
}
return ""
}
func (x *User) GetAvatar() string {
if x != nil && x.Avatar != nil {
return *x.Avatar
}
return ""
}
func (x *User) GetRole() string {
if x != nil && x.Role != nil {
return *x.Role
}
return ""
}
func (x *User) GetGoogleId() string {
if x != nil && x.GoogleId != nil {
return *x.GoogleId
}
return ""
}
func (x *User) GetStorageUsed() int64 {
if x != nil {
return x.StorageUsed
}
return 0
}
func (x *User) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *User) GetPlanStartedAt() *timestamppb.Timestamp {
if x != nil {
return x.PlanStartedAt
}
return nil
}
func (x *User) GetPlanExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.PlanExpiresAt
}
return nil
}
func (x *User) GetPlanTermMonths() int32 {
if x != nil && x.PlanTermMonths != nil {
return *x.PlanTermMonths
}
return 0
}
func (x *User) GetPlanPaymentMethod() string {
if x != nil && x.PlanPaymentMethod != nil {
return *x.PlanPaymentMethod
}
return ""
}
func (x *User) GetPlanExpiringSoon() bool {
if x != nil {
return x.PlanExpiringSoon
}
return false
}
func (x *User) GetWalletBalance() float64 {
if x != nil {
return x.WalletBalance
}
return 0
}
func (x *User) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *User) GetLocale() string {
if x != nil {
return x.Locale
}
return ""
}
func (x *User) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *User) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type Preferences struct {
state protoimpl.MessageState `protogen:"open.v1"`
EmailNotifications bool `protobuf:"varint,1,opt,name=email_notifications,json=emailNotifications,proto3" json:"email_notifications,omitempty"`
PushNotifications bool `protobuf:"varint,2,opt,name=push_notifications,json=pushNotifications,proto3" json:"push_notifications,omitempty"`
MarketingNotifications bool `protobuf:"varint,3,opt,name=marketing_notifications,json=marketingNotifications,proto3" json:"marketing_notifications,omitempty"`
TelegramNotifications bool `protobuf:"varint,4,opt,name=telegram_notifications,json=telegramNotifications,proto3" json:"telegram_notifications,omitempty"`
Autoplay bool `protobuf:"varint,5,opt,name=autoplay,proto3" json:"autoplay,omitempty"`
Loop bool `protobuf:"varint,6,opt,name=loop,proto3" json:"loop,omitempty"`
Muted bool `protobuf:"varint,7,opt,name=muted,proto3" json:"muted,omitempty"`
ShowControls bool `protobuf:"varint,8,opt,name=show_controls,json=showControls,proto3" json:"show_controls,omitempty"`
Pip bool `protobuf:"varint,9,opt,name=pip,proto3" json:"pip,omitempty"`
Airplay bool `protobuf:"varint,10,opt,name=airplay,proto3" json:"airplay,omitempty"`
Chromecast bool `protobuf:"varint,11,opt,name=chromecast,proto3" json:"chromecast,omitempty"`
Language string `protobuf:"bytes,12,opt,name=language,proto3" json:"language,omitempty"`
Locale string `protobuf:"bytes,13,opt,name=locale,proto3" json:"locale,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Preferences) Reset() {
*x = Preferences{}
mi := &file_app_v1_common_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Preferences) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Preferences) ProtoMessage() {}
func (x *Preferences) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Preferences.ProtoReflect.Descriptor instead.
func (*Preferences) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{2}
}
func (x *Preferences) GetEmailNotifications() bool {
if x != nil {
return x.EmailNotifications
}
return false
}
func (x *Preferences) GetPushNotifications() bool {
if x != nil {
return x.PushNotifications
}
return false
}
func (x *Preferences) GetMarketingNotifications() bool {
if x != nil {
return x.MarketingNotifications
}
return false
}
func (x *Preferences) GetTelegramNotifications() bool {
if x != nil {
return x.TelegramNotifications
}
return false
}
func (x *Preferences) GetAutoplay() bool {
if x != nil {
return x.Autoplay
}
return false
}
func (x *Preferences) GetLoop() bool {
if x != nil {
return x.Loop
}
return false
}
func (x *Preferences) GetMuted() bool {
if x != nil {
return x.Muted
}
return false
}
func (x *Preferences) GetShowControls() bool {
if x != nil {
return x.ShowControls
}
return false
}
func (x *Preferences) GetPip() bool {
if x != nil {
return x.Pip
}
return false
}
func (x *Preferences) GetAirplay() bool {
if x != nil {
return x.Airplay
}
return false
}
func (x *Preferences) GetChromecast() bool {
if x != nil {
return x.Chromecast
}
return false
}
func (x *Preferences) GetLanguage() string {
if x != nil {
return x.Language
}
return ""
}
func (x *Preferences) GetLocale() string {
if x != nil {
return x.Locale
}
return ""
}
type Notification struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
Read bool `protobuf:"varint,5,opt,name=read,proto3" json:"read,omitempty"`
ActionUrl *string `protobuf:"bytes,6,opt,name=action_url,json=actionUrl,proto3,oneof" json:"action_url,omitempty"`
ActionLabel *string `protobuf:"bytes,7,opt,name=action_label,json=actionLabel,proto3,oneof" json:"action_label,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Notification) Reset() {
*x = Notification{}
mi := &file_app_v1_common_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Notification) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Notification) ProtoMessage() {}
func (x *Notification) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Notification.ProtoReflect.Descriptor instead.
func (*Notification) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{3}
}
func (x *Notification) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Notification) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Notification) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Notification) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *Notification) GetRead() bool {
if x != nil {
return x.Read
}
return false
}
func (x *Notification) GetActionUrl() string {
if x != nil && x.ActionUrl != nil {
return *x.ActionUrl
}
return ""
}
func (x *Notification) GetActionLabel() string {
if x != nil && x.ActionLabel != nil {
return *x.ActionLabel
}
return ""
}
func (x *Notification) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
type Domain 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"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Domain) Reset() {
*x = Domain{}
mi := &file_app_v1_common_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Domain) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Domain) ProtoMessage() {}
func (x *Domain) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Domain.ProtoReflect.Descriptor instead.
func (*Domain) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{4}
}
func (x *Domain) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Domain) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Domain) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Domain) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdTemplate 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" 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" json:"is_active,omitempty"`
IsDefault bool `protobuf:"varint,8,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdTemplate) Reset() {
*x = AdTemplate{}
mi := &file_app_v1_common_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdTemplate) ProtoMessage() {}
func (x *AdTemplate) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 AdTemplate.ProtoReflect.Descriptor instead.
func (*AdTemplate) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{5}
}
func (x *AdTemplate) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdTemplate) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdTemplate) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *AdTemplate) GetVastTagUrl() string {
if x != nil {
return x.VastTagUrl
}
return ""
}
func (x *AdTemplate) GetAdFormat() string {
if x != nil {
return x.AdFormat
}
return ""
}
func (x *AdTemplate) GetDuration() int32 {
if x != nil && x.Duration != nil {
return *x.Duration
}
return 0
}
func (x *AdTemplate) GetIsActive() bool {
if x != nil {
return x.IsActive
}
return false
}
func (x *AdTemplate) GetIsDefault() bool {
if x != nil {
return x.IsDefault
}
return false
}
func (x *AdTemplate) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdTemplate) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type Plan 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"`
Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
Cycle string `protobuf:"bytes,5,opt,name=cycle,proto3" json:"cycle,omitempty"`
StorageLimit int64 `protobuf:"varint,6,opt,name=storage_limit,json=storageLimit,proto3" json:"storage_limit,omitempty"`
UploadLimit int32 `protobuf:"varint,7,opt,name=upload_limit,json=uploadLimit,proto3" json:"upload_limit,omitempty"`
DurationLimit int32 `protobuf:"varint,8,opt,name=duration_limit,json=durationLimit,proto3" json:"duration_limit,omitempty"`
QualityLimit string `protobuf:"bytes,9,opt,name=quality_limit,json=qualityLimit,proto3" json:"quality_limit,omitempty"`
Features []string `protobuf:"bytes,10,rep,name=features,proto3" json:"features,omitempty"`
IsActive bool `protobuf:"varint,11,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Plan) Reset() {
*x = Plan{}
mi := &file_app_v1_common_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Plan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Plan) ProtoMessage() {}
func (x *Plan) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Plan.ProtoReflect.Descriptor instead.
func (*Plan) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{6}
}
func (x *Plan) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Plan) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Plan) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *Plan) GetPrice() float64 {
if x != nil {
return x.Price
}
return 0
}
func (x *Plan) GetCycle() string {
if x != nil {
return x.Cycle
}
return ""
}
func (x *Plan) GetStorageLimit() int64 {
if x != nil {
return x.StorageLimit
}
return 0
}
func (x *Plan) GetUploadLimit() int32 {
if x != nil {
return x.UploadLimit
}
return 0
}
func (x *Plan) GetDurationLimit() int32 {
if x != nil {
return x.DurationLimit
}
return 0
}
func (x *Plan) GetQualityLimit() string {
if x != nil {
return x.QualityLimit
}
return ""
}
func (x *Plan) GetFeatures() []string {
if x != nil {
return x.Features
}
return nil
}
func (x *Plan) GetIsActive() bool {
if x != nil {
return x.IsActive
}
return false
}
type Payment struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
PlanId *string `protobuf:"bytes,3,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
TransactionId *string `protobuf:"bytes,8,opt,name=transaction_id,json=transactionId,proto3,oneof" json:"transaction_id,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Payment) Reset() {
*x = Payment{}
mi := &file_app_v1_common_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Payment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Payment) ProtoMessage() {}
func (x *Payment) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Payment.ProtoReflect.Descriptor instead.
func (*Payment) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{7}
}
func (x *Payment) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Payment) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *Payment) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *Payment) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *Payment) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *Payment) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *Payment) GetProvider() string {
if x != nil {
return x.Provider
}
return ""
}
func (x *Payment) GetTransactionId() string {
if x != nil && x.TransactionId != nil {
return *x.TransactionId
}
return ""
}
func (x *Payment) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Payment) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type PlanSubscription struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
PaymentId string `protobuf:"bytes,3,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
PlanId string `protobuf:"bytes,4,opt,name=plan_id,json=planId,proto3" json:"plan_id,omitempty"`
TermMonths int32 `protobuf:"varint,5,opt,name=term_months,json=termMonths,proto3" json:"term_months,omitempty"`
PaymentMethod string `protobuf:"bytes,6,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"`
WalletAmount float64 `protobuf:"fixed64,7,opt,name=wallet_amount,json=walletAmount,proto3" json:"wallet_amount,omitempty"`
TopupAmount float64 `protobuf:"fixed64,8,opt,name=topup_amount,json=topupAmount,proto3" json:"topup_amount,omitempty"`
StartedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlanSubscription) Reset() {
*x = PlanSubscription{}
mi := &file_app_v1_common_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlanSubscription) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlanSubscription) ProtoMessage() {}
func (x *PlanSubscription) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 PlanSubscription.ProtoReflect.Descriptor instead.
func (*PlanSubscription) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{8}
}
func (x *PlanSubscription) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PlanSubscription) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *PlanSubscription) GetPaymentId() string {
if x != nil {
return x.PaymentId
}
return ""
}
func (x *PlanSubscription) GetPlanId() string {
if x != nil {
return x.PlanId
}
return ""
}
func (x *PlanSubscription) GetTermMonths() int32 {
if x != nil {
return x.TermMonths
}
return 0
}
func (x *PlanSubscription) GetPaymentMethod() string {
if x != nil {
return x.PaymentMethod
}
return ""
}
func (x *PlanSubscription) GetWalletAmount() float64 {
if x != nil {
return x.WalletAmount
}
return 0
}
func (x *PlanSubscription) GetTopupAmount() float64 {
if x != nil {
return x.TopupAmount
}
return 0
}
func (x *PlanSubscription) GetStartedAt() *timestamppb.Timestamp {
if x != nil {
return x.StartedAt
}
return nil
}
func (x *PlanSubscription) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
func (x *PlanSubscription) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *PlanSubscription) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type WalletTransaction struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
Note *string `protobuf:"bytes,6,opt,name=note,proto3,oneof" json:"note,omitempty"`
PaymentId *string `protobuf:"bytes,7,opt,name=payment_id,json=paymentId,proto3,oneof" json:"payment_id,omitempty"`
PlanId *string `protobuf:"bytes,8,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
TermMonths *int32 `protobuf:"varint,9,opt,name=term_months,json=termMonths,proto3,oneof" json:"term_months,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WalletTransaction) Reset() {
*x = WalletTransaction{}
mi := &file_app_v1_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WalletTransaction) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WalletTransaction) ProtoMessage() {}
func (x *WalletTransaction) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 WalletTransaction.ProtoReflect.Descriptor instead.
func (*WalletTransaction) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{9}
}
func (x *WalletTransaction) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *WalletTransaction) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *WalletTransaction) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *WalletTransaction) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *WalletTransaction) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *WalletTransaction) GetNote() string {
if x != nil && x.Note != nil {
return *x.Note
}
return ""
}
func (x *WalletTransaction) GetPaymentId() string {
if x != nil && x.PaymentId != nil {
return *x.PaymentId
}
return ""
}
func (x *WalletTransaction) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *WalletTransaction) GetTermMonths() int32 {
if x != nil && x.TermMonths != nil {
return *x.TermMonths
}
return 0
}
func (x *WalletTransaction) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *WalletTransaction) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type PaymentHistoryItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"`
Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
PlanId *string `protobuf:"bytes,5,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
PlanName *string `protobuf:"bytes,6,opt,name=plan_name,json=planName,proto3,oneof" json:"plan_name,omitempty"`
InvoiceId string `protobuf:"bytes,7,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
Kind string `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"`
TermMonths *int32 `protobuf:"varint,9,opt,name=term_months,json=termMonths,proto3,oneof" json:"term_months,omitempty"`
PaymentMethod *string `protobuf:"bytes,10,opt,name=payment_method,json=paymentMethod,proto3,oneof" json:"payment_method,omitempty"`
ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PaymentHistoryItem) Reset() {
*x = PaymentHistoryItem{}
mi := &file_app_v1_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PaymentHistoryItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PaymentHistoryItem) ProtoMessage() {}
func (x *PaymentHistoryItem) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 PaymentHistoryItem.ProtoReflect.Descriptor instead.
func (*PaymentHistoryItem) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{10}
}
func (x *PaymentHistoryItem) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *PaymentHistoryItem) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *PaymentHistoryItem) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *PaymentHistoryItem) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *PaymentHistoryItem) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *PaymentHistoryItem) GetPlanName() string {
if x != nil && x.PlanName != nil {
return *x.PlanName
}
return ""
}
func (x *PaymentHistoryItem) GetInvoiceId() string {
if x != nil {
return x.InvoiceId
}
return ""
}
func (x *PaymentHistoryItem) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
func (x *PaymentHistoryItem) GetTermMonths() int32 {
if x != nil && x.TermMonths != nil {
return *x.TermMonths
}
return 0
}
func (x *PaymentHistoryItem) GetPaymentMethod() string {
if x != nil && x.PaymentMethod != nil {
return *x.PaymentMethod
}
return ""
}
func (x *PaymentHistoryItem) GetExpiresAt() *timestamppb.Timestamp {
if x != nil {
return x.ExpiresAt
}
return nil
}
func (x *PaymentHistoryItem) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
type Video struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
Duration int32 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration,omitempty"`
Format string `protobuf:"bytes,9,opt,name=format,proto3" json:"format,omitempty"`
Thumbnail *string `protobuf:"bytes,10,opt,name=thumbnail,proto3,oneof" json:"thumbnail,omitempty"`
ProcessingStatus *string `protobuf:"bytes,11,opt,name=processing_status,json=processingStatus,proto3,oneof" json:"processing_status,omitempty"`
StorageType *string `protobuf:"bytes,12,opt,name=storage_type,json=storageType,proto3,oneof" json:"storage_type,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Video) Reset() {
*x = Video{}
mi := &file_app_v1_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Video) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Video) ProtoMessage() {}
func (x *Video) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 Video.ProtoReflect.Descriptor instead.
func (*Video) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{11}
}
func (x *Video) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Video) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *Video) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Video) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *Video) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *Video) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *Video) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (x *Video) GetDuration() int32 {
if x != nil {
return x.Duration
}
return 0
}
func (x *Video) GetFormat() string {
if x != nil {
return x.Format
}
return ""
}
func (x *Video) GetThumbnail() string {
if x != nil && x.Thumbnail != nil {
return *x.Thumbnail
}
return ""
}
func (x *Video) GetProcessingStatus() string {
if x != nil && x.ProcessingStatus != nil {
return *x.ProcessingStatus
}
return ""
}
func (x *Video) GetStorageType() string {
if x != nil && x.StorageType != nil {
return *x.StorageType
}
return ""
}
func (x *Video) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Video) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminDashboard struct {
state protoimpl.MessageState `protogen:"open.v1"`
TotalUsers int64 `protobuf:"varint,1,opt,name=total_users,json=totalUsers,proto3" json:"total_users,omitempty"`
TotalVideos int64 `protobuf:"varint,2,opt,name=total_videos,json=totalVideos,proto3" json:"total_videos,omitempty"`
TotalStorageUsed int64 `protobuf:"varint,3,opt,name=total_storage_used,json=totalStorageUsed,proto3" json:"total_storage_used,omitempty"`
TotalPayments int64 `protobuf:"varint,4,opt,name=total_payments,json=totalPayments,proto3" json:"total_payments,omitempty"`
TotalRevenue float64 `protobuf:"fixed64,5,opt,name=total_revenue,json=totalRevenue,proto3" json:"total_revenue,omitempty"`
ActiveSubscriptions int64 `protobuf:"varint,6,opt,name=active_subscriptions,json=activeSubscriptions,proto3" json:"active_subscriptions,omitempty"`
TotalAdTemplates int64 `protobuf:"varint,7,opt,name=total_ad_templates,json=totalAdTemplates,proto3" json:"total_ad_templates,omitempty"`
NewUsersToday int64 `protobuf:"varint,8,opt,name=new_users_today,json=newUsersToday,proto3" json:"new_users_today,omitempty"`
NewVideosToday int64 `protobuf:"varint,9,opt,name=new_videos_today,json=newVideosToday,proto3" json:"new_videos_today,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminDashboard) Reset() {
*x = AdminDashboard{}
mi := &file_app_v1_common_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminDashboard) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminDashboard) ProtoMessage() {}
func (x *AdminDashboard) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 AdminDashboard.ProtoReflect.Descriptor instead.
func (*AdminDashboard) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{12}
}
func (x *AdminDashboard) GetTotalUsers() int64 {
if x != nil {
return x.TotalUsers
}
return 0
}
func (x *AdminDashboard) GetTotalVideos() int64 {
if x != nil {
return x.TotalVideos
}
return 0
}
func (x *AdminDashboard) GetTotalStorageUsed() int64 {
if x != nil {
return x.TotalStorageUsed
}
return 0
}
func (x *AdminDashboard) GetTotalPayments() int64 {
if x != nil {
return x.TotalPayments
}
return 0
}
func (x *AdminDashboard) GetTotalRevenue() float64 {
if x != nil {
return x.TotalRevenue
}
return 0
}
func (x *AdminDashboard) GetActiveSubscriptions() int64 {
if x != nil {
return x.ActiveSubscriptions
}
return 0
}
func (x *AdminDashboard) GetTotalAdTemplates() int64 {
if x != nil {
return x.TotalAdTemplates
}
return 0
}
func (x *AdminDashboard) GetNewUsersToday() int64 {
if x != nil {
return x.NewUsersToday
}
return 0
}
func (x *AdminDashboard) GetNewVideosToday() int64 {
if x != nil {
return x.NewVideosToday
}
return 0
}
type AdminUser struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Username *string `protobuf:"bytes,3,opt,name=username,proto3,oneof" json:"username,omitempty"`
Avatar *string `protobuf:"bytes,4,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"`
Role *string `protobuf:"bytes,5,opt,name=role,proto3,oneof" json:"role,omitempty"`
PlanId *string `protobuf:"bytes,6,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
PlanName *string `protobuf:"bytes,7,opt,name=plan_name,json=planName,proto3,oneof" json:"plan_name,omitempty"`
StorageUsed int64 `protobuf:"varint,8,opt,name=storage_used,json=storageUsed,proto3" json:"storage_used,omitempty"`
VideoCount int64 `protobuf:"varint,9,opt,name=video_count,json=videoCount,proto3" json:"video_count,omitempty"`
WalletBalance float64 `protobuf:"fixed64,10,opt,name=wallet_balance,json=walletBalance,proto3" json:"wallet_balance,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminUser) Reset() {
*x = AdminUser{}
mi := &file_app_v1_common_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminUser) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminUser) ProtoMessage() {}
func (x *AdminUser) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_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 AdminUser.ProtoReflect.Descriptor instead.
func (*AdminUser) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{13}
}
func (x *AdminUser) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminUser) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *AdminUser) GetUsername() string {
if x != nil && x.Username != nil {
return *x.Username
}
return ""
}
func (x *AdminUser) GetAvatar() string {
if x != nil && x.Avatar != nil {
return *x.Avatar
}
return ""
}
func (x *AdminUser) GetRole() string {
if x != nil && x.Role != nil {
return *x.Role
}
return ""
}
func (x *AdminUser) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *AdminUser) GetPlanName() string {
if x != nil && x.PlanName != nil {
return *x.PlanName
}
return ""
}
func (x *AdminUser) GetStorageUsed() int64 {
if x != nil {
return x.StorageUsed
}
return 0
}
func (x *AdminUser) GetVideoCount() int64 {
if x != nil {
return x.VideoCount
}
return 0
}
func (x *AdminUser) GetWalletBalance() float64 {
if x != nil {
return x.WalletBalance
}
return 0
}
func (x *AdminUser) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminUser) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminUserDetail struct {
state protoimpl.MessageState `protogen:"open.v1"`
User *AdminUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Subscription *PlanSubscription `protobuf:"bytes,2,opt,name=subscription,proto3,oneof" json:"subscription,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminUserDetail) Reset() {
*x = AdminUserDetail{}
mi := &file_app_v1_common_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminUserDetail) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminUserDetail) ProtoMessage() {}
func (x *AdminUserDetail) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[14]
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 AdminUserDetail.ProtoReflect.Descriptor instead.
func (*AdminUserDetail) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{14}
}
func (x *AdminUserDetail) GetUser() *AdminUser {
if x != nil {
return x.User
}
return nil
}
func (x *AdminUserDetail) GetSubscription() *PlanSubscription {
if x != nil {
return x.Subscription
}
return nil
}
type AdminVideo struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"`
Duration int32 `protobuf:"varint,8,opt,name=duration,proto3" json:"duration,omitempty"`
Format string `protobuf:"bytes,9,opt,name=format,proto3" json:"format,omitempty"`
OwnerEmail *string `protobuf:"bytes,10,opt,name=owner_email,json=ownerEmail,proto3,oneof" json:"owner_email,omitempty"`
AdTemplateId *string `protobuf:"bytes,11,opt,name=ad_template_id,json=adTemplateId,proto3,oneof" json:"ad_template_id,omitempty"`
AdTemplateName *string `protobuf:"bytes,12,opt,name=ad_template_name,json=adTemplateName,proto3,oneof" json:"ad_template_name,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminVideo) Reset() {
*x = AdminVideo{}
mi := &file_app_v1_common_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminVideo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminVideo) ProtoMessage() {}
func (x *AdminVideo) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[15]
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 AdminVideo.ProtoReflect.Descriptor instead.
func (*AdminVideo) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{15}
}
func (x *AdminVideo) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminVideo) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *AdminVideo) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *AdminVideo) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *AdminVideo) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *AdminVideo) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *AdminVideo) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (x *AdminVideo) GetDuration() int32 {
if x != nil {
return x.Duration
}
return 0
}
func (x *AdminVideo) GetFormat() string {
if x != nil {
return x.Format
}
return ""
}
func (x *AdminVideo) GetOwnerEmail() string {
if x != nil && x.OwnerEmail != nil {
return *x.OwnerEmail
}
return ""
}
func (x *AdminVideo) GetAdTemplateId() string {
if x != nil && x.AdTemplateId != nil {
return *x.AdTemplateId
}
return ""
}
func (x *AdminVideo) GetAdTemplateName() string {
if x != nil && x.AdTemplateName != nil {
return *x.AdTemplateName
}
return ""
}
func (x *AdminVideo) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminVideo) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminPayment struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
PlanId *string `protobuf:"bytes,3,opt,name=plan_id,json=planId,proto3,oneof" json:"plan_id,omitempty"`
Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
Provider string `protobuf:"bytes,7,opt,name=provider,proto3" json:"provider,omitempty"`
TransactionId *string `protobuf:"bytes,8,opt,name=transaction_id,json=transactionId,proto3,oneof" json:"transaction_id,omitempty"`
UserEmail *string `protobuf:"bytes,9,opt,name=user_email,json=userEmail,proto3,oneof" json:"user_email,omitempty"`
PlanName *string `protobuf:"bytes,10,opt,name=plan_name,json=planName,proto3,oneof" json:"plan_name,omitempty"`
InvoiceId string `protobuf:"bytes,11,opt,name=invoice_id,json=invoiceId,proto3" json:"invoice_id,omitempty"`
TermMonths *int32 `protobuf:"varint,12,opt,name=term_months,json=termMonths,proto3,oneof" json:"term_months,omitempty"`
PaymentMethod *string `protobuf:"bytes,13,opt,name=payment_method,json=paymentMethod,proto3,oneof" json:"payment_method,omitempty"`
ExpiresAt *string `protobuf:"bytes,14,opt,name=expires_at,json=expiresAt,proto3,oneof" json:"expires_at,omitempty"`
WalletAmount *float64 `protobuf:"fixed64,15,opt,name=wallet_amount,json=walletAmount,proto3,oneof" json:"wallet_amount,omitempty"`
TopupAmount *float64 `protobuf:"fixed64,16,opt,name=topup_amount,json=topupAmount,proto3,oneof" json:"topup_amount,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminPayment) Reset() {
*x = AdminPayment{}
mi := &file_app_v1_common_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminPayment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminPayment) ProtoMessage() {}
func (x *AdminPayment) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[16]
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 AdminPayment.ProtoReflect.Descriptor instead.
func (*AdminPayment) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{16}
}
func (x *AdminPayment) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminPayment) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *AdminPayment) GetPlanId() string {
if x != nil && x.PlanId != nil {
return *x.PlanId
}
return ""
}
func (x *AdminPayment) GetAmount() float64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *AdminPayment) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *AdminPayment) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *AdminPayment) GetProvider() string {
if x != nil {
return x.Provider
}
return ""
}
func (x *AdminPayment) GetTransactionId() string {
if x != nil && x.TransactionId != nil {
return *x.TransactionId
}
return ""
}
func (x *AdminPayment) GetUserEmail() string {
if x != nil && x.UserEmail != nil {
return *x.UserEmail
}
return ""
}
func (x *AdminPayment) GetPlanName() string {
if x != nil && x.PlanName != nil {
return *x.PlanName
}
return ""
}
func (x *AdminPayment) GetInvoiceId() string {
if x != nil {
return x.InvoiceId
}
return ""
}
func (x *AdminPayment) GetTermMonths() int32 {
if x != nil && x.TermMonths != nil {
return *x.TermMonths
}
return 0
}
func (x *AdminPayment) GetPaymentMethod() string {
if x != nil && x.PaymentMethod != nil {
return *x.PaymentMethod
}
return ""
}
func (x *AdminPayment) GetExpiresAt() string {
if x != nil && x.ExpiresAt != nil {
return *x.ExpiresAt
}
return ""
}
func (x *AdminPayment) GetWalletAmount() float64 {
if x != nil && x.WalletAmount != nil {
return *x.WalletAmount
}
return 0
}
func (x *AdminPayment) GetTopupAmount() float64 {
if x != nil && x.TopupAmount != nil {
return *x.TopupAmount
}
return 0
}
func (x *AdminPayment) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminPayment) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminPlan 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"`
Features []string `protobuf:"bytes,4,rep,name=features,proto3" json:"features,omitempty"`
Price float64 `protobuf:"fixed64,5,opt,name=price,proto3" json:"price,omitempty"`
Cycle string `protobuf:"bytes,6,opt,name=cycle,proto3" json:"cycle,omitempty"`
StorageLimit int64 `protobuf:"varint,7,opt,name=storage_limit,json=storageLimit,proto3" json:"storage_limit,omitempty"`
UploadLimit int32 `protobuf:"varint,8,opt,name=upload_limit,json=uploadLimit,proto3" json:"upload_limit,omitempty"`
DurationLimit int32 `protobuf:"varint,9,opt,name=duration_limit,json=durationLimit,proto3" json:"duration_limit,omitempty"`
QualityLimit string `protobuf:"bytes,10,opt,name=quality_limit,json=qualityLimit,proto3" json:"quality_limit,omitempty"`
IsActive bool `protobuf:"varint,11,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
UserCount int64 `protobuf:"varint,12,opt,name=user_count,json=userCount,proto3" json:"user_count,omitempty"`
PaymentCount int64 `protobuf:"varint,13,opt,name=payment_count,json=paymentCount,proto3" json:"payment_count,omitempty"`
SubscriptionCount int64 `protobuf:"varint,14,opt,name=subscription_count,json=subscriptionCount,proto3" json:"subscription_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminPlan) Reset() {
*x = AdminPlan{}
mi := &file_app_v1_common_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminPlan) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminPlan) ProtoMessage() {}
func (x *AdminPlan) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[17]
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 AdminPlan.ProtoReflect.Descriptor instead.
func (*AdminPlan) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{17}
}
func (x *AdminPlan) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminPlan) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminPlan) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *AdminPlan) GetFeatures() []string {
if x != nil {
return x.Features
}
return nil
}
func (x *AdminPlan) GetPrice() float64 {
if x != nil {
return x.Price
}
return 0
}
func (x *AdminPlan) GetCycle() string {
if x != nil {
return x.Cycle
}
return ""
}
func (x *AdminPlan) GetStorageLimit() int64 {
if x != nil {
return x.StorageLimit
}
return 0
}
func (x *AdminPlan) GetUploadLimit() int32 {
if x != nil {
return x.UploadLimit
}
return 0
}
func (x *AdminPlan) GetDurationLimit() int32 {
if x != nil {
return x.DurationLimit
}
return 0
}
func (x *AdminPlan) GetQualityLimit() string {
if x != nil {
return x.QualityLimit
}
return ""
}
func (x *AdminPlan) GetIsActive() bool {
if x != nil {
return x.IsActive
}
return false
}
func (x *AdminPlan) GetUserCount() int64 {
if x != nil {
return x.UserCount
}
return 0
}
func (x *AdminPlan) GetPaymentCount() int64 {
if x != nil {
return x.PaymentCount
}
return 0
}
func (x *AdminPlan) GetSubscriptionCount() int64 {
if x != nil {
return x.SubscriptionCount
}
return 0
}
type AdminAdTemplate struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
VastTagUrl string `protobuf:"bytes,5,opt,name=vast_tag_url,json=vastTagUrl,proto3" json:"vast_tag_url,omitempty"`
AdFormat string `protobuf:"bytes,6,opt,name=ad_format,json=adFormat,proto3" json:"ad_format,omitempty"`
Duration *int64 `protobuf:"varint,7,opt,name=duration,proto3,oneof" json:"duration,omitempty"`
IsActive bool `protobuf:"varint,8,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
OwnerEmail *string `protobuf:"bytes,10,opt,name=owner_email,json=ownerEmail,proto3,oneof" json:"owner_email,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminAdTemplate) Reset() {
*x = AdminAdTemplate{}
mi := &file_app_v1_common_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminAdTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminAdTemplate) ProtoMessage() {}
func (x *AdminAdTemplate) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[18]
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 AdminAdTemplate.ProtoReflect.Descriptor instead.
func (*AdminAdTemplate) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{18}
}
func (x *AdminAdTemplate) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminAdTemplate) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *AdminAdTemplate) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminAdTemplate) GetDescription() string {
if x != nil && x.Description != nil {
return *x.Description
}
return ""
}
func (x *AdminAdTemplate) GetVastTagUrl() string {
if x != nil {
return x.VastTagUrl
}
return ""
}
func (x *AdminAdTemplate) GetAdFormat() string {
if x != nil {
return x.AdFormat
}
return ""
}
func (x *AdminAdTemplate) GetDuration() int64 {
if x != nil && x.Duration != nil {
return *x.Duration
}
return 0
}
func (x *AdminAdTemplate) GetIsActive() bool {
if x != nil {
return x.IsActive
}
return false
}
func (x *AdminAdTemplate) GetIsDefault() bool {
if x != nil {
return x.IsDefault
}
return false
}
func (x *AdminAdTemplate) GetOwnerEmail() string {
if x != nil && x.OwnerEmail != nil {
return *x.OwnerEmail
}
return ""
}
func (x *AdminAdTemplate) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminAdTemplate) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminJob struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
TimeLimit int64 `protobuf:"varint,6,opt,name=time_limit,json=timeLimit,proto3" json:"time_limit,omitempty"`
InputUrl string `protobuf:"bytes,7,opt,name=input_url,json=inputUrl,proto3" json:"input_url,omitempty"`
OutputUrl string `protobuf:"bytes,8,opt,name=output_url,json=outputUrl,proto3" json:"output_url,omitempty"`
TotalDuration int64 `protobuf:"varint,9,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"`
CurrentTime int64 `protobuf:"varint,10,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"`
Progress float64 `protobuf:"fixed64,11,opt,name=progress,proto3" json:"progress,omitempty"`
AgentId *string `protobuf:"bytes,12,opt,name=agent_id,json=agentId,proto3,oneof" json:"agent_id,omitempty"`
Logs string `protobuf:"bytes,13,opt,name=logs,proto3" json:"logs,omitempty"`
Config string `protobuf:"bytes,14,opt,name=config,proto3" json:"config,omitempty"`
Cancelled bool `protobuf:"varint,15,opt,name=cancelled,proto3" json:"cancelled,omitempty"`
RetryCount int32 `protobuf:"varint,16,opt,name=retry_count,json=retryCount,proto3" json:"retry_count,omitempty"`
MaxRetries int32 `protobuf:"varint,17,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminJob) Reset() {
*x = AdminJob{}
mi := &file_app_v1_common_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminJob) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminJob) ProtoMessage() {}
func (x *AdminJob) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[19]
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 AdminJob.ProtoReflect.Descriptor instead.
func (*AdminJob) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{19}
}
func (x *AdminJob) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminJob) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *AdminJob) GetPriority() int32 {
if x != nil {
return x.Priority
}
return 0
}
func (x *AdminJob) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
func (x *AdminJob) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminJob) GetTimeLimit() int64 {
if x != nil {
return x.TimeLimit
}
return 0
}
func (x *AdminJob) GetInputUrl() string {
if x != nil {
return x.InputUrl
}
return ""
}
func (x *AdminJob) GetOutputUrl() string {
if x != nil {
return x.OutputUrl
}
return ""
}
func (x *AdminJob) GetTotalDuration() int64 {
if x != nil {
return x.TotalDuration
}
return 0
}
func (x *AdminJob) GetCurrentTime() int64 {
if x != nil {
return x.CurrentTime
}
return 0
}
func (x *AdminJob) GetProgress() float64 {
if x != nil {
return x.Progress
}
return 0
}
func (x *AdminJob) GetAgentId() string {
if x != nil && x.AgentId != nil {
return *x.AgentId
}
return ""
}
func (x *AdminJob) GetLogs() string {
if x != nil {
return x.Logs
}
return ""
}
func (x *AdminJob) GetConfig() string {
if x != nil {
return x.Config
}
return ""
}
func (x *AdminJob) GetCancelled() bool {
if x != nil {
return x.Cancelled
}
return false
}
func (x *AdminJob) GetRetryCount() int32 {
if x != nil {
return x.RetryCount
}
return 0
}
func (x *AdminJob) GetMaxRetries() int32 {
if x != nil {
return x.MaxRetries
}
return 0
}
func (x *AdminJob) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminJob) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
type AdminAgent 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"`
Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
Backend string `protobuf:"bytes,4,opt,name=backend,proto3" json:"backend,omitempty"`
Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"`
Capacity int32 `protobuf:"varint,6,opt,name=capacity,proto3" json:"capacity,omitempty"`
Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
Cpu float64 `protobuf:"fixed64,8,opt,name=cpu,proto3" json:"cpu,omitempty"`
Ram float64 `protobuf:"fixed64,9,opt,name=ram,proto3" json:"ram,omitempty"`
LastHeartbeat *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=last_heartbeat,json=lastHeartbeat,proto3" json:"last_heartbeat,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminAgent) Reset() {
*x = AdminAgent{}
mi := &file_app_v1_common_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminAgent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminAgent) ProtoMessage() {}
func (x *AdminAgent) ProtoReflect() protoreflect.Message {
mi := &file_app_v1_common_proto_msgTypes[20]
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 AdminAgent.ProtoReflect.Descriptor instead.
func (*AdminAgent) Descriptor() ([]byte, []int) {
return file_app_v1_common_proto_rawDescGZIP(), []int{20}
}
func (x *AdminAgent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *AdminAgent) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminAgent) GetPlatform() string {
if x != nil {
return x.Platform
}
return ""
}
func (x *AdminAgent) GetBackend() string {
if x != nil {
return x.Backend
}
return ""
}
func (x *AdminAgent) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
func (x *AdminAgent) GetCapacity() int32 {
if x != nil {
return x.Capacity
}
return 0
}
func (x *AdminAgent) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *AdminAgent) GetCpu() float64 {
if x != nil {
return x.Cpu
}
return 0
}
func (x *AdminAgent) GetRam() float64 {
if x != nil {
return x.Ram
}
return 0
}
func (x *AdminAgent) GetLastHeartbeat() *timestamppb.Timestamp {
if x != nil {
return x.LastHeartbeat
}
return nil
}
func (x *AdminAgent) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *AdminAgent) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
var File_app_v1_common_proto protoreflect.FileDescriptor
const file_app_v1_common_proto_rawDesc = "" +
"\n" +
"\x13app/v1/common.proto\x12\rstream.app.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"+\n" +
"\x0fMessageResponse\x12\x18\n" +
"\amessage\x18\x01 \x01(\tR\amessage\"\xb9\x06\n" +
"\x04User\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1f\n" +
"\busername\x18\x03 \x01(\tH\x00R\busername\x88\x01\x01\x12\x1b\n" +
"\x06avatar\x18\x04 \x01(\tH\x01R\x06avatar\x88\x01\x01\x12\x17\n" +
"\x04role\x18\x05 \x01(\tH\x02R\x04role\x88\x01\x01\x12 \n" +
"\tgoogle_id\x18\x06 \x01(\tH\x03R\bgoogleId\x88\x01\x01\x12!\n" +
"\fstorage_used\x18\a \x01(\x03R\vstorageUsed\x12\x1c\n" +
"\aplan_id\x18\b \x01(\tH\x04R\x06planId\x88\x01\x01\x12B\n" +
"\x0fplan_started_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\rplanStartedAt\x12B\n" +
"\x0fplan_expires_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\rplanExpiresAt\x12-\n" +
"\x10plan_term_months\x18\v \x01(\x05H\x05R\x0eplanTermMonths\x88\x01\x01\x123\n" +
"\x13plan_payment_method\x18\f \x01(\tH\x06R\x11planPaymentMethod\x88\x01\x01\x12,\n" +
"\x12plan_expiring_soon\x18\r \x01(\bR\x10planExpiringSoon\x12%\n" +
"\x0ewallet_balance\x18\x0e \x01(\x01R\rwalletBalance\x12\x1a\n" +
"\blanguage\x18\x0f \x01(\tR\blanguage\x12\x16\n" +
"\x06locale\x18\x10 \x01(\tR\x06locale\x129\n" +
"\n" +
"created_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\v\n" +
"\t_usernameB\t\n" +
"\a_avatarB\a\n" +
"\x05_roleB\f\n" +
"\n" +
"_google_idB\n" +
"\n" +
"\b_plan_idB\x13\n" +
"\x11_plan_term_monthsB\x16\n" +
"\x14_plan_payment_method\"\xc8\x03\n" +
"\vPreferences\x12/\n" +
"\x13email_notifications\x18\x01 \x01(\bR\x12emailNotifications\x12-\n" +
"\x12push_notifications\x18\x02 \x01(\bR\x11pushNotifications\x127\n" +
"\x17marketing_notifications\x18\x03 \x01(\bR\x16marketingNotifications\x125\n" +
"\x16telegram_notifications\x18\x04 \x01(\bR\x15telegramNotifications\x12\x1a\n" +
"\bautoplay\x18\x05 \x01(\bR\bautoplay\x12\x12\n" +
"\x04loop\x18\x06 \x01(\bR\x04loop\x12\x14\n" +
"\x05muted\x18\a \x01(\bR\x05muted\x12#\n" +
"\rshow_controls\x18\b \x01(\bR\fshowControls\x12\x10\n" +
"\x03pip\x18\t \x01(\bR\x03pip\x12\x18\n" +
"\aairplay\x18\n" +
" \x01(\bR\aairplay\x12\x1e\n" +
"\n" +
"chromecast\x18\v \x01(\bR\n" +
"chromecast\x12\x1a\n" +
"\blanguage\x18\f \x01(\tR\blanguage\x12\x16\n" +
"\x06locale\x18\r \x01(\tR\x06locale\"\x9d\x02\n" +
"\fNotification\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12\x18\n" +
"\amessage\x18\x04 \x01(\tR\amessage\x12\x12\n" +
"\x04read\x18\x05 \x01(\bR\x04read\x12\"\n" +
"\n" +
"action_url\x18\x06 \x01(\tH\x00R\tactionUrl\x88\x01\x01\x12&\n" +
"\faction_label\x18\a \x01(\tH\x01R\vactionLabel\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAtB\r\n" +
"\v_action_urlB\x0f\n" +
"\r_action_label\"\xa2\x01\n" +
"\x06Domain\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x129\n" +
"\n" +
"created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x86\x03\n" +
"\n" +
"AdTemplate\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\x1b\n" +
"\tad_format\x18\x05 \x01(\tR\badFormat\x12\x1f\n" +
"\bduration\x18\x06 \x01(\x05H\x01R\bduration\x88\x01\x01\x12\x1b\n" +
"\tis_active\x18\a \x01(\bR\bisActive\x12\x1d\n" +
"\n" +
"is_default\x18\b \x01(\bR\tisDefault\x129\n" +
"\n" +
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\x0e\n" +
"\f_descriptionB\v\n" +
"\t_duration\"\xda\x02\n" +
"\x04Plan\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\x14\n" +
"\x05price\x18\x04 \x01(\x01R\x05price\x12\x14\n" +
"\x05cycle\x18\x05 \x01(\tR\x05cycle\x12#\n" +
"\rstorage_limit\x18\x06 \x01(\x03R\fstorageLimit\x12!\n" +
"\fupload_limit\x18\a \x01(\x05R\vuploadLimit\x12%\n" +
"\x0eduration_limit\x18\b \x01(\x05R\rdurationLimit\x12#\n" +
"\rquality_limit\x18\t \x01(\tR\fqualityLimit\x12\x1a\n" +
"\bfeatures\x18\n" +
" \x03(\tR\bfeatures\x12\x1b\n" +
"\tis_active\x18\v \x01(\bR\bisActiveB\x0e\n" +
"\f_description\"\xf9\x02\n" +
"\aPayment\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x1c\n" +
"\aplan_id\x18\x03 \x01(\tH\x00R\x06planId\x88\x01\x01\x12\x16\n" +
"\x06amount\x18\x04 \x01(\x01R\x06amount\x12\x1a\n" +
"\bcurrency\x18\x05 \x01(\tR\bcurrency\x12\x16\n" +
"\x06status\x18\x06 \x01(\tR\x06status\x12\x1a\n" +
"\bprovider\x18\a \x01(\tR\bprovider\x12*\n" +
"\x0etransaction_id\x18\b \x01(\tH\x01R\rtransactionId\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\n" +
"\n" +
"\b_plan_idB\x11\n" +
"\x0f_transaction_id\"\xef\x03\n" +
"\x10PlanSubscription\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x1d\n" +
"\n" +
"payment_id\x18\x03 \x01(\tR\tpaymentId\x12\x17\n" +
"\aplan_id\x18\x04 \x01(\tR\x06planId\x12\x1f\n" +
"\vterm_months\x18\x05 \x01(\x05R\n" +
"termMonths\x12%\n" +
"\x0epayment_method\x18\x06 \x01(\tR\rpaymentMethod\x12#\n" +
"\rwallet_amount\x18\a \x01(\x01R\fwalletAmount\x12!\n" +
"\ftopup_amount\x18\b \x01(\x01R\vtopupAmount\x129\n" +
"\n" +
"started_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x129\n" +
"\n" +
"expires_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x129\n" +
"\n" +
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xaf\x03\n" +
"\x11WalletTransaction\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x12\n" +
"\x04type\x18\x03 \x01(\tR\x04type\x12\x16\n" +
"\x06amount\x18\x04 \x01(\x01R\x06amount\x12\x1a\n" +
"\bcurrency\x18\x05 \x01(\tR\bcurrency\x12\x17\n" +
"\x04note\x18\x06 \x01(\tH\x00R\x04note\x88\x01\x01\x12\"\n" +
"\n" +
"payment_id\x18\a \x01(\tH\x01R\tpaymentId\x88\x01\x01\x12\x1c\n" +
"\aplan_id\x18\b \x01(\tH\x02R\x06planId\x88\x01\x01\x12$\n" +
"\vterm_months\x18\t \x01(\x05H\x03R\n" +
"termMonths\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\a\n" +
"\x05_noteB\r\n" +
"\v_payment_idB\n" +
"\n" +
"\b_plan_idB\x0e\n" +
"\f_term_months\"\xe8\x03\n" +
"\x12PaymentHistoryItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
"\x06amount\x18\x02 \x01(\x01R\x06amount\x12\x1a\n" +
"\bcurrency\x18\x03 \x01(\tR\bcurrency\x12\x16\n" +
"\x06status\x18\x04 \x01(\tR\x06status\x12\x1c\n" +
"\aplan_id\x18\x05 \x01(\tH\x00R\x06planId\x88\x01\x01\x12 \n" +
"\tplan_name\x18\x06 \x01(\tH\x01R\bplanName\x88\x01\x01\x12\x1d\n" +
"\n" +
"invoice_id\x18\a \x01(\tR\tinvoiceId\x12\x12\n" +
"\x04kind\x18\b \x01(\tR\x04kind\x12$\n" +
"\vterm_months\x18\t \x01(\x05H\x02R\n" +
"termMonths\x88\x01\x01\x12*\n" +
"\x0epayment_method\x18\n" +
" \x01(\tH\x03R\rpaymentMethod\x88\x01\x01\x129\n" +
"\n" +
"expires_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x129\n" +
"\n" +
"created_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAtB\n" +
"\n" +
"\b_plan_idB\f\n" +
"\n" +
"_plan_nameB\x0e\n" +
"\f_term_monthsB\x11\n" +
"\x0f_payment_method\"\x97\x04\n" +
"\x05Video\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12%\n" +
"\vdescription\x18\x04 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x10\n" +
"\x03url\x18\x05 \x01(\tR\x03url\x12\x16\n" +
"\x06status\x18\x06 \x01(\tR\x06status\x12\x12\n" +
"\x04size\x18\a \x01(\x03R\x04size\x12\x1a\n" +
"\bduration\x18\b \x01(\x05R\bduration\x12\x16\n" +
"\x06format\x18\t \x01(\tR\x06format\x12!\n" +
"\tthumbnail\x18\n" +
" \x01(\tH\x01R\tthumbnail\x88\x01\x01\x120\n" +
"\x11processing_status\x18\v \x01(\tH\x02R\x10processingStatus\x88\x01\x01\x12&\n" +
"\fstorage_type\x18\f \x01(\tH\x03R\vstorageType\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\x0e\n" +
"\f_descriptionB\f\n" +
"\n" +
"_thumbnailB\x14\n" +
"\x12_processing_statusB\x0f\n" +
"\r_storage_type\"\x81\x03\n" +
"\x0eAdminDashboard\x12\x1f\n" +
"\vtotal_users\x18\x01 \x01(\x03R\n" +
"totalUsers\x12!\n" +
"\ftotal_videos\x18\x02 \x01(\x03R\vtotalVideos\x12,\n" +
"\x12total_storage_used\x18\x03 \x01(\x03R\x10totalStorageUsed\x12%\n" +
"\x0etotal_payments\x18\x04 \x01(\x03R\rtotalPayments\x12#\n" +
"\rtotal_revenue\x18\x05 \x01(\x01R\ftotalRevenue\x121\n" +
"\x14active_subscriptions\x18\x06 \x01(\x03R\x13activeSubscriptions\x12,\n" +
"\x12total_ad_templates\x18\a \x01(\x03R\x10totalAdTemplates\x12&\n" +
"\x0fnew_users_today\x18\b \x01(\x03R\rnewUsersToday\x12(\n" +
"\x10new_videos_today\x18\t \x01(\x03R\x0enewVideosToday\"\xe4\x03\n" +
"\tAdminUser\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1f\n" +
"\busername\x18\x03 \x01(\tH\x00R\busername\x88\x01\x01\x12\x1b\n" +
"\x06avatar\x18\x04 \x01(\tH\x01R\x06avatar\x88\x01\x01\x12\x17\n" +
"\x04role\x18\x05 \x01(\tH\x02R\x04role\x88\x01\x01\x12\x1c\n" +
"\aplan_id\x18\x06 \x01(\tH\x03R\x06planId\x88\x01\x01\x12 \n" +
"\tplan_name\x18\a \x01(\tH\x04R\bplanName\x88\x01\x01\x12!\n" +
"\fstorage_used\x18\b \x01(\x03R\vstorageUsed\x12\x1f\n" +
"\vvideo_count\x18\t \x01(\x03R\n" +
"videoCount\x12%\n" +
"\x0ewallet_balance\x18\n" +
" \x01(\x01R\rwalletBalance\x129\n" +
"\n" +
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\v\n" +
"\t_usernameB\t\n" +
"\a_avatarB\a\n" +
"\x05_roleB\n" +
"\n" +
"\b_plan_idB\f\n" +
"\n" +
"_plan_name\"\x9a\x01\n" +
"\x0fAdminUserDetail\x12,\n" +
"\x04user\x18\x01 \x01(\v2\x18.stream.app.v1.AdminUserR\x04user\x12H\n" +
"\fsubscription\x18\x02 \x01(\v2\x1f.stream.app.v1.PlanSubscriptionH\x00R\fsubscription\x88\x01\x01B\x0f\n" +
"\r_subscription\"\xa2\x04\n" +
"\n" +
"AdminVideo\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x14\n" +
"\x05title\x18\x03 \x01(\tR\x05title\x12%\n" +
"\vdescription\x18\x04 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x10\n" +
"\x03url\x18\x05 \x01(\tR\x03url\x12\x16\n" +
"\x06status\x18\x06 \x01(\tR\x06status\x12\x12\n" +
"\x04size\x18\a \x01(\x03R\x04size\x12\x1a\n" +
"\bduration\x18\b \x01(\x05R\bduration\x12\x16\n" +
"\x06format\x18\t \x01(\tR\x06format\x12$\n" +
"\vowner_email\x18\n" +
" \x01(\tH\x01R\n" +
"ownerEmail\x88\x01\x01\x12)\n" +
"\x0ead_template_id\x18\v \x01(\tH\x02R\fadTemplateId\x88\x01\x01\x12-\n" +
"\x10ad_template_name\x18\f \x01(\tH\x03R\x0eadTemplateName\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\x0e\n" +
"\f_descriptionB\x0e\n" +
"\f_owner_emailB\x11\n" +
"\x0f_ad_template_idB\x13\n" +
"\x11_ad_template_name\"\x9d\x06\n" +
"\fAdminPayment\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x1c\n" +
"\aplan_id\x18\x03 \x01(\tH\x00R\x06planId\x88\x01\x01\x12\x16\n" +
"\x06amount\x18\x04 \x01(\x01R\x06amount\x12\x1a\n" +
"\bcurrency\x18\x05 \x01(\tR\bcurrency\x12\x16\n" +
"\x06status\x18\x06 \x01(\tR\x06status\x12\x1a\n" +
"\bprovider\x18\a \x01(\tR\bprovider\x12*\n" +
"\x0etransaction_id\x18\b \x01(\tH\x01R\rtransactionId\x88\x01\x01\x12\"\n" +
"\n" +
"user_email\x18\t \x01(\tH\x02R\tuserEmail\x88\x01\x01\x12 \n" +
"\tplan_name\x18\n" +
" \x01(\tH\x03R\bplanName\x88\x01\x01\x12\x1d\n" +
"\n" +
"invoice_id\x18\v \x01(\tR\tinvoiceId\x12$\n" +
"\vterm_months\x18\f \x01(\x05H\x04R\n" +
"termMonths\x88\x01\x01\x12*\n" +
"\x0epayment_method\x18\r \x01(\tH\x05R\rpaymentMethod\x88\x01\x01\x12\"\n" +
"\n" +
"expires_at\x18\x0e \x01(\tH\x06R\texpiresAt\x88\x01\x01\x12(\n" +
"\rwallet_amount\x18\x0f \x01(\x01H\aR\fwalletAmount\x88\x01\x01\x12&\n" +
"\ftopup_amount\x18\x10 \x01(\x01H\bR\vtopupAmount\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\x11 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\n" +
"\n" +
"\b_plan_idB\x11\n" +
"\x0f_transaction_idB\r\n" +
"\v_user_emailB\f\n" +
"\n" +
"_plan_nameB\x0e\n" +
"\f_term_monthsB\x11\n" +
"\x0f_payment_methodB\r\n" +
"\v_expires_atB\x10\n" +
"\x0e_wallet_amountB\x0f\n" +
"\r_topup_amount\"\xd2\x03\n" +
"\tAdminPlan\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\x1a\n" +
"\bfeatures\x18\x04 \x03(\tR\bfeatures\x12\x14\n" +
"\x05price\x18\x05 \x01(\x01R\x05price\x12\x14\n" +
"\x05cycle\x18\x06 \x01(\tR\x05cycle\x12#\n" +
"\rstorage_limit\x18\a \x01(\x03R\fstorageLimit\x12!\n" +
"\fupload_limit\x18\b \x01(\x05R\vuploadLimit\x12%\n" +
"\x0eduration_limit\x18\t \x01(\x05R\rdurationLimit\x12#\n" +
"\rquality_limit\x18\n" +
" \x01(\tR\fqualityLimit\x12\x1b\n" +
"\tis_active\x18\v \x01(\bR\bisActive\x12\x1d\n" +
"\n" +
"user_count\x18\f \x01(\x03R\tuserCount\x12#\n" +
"\rpayment_count\x18\r \x01(\x03R\fpaymentCount\x12-\n" +
"\x12subscription_count\x18\x0e \x01(\x03R\x11subscriptionCountB\x0e\n" +
"\f_description\"\xda\x03\n" +
"\x0fAdminAdTemplate\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\tR\x06userId\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12%\n" +
"\vdescription\x18\x04 \x01(\tH\x00R\vdescription\x88\x01\x01\x12 \n" +
"\fvast_tag_url\x18\x05 \x01(\tR\n" +
"vastTagUrl\x12\x1b\n" +
"\tad_format\x18\x06 \x01(\tR\badFormat\x12\x1f\n" +
"\bduration\x18\a \x01(\x03H\x01R\bduration\x88\x01\x01\x12\x1b\n" +
"\tis_active\x18\b \x01(\bR\bisActive\x12\x1d\n" +
"\n" +
"is_default\x18\t \x01(\bR\tisDefault\x12$\n" +
"\vowner_email\x18\n" +
" \x01(\tH\x02R\n" +
"ownerEmail\x88\x01\x01\x129\n" +
"\n" +
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\x0e\n" +
"\f_descriptionB\v\n" +
"\t_durationB\x0e\n" +
"\f_owner_email\"\xeb\x04\n" +
"\bAdminJob\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" +
"\x06status\x18\x02 \x01(\tR\x06status\x12\x1a\n" +
"\bpriority\x18\x03 \x01(\x05R\bpriority\x12\x17\n" +
"\auser_id\x18\x04 \x01(\tR\x06userId\x12\x12\n" +
"\x04name\x18\x05 \x01(\tR\x04name\x12\x1d\n" +
"\n" +
"time_limit\x18\x06 \x01(\x03R\ttimeLimit\x12\x1b\n" +
"\tinput_url\x18\a \x01(\tR\binputUrl\x12\x1d\n" +
"\n" +
"output_url\x18\b \x01(\tR\toutputUrl\x12%\n" +
"\x0etotal_duration\x18\t \x01(\x03R\rtotalDuration\x12!\n" +
"\fcurrent_time\x18\n" +
" \x01(\x03R\vcurrentTime\x12\x1a\n" +
"\bprogress\x18\v \x01(\x01R\bprogress\x12\x1e\n" +
"\bagent_id\x18\f \x01(\tH\x00R\aagentId\x88\x01\x01\x12\x12\n" +
"\x04logs\x18\r \x01(\tR\x04logs\x12\x16\n" +
"\x06config\x18\x0e \x01(\tR\x06config\x12\x1c\n" +
"\tcancelled\x18\x0f \x01(\bR\tcancelled\x12\x1f\n" +
"\vretry_count\x18\x10 \x01(\x05R\n" +
"retryCount\x12\x1f\n" +
"\vmax_retries\x18\x11 \x01(\x05R\n" +
"maxRetries\x129\n" +
"\n" +
"created_at\x18\x12 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x13 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\v\n" +
"\t_agent_id\"\x91\x03\n" +
"\n" +
"AdminAgent\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
"\bplatform\x18\x03 \x01(\tR\bplatform\x12\x18\n" +
"\abackend\x18\x04 \x01(\tR\abackend\x12\x18\n" +
"\aversion\x18\x05 \x01(\tR\aversion\x12\x1a\n" +
"\bcapacity\x18\x06 \x01(\x05R\bcapacity\x12\x16\n" +
"\x06status\x18\a \x01(\tR\x06status\x12\x10\n" +
"\x03cpu\x18\b \x01(\x01R\x03cpu\x12\x10\n" +
"\x03ram\x18\t \x01(\x01R\x03ram\x12A\n" +
"\x0elast_heartbeat\x18\n" +
" \x01(\v2\x1a.google.protobuf.TimestampR\rlastHeartbeat\x129\n" +
"\n" +
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB,Z*stream.api/internal/gen/proto/app/v1;appv1b\x06proto3"
var (
file_app_v1_common_proto_rawDescOnce sync.Once
file_app_v1_common_proto_rawDescData []byte
)
func file_app_v1_common_proto_rawDescGZIP() []byte {
file_app_v1_common_proto_rawDescOnce.Do(func() {
file_app_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_app_v1_common_proto_rawDesc), len(file_app_v1_common_proto_rawDesc)))
})
return file_app_v1_common_proto_rawDescData
}
var file_app_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
var file_app_v1_common_proto_goTypes = []any{
(*MessageResponse)(nil), // 0: stream.app.v1.MessageResponse
(*User)(nil), // 1: stream.app.v1.User
(*Preferences)(nil), // 2: stream.app.v1.Preferences
(*Notification)(nil), // 3: stream.app.v1.Notification
(*Domain)(nil), // 4: stream.app.v1.Domain
(*AdTemplate)(nil), // 5: stream.app.v1.AdTemplate
(*Plan)(nil), // 6: stream.app.v1.Plan
(*Payment)(nil), // 7: stream.app.v1.Payment
(*PlanSubscription)(nil), // 8: stream.app.v1.PlanSubscription
(*WalletTransaction)(nil), // 9: stream.app.v1.WalletTransaction
(*PaymentHistoryItem)(nil), // 10: stream.app.v1.PaymentHistoryItem
(*Video)(nil), // 11: stream.app.v1.Video
(*AdminDashboard)(nil), // 12: stream.app.v1.AdminDashboard
(*AdminUser)(nil), // 13: stream.app.v1.AdminUser
(*AdminUserDetail)(nil), // 14: stream.app.v1.AdminUserDetail
(*AdminVideo)(nil), // 15: stream.app.v1.AdminVideo
(*AdminPayment)(nil), // 16: stream.app.v1.AdminPayment
(*AdminPlan)(nil), // 17: stream.app.v1.AdminPlan
(*AdminAdTemplate)(nil), // 18: stream.app.v1.AdminAdTemplate
(*AdminJob)(nil), // 19: stream.app.v1.AdminJob
(*AdminAgent)(nil), // 20: stream.app.v1.AdminAgent
(*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp
}
var file_app_v1_common_proto_depIdxs = []int32{
21, // 0: stream.app.v1.User.plan_started_at:type_name -> google.protobuf.Timestamp
21, // 1: stream.app.v1.User.plan_expires_at:type_name -> google.protobuf.Timestamp
21, // 2: stream.app.v1.User.created_at:type_name -> google.protobuf.Timestamp
21, // 3: stream.app.v1.User.updated_at:type_name -> google.protobuf.Timestamp
21, // 4: stream.app.v1.Notification.created_at:type_name -> google.protobuf.Timestamp
21, // 5: stream.app.v1.Domain.created_at:type_name -> google.protobuf.Timestamp
21, // 6: stream.app.v1.Domain.updated_at:type_name -> google.protobuf.Timestamp
21, // 7: stream.app.v1.AdTemplate.created_at:type_name -> google.protobuf.Timestamp
21, // 8: stream.app.v1.AdTemplate.updated_at:type_name -> google.protobuf.Timestamp
21, // 9: stream.app.v1.Payment.created_at:type_name -> google.protobuf.Timestamp
21, // 10: stream.app.v1.Payment.updated_at:type_name -> google.protobuf.Timestamp
21, // 11: stream.app.v1.PlanSubscription.started_at:type_name -> google.protobuf.Timestamp
21, // 12: stream.app.v1.PlanSubscription.expires_at:type_name -> google.protobuf.Timestamp
21, // 13: stream.app.v1.PlanSubscription.created_at:type_name -> google.protobuf.Timestamp
21, // 14: stream.app.v1.PlanSubscription.updated_at:type_name -> google.protobuf.Timestamp
21, // 15: stream.app.v1.WalletTransaction.created_at:type_name -> google.protobuf.Timestamp
21, // 16: stream.app.v1.WalletTransaction.updated_at:type_name -> google.protobuf.Timestamp
21, // 17: stream.app.v1.PaymentHistoryItem.expires_at:type_name -> google.protobuf.Timestamp
21, // 18: stream.app.v1.PaymentHistoryItem.created_at:type_name -> google.protobuf.Timestamp
21, // 19: stream.app.v1.Video.created_at:type_name -> google.protobuf.Timestamp
21, // 20: stream.app.v1.Video.updated_at:type_name -> google.protobuf.Timestamp
21, // 21: stream.app.v1.AdminUser.created_at:type_name -> google.protobuf.Timestamp
21, // 22: stream.app.v1.AdminUser.updated_at:type_name -> google.protobuf.Timestamp
13, // 23: stream.app.v1.AdminUserDetail.user:type_name -> stream.app.v1.AdminUser
8, // 24: stream.app.v1.AdminUserDetail.subscription:type_name -> stream.app.v1.PlanSubscription
21, // 25: stream.app.v1.AdminVideo.created_at:type_name -> google.protobuf.Timestamp
21, // 26: stream.app.v1.AdminVideo.updated_at:type_name -> google.protobuf.Timestamp
21, // 27: stream.app.v1.AdminPayment.created_at:type_name -> google.protobuf.Timestamp
21, // 28: stream.app.v1.AdminPayment.updated_at:type_name -> google.protobuf.Timestamp
21, // 29: stream.app.v1.AdminAdTemplate.created_at:type_name -> google.protobuf.Timestamp
21, // 30: stream.app.v1.AdminAdTemplate.updated_at:type_name -> google.protobuf.Timestamp
21, // 31: stream.app.v1.AdminJob.created_at:type_name -> google.protobuf.Timestamp
21, // 32: stream.app.v1.AdminJob.updated_at:type_name -> google.protobuf.Timestamp
21, // 33: stream.app.v1.AdminAgent.last_heartbeat:type_name -> google.protobuf.Timestamp
21, // 34: stream.app.v1.AdminAgent.created_at:type_name -> google.protobuf.Timestamp
21, // 35: stream.app.v1.AdminAgent.updated_at:type_name -> google.protobuf.Timestamp
36, // [36:36] is the sub-list for method output_type
36, // [36:36] is the sub-list for method input_type
36, // [36:36] is the sub-list for extension type_name
36, // [36:36] is the sub-list for extension extendee
0, // [0:36] is the sub-list for field type_name
}
func init() { file_app_v1_common_proto_init() }
func file_app_v1_common_proto_init() {
if File_app_v1_common_proto != nil {
return
}
file_app_v1_common_proto_msgTypes[1].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[3].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[5].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[6].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[7].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[9].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[10].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[11].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[13].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[14].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[15].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[16].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[17].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[18].OneofWrappers = []any{}
file_app_v1_common_proto_msgTypes[19].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_v1_common_proto_rawDesc), len(file_app_v1_common_proto_rawDesc)),
NumEnums: 0,
NumMessages: 21,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_app_v1_common_proto_goTypes,
DependencyIndexes: file_app_v1_common_proto_depIdxs,
MessageInfos: file_app_v1_common_proto_msgTypes,
}.Build()
File_app_v1_common_proto = out.File
file_app_v1_common_proto_goTypes = nil
file_app_v1_common_proto_depIdxs = nil
}