protomodels

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssociationTypes_name = map[int32]string{
	0: "SYNONYMS",
	1: "ANTONYMS",
	2: "ORIGIN",
	3: "DERIVATIVES",
	4: "IN_OTHER_LANGUAGES",
	5: "OTHERS",
}
View Source
var AssociationTypes_value = map[string]int32{
	"SYNONYMS":           0,
	"ANTONYMS":           1,
	"ORIGIN":             2,
	"DERIVATIVES":        3,
	"IN_OTHER_LANGUAGES": 4,
	"OTHERS":             5,
}
View Source
var Language_name = map[int32]string{
	0: "ENGLISH",
	1: "JAPANESE",
	2: "FRENCH",
}
View Source
var Language_value = map[string]int32{
	"ENGLISH":  0,
	"JAPANESE": 1,
	"FRENCH":   2,
}

Functions

This section is empty.

Types

type AssociationTypes

type AssociationTypes int32
const (
	AssociationTypes_SYNONYMS           AssociationTypes = 0
	AssociationTypes_ANTONYMS           AssociationTypes = 1
	AssociationTypes_ORIGIN             AssociationTypes = 2
	AssociationTypes_DERIVATIVES        AssociationTypes = 3
	AssociationTypes_IN_OTHER_LANGUAGES AssociationTypes = 4
	AssociationTypes_OTHERS             AssociationTypes = 5
)

func (AssociationTypes) EnumDescriptor

func (AssociationTypes) EnumDescriptor() ([]byte, []int)

func (AssociationTypes) String

func (x AssociationTypes) String() string

type Card

