model

package
v0.0.0-...-99e5d07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package model is a generated protocol buffer package.

It is generated from these files:

model/schema.proto

It has these top-level messages:

BusinessAccount
Topics
Media
Address
DateOfBirth
ServicesManagedByBlackspace
PaymentProcessingMethods
PaymentMedium
PaymentOptions
BusinessType
BusinessCategory
BusinessSubCategory
MerchantType
PhoneNumber
PhoneType

Index

Constants

This section is empty.

Variables

View Source
var File_model_schema_proto protoreflect.FileDescriptor

Functions

func DefaultDeleteBusinessAccount

func DefaultDeleteBusinessAccount(ctx context.Context, in *BusinessAccount, db *gorm1.DB) error

func DefaultDeleteBusinessAccountSet

func DefaultDeleteBusinessAccountSet(ctx context.Context, in []*BusinessAccount, db *gorm1.DB) error

func DefaultDeleteMedia

func DefaultDeleteMedia(ctx context.Context, in *Media, db *gorm1.DB) error

func DefaultDeleteMediaSet

func DefaultDeleteMediaSet(ctx context.Context, in []*Media, db *gorm1.DB) error

func DefaultDeleteTopics

func DefaultDeleteTopics(ctx context.Context, in *Topics, db *gorm1.DB) error

func DefaultDeleteTopicsSet

func DefaultDeleteTopicsSet(ctx context.Context, in []*Topics, db *gorm1.DB) error

Types

type Address

type Address struct {
	Address       string       `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`
	ApartmentUnit string       `protobuf:"bytes,2,opt,name=ApartmentUnit,proto3" json:"ApartmentUnit,omitempty"`
	ZipCode       string       `protobuf:"bytes,3,opt,name=ZipCode,proto3" json:"ZipCode,omitempty"`
	City          string       `protobuf:"bytes,4,opt,name=City,proto3" json:"City,omitempty"`
	State         string       `protobuf:"bytes,5,opt,name=State,proto3" json:"State,omitempty"`
	Birthdate     *DateOfBirth `protobuf:"bytes,6,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) GetApartmentUnit

func (x *Address) GetApartmentUnit() string

func (*Address) GetBirthdate

func (x *Address) GetBirthdate() *DateOfBirth

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

func (*Address) Validate

func (this *Address) Validate() error

type BusinessAccount

type BusinessAccount struct {
	Id             uint32       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CompanyName    string       `protobuf:"bytes,2,opt,name=companyName,proto3" json:"companyName,omitempty"`
	CompanyAddress string       `protobuf:"bytes,3,opt,name=companyAddress,proto3" json:"companyAddress,omitempty"`
	PhoneNumber    *PhoneNumber `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"`
	Category       string       `protobuf:"bytes,5,opt,name=category,proto3" json:"category,omitempty"`
	Media          *Media       `protobuf:"bytes,6,opt,name=media,proto3" json:"media,omitempty"`
	Password       string       `protobuf:"bytes,7,opt,name=password,proto3" json:"password,omitempty"`
	Email          string       `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
	IsActive       bool         `protobuf:"varint,9,opt,name=isActive,proto3" json:"isActive,omitempty"`
	// define the types of businesses available
	TypeOfBusiness *BusinessType `protobuf:"bytes,10,opt,name=typeOfBusiness,proto3" json:"typeOfBusiness,omitempty"`
	// defines business top goals
	// sell products, market business, sell services, sell memberships, build community
	BusinessGoals []string `protobuf:"bytes,11,rep,name=businessGoals,proto3" json:"businessGoals,omitempty"`
	// the stage at which the business is at
	// collecting inspiration, formalizing an idea or personal project, project or hobby to business,
	// growing existing business
	BusinessStage string `protobuf:"bytes,12,opt,name=businessStage,proto3" json:"businessStage,omitempty"`
	// type of merchant
	MerchantType *MerchantType `protobuf:"bytes,13,opt,name=merchantType,proto3" json:"merchantType,omitempty"`
	// processing method details
	PaymentDetails *PaymentProcessingMethods `protobuf:"bytes,14,opt,name=paymentDetails,proto3" json:"paymentDetails,omitempty"`
	// types of services blackspace can manage on the business' behalf
	ServicesManagedByBlackspace *ServicesManagedByBlackspace `protobuf:"bytes,15,opt,name=servicesManagedByBlackspace,proto3" json:"servicesManagedByBlackspace,omitempty"`
	// business address
	FounderAddress *Address `protobuf:"bytes,16,opt,name=founderAddress,proto3" json:"founderAddress,omitempty"`
	// Business Interests
	SubscribedTopics *Topics `protobuf:"bytes,17,opt,name=subscribedTopics,proto3" json:"subscribedTopics,omitempty"`
	// authentication service ref
	AuthnId uint32 `protobuf:"varint,18,opt,name=authnId,proto3" json:"authnId,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskBusinessAccount

func DefaultApplyFieldMaskBusinessAccount(ctx context.Context, patchee *BusinessAccount, patcher *BusinessAccount, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*BusinessAccount, error)

DefaultApplyFieldMaskBusinessAccount patches an pbObject with patcher according to a field mask.

func DefaultCreateBusinessAccount

func DefaultCreateBusinessAccount(ctx context.Context, in *BusinessAccount, db *gorm1.DB) (*BusinessAccount, error)

DefaultCreateBusinessAccount executes a basic gorm create call

func DefaultListBusinessAccount

func DefaultListBusinessAccount(ctx context.Context, db *gorm1.DB) ([]*BusinessAccount, error)

DefaultListBusinessAccount executes a gorm list call

func DefaultPatchBusinessAccount

func DefaultPatchBusinessAccount(ctx context.Context, in *BusinessAccount, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*BusinessAccount, error)

DefaultPatchBusinessAccount executes a basic gorm update call with patch behavior

func DefaultPatchSetBusinessAccount

func DefaultPatchSetBusinessAccount(ctx context.Context, objects []*BusinessAccount, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*BusinessAccount, error)

DefaultPatchSetBusinessAccount executes a bulk gorm update call with patch behavior

func DefaultReadBusinessAccount

func DefaultReadBusinessAccount(ctx context.Context, in *BusinessAccount, db *gorm1.DB) (*BusinessAccount, error)

DefaultReadBusinessAccount executes a basic gorm read call

func DefaultStrictUpdateBusinessAccount

func DefaultStrictUpdateBusinessAccount(ctx context.Context, in *BusinessAccount, db *gorm1.DB) (*BusinessAccount, error)

DefaultStrictUpdateBusinessAccount clears first level 1:many children and then executes a gorm update call

func (*BusinessAccount) Descriptor deprecated

func (*BusinessAccount) Descriptor() ([]byte, []int)

Deprecated: Use BusinessAccount.ProtoReflect.Descriptor instead.

func (*BusinessAccount) GetAuthnId

func (x *BusinessAccount) GetAuthnId() uint32

func (*BusinessAccount) GetBusinessGoals

func (x *BusinessAccount) GetBusinessGoals() []string

func (*BusinessAccount) GetBusinessStage

func (x *BusinessAccount) GetBusinessStage() string

func (*BusinessAccount) GetCategory

func (x *BusinessAccount) GetCategory() string

func (*BusinessAccount) GetCompanyAddress

func (x *BusinessAccount) GetCompanyAddress() string

func (*BusinessAccount) GetCompanyName

func (x *BusinessAccount) GetCompanyName() string

func (*BusinessAccount) GetEmail

func (x *BusinessAccount) GetEmail() string

func (*BusinessAccount) GetFounderAddress

func (x *BusinessAccount) GetFounderAddress() *Address

func (*BusinessAccount) GetId

func (x *BusinessAccount) GetId() uint32

func (*BusinessAccount) GetIsActive

func (x *BusinessAccount) GetIsActive() bool

func (*BusinessAccount) GetMedia

func (x *BusinessAccount) GetMedia() *Media

func (*BusinessAccount) GetMerchantType

func (x *BusinessAccount) GetMerchantType() *MerchantType

func (*BusinessAccount) GetPassword

func (x *BusinessAccount) GetPassword() string

func (*BusinessAccount) GetPaymentDetails

func (x *BusinessAccount) GetPaymentDetails() *PaymentProcessingMethods

func (*BusinessAccount) GetPhoneNumber

func (x *BusinessAccount) GetPhoneNumber() *PhoneNumber

func (*BusinessAccount) GetServicesManagedByBlackspace

func (x *BusinessAccount) GetServicesManagedByBlackspace() *ServicesManagedByBlackspace

func (*BusinessAccount) GetSubscribedTopics

func (x *BusinessAccount) GetSubscribedTopics() *Topics

func (*BusinessAccount) GetTypeOfBusiness

func (x *BusinessAccount) GetTypeOfBusiness() *BusinessType

func (*BusinessAccount) ProtoMessage

func (*BusinessAccount) ProtoMessage()

func (*BusinessAccount) ProtoReflect

func (x *BusinessAccount) ProtoReflect() protoreflect.Message

func (*BusinessAccount) Reset

func (x *BusinessAccount) Reset()

func (*BusinessAccount) String

func (x *BusinessAccount) String() string

func (*BusinessAccount) ToORM

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*BusinessAccount) Validate

