pb

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NameType_name = map[int32]string{
		0: "NONE",
		1: "UNINOMIAL",
		2: "SPECIES",
		3: "COMPARISON",
		4: "APPROX_SURROGATE",
		5: "SURROGATE",
		6: "NAMED_HYBRID",
		7: "HYBRID_FORMULA",
		8: "VIRUS",
	}
	NameType_value = map[string]int32{
		"NONE":             0,
		"UNINOMIAL":        1,
		"SPECIES":          2,
		"COMPARISON":       3,
		"APPROX_SURROGATE": 4,
		"SURROGATE":        5,
		"NAMED_HYBRID":     6,
		"HYBRID_FORMULA":   7,
		"VIRUS":            8,
	}
)

Enum value maps for NameType.

View Source
var File_gnparser_proto protoreflect.FileDescriptor

Functions

func RegisterGNparserServer

func RegisterGNparserServer(s *grpc.Server, srv GNparserServer)

Types

type Approximation

type Approximation struct {

	// genus of the name.
	Genus string `protobuf:"bytes,1,opt,name=genus,proto3" json:"genus,omitempty"`
	// specific epithet if given (in case if the approximation for subspecies
	// for example).
	Species string `protobuf:"bytes,2,opt,name=species,proto3" json:"species,omitempty"`
	// species_authorship, if given.
	SpeciesAuthorship *Authorship `protobuf:"bytes,3,opt,name=species_authorship,json=speciesAuthorship,proto3" json:"species_authorship,omitempty"`
	// approximation marker, like sp.
	Approximation string `protobuf:"bytes,4,opt,name=approximation,proto3" json:"approximation,omitempty"`
	// unparsed annotation of the name.
	Ignored string `protobuf:"bytes,5,opt,name=ignored,proto3" json:"ignored,omitempty"`
	// contains filtered or unexported fields
}

func (*Approximation) Descriptor deprecated

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

Deprecated: Use Approximation.ProtoReflect.Descriptor instead.

func (*Approximation) GetApproximation

func (x *Approximation) GetApproximation() string

func (*Approximation) GetGenus

func (x *Approximation) GetGenus() string

func (*Approximation) GetIgnored

func (x *Approximation) GetIgnored() string

func (*Approximation) GetSpecies

func (x *Approximation) GetSpecies() string

func (*Approximation) GetSpeciesAuthorship

func (x *Approximation) GetSpeciesAuthorship() *Authorship

func (*Approximation) ProtoMessage

func (*Approximation) ProtoMessage()

func (*Approximation) ProtoReflect added in v0.14.2

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

func (*Approximation) Reset

func (x *Approximation) Reset()

func (*Approximation) String

func (x *Approximation) String() string

type AuthGroup

