Documentation
¶
Index ¶
- Variables
- func RegisterGNparserServer(s *grpc.Server, srv GNparserServer)
- type Approximation
- func (*Approximation) Descriptor() ([]byte, []int)
- func (m *Approximation) GetApproximation() string
- func (m *Approximation) GetGenus() string
- func (m *Approximation) GetIgnored() string
- func (m *Approximation) GetSpecies() string
- func (m *Approximation) GetSpeciesAuthorship() *Authorship
- func (*Approximation) ProtoMessage()
- func (m *Approximation) Reset()
- func (m *Approximation) String() string
- func (m *Approximation) XXX_DiscardUnknown()
- func (m *Approximation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Approximation) XXX_Merge(src proto.Message)
- func (m *Approximation) XXX_Size() int
- func (m *Approximation) XXX_Unmarshal(b []byte) error
- type AuthGroup
- func (*AuthGroup) Descriptor() ([]byte, []int)
- func (m *AuthGroup) GetApproximateYear() bool
- func (m *AuthGroup) GetAuthors() []string
- func (m *AuthGroup) GetEmendAuthors() *Authors
- func (m *AuthGroup) GetExAuthors() *Authors
- func (m *AuthGroup) GetYear() string
- func (*AuthGroup) ProtoMessage()
- func (m *AuthGroup) Reset()
- func (m *AuthGroup) String() string
- func (m *AuthGroup) XXX_DiscardUnknown()
- func (m *AuthGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthGroup) XXX_Merge(src proto.Message)
- func (m *AuthGroup) XXX_Size() int
- func (m *AuthGroup) XXX_Unmarshal(b []byte) error
- type Authors
- func (*Authors) Descriptor() ([]byte, []int)
- func (m *Authors) GetApproximateYear() bool
- func (m *Authors) GetAuthors() []string
- func (m *Authors) GetYear() string
- func (*Authors) ProtoMessage()
- func (m *Authors) Reset()
- func (m *Authors) String() string
- func (m *Authors) XXX_DiscardUnknown()
- func (m *Authors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Authors) XXX_Merge(src proto.Message)
- func (m *Authors) XXX_Size() int
- func (m *Authors) XXX_Unmarshal(b []byte) error
- type Authorship
- func (*Authorship) Descriptor() ([]byte, []int)
- func (m *Authorship) GetAllAuthors() []string
- func (m *Authorship) GetCombination() *AuthGroup
- func (m *Authorship) GetOriginal() *AuthGroup
- func (m *Authorship) GetValue() string
- func (*Authorship) ProtoMessage()
- func (m *Authorship) Reset()
- func (m *Authorship) String() string
- func (m *Authorship) XXX_DiscardUnknown()
- func (m *Authorship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Authorship) XXX_Merge(src proto.Message)
- func (m *Authorship) XXX_Size() int
- func (m *Authorship) XXX_Unmarshal(b []byte) error
- type Canonical
- func (*Canonical) Descriptor() ([]byte, []int)
- func (m *Canonical) GetFull() string
- func (m *Canonical) GetSimple() string
- func (m *Canonical) GetStem() string
- func (*Canonical) ProtoMessage()
- func (m *Canonical) Reset()
- func (m *Canonical) String() string
- func (m *Canonical) XXX_DiscardUnknown()
- func (m *Canonical) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Canonical) XXX_Merge(src proto.Message)
- func (m *Canonical) XXX_Size() int
- func (m *Canonical) XXX_Unmarshal(b []byte) error
- type Comparison
- func (*Comparison) Descriptor() ([]byte, []int)
- func (m *Comparison) GetComparison() string
- func (m *Comparison) GetGenus() string
- func (m *Comparison) GetSpecies() string
- func (m *Comparison) GetSpeciesAuthorship() *Authorship
- func (*Comparison) ProtoMessage()
- func (m *Comparison) Reset()
- func (m *Comparison) String() string
- func (m *Comparison) XXX_DiscardUnknown()
- func (m *Comparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Comparison) XXX_Merge(src proto.Message)
- func (m *Comparison) XXX_Size() int
- func (m *Comparison) XXX_Unmarshal(b []byte) error
- type GNparserClient
- type GNparserServer
- type HybridFormula
- func (*HybridFormula) Descriptor() ([]byte, []int)
- func (m *HybridFormula) GetApproximation() *Approximation
- func (m *HybridFormula) GetComparison() *Comparison
- func (m *HybridFormula) GetElement() isHybridFormula_Element
- func (m *HybridFormula) GetSpecies() *Species
- func (m *HybridFormula) GetUninomial() *Uninomial
- func (*HybridFormula) ProtoMessage()
- func (m *HybridFormula) Reset()
- func (m *HybridFormula) String() string
- func (m *HybridFormula) XXX_DiscardUnknown()
- func (m *HybridFormula) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HybridFormula) XXX_Merge(src proto.Message)
- func (*HybridFormula) XXX_OneofWrappers() []interface{}
- func (m *HybridFormula) XXX_Size() int
- func (m *HybridFormula) XXX_Unmarshal(b []byte) error
- type HybridFormula_Approximation
- type HybridFormula_Comparison
- type HybridFormula_Species
- type HybridFormula_Uninomial
- type InfraSpecies
- func (*InfraSpecies) Descriptor() ([]byte, []int)
- func (m *InfraSpecies) GetAuthorship() *Authorship
- func (m *InfraSpecies) GetRank() string
- func (m *InfraSpecies) GetValue() string
- func (*InfraSpecies) ProtoMessage()
- func (m *InfraSpecies) Reset()
- func (m *InfraSpecies) String() string
- func (m *InfraSpecies) XXX_DiscardUnknown()
- func (m *InfraSpecies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InfraSpecies) XXX_Merge(src proto.Message)
- func (m *InfraSpecies) XXX_Size() int
- func (m *InfraSpecies) XXX_Unmarshal(b []byte) error
- type InputArray
- func (*InputArray) Descriptor() ([]byte, []int)
- func (m *InputArray) GetJobsNumber() int32
- func (m *InputArray) GetNames() []string
- func (m *InputArray) GetSkipCleaning() bool
- func (*InputArray) ProtoMessage()
- func (m *InputArray) Reset()
- func (m *InputArray) String() string
- func (m *InputArray) XXX_DiscardUnknown()
- func (m *InputArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InputArray) XXX_Merge(src proto.Message)
- func (m *InputArray) XXX_Size() int
- func (m *InputArray) XXX_Unmarshal(b []byte) error
- type NameType
- type OutputArray
- func (*OutputArray) Descriptor() ([]byte, []int)
- func (m *OutputArray) GetOutput() []*Parsed
- func (*OutputArray) ProtoMessage()
- func (m *OutputArray) Reset()
- func (m *OutputArray) String() string
- func (m *OutputArray) XXX_DiscardUnknown()
- func (m *OutputArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutputArray) XXX_Merge(src proto.Message)
- func (m *OutputArray) XXX_Size() int
- func (m *OutputArray) XXX_Unmarshal(b []byte) error
- type Parsed
- func (*Parsed) Descriptor() ([]byte, []int)
- func (m *Parsed) GetApproximation() *Approximation
- func (m *Parsed) GetAuthorship() *Authorship
- func (m *Parsed) GetBacteria() bool
- func (m *Parsed) GetCanonical() *Canonical
- func (m *Parsed) GetCardinality() int32
- func (m *Parsed) GetComparison() *Comparison
- func (m *Parsed) GetDetails() isParsed_Details
- func (m *Parsed) GetDetailsHybridFormula() []*HybridFormula
- func (m *Parsed) GetHybrid() bool
- func (m *Parsed) GetId() string
- func (m *Parsed) GetNameType() NameType
- func (m *Parsed) GetNormalized() string
- func (m *Parsed) GetParsed() bool
- func (m *Parsed) GetParserVersion() string
- func (m *Parsed) GetPositions() []*Position
- func (m *Parsed) GetQuality() int32
- func (m *Parsed) GetQualityWarning() []*QualityWarning
- func (m *Parsed) GetSpecies() *Species
- func (m *Parsed) GetTail() string
- func (m *Parsed) GetUninomial() *Uninomial
- func (m *Parsed) GetVerbatim() string
- func (*Parsed) ProtoMessage()
- func (m *Parsed) Reset()
- func (m *Parsed) String() string
- func (m *Parsed) XXX_DiscardUnknown()
- func (m *Parsed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Parsed) XXX_Merge(src proto.Message)
- func (*Parsed) XXX_OneofWrappers() []interface{}
- func (m *Parsed) XXX_Size() int
- func (m *Parsed) XXX_Unmarshal(b []byte) error
- type Parsed_Approximation
- type Parsed_Comparison
- type Parsed_Species
- type Parsed_Uninomial
- type Position
- func (*Position) Descriptor() ([]byte, []int)
- func (m *Position) GetEnd() int32
- func (m *Position) GetStart() int32
- func (m *Position) GetType() string
- func (*Position) ProtoMessage()
- func (m *Position) Reset()
- func (m *Position) String() string
- func (m *Position) XXX_DiscardUnknown()
- func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Position) XXX_Merge(src proto.Message)
- func (m *Position) XXX_Size() int
- func (m *Position) XXX_Unmarshal(b []byte) error
- type QualityWarning
- func (*QualityWarning) Descriptor() ([]byte, []int)
- func (m *QualityWarning) GetMessage() string
- func (m *QualityWarning) GetQuality() int32
- func (*QualityWarning) ProtoMessage()
- func (m *QualityWarning) Reset()
- func (m *QualityWarning) String() string
- func (m *QualityWarning) XXX_DiscardUnknown()
- func (m *QualityWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QualityWarning) XXX_Merge(src proto.Message)
- func (m *QualityWarning) XXX_Size() int
- func (m *QualityWarning) XXX_Unmarshal(b []byte) error
- type Species
- func (*Species) Descriptor() ([]byte, []int)
- func (m *Species) GetGenus() string
- func (m *Species) GetInfraSpecies() []*InfraSpecies
- func (m *Species) GetSpecies() string
- func (m *Species) GetSpeciesAuthorship() *Authorship
- func (m *Species) GetSubGenus() string
- func (*Species) ProtoMessage()
- func (m *Species) Reset()
- func (m *Species) String() string
- func (m *Species) XXX_DiscardUnknown()
- func (m *Species) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Species) XXX_Merge(src proto.Message)
- func (m *Species) XXX_Size() int
- func (m *Species) XXX_Unmarshal(b []byte) error
- type Uninomial
- func (*Uninomial) Descriptor() ([]byte, []int)
- func (m *Uninomial) GetAuthorship() *Authorship
- func (m *Uninomial) GetParent() string
- func (m *Uninomial) GetRank() string
- func (m *Uninomial) GetValue() string
- func (*Uninomial) ProtoMessage()
- func (m *Uninomial) Reset()
- func (m *Uninomial) String() string
- func (m *Uninomial) XXX_DiscardUnknown()
- func (m *Uninomial) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Uninomial) XXX_Merge(src proto.Message)
- func (m *Uninomial) XXX_Size() int
- func (m *Uninomial) XXX_Unmarshal(b []byte) error
- type Version
- func (*Version) Descriptor() ([]byte, []int)
- func (m *Version) GetBuildTime() string
- func (m *Version) GetValue() string
- func (*Version) ProtoMessage()
- func (m *Version) Reset()
- func (m *Version) String() string
- func (m *Version) XXX_DiscardUnknown()
- func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Version) XXX_Merge(src proto.Message)
- func (m *Version) XXX_Size() int
- func (m *Version) XXX_Unmarshal(b []byte) error
- type Void
- func (*Void) Descriptor() ([]byte, []int)
- func (*Void) ProtoMessage()
- func (m *Void) Reset()
- func (m *Void) String() string
- func (m *Void) XXX_DiscardUnknown()
- func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Void) XXX_Merge(src proto.Message)
- func (m *Void) XXX_Size() int
- func (m *Void) XXX_Unmarshal(b []byte) error
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",
}
View Source
var 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,
}
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Approximation) Descriptor ¶
func (*Approximation) Descriptor() ([]byte, []int)
func (*Approximation) GetApproximation ¶
func (m *Approximation) GetApproximation() string
func (*Approximation) GetGenus ¶
func (m *Approximation) GetGenus() string
func (*Approximation) GetIgnored ¶
func (m *Approximation) GetIgnored() string
func (*Approximation) GetSpecies ¶
func (m *Approximation) GetSpecies() string
func (*Approximation) GetSpeciesAuthorship ¶
func (m *Approximation) GetSpeciesAuthorship() *Authorship
func (*Approximation) ProtoMessage ¶
func (*Approximation) ProtoMessage()
func (*Approximation) Reset ¶
func (m *Approximation) Reset()
func (*Approximation) String ¶
func (m *Approximation) String() string
func (*Approximation) XXX_DiscardUnknown ¶
func (m *Approximation) XXX_DiscardUnknown()
func (*Approximation) XXX_Marshal ¶
func (m *Approximation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Approximation) XXX_Merge ¶
func (m *Approximation) XXX_Merge(src proto.Message)
func (*Approximation) XXX_Size ¶
func (m *Approximation) XXX_Size() int
func (*Approximation) XXX_Unmarshal ¶
func (m *Approximation) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AuthGroup) Descriptor ¶
func (*AuthGroup) GetApproximateYear ¶
func (*AuthGroup) GetAuthors ¶
func (*AuthGroup) GetEmendAuthors ¶
func (*AuthGroup) GetExAuthors ¶
func (*AuthGroup) ProtoMessage ¶
func (*AuthGroup) ProtoMessage()
func (*AuthGroup) XXX_DiscardUnknown ¶
func (m *AuthGroup) XXX_DiscardUnknown()
func (*AuthGroup) XXX_Marshal ¶
func (*AuthGroup) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Authors) Descriptor ¶
func (*Authors) GetApproximateYear ¶
func (*Authors) GetAuthors ¶
func (*Authors) ProtoMessage ¶
func (*Authors) ProtoMessage()
func (*Authors) XXX_DiscardUnknown ¶
func (m *Authors) XXX_DiscardUnknown()
func (*Authors) XXX_Marshal ¶
func (*Authors) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Authorship) Descriptor ¶
func (*Authorship) Descriptor() ([]byte, []int)
func (*Authorship) GetAllAuthors ¶
func (m *Authorship) GetAllAuthors() []string
func (*Authorship) GetCombination ¶
func (m *Authorship) GetCombination() *AuthGroup
func (*Authorship) GetOriginal ¶
func (m *Authorship) GetOriginal() *AuthGroup
func (*Authorship) GetValue ¶
func (m *Authorship) GetValue() string
func (*Authorship) ProtoMessage ¶
func (*Authorship) ProtoMessage()
func (*Authorship) Reset ¶
func (m *Authorship) Reset()
func (*Authorship) String ¶
func (m *Authorship) String() string
func (*Authorship) XXX_DiscardUnknown ¶
func (m *Authorship) XXX_DiscardUnknown()
func (*Authorship) XXX_Marshal ¶
func (m *Authorship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Authorship) XXX_Merge ¶
func (m *Authorship) XXX_Merge(src proto.Message)
func (*Authorship) XXX_Size ¶
func (m *Authorship) XXX_Size() int
func (*Authorship) XXX_Unmarshal ¶
func (m *Authorship) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Canonical) Descriptor ¶
func (*Canonical) ProtoMessage ¶
func (*Canonical) ProtoMessage()
func (*Canonical) XXX_DiscardUnknown ¶
func (m *Canonical) XXX_DiscardUnknown()
func (*Canonical) XXX_Marshal ¶
func (*Canonical) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Comparison) Descriptor ¶
func (*Comparison) Descriptor() ([]byte, []int)
func (*Comparison) GetComparison ¶
func (m *Comparison) GetComparison() string
func (*Comparison) GetGenus ¶
func (m *Comparison) GetGenus() string
func (*Comparison) GetSpecies ¶
func (m *Comparison) GetSpecies() string
func (*Comparison) GetSpeciesAuthorship ¶
func (m *Comparison) GetSpeciesAuthorship() *Authorship
func (*Comparison) ProtoMessage ¶
func (*Comparison) ProtoMessage()
func (*Comparison) Reset ¶
func (m *Comparison) Reset()
func (*Comparison) String ¶
func (m *Comparison) String() string
func (*Comparison) XXX_DiscardUnknown ¶
func (m *Comparison) XXX_DiscardUnknown()
func (*Comparison) XXX_Marshal ¶
func (m *Comparison) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Comparison) XXX_Merge ¶
func (m *Comparison) XXX_Merge(src proto.Message)
func (*Comparison) XXX_Size ¶
func (m *Comparison) XXX_Size() int
func (*Comparison) XXX_Unmarshal ¶
func (m *Comparison) XXX_Unmarshal(b []byte) error
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.ClientConn) 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 valid to be assigned to Element:
// *HybridFormula_Uninomial
// *HybridFormula_Species
// *HybridFormula_Comparison
// *HybridFormula_Approximation
Element isHybridFormula_Element `protobuf_oneof:"element"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*HybridFormula) Descriptor ¶
func (*HybridFormula) Descriptor() ([]byte, []int)
func (*HybridFormula) GetApproximation ¶
func (m *HybridFormula) GetApproximation() *Approximation
func (*HybridFormula) GetComparison ¶
func (m *HybridFormula) GetComparison() *Comparison
func (*HybridFormula) GetElement ¶
func (m *HybridFormula) GetElement() isHybridFormula_Element
func (*HybridFormula) GetSpecies ¶
func (m *HybridFormula) GetSpecies() *Species
func (*HybridFormula) GetUninomial ¶
func (m *HybridFormula) GetUninomial() *Uninomial
func (*HybridFormula) ProtoMessage ¶
func (*HybridFormula) ProtoMessage()
func (*HybridFormula) Reset ¶
func (m *HybridFormula) Reset()
func (*HybridFormula) String ¶
func (m *HybridFormula) String() string
func (*HybridFormula) XXX_DiscardUnknown ¶
func (m *HybridFormula) XXX_DiscardUnknown()
func (*HybridFormula) XXX_Marshal ¶
func (m *HybridFormula) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HybridFormula) XXX_Merge ¶
func (m *HybridFormula) XXX_Merge(src proto.Message)
func (*HybridFormula) XXX_OneofWrappers ¶
func (*HybridFormula) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*HybridFormula) XXX_Size ¶
func (m *HybridFormula) XXX_Size() int
func (*HybridFormula) XXX_Unmarshal ¶
func (m *HybridFormula) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*InfraSpecies) Descriptor ¶
func (*InfraSpecies) Descriptor() ([]byte, []int)
func (*InfraSpecies) GetAuthorship ¶
func (m *InfraSpecies) GetAuthorship() *Authorship
func (*InfraSpecies) GetRank ¶
func (m *InfraSpecies) GetRank() string
func (*InfraSpecies) GetValue ¶
func (m *InfraSpecies) GetValue() string
func (*InfraSpecies) ProtoMessage ¶
func (*InfraSpecies) ProtoMessage()
func (*InfraSpecies) Reset ¶
func (m *InfraSpecies) Reset()
func (*InfraSpecies) String ¶
func (m *InfraSpecies) String() string
func (*InfraSpecies) XXX_DiscardUnknown ¶
func (m *InfraSpecies) XXX_DiscardUnknown()
func (*InfraSpecies) XXX_Marshal ¶
func (m *InfraSpecies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfraSpecies) XXX_Merge ¶
func (m *InfraSpecies) XXX_Merge(src proto.Message)
func (*InfraSpecies) XXX_Size ¶
func (m *InfraSpecies) XXX_Size() int
func (*InfraSpecies) XXX_Unmarshal ¶
func (m *InfraSpecies) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
InputArray contains name-strings to parse as well as options for parsing.
func (*InputArray) Descriptor ¶
func (*InputArray) Descriptor() ([]byte, []int)
func (*InputArray) GetJobsNumber ¶
func (m *InputArray) GetJobsNumber() int32
func (*InputArray) GetNames ¶
func (m *InputArray) GetNames() []string
func (*InputArray) GetSkipCleaning ¶
func (m *InputArray) GetSkipCleaning() bool
func (*InputArray) ProtoMessage ¶
func (*InputArray) ProtoMessage()
func (*InputArray) Reset ¶
func (m *InputArray) Reset()
func (*InputArray) String ¶
func (m *InputArray) String() string
func (*InputArray) XXX_DiscardUnknown ¶
func (m *InputArray) XXX_DiscardUnknown()
func (*InputArray) XXX_Marshal ¶
func (m *InputArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InputArray) XXX_Merge ¶
func (m *InputArray) XXX_Merge(src proto.Message)
func (*InputArray) XXX_Size ¶
func (m *InputArray) XXX_Size() int
func (*InputArray) XXX_Unmarshal ¶
func (m *InputArray) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OutputArray) Descriptor ¶
func (*OutputArray) Descriptor() ([]byte, []int)
func (*OutputArray) GetOutput ¶
func (m *OutputArray) GetOutput() []*Parsed
func (*OutputArray) ProtoMessage ¶
func (*OutputArray) ProtoMessage()
func (*OutputArray) Reset ¶
func (m *OutputArray) Reset()
func (*OutputArray) String ¶
func (m *OutputArray) String() string
func (*OutputArray) XXX_DiscardUnknown ¶
func (m *OutputArray) XXX_DiscardUnknown()
func (*OutputArray) XXX_Marshal ¶
func (m *OutputArray) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutputArray) XXX_Merge ¶
func (m *OutputArray) XXX_Merge(src proto.Message)
func (*OutputArray) XXX_Size ¶
func (m *OutputArray) XXX_Size() int
func (*OutputArray) XXX_Unmarshal ¶
func (m *OutputArray) XXX_Unmarshal(b []byte) error
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 valid to be assigned 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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Parsed) Descriptor ¶
func (*Parsed) GetApproximation ¶
func (m *Parsed) GetApproximation() *Approximation
func (*Parsed) GetAuthorship ¶
func (m *Parsed) GetAuthorship() *Authorship
func (*Parsed) GetBacteria ¶
func (*Parsed) GetCanonical ¶
func (*Parsed) GetCardinality ¶
func (*Parsed) GetComparison ¶
func (m *Parsed) GetComparison() *Comparison
func (*Parsed) GetDetails ¶
func (m *Parsed) GetDetails() isParsed_Details
func (*Parsed) GetDetailsHybridFormula ¶
func (m *Parsed) GetDetailsHybridFormula() []*HybridFormula
func (*Parsed) GetNameType ¶
func (*Parsed) GetNormalized ¶
func (*Parsed) GetParserVersion ¶
func (*Parsed) GetPositions ¶
func (*Parsed) GetQuality ¶
func (*Parsed) GetQualityWarning ¶
func (m *Parsed) GetQualityWarning() []*QualityWarning
func (*Parsed) GetSpecies ¶
func (*Parsed) GetUninomial ¶
func (*Parsed) GetVerbatim ¶
func (*Parsed) ProtoMessage ¶
func (*Parsed) ProtoMessage()
func (*Parsed) XXX_DiscardUnknown ¶
func (m *Parsed) XXX_DiscardUnknown()
func (*Parsed) XXX_Marshal ¶
func (*Parsed) XXX_OneofWrappers ¶
func (*Parsed) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Parsed) XXX_Unmarshal ¶
type Parsed_Approximation ¶
type Parsed_Approximation struct {
Approximation *Approximation `protobuf:"bytes,19,opt,name=approximation,proto3,oneof"`
}
type Parsed_Comparison ¶
type Parsed_Comparison struct {
Comparison *Comparison `protobuf:"bytes,18,opt,name=comparison,proto3,oneof"`
}
type Parsed_Species ¶
type Parsed_Species struct {
Species *Species `protobuf:"bytes,17,opt,name=species,proto3,oneof"`
}
type Parsed_Uninomial ¶
type Parsed_Uninomial struct {
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Position) Descriptor ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) XXX_DiscardUnknown ¶
func (m *Position) XXX_DiscardUnknown()
func (*Position) XXX_Marshal ¶
func (*Position) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*QualityWarning) Descriptor ¶
func (*QualityWarning) Descriptor() ([]byte, []int)
func (*QualityWarning) GetMessage ¶
func (m *QualityWarning) GetMessage() string
func (*QualityWarning) GetQuality ¶
func (m *QualityWarning) GetQuality() int32
func (*QualityWarning) ProtoMessage ¶
func (*QualityWarning) ProtoMessage()
func (*QualityWarning) Reset ¶
func (m *QualityWarning) Reset()
func (*QualityWarning) String ¶
func (m *QualityWarning) String() string
func (*QualityWarning) XXX_DiscardUnknown ¶
func (m *QualityWarning) XXX_DiscardUnknown()
func (*QualityWarning) XXX_Marshal ¶
func (m *QualityWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QualityWarning) XXX_Merge ¶
func (m *QualityWarning) XXX_Merge(src proto.Message)
func (*QualityWarning) XXX_Size ¶
func (m *QualityWarning) XXX_Size() int
func (*QualityWarning) XXX_Unmarshal ¶
func (m *QualityWarning) XXX_Unmarshal(b []byte) error
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Species) Descriptor ¶
func (*Species) GetInfraSpecies ¶
func (m *Species) GetInfraSpecies() []*InfraSpecies
func (*Species) GetSpecies ¶
func (*Species) GetSpeciesAuthorship ¶
func (m *Species) GetSpeciesAuthorship() *Authorship
func (*Species) GetSubGenus ¶
func (*Species) ProtoMessage ¶
func (*Species) ProtoMessage()
func (*Species) XXX_DiscardUnknown ¶
func (m *Species) XXX_DiscardUnknown()
func (*Species) XXX_Marshal ¶
func (*Species) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Uninomial) Descriptor ¶
func (*Uninomial) GetAuthorship ¶
func (m *Uninomial) GetAuthorship() *Authorship
func (*Uninomial) ProtoMessage ¶
func (*Uninomial) ProtoMessage()
func (*Uninomial) XXX_DiscardUnknown ¶
func (m *Uninomial) XXX_DiscardUnknown()
func (*Uninomial) XXX_Marshal ¶
func (*Uninomial) XXX_Unmarshal ¶
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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Version contains version of gnparser as well as the timestamp when it was compiled.
func (*Version) Descriptor ¶
func (*Version) GetBuildTime ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) XXX_DiscardUnknown ¶
func (m *Version) XXX_DiscardUnknown()
func (*Version) XXX_Marshal ¶
func (*Version) XXX_Unmarshal ¶
type Void ¶
type Void struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
Void is an empty input.
func (*Void) Descriptor ¶
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
func (*Void) XXX_DiscardUnknown ¶
func (m *Void) XXX_DiscardUnknown()
func (*Void) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.