func (this *BusinessAccount) Validate() error

type BusinessAccountORM

type BusinessAccountORM struct {
	AuthnId          uint32
	BusinessGoals    pq1.StringArray `gorm:"type:text[]"`
	BusinessStage    string
	Category         string
	CompanyAddress   string
	CompanyName      string
	Email            string
	Id               uint32 `gorm:"type:serial;primary_key;auto_increment"`
	IsActive         bool
	Media            *MediaORM `gorm:"foreignkey:BusinessAccountId;association_foreignkey:Id;preload:true"`
	Password         string
	SubscribedTopics *TopicsORM `gorm:"foreignkey:BusinessAccountId;association_foreignkey:Id;preload:true"`
}

func (BusinessAccountORM) TableName

func (BusinessAccountORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*BusinessAccountORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type BusinessAccountORMWithAfterCreate_

type BusinessAccountORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type BusinessAccountORMWithAfterDeleteSet

type BusinessAccountORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*BusinessAccount, *gorm1.DB) error
}

type BusinessAccountORMWithAfterDelete_

type BusinessAccountORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type BusinessAccountORMWithAfterListFind

type BusinessAccountORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]BusinessAccountORM) error
}

type BusinessAccountORMWithAfterReadFind

type BusinessAccountORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type BusinessAccountORMWithAfterStrictUpdateSave

type BusinessAccountORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type BusinessAccountORMWithBeforeCreate_

type BusinessAccountORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeDeleteSet

type BusinessAccountORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*BusinessAccount, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeDelete_

type BusinessAccountORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeListApplyQuery

type BusinessAccountORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeListFind

type BusinessAccountORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeReadApplyQuery

type BusinessAccountORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeReadFind

type BusinessAccountORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeStrictUpdateCleanup

type BusinessAccountORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountORMWithBeforeStrictUpdateSave

type BusinessAccountORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountWithAfterPatchSave

type BusinessAccountWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *BusinessAccount, *field_mask1.FieldMask, *gorm1.DB) error
}

type BusinessAccountWithAfterToORM

type BusinessAccountWithAfterToORM interface {
	AfterToORM(context.Context, *BusinessAccountORM) error
}

BusinessAccountAfterToORM called after default ToORM code

type BusinessAccountWithAfterToPB

type BusinessAccountWithAfterToPB interface {
	AfterToPB(context.Context, *BusinessAccount) error
}

BusinessAccountAfterToPB called after default ToPB code

type BusinessAccountWithBeforePatchApplyFieldMask

type BusinessAccountWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *BusinessAccount, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountWithBeforePatchRead

type BusinessAccountWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *BusinessAccount, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountWithBeforePatchSave

type BusinessAccountWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *BusinessAccount, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type BusinessAccountWithBeforeToORM

type BusinessAccountWithBeforeToORM interface {
	BeforeToORM(context.Context, *BusinessAccountORM) error
}