type AuthGroup struct {

	// list of authors in the group.
	Authors []string `protobuf:"bytes,1,rep,name=authors,proto3" json:"authors,omitempty"`
	// year of the publication.
	Year string `protobuf:"bytes,2,opt,name=year,proto3" json:"year,omitempty"`
	// approximate_year is true, if the year is uncertain.
	ApproximateYear bool `protobuf:"varint,3,opt,name=approximate_year,json=approximateYear,proto3" json:"approximate_year,omitempty"`
	// ex_authors are authors of a publication where name was described.
	ExAuthors *Authors `protobuf:"bytes,4,opt,name=ex_authors,json=exAuthors,proto3" json:"ex_authors,omitempty"`
	// emend_authors are authors that altered name meaning.
	EmendAuthors *Authors `protobuf:"bytes,5,opt,name=emend_authors,json=emendAuthors,proto3" json:"emend_authors,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthGroup) Descriptor deprecated

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

Deprecated: Use AuthGroup.ProtoReflect.Descriptor instead.

func (*AuthGroup) GetApproximateYear

func (x *AuthGroup) GetApproximateYear() bool

func (*AuthGroup) GetAuthors

func (x *AuthGroup) GetAuthors() []string

func (*AuthGroup) GetEmendAuthors

func (x *AuthGroup) GetEmendAuthors() *Authors

func (*AuthGroup) GetExAuthors

func (x *AuthGroup) GetExAuthors() *Authors

func (*AuthGroup) GetYear

func (x *AuthGroup) GetYear() string

func (*AuthGroup) ProtoMessage

func (*AuthGroup) ProtoMessage()

func (*AuthGroup) ProtoReflect added in v0.14.2

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

func (*AuthGroup) Reset

func (x *AuthGroup) Reset()

func (*AuthGroup) String

func (x *AuthGroup) String() string

type Authors

type Authors struct {

	// authors is a list of authors.
	Authors []string `protobuf:"bytes,1,rep,name=authors,proto3" json:"authors,omitempty"`
	// year of the publication.
	Year string `protobuf:"bytes,2,opt,name=year,proto3" json:"year,omitempty"`
	// approximate_year is true if exact year of the publication is uncertain.
	ApproximateYear bool `protobuf:"varint,3,opt,name=approximate_year,json=approximateYear,proto3" json:"approximate_year,omitempty"`
	// contains filtered or unexported fields
}

func (*Authors) Descriptor deprecated

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

Deprecated: Use Authors.ProtoReflect.Descriptor instead.

func (*Authors) GetApproximateYear

func (x *Authors) GetApproximateYear() bool

func (*Authors) GetAuthors

func (x *Authors) GetAuthors() []string

func (*Authors) GetYear

func (x *Authors) GetYear() string

func (*Authors) ProtoMessage

func (*Authors) ProtoMessage()

func (*Authors) ProtoReflect added in v0.14.2

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

func (*Authors) Reset

func (x *Authors) Reset()

func (*Authors) String

func (x *Authors) String() string

type Authorship

type Authorship struct {

	// value is authorship string.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// list of all authors in the name (might include 'ex' and 'emend' authors).
	AllAuthors []string `protobuf:"bytes,2,rep,name=all_authors,json=allAuthors,proto3" json:"all_authors,omitempty"`
	// authors of the original combination.
	Original *AuthGroup `protobuf:"bytes,3,opt,name=original,proto3" json:"original,omitempty"`
	// authors of a new combination.
	Combination *AuthGroup `protobuf:"bytes,4,opt,name=combination,proto3" json:"combination,omitempty"`
	// contains filtered or unexported fields
}

func (*Authorship) Descriptor deprecated

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

Deprecated: Use Authorship.ProtoReflect.Descriptor instead.

func (*Authorship) GetAllAuthors

func (x *Authorship) GetAllAuthors() []string

func (*Authorship) GetCombination

func (x *Authorship) GetCombination() *AuthGroup

func (*Authorship) GetOriginal

func (x *Authorship) GetOriginal() *AuthGroup

func (*Authorship) GetValue

func (x *Authorship) GetValue() string

func (*Authorship) ProtoMessage

func (*Authorship) ProtoMessage()

func (*Authorship) ProtoReflect added in v0.14.2

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

func (*Authorship) Reset

func (x *Authorship) Reset()

func (*Authorship) String

func (x *Authorship) String() string

type Canonical

type Canonical struct {

	// stem contains simple canonical form with
	// removed suffixes for species, infraspecies.
	Stem string `protobuf:"bytes,1,opt,name=stem,proto3" json:"stem,omitempty"`
	// simple contains canonical form without ranks.
	Simple string `protobuf:"bytes,2,opt,name=simple,proto3" json:"simple,omitempty"`
	// full contains canonical form with ranks.
	Full string `protobuf:"bytes,3,opt,name=full,proto3" json:"full,omitempty"`
	// contains filtered or unexported fields
}

func (*Canonical) Descriptor deprecated

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

Deprecated: Use Canonical.ProtoReflect.Descriptor instead.

func (*Canonical) GetFull

func (x *Canonical) GetFull() string

func (*Canonical) GetSimple

func (x *Canonical) GetSimple() string

func (*Canonical) GetStem

func (x *Canonical) GetStem() string

func (*Canonical) ProtoMessage

func (*Canonical) ProtoMessage()

func (*Canonical) ProtoReflect added in v0.14.2

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

func (*Canonical) Reset

func (x *Canonical) Reset()

func (*Canonical) String

func (x *Canonical) String() string

type Comparison

type Comparison struct {

	// genus of the name.
	Genus string `protobuf:"bytes,1,opt,name=genus,proto3" json:"genus,omitempty"`
	// specific epithet of the name.
	Species string `protobuf:"bytes,2,opt,name=species,proto3" json:"species,omitempty"`
	// authorship of the name.
	SpeciesAuthorship *Authorship `protobuf:"bytes,3,opt,name=species_authorship,json=speciesAuthorship,proto3" json:"species_authorship,omitempty"`
	// comparison marker (usually cf.).
	Comparison string `protobuf:"bytes,4,opt,name=comparison,proto3" json:"comparison,omitempty"`
	// contains filtered or unexported fields
}

func (*Comparison) Descriptor deprecated

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

Deprecated: Use Comparison.ProtoReflect.Descriptor instead.

func (*Comparison) GetComparison

func (x *Comparison) GetComparison() string

func (*Comparison) GetGenus

func (x *Comparison) GetGenus() string

func (*Comparison) GetSpecies

func (x *Comparison) GetSpecies() string

func (*Comparison) GetSpeciesAuthorship

func (x *Comparison) GetSpeciesAuthorship() *Authorship

func (*Comparison) ProtoMessage

func (*Comparison) ProtoMessage()

func (*Comparison) ProtoReflect added in v0.14.2

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

func (*Comparison) Reset

func (x *Comparison) Reset()

func (*Comparison) String

func (x *Comparison) String() string

type GNparserClient

type GNparserClient interface {
	// Ver takes an empty argument (Void) and returns description of the gnparser
	// version and build date and time.
	Ver(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Version, error)
	// ParseArray takes a list of name-strings (up to 10000), and retuns back
	// a list of parsed results, preserving the order of input.
	ParseArray(ctx context.Context, in *InputArray, opts ...grpc.CallOption) (*OutputArray, error)
}

GNparserClient is the client API for GNparser service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGNparserClient

func NewGNparserClient(cc grpc.ClientConnInterface) GNparserClient

type GNparserServer

type GNparserServer interface {
	// Ver takes an empty argument (Void) and returns description of the gnparser
	// version and build date and time.
	Ver(context.Context, *Void) (*Version, error)
	// ParseArray takes a list of name-strings (up to 10000), and retuns back
	// a list of parsed results, preserving the order of input.
	ParseArray(context.Context, *InputArray) (*OutputArray, error)
}

GNparserServer is the server API for GNparser service.

type HybridFormula

type HybridFormula struct {

	// element describes one of names in the hybrid formula.
	//
	// Types that are assignable to Element:
	//	*HybridFormula_Uninomial
	//	*HybridFormula_Species
	//	*HybridFormula_Comparison
	//	*HybridFormula_Approximation
	Element isHybridFormula_Element `protobuf_oneof:"element"`
	// contains filtered or unexported fields
}

func (*HybridFormula) Descriptor deprecated

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

Deprecated: Use HybridFormula.ProtoReflect.Descriptor instead.

func (*HybridFormula) GetApproximation

func (x *HybridFormula) GetApproximation() *Approximation

func (*HybridFormula) GetComparison

func (x *HybridFormula) GetComparison() *Comparison

func (*HybridFormula) GetElement

func (m *HybridFormula) GetElement() isHybridFormula_Element

func (*HybridFormula) GetSpecies

func (x *HybridFormula) GetSpecies() *Species

func (*HybridFormula) GetUninomial

func (x *HybridFormula) GetUninomial() *Uninomial

func (*HybridFormula) ProtoMessage

func (*HybridFormula) ProtoMessage()

func (*HybridFormula) ProtoReflect added in v0.14.2

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

func (*HybridFormula) Reset

func (x *HybridFormula) Reset()

func (*HybridFormula) String

func (x *HybridFormula) String() string

type HybridFormula_Approximation

type HybridFormula_Approximation struct {
	Approximation *Approximation `protobuf:"bytes,4,opt,name=approximation,proto3,oneof"`
}

type HybridFormula_Comparison

type HybridFormula_Comparison struct {
	Comparison *Comparison `protobuf:"bytes,3,opt,name=comparison,proto3,oneof"`
}

type HybridFormula_Species

type HybridFormula_Species struct {
	Species *Species `protobuf:"bytes,2,opt,name=species,proto3,oneof"`
}

type HybridFormula_Uninomial

type HybridFormula_Uninomial struct {
	Uninomial *Uninomial `protobuf:"bytes,1,opt,name=uninomial,proto3,oneof"`
}

type InfraSpecies

type InfraSpecies struct {

	// value of the infraspecific epithet.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// rank of the inraspecific epithet.
	Rank string `protobuf:"bytes,2,opt,name=rank,proto3" json:"rank,omitempty"`
	// authorship of the infraspecific epithet.
	Authorship *Authorship `protobuf:"bytes,3,opt,name=authorship,proto3" json:"authorship,omitempty"`
	// contains filtered or unexported fields
}

func (*InfraSpecies) Descriptor deprecated

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

Deprecated: Use InfraSpecies.ProtoReflect.Descriptor instead.

func (*InfraSpecies) GetAuthorship

func (x *InfraSpecies) GetAuthorship() *Authorship

func (*InfraSpecies) GetRank

func (x *InfraSpecies) GetRank() string

func (*InfraSpecies) GetValue

func (x *InfraSpecies) GetValue() string

func (*InfraSpecies) ProtoMessage

func (*InfraSpecies) ProtoMessage()

func (*InfraSpecies) ProtoReflect added in v0.14.2

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

func (*InfraSpecies) Reset

func (x *InfraSpecies) Reset()

func (*InfraSpecies) String

func (x *InfraSpecies) String() string

type InputArray

type InputArray struct {

	// jobs_number sets how many go-routines will be created. If this number is
	// higher than max number of jobs set by gnparser's gRPC server, it will be
	// ignored and max number of jobs will be used instead.
	JobsNumber int32 `protobuf:"varint,1,opt,name=jobs_number,json=jobsNumber,proto3" json:"jobs_number,omitempty"`
	// skip_cleaning indicates weather to run removal of HTML tags or not. When
	// it is true HTML tags are not remooved and names that contain them will not
	// be parsed.
	SkipCleaning bool `protobuf:"varint,2,opt,name=skip_cleaning,json=skipCleaning,proto3" json:"skip_cleaning,omitempty"`
	// names is a list of name-strings to parse.
	Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

InputArray contains name-strings to parse as well as options for parsing.

func (*InputArray) Descriptor deprecated

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

Deprecated: Use InputArray.ProtoReflect.Descriptor instead.

func (*InputArray) GetJobsNumber

func (x *InputArray) GetJobsNumber() int32

func (*InputArray) GetNames

func (x *InputArray) GetNames() []string

func (*InputArray) GetSkipCleaning

func (x *InputArray) GetSkipCleaning() bool

func (*InputArray) ProtoMessage

func (*InputArray) ProtoMessage()

func (*InputArray) ProtoReflect added in v0.14.2

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

func (*InputArray) Reset

func (x *InputArray) Reset()

func (*InputArray) String

func (x *InputArray) String() string

type NameType

type NameType int32
const (
	// NONE is for unparsed names.
	NameType_NONE NameType = 0
	// UNINOMIAL is for names of genus and higher taxa.
	NameType_UNINOMIAL NameType = 1
	// SPECIES is for species and lower taxa (subspecies, varieties etc).
	NameType_SPECIES NameType = 2
	// COMPARISON is for names with uncertain identification.
	NameType_COMPARISON NameType = 3
	// APPROX_SURROGATE is for suroogate names with incomplete identification.
	NameType_APPROX_SURROGATE NameType = 4
	// SURROGATE is for all other surrogate names.
	NameType_SURROGATE NameType = 5
	// NAMED_HYBRID is for names that designate stable hybrids that are given
	// their own name.
	NameType_NAMED_HYBRID NameType = 6
	// HYBRID_FORMULA is for names built from several 'simple' names.
	NameType_HYBRID_FORMULA NameType = 7
	// VIRUS is for names of viruses, plasmids etc.
	NameType_VIRUS NameType = 8
)

func (NameType) Descriptor added in v0.14.2

func (NameType) Descriptor() protoreflect.EnumDescriptor

func (NameType) Enum added in v0.14.2

func (x NameType) Enum() *NameType

func (NameType) EnumDescriptor deprecated

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

Deprecated: Use NameType.Descriptor instead.

func (NameType) Number added in v0.14.2

func (x NameType) Number() protoreflect.EnumNumber

func (NameType) String

func (x NameType) String() string

func (NameType) Type added in v0.14.2

type OutputArray

type OutputArray struct {

	// output contains results of parsing. It keeps the same order of output as
	// the one given in the input.
	Output []*Parsed `protobuf:"bytes,1,rep,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*OutputArray) Descriptor deprecated

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

Deprecated: Use OutputArray.ProtoReflect.Descriptor instead.

func (*OutputArray) GetOutput

func (x *OutputArray) GetOutput() []*Parsed

func (*OutputArray) ProtoMessage

func (*OutputArray) ProtoMessage()

func (*OutputArray) ProtoReflect added in v0.14.2

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

func (*OutputArray) Reset

func (x *OutputArray) Reset()

func (*OutputArray) String

func (x *OutputArray) String() string

type Parsed

type Parsed struct {

	// parsed is false if parsing a string failed.
	Parsed bool `protobuf:"varint,1,opt,name=parsed,proto3" json:"parsed,omitempty"`
	// quality is 1 when name parsed well, 2 if there were some inconsistencies,
	// and 3 when name contains serious problems.
	Quality int32 `protobuf:"varint,2,opt,name=quality,proto3" json:"quality,omitempty"`
	// quality_warning is empty if quality is 1. In other cases it contains a
	// a list of parsing problems.
	QualityWarning []*QualityWarning `protobuf:"bytes,3,rep,name=quality_warning,json=qualityWarning,proto3" json:"quality_warning,omitempty"`
	// verbatim as the original name-string as it was given with input.
	Verbatim string `protobuf:"bytes,4,opt,name=verbatim,proto3" json:"verbatim,omitempty"`
	// normalized is cleaned-up version of the input name-string
	Normalized string `protobuf:"bytes,5,opt,name=normalized,proto3" json:"normalized,omitempty"`
	// canoincal contains the "core" of scientific name without authorships.
	Canonical *Canonical `protobuf:"bytes,6,opt,name=canonical,proto3" json:"canonical,omitempty"`
	// authorship of the name. It is nil when authorship of the most specific
	// element of the name is not given.
	Authorship *Authorship `protobuf:"bytes,7,opt,name=authorship,proto3" json:"authorship,omitempty"`
	// flattened list of words in the name, their offsets and the semantic
	// meaning.
	Positions []*Position `protobuf:"bytes,8,rep,name=positions,proto3" json:"positions,omitempty"`
	// hybrid is true for named hybrids and hybrid formulas.
	Hybrid bool `protobuf:"varint,9,opt,name=hybrid,proto3" json:"hybrid,omitempty"`
	// is true if a name contains an unambiguous bacterial genus.
	Bacteria bool `protobuf:"varint,10,opt,name=bacteria,proto3" json:"bacteria,omitempty"`
	// tail contains unparseable end of a string, if it exists.
	Tail string `protobuf:"bytes,11,opt,name=tail,proto3" json:"tail,omitempty"`
	// id is a UUID version 5. It is always the same for a particular name-string.
	Id string `protobuf:"bytes,12,opt,name=id,proto3" json:"id,omitempty"`
	// parser_version is the version of gnparser.
	ParserVersion string `protobuf:"bytes,13,opt,name=parser_version,json=parserVersion,proto3" json:"parser_version,omitempty"`
	// cardinality is the number of main elements of a name. For uninomials it is
	// 1, for binomials 2, for trinomials 3 etc. For viruses, hybrid formulas we
	// return 0.
	Cardinality int32 `protobuf:"varint,14,opt,name=cardinality,proto3" json:"cardinality,omitempty"`
	// name_type designates the kind of a name.
	NameType NameType `protobuf:"varint,15,opt,name=name_type,json=nameType,proto3,enum=pb.NameType" json:"name_type,omitempty"`
	// details break name into smallest semantic elements.
	//
	// Types that are assignable to Details:
	//	*Parsed_Uninomial
	//	*Parsed_Species
	//	*Parsed_Comparison
	//	*Parsed_Approximation
	Details isParsed_Details `protobuf_oneof:"details"`
	// detailes_hybrid_formula describes details of hybrids. Hybrid formula
	// contains several names.
	DetailsHybridFormula []*HybridFormula `protobuf:"bytes,20,rep,name=details_hybrid_formula,json=detailsHybridFormula,proto3" json:"details_hybrid_formula,omitempty"`
	// contains filtered or unexported fields
}

func ToPB

func ToPB(o *output.Output) *Parsed

func (*Parsed) Descriptor deprecated

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

Deprecated: Use Parsed.ProtoReflect.Descriptor instead.

func (*Parsed) GetApproximation

func (x *Parsed) GetApproximation() *Approximation

func (*Parsed) GetAuthorship

func (x *Parsed) GetAuthorship() *Authorship

func (*Parsed) GetBacteria

func (x *Parsed) GetBacteria() bool

func (*Parsed) GetCanonical

func (x *Parsed) GetCanonical() *Canonical

func (*Parsed) GetCardinality

func (x *Parsed) GetCardinality() int32

func (*Parsed) GetComparison

func (x *Parsed) GetComparison() *Comparison

func (*Parsed) GetDetails

func (m *Parsed) GetDetails() isParsed_Details

func (*Parsed) GetDetailsHybridFormula

func (x *Parsed) GetDetailsHybridFormula() []*HybridFormula

func (*Parsed) GetHybrid

func (x *Parsed) GetHybrid() bool

func (*Parsed) GetId

func (x *Parsed) GetId() string

func (*Parsed) GetNameType

func (x *Parsed) GetNameType() NameType

func (*Parsed) GetNormalized

func (x *Parsed) GetNormalized() string

func (*Parsed) GetParsed

func (x *Parsed) GetParsed() bool

func (*Parsed) GetParserVersion

func (x *Parsed) GetParserVersion() string

func (*Parsed) GetPositions

func (x *Parsed) GetPositions() []*Position

func (*Parsed) GetQuality

func (x *Parsed) GetQuality() int32

func (*Parsed) GetQualityWarning

func (x *Parsed) GetQualityWarning() []*QualityWarning

func (*Parsed) GetSpecies

func (x *Parsed) GetSpecies() *Species

func (*Parsed) GetTail

func (x *Parsed) GetTail() string

func (*Parsed) GetUninomial

func (x *Parsed) GetUninomial() *Uninomial

func (*Parsed) GetVerbatim

func (x *Parsed) GetVerbatim() string

func (*Parsed) ProtoMessage

func (*Parsed) ProtoMessage()

func (*Parsed) ProtoReflect added in v0.14.2

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

func (*Parsed) Reset

func (x *Parsed) Reset()

func (*Parsed) String

func (x *Parsed) String() string

type Parsed_Approximation

type Parsed_Approximation struct {
	// approximation is a name of incomplete identification, a surrogate name.
	Approximation *Approximation `protobuf:"bytes,19,opt,name=approximation,proto3,oneof"`
}

type Parsed_Comparison

type Parsed_Comparison struct {
	// comparison is a name with uncertain indentification usually marked by
	// 'cf.' element.
	Comparison *Comparison `protobuf:"bytes,18,opt,name=comparison,proto3,oneof"`
}

type Parsed_Species

type Parsed_Species struct {
	// species describe names of species and infraspecies.
	Species *Species `protobuf:"bytes,17,opt,name=species,proto3,oneof"`
}

type Parsed_Uninomial

type Parsed_Uninomial struct {
	// uninomial are details for names for genera and higher taxa.
	Uninomial *Uninomial `protobuf:"bytes,16,opt,name=uninomial,proto3,oneof"`
}

type Position

type Position struct {

	// type is a semantic meaning of a word.
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// start is an offset of the start of the word.
	Start int32 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	// end is an offset of the end of the word.
	End int32 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*Position) Descriptor deprecated

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

Deprecated: Use Position.ProtoReflect.Descriptor instead.

func (*Position) GetEnd

func (x *Position) GetEnd() int32

func (*Position) GetStart

func (x *Position) GetStart() int32

func (*Position) GetType

func (x *Position) GetType() string

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) ProtoReflect added in v0.14.2

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