type Card struct {
	Index            *CardIndex `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Labels           []string   `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty"`
	Explanations     []string   `protobuf:"bytes,3,rep,name=explanations,proto3" json:"explanations,omitempty"`
	ExampleSentences []string   `protobuf:"bytes,4,rep,name=example_sentences,json=exampleSentences,proto3" json:"example_sentences,omitempty"`
	// where 0 means not familiar at all, 10 means very familiar
	Familiarity          int32                `protobuf:"varint,5,opt,name=familiarity,proto3" json:"familiarity,omitempty"`
	ReviewDate           *timestamp.Timestamp `protobuf:"bytes,6,opt,name=review_date,json=reviewDate,proto3" json:"review_date,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Card) Descriptor

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

func (*Card) GetExampleSentences

func (m *Card) GetExampleSentences() []string

func (*Card) GetExplanations

func (m *Card) GetExplanations() []string

func (*Card) GetFamiliarity

func (m *Card) GetFamiliarity() int32

func (*Card) GetIndex

func (m *Card) GetIndex() *CardIndex

func (*Card) GetLabels

func (m *Card) GetLabels() []string

func (*Card) GetReviewDate

func (m *Card) GetReviewDate() *timestamp.Timestamp

func (Card) MarshalJSON

func (c Card) MarshalJSON() ([]byte, error)

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) Reset

func (m *Card) Reset()

func (*Card) String

func (m *Card) String() string

func (*Card) UnmarshalJSON

func (c *Card) UnmarshalJSON(data []byte) error

func (*Card) XXX_DiscardUnknown

func (m *Card) XXX_DiscardUnknown()

func (*Card) XXX_Marshal

func (m *Card) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card) XXX_Merge

func (m *Card) XXX_Merge(src proto.Message)

func (*Card) XXX_Size

func (m *Card) XXX_Size() int

func (*Card) XXX_Unmarshal

func (m *Card) XXX_Unmarshal(b []byte) error

type CardIndex

type CardIndex struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Language             Language `protobuf:"varint,2,opt,name=language,proto3,enum=protomodels.Language" json:"language,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CardIndex) Descriptor

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

func (*CardIndex) GetLanguage

func (m *CardIndex) GetLanguage() Language

func (*CardIndex) GetName

func (m *CardIndex) GetName() string

func (CardIndex) MarshalJSON

func (c CardIndex) MarshalJSON() ([]byte, error)

func (*CardIndex) ProtoMessage

func (*CardIndex) ProtoMessage()

func (*CardIndex) Reset

func (m *CardIndex) Reset()

func (*CardIndex) String

func (m *CardIndex) String() string

func (*CardIndex) UnmarshalJSON

func (c *CardIndex) UnmarshalJSON(data []byte) error

func (*CardIndex) XXX_DiscardUnknown

func (m *CardIndex) XXX_DiscardUnknown()

func (*CardIndex) XXX_Marshal

func (m *CardIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CardIndex) XXX_Merge

func (m *CardIndex) XXX_Merge(src proto.Message)

func (*CardIndex) XXX_Size

func (m *CardIndex) XXX_Size() int

func (*CardIndex) XXX_Unmarshal

func (m *CardIndex) XXX_Unmarshal(b []byte) error

type Language

type Language int32
const (
	Language_ENGLISH  Language = 0
	Language_JAPANESE Language = 1
	Language_FRENCH   Language = 2
)

func LangMapping

func LangMapping(shortLang string) Language

func (Language) EnumDescriptor

func (Language) EnumDescriptor() ([]byte, []int)

func (Language) MarshalJSON

func (l Language) MarshalJSON() ([]byte, error)

func (Language) String

func (x Language) String() string

func (*Language) UnmarshalJSON

func (l *Language) UnmarshalJSON(data []byte) error

type Log

type Log struct {
	Date                 string   `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	ReviewCards          int32    `protobuf:"varint,2,opt,name=review_cards,json=reviewCards,proto3" json:"review_cards,omitempty"`
	NewCards             int32    `protobuf:"varint,3,opt,name=new_cards,json=newCards,proto3" json:"new_cards,omitempty"`
	Streak               int32    `protobuf:"varint,4,opt,name=streak,proto3" json:"streak,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Log) Descriptor

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

func (*Log) GetDate

func (m *Log) GetDate() string

func (*Log) GetNewCards

func (m *Log) GetNewCards() int32

func (*Log) GetReviewCards

func (m *Log) GetReviewCards() int32

func (*Log) GetStreak

func (m *Log) GetStreak() int32

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) String

func (m *Log) String() string

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge

func (m *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

func (m *Log) XXX_Unmarshal(b []byte) error

type RelatedCards

type RelatedCards struct {
	Index                *CardIndex   `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Synonyms             []*CardIndex `protobuf:"bytes,2,rep,name=synonyms,proto3" json:"synonyms,omitempty"`
	Antonyms             []*CardIndex `protobuf:"bytes,3,rep,name=antonyms,proto3" json:"antonyms,omitempty"`
	Origin               *CardIndex   `protobuf:"bytes,4,opt,name=origin,proto3" json:"origin,omitempty"`
	Derivatives          []*CardIndex `protobuf:"bytes,5,rep,name=derivatives,proto3" json:"derivatives,omitempty"`
	InOtherLanguages     []*CardIndex `protobuf:"bytes,6,rep,name=in_other_languages,json=inOtherLanguages,proto3" json:"in_other_languages,omitempty"`
	Others               []*CardIndex `protobuf:"bytes,7,rep,name=others,proto3" json:"others,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*RelatedCards) Descriptor

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

func (*RelatedCards) GetAntonyms

func (m *RelatedCards) GetAntonyms() []*CardIndex

func (*RelatedCards) GetDerivatives

func (m *RelatedCards) GetDerivatives() []*CardIndex

func (*RelatedCards) GetInOtherLanguages

func (m *RelatedCards) GetInOtherLanguages() []*CardIndex

func (*RelatedCards) GetIndex

func (m *RelatedCards) GetIndex() *CardIndex

func (*RelatedCards) GetOrigin

func (m *RelatedCards) GetOrigin() *CardIndex

func (*RelatedCards) GetOthers

func (m *RelatedCards) GetOthers() []*CardIndex

func (*RelatedCards) GetSynonyms

func (m *RelatedCards) GetSynonyms() []*CardIndex

func (*RelatedCards) ProtoMessage

func (*RelatedCards) ProtoMessage()

func (*RelatedCards) Reset

func (m *RelatedCards) Reset()

func (*RelatedCards) String

func (m *RelatedCards) String() string

func (*RelatedCards) XXX_DiscardUnknown

func (m *RelatedCards) XXX_DiscardUnknown()

func (*RelatedCards) XXX_Marshal

func (m *RelatedCards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RelatedCards) XXX_Merge

func (m *RelatedCards) XXX_Merge(src proto.Message)

func (*RelatedCards) XXX_Size

func (m *RelatedCards) XXX_Size() int

func (*RelatedCards) XXX_Unmarshal

func (m *RelatedCards) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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