BusinessAccountBeforeToORM called before default ToORM code

type BusinessAccountWithBeforeToPB

type BusinessAccountWithBeforeToPB interface {
	BeforeToPB(context.Context, *BusinessAccount) error
}

BusinessAccountBeforeToPB called before default ToPB code

type BusinessCategory

type BusinessCategory struct {
	Tech                         bool `protobuf:"varint,1,opt,name=Tech,proto3" json:"Tech,omitempty"`
	CharitiesEducationMembership bool `protobuf:"varint,2,opt,name=CharitiesEducationMembership,proto3" json:"CharitiesEducationMembership,omitempty"`
	FoodAndDrink                 bool `protobuf:"varint,3,opt,name=FoodAndDrink,proto3" json:"FoodAndDrink,omitempty"`
	HealthCareAndFitness         bool `protobuf:"varint,4,opt,name=HealthCareAndFitness,proto3" json:"HealthCareAndFitness,omitempty"`
	HomeAndRepair                bool `protobuf:"varint,5,opt,name=HomeAndRepair,proto3" json:"HomeAndRepair,omitempty"`
	LeisureAndEntertainment      bool `protobuf:"varint,6,opt,name=LeisureAndEntertainment,proto3" json:"LeisureAndEntertainment,omitempty"`
	ProfessionalServices         bool `protobuf:"varint,7,opt,name=ProfessionalServices,proto3" json:"ProfessionalServices,omitempty"`
	Retail                       bool `protobuf:"varint,8,opt,name=Retail,proto3" json:"Retail,omitempty"`
	Transportation               bool `protobuf:"varint,9,opt,name=Transportation,proto3" json:"Transportation,omitempty"`
	BeautyAndPersonalCare        bool `protobuf:"varint,10,opt,name=BeautyAndPersonalCare,proto3" json:"BeautyAndPersonalCare,omitempty"`
	// contains filtered or unexported fields
}

func (*BusinessCategory) Descriptor deprecated

func (*BusinessCategory) Descriptor() ([]byte, []int)

Deprecated: Use BusinessCategory.ProtoReflect.Descriptor instead.

func (*BusinessCategory) GetBeautyAndPersonalCare

func (x *BusinessCategory) GetBeautyAndPersonalCare() bool

func (*BusinessCategory) GetCharitiesEducationMembership

func (x *BusinessCategory) GetCharitiesEducationMembership() bool

func (*BusinessCategory) GetFoodAndDrink

func (x *BusinessCategory) GetFoodAndDrink() bool

func (*BusinessCategory) GetHealthCareAndFitness

func (x *BusinessCategory) GetHealthCareAndFitness() bool

func (*BusinessCategory) GetHomeAndRepair

func (x *BusinessCategory) GetHomeAndRepair() bool

func (*BusinessCategory) GetLeisureAndEntertainment

func (x *BusinessCategory) GetLeisureAndEntertainment() bool

func (*BusinessCategory) GetProfessionalServices

func (x *BusinessCategory) GetProfessionalServices() bool

func (*BusinessCategory) GetRetail

func (x *BusinessCategory) GetRetail() bool

func (*BusinessCategory) GetTech

func (x *BusinessCategory) GetTech() bool

func (*BusinessCategory) GetTransportation

func (x *BusinessCategory) GetTransportation() bool

func (*BusinessCategory) ProtoMessage

func (*BusinessCategory) ProtoMessage()

func (*BusinessCategory) ProtoReflect

func (x *BusinessCategory) ProtoReflect() protoreflect.Message

func (*BusinessCategory) Reset

func (x *BusinessCategory) Reset()

func (*BusinessCategory) String

func (x *BusinessCategory) String() string

func (*BusinessCategory) Validate

func (this *BusinessCategory) Validate() error

type BusinessSubCategory

type BusinessSubCategory struct {

	// art, marketing, travel, interior design, music, technology, food, restaurants, politics, health & beauty,
	// design, non-profit, jewelry, gaming, magazine, photography, fitness, consulting, fashion, services
	Marketing         bool `protobuf:"varint,1,opt,name=Marketing,proto3" json:"Marketing,omitempty"`
	Travel            bool `protobuf:"varint,2,opt,name=Travel,proto3" json:"Travel,omitempty"`
	Interior_Design   bool `protobuf:"varint,3,opt,name=Interior_Design,json=InteriorDesign,proto3" json:"Interior_Design,omitempty"`
	Music             bool `protobuf:"varint,4,opt,name=Music,proto3" json:"Music,omitempty"`
	Technology        bool `protobuf:"varint,5,opt,name=Technology,proto3" json:"Technology,omitempty"`
	Food              bool `protobuf:"varint,6,opt,name=Food,proto3" json:"Food,omitempty"`
	Restaurants       bool `protobuf:"varint,7,opt,name=Restaurants,proto3" json:"Restaurants,omitempty"`
	Polictics         bool `protobuf:"varint,8,opt,name=Polictics,proto3" json:"Polictics,omitempty"`
	Health_And_Beauty bool `protobuf:"varint,9,opt,name=Health_And_Beauty,json=HealthAndBeauty,proto3" json:"Health_And_Beauty,omitempty"`
	Design            bool `protobuf:"varint,10,opt,name=Design,proto3" json:"Design,omitempty"`
	Non_Profit        bool `protobuf:"varint,11,opt,name=Non_Profit,json=NonProfit,proto3" json:"Non_Profit,omitempty"`
	Jewelry           bool `protobuf:"varint,12,opt,name=Jewelry,proto3" json:"Jewelry,omitempty"`
	Gaming            bool `protobuf:"varint,13,opt,name=Gaming,proto3" json:"Gaming,omitempty"`
	Magazine          bool `protobuf:"varint,14,opt,name=Magazine,proto3" json:"Magazine,omitempty"`
	Photography       bool `protobuf:"varint,15,opt,name=Photography,proto3" json:"Photography,omitempty"`
	Fitenss           bool `protobuf:"varint,16,opt,name=Fitenss,proto3" json:"Fitenss,omitempty"`
	Consulting        bool `protobuf:"varint,17,opt,name=Consulting,proto3" json:"Consulting,omitempty"`
	Fashion           bool `protobuf:"varint,18,opt,name=Fashion,proto3" json:"Fashion,omitempty"`
	Services          bool `protobuf:"varint,19,opt,name=Services,proto3" json:"Services,omitempty"`
	Art               bool `protobuf:"varint,20,opt,name=Art,proto3" json:"Art,omitempty"`
	// contains filtered or unexported fields
}