func (*Position) Reset

func (x *Position) Reset()

func (*Position) String

func (x *Position) String() string

type QualityWarning

type QualityWarning struct {

	// quality of the warning. 2 means minor inconsistencies, 3 means
	// major problems.
	Quality int32 `protobuf:"varint,1,opt,name=quality,proto3" json:"quality,omitempty"`
	// message describes the warning.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*QualityWarning) Descriptor deprecated

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

Deprecated: Use QualityWarning.ProtoReflect.Descriptor instead.

func (*QualityWarning) GetMessage

func (x *QualityWarning) GetMessage() string

func (*QualityWarning) GetQuality

func (x *QualityWarning) GetQuality() int32

func (*QualityWarning) ProtoMessage

func (*QualityWarning) ProtoMessage()

func (*QualityWarning) ProtoReflect added in v0.14.2

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

func (*QualityWarning) Reset

func (x *QualityWarning) Reset()

func (*QualityWarning) String

func (x *QualityWarning) String() string

type Species

type Species struct {

	// genux of the name.
	Genus string `protobuf:"bytes,1,opt,name=genus,proto3" json:"genus,omitempty"`
	// sub_genus of the name, if given.
	SubGenus string `protobuf:"bytes,2,opt,name=sub_genus,json=subGenus,proto3" json:"sub_genus,omitempty"`
	// species epithet of the name.
	Species string `protobuf:"bytes,3,opt,name=species,proto3" json:"species,omitempty"`
	// authorship of the specific epithet.
	SpeciesAuthorship *Authorship `protobuf:"bytes,4,opt,name=species_authorship,json=speciesAuthorship,proto3" json:"species_authorship,omitempty"`
	// details of subspecies, varieties etc, if given.
	InfraSpecies []*InfraSpecies `protobuf:"bytes,5,rep,name=infra_species,json=infraSpecies,proto3" json:"infra_species,omitempty"`
	// contains filtered or unexported fields
}

func (*Species) Descriptor deprecated

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

Deprecated: Use Species.ProtoReflect.Descriptor instead.

func (*Species) GetGenus

func (x *Species) GetGenus() string

func (*Species) GetInfraSpecies

func (x *Species) GetInfraSpecies() []*InfraSpecies

func (*Species) GetSpecies

func (x *Species) GetSpecies() string

func (*Species) GetSpeciesAuthorship

func (x *Species) GetSpeciesAuthorship() *Authorship

func (*Species) GetSubGenus

func (x *Species) GetSubGenus() string

func (*Species) ProtoMessage

func (*Species) ProtoMessage()

func (*Species) ProtoReflect added in v0.14.2

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

func (*Species) Reset

func (x *Species) Reset()

func (*Species) String

func (x *Species) String() string

type UnimplementedGNparserServer added in v0.14.2

type UnimplementedGNparserServer struct {
}

UnimplementedGNparserServer can be embedded to have forward compatible implementations.

func (*UnimplementedGNparserServer) ParseArray added in v0.14.2

func (*UnimplementedGNparserServer) Ver added in v0.14.2

type Uninomial

type Uninomial struct {

	// value of the uninomial, like 'Homo' for 'Homo L.'
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// rank of the uninomial, if given.
	Rank string `protobuf:"bytes,2,opt,name=rank,proto3" json:"rank,omitempty"`
	// higher clade of the uninomial, if given.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// authorship of the uninomial, if given.
	Authorship *Authorship `protobuf:"bytes,4,opt,name=authorship,proto3" json:"authorship,omitempty"`
	// contains filtered or unexported fields
}

func (*Uninomial) Descriptor deprecated

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

Deprecated: Use Uninomial.ProtoReflect.Descriptor instead.

func (*Uninomial) GetAuthorship

func (x *Uninomial) GetAuthorship() *Authorship

func (*Uninomial) GetParent

func (x *Uninomial) GetParent() string

func (*Uninomial) GetRank

func (x *Uninomial) GetRank() string

func (*Uninomial) GetValue

func (x *Uninomial) GetValue() string

func (*Uninomial) ProtoMessage

func (*Uninomial) ProtoMessage()

func (*Uninomial) ProtoReflect added in v0.14.2

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

func (*Uninomial) Reset

func (x *Uninomial) Reset()

func (*Uninomial) String

func (x *Uninomial) String() string

type Version

type Version struct {
	Value     string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	BuildTime string `protobuf:"bytes,2,opt,name=build_time,json=buildTime,proto3" json:"build_time,omitempty"`
	// contains filtered or unexported fields
}

Version contains version of gnparser as well as the timestamp when it was compiled.

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetBuildTime

func (x *Version) GetBuildTime() string

func (*Version) GetValue

func (x *Version) GetValue() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect added in v0.14.2

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type Void

type Void struct {
	// contains filtered or unexported fields
}

Void is an empty input.

func (*Void) Descriptor deprecated

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

Deprecated: Use Void.ProtoReflect.Descriptor instead.

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) ProtoReflect added in v0.14.2

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

func (*Void) Reset

func (x *Void) Reset()

func (*Void) String

func (x *Void) String() string

Jump to

Keyboard shortcuts

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