func (*BusinessSubCategory) Descriptor deprecated

func (*BusinessSubCategory) Descriptor() ([]byte, []int)

Deprecated: Use BusinessSubCategory.ProtoReflect.Descriptor instead.

func (*BusinessSubCategory) GetArt

func (x *BusinessSubCategory) GetArt() bool

func (*BusinessSubCategory) GetConsulting

func (x *BusinessSubCategory) GetConsulting() bool

func (*BusinessSubCategory) GetDesign

func (x *BusinessSubCategory) GetDesign() bool

func (*BusinessSubCategory) GetFashion

func (x *BusinessSubCategory) GetFashion() bool

func (*BusinessSubCategory) GetFitenss

func (x *BusinessSubCategory) GetFitenss() bool

func (*BusinessSubCategory) GetFood

func (x *BusinessSubCategory) GetFood() bool

func (*BusinessSubCategory) GetGaming

func (x *BusinessSubCategory) GetGaming() bool

func (*BusinessSubCategory) GetHealth_And_Beauty

func (x *BusinessSubCategory) GetHealth_And_Beauty() bool

func (*BusinessSubCategory) GetInterior_Design

func (x *BusinessSubCategory) GetInterior_Design() bool

func (*BusinessSubCategory) GetJewelry

func (x *BusinessSubCategory) GetJewelry() bool

func (*BusinessSubCategory) GetMagazine

func (x *BusinessSubCategory) GetMagazine() bool

func (*BusinessSubCategory) GetMarketing

func (x *BusinessSubCategory) GetMarketing() bool

func (*BusinessSubCategory) GetMusic

func (x *BusinessSubCategory) GetMusic() bool

func (*BusinessSubCategory) GetNon_Profit

func (x *BusinessSubCategory) GetNon_Profit() bool

func (*BusinessSubCategory) GetPhotography

func (x *BusinessSubCategory) GetPhotography() bool

func (*BusinessSubCategory) GetPolictics

func (x *BusinessSubCategory) GetPolictics() bool

func (*BusinessSubCategory) GetRestaurants

func (x *BusinessSubCategory) GetRestaurants() bool

func (*BusinessSubCategory) GetServices

func (x *BusinessSubCategory) GetServices() bool

func (*BusinessSubCategory) GetTechnology

func (x *BusinessSubCategory) GetTechnology() bool

func (*BusinessSubCategory) GetTravel

func (x *BusinessSubCategory) GetTravel() bool

func (*BusinessSubCategory) ProtoMessage

func (*BusinessSubCategory) ProtoMessage()

func (*BusinessSubCategory) ProtoReflect

func (x *BusinessSubCategory) ProtoReflect() protoreflect.Message

func (*BusinessSubCategory) Reset

func (x *BusinessSubCategory) Reset()

func (*BusinessSubCategory) String

func (x *BusinessSubCategory) String() string

func (*BusinessSubCategory) Validate

func (this *BusinessSubCategory) Validate() error

type BusinessType

type BusinessType struct {
	Category    *BusinessCategory    `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
	SubCategory *BusinessSubCategory `protobuf:"bytes,2,opt,name=subCategory,proto3" json:"subCategory,omitempty"`
	// contains filtered or unexported fields
}

func (*BusinessType) Descriptor deprecated

func (*BusinessType) Descriptor() ([]byte, []int)

Deprecated: Use BusinessType.ProtoReflect.Descriptor instead.

func (*BusinessType) GetCategory

func (x *BusinessType) GetCategory() *BusinessCategory

func (*BusinessType) GetSubCategory

func (x *BusinessType) GetSubCategory() *BusinessSubCategory

func (*BusinessType) ProtoMessage

func (*BusinessType) ProtoMessage()

func (*BusinessType) ProtoReflect

func (x *BusinessType) ProtoReflect() protoreflect.Message

func (*BusinessType) Reset

func (x *BusinessType) Reset()

func (*BusinessType) String

func (x *BusinessType) String() string

func (*BusinessType) Validate

func (this *BusinessType) Validate() error

type DateOfBirth

type DateOfBirth struct {
	Month string `protobuf:"bytes,1,opt,name=Month,proto3" json:"Month,omitempty"`
	Day   string `protobuf:"bytes,2,opt,name=Day,proto3" json:"Day,omitempty"`
	Year  string `protobuf:"bytes,3,opt,name=Year,proto3" json:"Year,omitempty"`
	// contains filtered or unexported fields
}

func (*DateOfBirth) Descriptor deprecated

func (*DateOfBirth) Descriptor() ([]byte, []int)

Deprecated: Use DateOfBirth.ProtoReflect.Descriptor instead.

func (*DateOfBirth) GetDay

func (x *DateOfBirth) GetDay() string

func (*DateOfBirth) GetMonth

func (x *DateOfBirth) GetMonth() string

func (*DateOfBirth) GetYear

func (x *DateOfBirth) GetYear() string

func (*DateOfBirth) ProtoMessage

func (*DateOfBirth) ProtoMessage()

func (*DateOfBirth) ProtoReflect

func (x *DateOfBirth) ProtoReflect() protoreflect.Message

func (*DateOfBirth) Reset

func (x *DateOfBirth) Reset()

func (*DateOfBirth) String

func (x *DateOfBirth) String() string

func (*DateOfBirth) Validate

func (this *DateOfBirth) Validate() error

type Media

type Media struct {
	Id        uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Website   string `protobuf:"bytes,2,opt,name=website,proto3" json:"website,omitempty"`
	Instagram string `protobuf:"bytes,3,opt,name=instagram,proto3" json:"instagram,omitempty"`
	Facebook  string `protobuf:"bytes,4,opt,name=facebook,proto3" json:"facebook,omitempty"`
	LinkedIn  string `protobuf:"bytes,5,opt,name=linkedIn,proto3" json:"linkedIn,omitempty"`
	Pinterest string `protobuf:"bytes,6,opt,name=pinterest,proto3" json:"pinterest,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskMedia

func DefaultApplyFieldMaskMedia(ctx context.Context, patchee *Media, patcher *Media, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Media, error)

DefaultApplyFieldMaskMedia patches an pbObject with patcher according to a field mask.

func DefaultCreateMedia

func DefaultCreateMedia(ctx context.Context, in *Media, db *gorm1.DB) (*Media, error)

DefaultCreateMedia executes a basic gorm create call

func DefaultListMedia

func DefaultListMedia(ctx context.Context, db *gorm1.DB) ([]*Media, error)

DefaultListMedia executes a gorm list call

func DefaultPatchMedia

func DefaultPatchMedia(ctx context.Context, in *Media, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Media, error)

DefaultPatchMedia executes a basic gorm update call with patch behavior

func DefaultPatchSetMedia

func DefaultPatchSetMedia(ctx context.Context, objects []*Media, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*Media, error)

DefaultPatchSetMedia executes a bulk gorm update call with patch behavior

func DefaultReadMedia

func DefaultReadMedia(ctx context.Context, in *Media, db *gorm1.DB) (*Media, error)

DefaultReadMedia executes a basic gorm read call

func DefaultStrictUpdateMedia

func DefaultStrictUpdateMedia(ctx context.Context, in *Media, db *gorm1.DB) (*Media, error)

DefaultStrictUpdateMedia clears first level 1:many children and then executes a gorm update call

func (*Media) Descriptor deprecated

func (*Media) Descriptor() ([]byte, []int)

Deprecated: Use Media.ProtoReflect.Descriptor instead.

func (*Media) GetFacebook

func (x *Media) GetFacebook() string

func (*Media) GetId

func (x *Media) GetId() uint32

func (*Media) GetInstagram

func (x *Media) GetInstagram() string

func (*Media) GetLinkedIn

func (x *Media) GetLinkedIn() string

func (*Media) GetPinterest

func (x *Media) GetPinterest() string

func (*Media) GetWebsite

func (x *Media) GetWebsite() string

func (*Media) ProtoMessage

func (*Media) ProtoMessage()

func (*Media) ProtoReflect

func (x *Media) ProtoReflect() protoreflect.Message

func (*Media) Reset

func (x *Media) Reset()

func (*Media) String

func (x *Media) String() string

func (*Media) ToORM

func (m *Media) ToORM(ctx context.Context) (MediaORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*Media) Validate

func (this *Media) Validate() error

type MediaORM

type MediaORM struct {
	BusinessAccountId *uint32
	Facebook          string
	Id                uint32 `gorm:"type:serial;primary_key;auto_increment"`
	Instagram         string
	LinkedIn          string
	Pinterest         string
	Website           string
}

func (MediaORM) TableName

func (MediaORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*MediaORM) ToPB

func (m *MediaORM) ToPB(ctx context.Context) (Media, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type MediaORMWithAfterCreate_

type MediaORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type MediaORMWithAfterDeleteSet

type MediaORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Media, *gorm1.DB) error
}

type MediaORMWithAfterDelete_

type MediaORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type MediaORMWithAfterListFind

type MediaORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]MediaORM) error
}

type MediaORMWithAfterReadFind

type MediaORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type MediaORMWithAfterStrictUpdateSave

type MediaORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type MediaORMWithBeforeCreate_

type MediaORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeDeleteSet

type MediaORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Media, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeDelete_

type MediaORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeListApplyQuery

type MediaORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeListFind

type MediaORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeReadApplyQuery

type MediaORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeReadFind

type MediaORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeStrictUpdateCleanup

type MediaORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaORMWithBeforeStrictUpdateSave

type MediaORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type MediaWithAfterPatchSave

type MediaWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Media, *field_mask1.FieldMask, *gorm1.DB) error
}

type MediaWithAfterToORM

type MediaWithAfterToORM interface {
	AfterToORM(context.Context, *MediaORM) error
}

MediaAfterToORM called after default ToORM code

type MediaWithAfterToPB

type MediaWithAfterToPB interface {
	AfterToPB(context.Context, *Media) error
}

MediaAfterToPB called after default ToPB code

type MediaWithBeforePatchApplyFieldMask

type MediaWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Media, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type MediaWithBeforePatchRead

type MediaWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Media, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type MediaWithBeforePatchSave

type MediaWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Media, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type MediaWithBeforeToORM

type MediaWithBeforeToORM interface {
	BeforeToORM(context.Context, *MediaORM) error
}

MediaBeforeToORM called before default ToORM code

type MediaWithBeforeToPB

type MediaWithBeforeToPB interface {
	BeforeToPB(context.Context, *Media) error
}

MediaBeforeToPB called before default ToPB code

type MerchantType

type MerchantType struct {
	SoleProprietor        bool `protobuf:"varint,1,opt,name=SoleProprietor,proto3" json:"SoleProprietor,omitempty"`
	SideProject           bool `protobuf:"varint,2,opt,name=SideProject,proto3" json:"SideProject,omitempty"`
	CasualUse             bool `protobuf:"varint,3,opt,name=CasualUse,proto3" json:"CasualUse,omitempty"`
	LLCCorporation        bool `protobuf:"varint,4,opt,name=LLCCorporation,proto3" json:"LLCCorporation,omitempty"`
	Partnership           bool `protobuf:"varint,5,opt,name=Partnership,proto3" json:"Partnership,omitempty"`
	Charity               bool `protobuf:"varint,6,opt,name=Charity,proto3" json:"Charity,omitempty"`
	ReligiousOrganization bool `protobuf:"varint,7,opt,name=ReligiousOrganization,proto3" json:"ReligiousOrganization,omitempty"`
	OnePersonBusiness     bool `protobuf:"varint,8,opt,name=OnePersonBusiness,proto3" json:"OnePersonBusiness,omitempty"`
	// contains filtered or unexported fields
}

func (*MerchantType) Descriptor deprecated

func (*MerchantType) Descriptor() ([]byte, []int)

Deprecated: Use MerchantType.ProtoReflect.Descriptor instead.

func (*MerchantType) GetCasualUse

func (x *MerchantType) GetCasualUse() bool

func (*MerchantType) GetCharity

func (x *MerchantType) GetCharity() bool

func (*MerchantType) GetLLCCorporation

func (x *MerchantType) GetLLCCorporation() bool

func (*MerchantType) GetOnePersonBusiness

func (x *MerchantType) GetOnePersonBusiness() bool

func (*MerchantType) GetPartnership

func (x *MerchantType) GetPartnership() bool

func (*MerchantType) GetReligiousOrganization

func (x *MerchantType) GetReligiousOrganization() bool

func (*MerchantType) GetSideProject

func (x *MerchantType) GetSideProject() bool

func (*MerchantType) GetSoleProprietor

func (x *MerchantType) GetSoleProprietor() bool

func (*MerchantType) ProtoMessage

func (*MerchantType) ProtoMessage()

func (*MerchantType) ProtoReflect

func (x *MerchantType) ProtoReflect() protoreflect.Message

func (*MerchantType) Reset

func (x *MerchantType) Reset()

func (*MerchantType) String

func (x *MerchantType) String() string

func (*MerchantType) Validate

func (this *MerchantType) Validate() error

type PaymentMedium

type PaymentMedium struct {
	MobilePhone bool `protobuf:"varint,1,opt,name=MobilePhone,proto3" json:"MobilePhone,omitempty"`
	Tablet      bool `protobuf:"varint,2,opt,name=Tablet,proto3" json:"Tablet,omitempty"`
	Computer    bool `protobuf:"varint,3,opt,name=Computer,proto3" json:"Computer,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentMedium) Descriptor deprecated

func (*PaymentMedium) Descriptor() ([]byte, []int)

Deprecated: Use PaymentMedium.ProtoReflect.Descriptor instead.

func (*PaymentMedium) GetComputer

func (x *PaymentMedium) GetComputer() bool

func (*PaymentMedium) GetMobilePhone

func (x *PaymentMedium) GetMobilePhone() bool

func (*PaymentMedium) GetTablet

func (x *PaymentMedium) GetTablet() bool

func (*PaymentMedium) ProtoMessage

func (*PaymentMedium) ProtoMessage()

func (*PaymentMedium) ProtoReflect

func (x *PaymentMedium) ProtoReflect() protoreflect.Message

func (*PaymentMedium) Reset

func (x *PaymentMedium) Reset()

func (*PaymentMedium) String

func (x *PaymentMedium) String() string

func (*PaymentMedium) Validate

func (this *PaymentMedium) Validate() error

type PaymentOptions

type PaymentOptions struct {
	BrickAndMortar  bool `protobuf:"varint,1,opt,name=BrickAndMortar,proto3" json:"BrickAndMortar,omitempty"`
	OnTheGo         bool `protobuf:"varint,2,opt,name=OnTheGo,proto3" json:"OnTheGo,omitempty"`
	Online          bool `protobuf:"varint,3,opt,name=Online,proto3" json:"Online,omitempty"`
	ThroughInvoices bool `protobuf:"varint,4,opt,name=ThroughInvoices,proto3" json:"ThroughInvoices,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentOptions) Descriptor deprecated

func (*PaymentOptions) Descriptor() ([]byte, []int)

Deprecated: Use PaymentOptions.ProtoReflect.Descriptor instead.

func (*PaymentOptions) GetBrickAndMortar

func (x *PaymentOptions) GetBrickAndMortar() bool

func (*PaymentOptions) GetOnTheGo

func (x *PaymentOptions) GetOnTheGo() bool

func (*PaymentOptions) GetOnline

func (x *PaymentOptions) GetOnline() bool

func (*PaymentOptions) GetThroughInvoices

func (x *PaymentOptions) GetThroughInvoices() bool

func (*PaymentOptions) ProtoMessage

func (*PaymentOptions) ProtoMessage()

func (*PaymentOptions) ProtoReflect

func (x *PaymentOptions) ProtoReflect() protoreflect.Message

func (*PaymentOptions) Reset

func (x *PaymentOptions) Reset()

func (*PaymentOptions) String

func (x *PaymentOptions) String() string

func (*PaymentOptions) Validate

func (this *PaymentOptions) Validate() error

type PaymentProcessingMethods

type PaymentProcessingMethods struct {
	PaymentOptions []*PaymentOptions `protobuf:"bytes,1,rep,name=paymentOptions,proto3" json:"paymentOptions,omitempty"`
	Medium         []*PaymentMedium  `protobuf:"bytes,2,rep,name=medium,proto3" json:"medium,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentProcessingMethods) Descriptor deprecated

func (*PaymentProcessingMethods) Descriptor() ([]byte, []int)

Deprecated: Use PaymentProcessingMethods.ProtoReflect.Descriptor instead.

func (*PaymentProcessingMethods) GetMedium

func (x *PaymentProcessingMethods) GetMedium() []*PaymentMedium

func (*PaymentProcessingMethods) GetPaymentOptions

func (x *PaymentProcessingMethods) GetPaymentOptions() []*PaymentOptions

func (*PaymentProcessingMethods) ProtoMessage

func (*PaymentProcessingMethods) ProtoMessage()

func (*PaymentProcessingMethods) ProtoReflect

func (x *PaymentProcessingMethods) ProtoReflect() protoreflect.Message

func (*PaymentProcessingMethods) Reset

func (x *PaymentProcessingMethods) Reset()

func (*PaymentProcessingMethods) String

func (x *PaymentProcessingMethods) String() string

func (*PaymentProcessingMethods) Validate

func (this *PaymentProcessingMethods) Validate() error

type PhoneNumber

type PhoneNumber struct {
	Number string     `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Type   *PhoneType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneNumber) Descriptor deprecated

func (*PhoneNumber) Descriptor() ([]byte, []int)

Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead.

func (*PhoneNumber) GetNumber

func (x *PhoneNumber) GetNumber() string

func (*PhoneNumber) GetType

func (x *PhoneNumber) GetType() *PhoneType

func (*PhoneNumber) ProtoMessage

func (*PhoneNumber) ProtoMessage()

func (*PhoneNumber) ProtoReflect

func (x *PhoneNumber) ProtoReflect() protoreflect.Message

func (*PhoneNumber) Reset

func (x *PhoneNumber) Reset()

func (*PhoneNumber) String

func (x *PhoneNumber) String() string

func (*PhoneNumber) Validate

func (this *PhoneNumber) Validate() error

type PhoneType

type PhoneType struct {
	Home   bool `protobuf:"varint,1,opt,name=home,proto3" json:"home,omitempty"`
	Work   bool `protobuf:"varint,2,opt,name=work,proto3" json:"work,omitempty"`
	Mobile bool `protobuf:"varint,3,opt,name=mobile,proto3" json:"mobile,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneType) Descriptor deprecated

func (*PhoneType) Descriptor() ([]byte, []int)

Deprecated: Use PhoneType.ProtoReflect.Descriptor instead.

func (*PhoneType) GetHome

func (x *PhoneType) GetHome() bool

func (*PhoneType) GetMobile

func (x *PhoneType) GetMobile() bool

func (*PhoneType) GetWork

func (x *PhoneType) GetWork() bool

func (*PhoneType) ProtoMessage

func (*PhoneType) ProtoMessage()

func (*PhoneType) ProtoReflect

func (x *PhoneType) ProtoReflect() protoreflect.Message

func (*PhoneType) Reset

func (x *PhoneType) Reset()

func (*PhoneType) String

func (x *PhoneType) String() string

func (*PhoneType) Validate

func (this *PhoneType) Validate() error

type ServicesManagedByBlackspace

type ServicesManagedByBlackspace struct {

	// create items or services to speed up checkout and enhance reports
	ItemCatalog bool `protobuf:"varint,1,opt,name=ItemCatalog,proto3" json:"ItemCatalog,omitempty"`
	// sell gift cards in store or online to boost sales
	GiftCards bool `protobuf:"varint,2,opt,name=GiftCards,proto3" json:"GiftCards,omitempty"`
	// provide discounts to boost visibility and sales
	Discounts bool `protobuf:"varint,3,opt,name=Discounts,proto3" json:"Discounts,omitempty"`
	// email your customers to tell them about promotions or special events
	MarketingCampaigns bool `protobuf:"varint,4,opt,name=MarketingCampaigns,proto3" json:"MarketingCampaigns,omitempty"`
	// keep your customers coming back with customized rewards program
	LoyaltyProgram bool `protobuf:"varint,5,opt,name=LoyaltyProgram,proto3" json:"LoyaltyProgram,omitempty"`
	// get access to financing by running your business on blackspace
	FundingYourBusiness bool `protobuf:"varint,6,opt,name=FundingYourBusiness,proto3" json:"FundingYourBusiness,omitempty"`
	// access analytics (indepth) data on buying trends
	Analytics bool `protobuf:"varint,7,opt,name=Analytics,proto3" json:"Analytics,omitempty"`
	// contains filtered or unexported fields
}

func (*ServicesManagedByBlackspace) Descriptor deprecated

func (*ServicesManagedByBlackspace) Descriptor() ([]byte, []int)

Deprecated: Use ServicesManagedByBlackspace.ProtoReflect.Descriptor instead.

func (*ServicesManagedByBlackspace) GetAnalytics

func (x *ServicesManagedByBlackspace) GetAnalytics() bool

func (*ServicesManagedByBlackspace) GetDiscounts

func (x *ServicesManagedByBlackspace) GetDiscounts() bool

func (*ServicesManagedByBlackspace) GetFundingYourBusiness

func (x *ServicesManagedByBlackspace) GetFundingYourBusiness() bool

func (*ServicesManagedByBlackspace) GetGiftCards

func (x *ServicesManagedByBlackspace) GetGiftCards() bool

func (*ServicesManagedByBlackspace) GetItemCatalog

func (x *ServicesManagedByBlackspace) GetItemCatalog() bool

func (*ServicesManagedByBlackspace) GetLoyaltyProgram

func (x *ServicesManagedByBlackspace) GetLoyaltyProgram() bool

func (*ServicesManagedByBlackspace) GetMarketingCampaigns

func (x *ServicesManagedByBlackspace) GetMarketingCampaigns() bool

func (*ServicesManagedByBlackspace) ProtoMessage

func (*ServicesManagedByBlackspace) ProtoMessage()

func (*ServicesManagedByBlackspace) ProtoReflect

func (*ServicesManagedByBlackspace) Reset

func (x *ServicesManagedByBlackspace) Reset()

func (*ServicesManagedByBlackspace) String

func (x *ServicesManagedByBlackspace) String() string

func (*ServicesManagedByBlackspace) Validate

func (this *ServicesManagedByBlackspace) Validate() error

type Topics

type Topics struct {
	Id              uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Technology      bool   `protobuf:"varint,2,opt,name=Technology,proto3" json:"Technology,omitempty"`
	Health          bool   `protobuf:"varint,3,opt,name=Health,proto3" json:"Health,omitempty"`
	Food            bool   `protobuf:"varint,4,opt,name=Food,proto3" json:"Food,omitempty"`
	Science         bool   `protobuf:"varint,5,opt,name=Science,proto3" json:"Science,omitempty"`
	Music           bool   `protobuf:"varint,6,opt,name=Music,proto3" json:"Music,omitempty"`
	Travel          bool   `protobuf:"varint,7,opt,name=Travel,proto3" json:"Travel,omitempty"`
	Business        bool   `protobuf:"varint,8,opt,name=Business,proto3" json:"Business,omitempty"`
	Cooking         bool   `protobuf:"varint,9,opt,name=Cooking,proto3" json:"Cooking,omitempty"`
	FashionAndStyle bool   `protobuf:"varint,10,opt,name=FashionAndStyle,proto3" json:"FashionAndStyle,omitempty"`
	Design          bool   `protobuf:"varint,11,opt,name=Design,proto3" json:"Design,omitempty"`
	Art             bool   `protobuf:"varint,12,opt,name=Art,proto3" json:"Art,omitempty"`
	// contains filtered or unexported fields
}

func DefaultApplyFieldMaskTopics

func DefaultApplyFieldMaskTopics(ctx context.Context, patchee *Topics, patcher *Topics, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Topics, error)

DefaultApplyFieldMaskTopics patches an pbObject with patcher according to a field mask.

func DefaultCreateTopics

func DefaultCreateTopics(ctx context.Context, in *Topics, db *gorm1.DB) (*Topics, error)

DefaultCreateTopics executes a basic gorm create call

func DefaultListTopics

func DefaultListTopics(ctx context.Context, db *gorm1.DB) ([]*Topics, error)

DefaultListTopics executes a gorm list call

func DefaultPatchSetTopics

func DefaultPatchSetTopics(ctx context.Context, objects []*Topics, updateMasks []*field_mask1.FieldMask, db *gorm1.DB) ([]*Topics, error)

DefaultPatchSetTopics executes a bulk gorm update call with patch behavior

func DefaultPatchTopics

func DefaultPatchTopics(ctx context.Context, in *Topics, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Topics, error)

DefaultPatchTopics executes a basic gorm update call with patch behavior

func DefaultReadTopics

func DefaultReadTopics(ctx context.Context, in *Topics, db *gorm1.DB) (*Topics, error)

DefaultReadTopics executes a basic gorm read call

func DefaultStrictUpdateTopics

func DefaultStrictUpdateTopics(ctx context.Context, in *Topics, db *gorm1.DB) (*Topics, error)

DefaultStrictUpdateTopics clears first level 1:many children and then executes a gorm update call

func (*Topics) Descriptor deprecated

func (*Topics) Descriptor() ([]byte, []int)

Deprecated: Use Topics.ProtoReflect.Descriptor instead.

func (*Topics) GetArt

func (x *Topics) GetArt() bool

func (*Topics) GetBusiness

func (x *Topics) GetBusiness() bool

func (*Topics) GetCooking

func (x *Topics) GetCooking() bool

func (*Topics) GetDesign

func (x *Topics) GetDesign() bool

func (*Topics) GetFashionAndStyle

func (x *Topics) GetFashionAndStyle() bool

func (*Topics) GetFood

func (x *Topics) GetFood() bool

func (*Topics) GetHealth

func (x *Topics) GetHealth() bool

func (*Topics) GetId

func (x *Topics) GetId() uint32

func (*Topics) GetMusic

func (x *Topics) GetMusic() bool

func (*Topics) GetScience

func (x *Topics) GetScience() bool

func (*Topics) GetTechnology

func (x *Topics) GetTechnology() bool

func (*Topics) GetTravel

func (x *Topics) GetTravel() bool

func (*Topics) ProtoMessage

func (*Topics) ProtoMessage()

func (*Topics) ProtoReflect

func (x *Topics) ProtoReflect() protoreflect.Message

func (*Topics) Reset

func (x *Topics) Reset()

func (*Topics) String

func (x *Topics) String() string

func (*Topics) ToORM

func (m *Topics) ToORM(ctx context.Context) (TopicsORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

func (*Topics) Validate

func (this *Topics) Validate() error

type TopicsORM

type TopicsORM struct {
	Art               bool
	Business          bool
	BusinessAccountId *uint32
	Cooking           bool
	Design            bool
	FashionAndStyle   bool
	Food              bool
	Health            bool
	Id                uint32 `gorm:"type:serial;primary_key;auto_increment"`
	Music             bool
	Science           bool
	Technology        bool
	Travel            bool
}

func (TopicsORM) TableName

func (TopicsORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TopicsORM) ToPB

func (m *TopicsORM) ToPB(ctx context.Context) (Topics, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TopicsORMWithAfterCreate_

type TopicsORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm1.DB) error
}

type TopicsORMWithAfterDeleteSet

type TopicsORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Topics, *gorm1.DB) error
}

type TopicsORMWithAfterDelete_

type TopicsORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm1.DB) error
}

type TopicsORMWithAfterListFind

type TopicsORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm1.DB, *[]TopicsORM) error
}

type TopicsORMWithAfterReadFind

type TopicsORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm1.DB) error
}

type TopicsORMWithAfterStrictUpdateSave

type TopicsORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm1.DB) error
}

type TopicsORMWithBeforeCreate_

type TopicsORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeDeleteSet

type TopicsORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Topics, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeDelete_

type TopicsORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeListApplyQuery

type TopicsORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeListFind

type TopicsORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeReadApplyQuery

type TopicsORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeReadFind

type TopicsORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeStrictUpdateCleanup

type TopicsORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsORMWithBeforeStrictUpdateSave

type TopicsORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsWithAfterPatchSave

type TopicsWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Topics, *field_mask1.FieldMask, *gorm1.DB) error
}

type TopicsWithAfterToORM

type TopicsWithAfterToORM interface {
	AfterToORM(context.Context, *TopicsORM) error
}

TopicsAfterToORM called after default ToORM code

type TopicsWithAfterToPB

type TopicsWithAfterToPB interface {
	AfterToPB(context.Context, *Topics) error
}

TopicsAfterToPB called after default ToPB code

type TopicsWithBeforePatchApplyFieldMask

type TopicsWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Topics, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsWithBeforePatchRead

type TopicsWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Topics, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsWithBeforePatchSave

type TopicsWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Topics, *field_mask1.FieldMask, *gorm1.DB) (*gorm1.DB, error)
}

type TopicsWithBeforeToORM

type TopicsWithBeforeToORM interface {
	BeforeToORM(context.Context, *TopicsORM) error
}

TopicsBeforeToORM called before default ToORM code

type TopicsWithBeforeToPB

type TopicsWithBeforeToPB interface {
	BeforeToPB(context.Context, *Topics) error
}

TopicsBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL