Versions in this module Expand all Collapse all v0 v0.37.1 Dec 15, 2020 Changes in this version + const CloudLanguageScope + const CloudPlatformScope + type AnalyzeEntitiesRequest struct + Document *Document + EncodingType string + ForceSendFields []string + NullFields []string + func (s *AnalyzeEntitiesRequest) MarshalJSON() ([]byte, error) + type AnalyzeEntitiesResponse struct + Entities []*Entity + ForceSendFields []string + Language string + NullFields []string + func (s *AnalyzeEntitiesResponse) MarshalJSON() ([]byte, error) + type AnalyzeSentimentRequest struct + Document *Document + EncodingType string + ForceSendFields []string + NullFields []string + func (s *AnalyzeSentimentRequest) MarshalJSON() ([]byte, error) + type AnalyzeSentimentResponse struct + DocumentSentiment *Sentiment + ForceSendFields []string + Language string + NullFields []string + Sentences []*Sentence + func (s *AnalyzeSentimentResponse) MarshalJSON() ([]byte, error) + type AnalyzeSyntaxRequest struct + Document *Document + EncodingType string + ForceSendFields []string + NullFields []string + func (s *AnalyzeSyntaxRequest) MarshalJSON() ([]byte, error) + type AnalyzeSyntaxResponse struct + ForceSendFields []string + Language string + NullFields []string + Sentences []*Sentence + Tokens []*Token + func (s *AnalyzeSyntaxResponse) MarshalJSON() ([]byte, error) + type AnnotateTextRequest struct + Document *Document + EncodingType string + Features *Features + ForceSendFields []string + NullFields []string + func (s *AnnotateTextRequest) MarshalJSON() ([]byte, error) + type AnnotateTextResponse struct + DocumentSentiment *Sentiment + Entities []*Entity + ForceSendFields []string + Language string + NullFields []string + Sentences []*Sentence + Tokens []*Token + func (s *AnnotateTextResponse) MarshalJSON() ([]byte, error) + type DependencyEdge struct + ForceSendFields []string + HeadTokenIndex int64 + Label string + NullFields []string + func (s *DependencyEdge) MarshalJSON() ([]byte, error) + type Document struct + Content string + ForceSendFields []string + GcsContentUri string + Language string + NullFields []string + Type string + func (s *Document) MarshalJSON() ([]byte, error) + type DocumentsAnalyzeEntitiesCall struct + func (c *DocumentsAnalyzeEntitiesCall) Context(ctx context.Context) *DocumentsAnalyzeEntitiesCall + func (c *DocumentsAnalyzeEntitiesCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitiesResponse, error) + func (c *DocumentsAnalyzeEntitiesCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeEntitiesCall + func (c *DocumentsAnalyzeEntitiesCall) Header() http.Header + type DocumentsAnalyzeSentimentCall struct + func (c *DocumentsAnalyzeSentimentCall) Context(ctx context.Context) *DocumentsAnalyzeSentimentCall + func (c *DocumentsAnalyzeSentimentCall) Do(opts ...googleapi.CallOption) (*AnalyzeSentimentResponse, error) + func (c *DocumentsAnalyzeSentimentCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeSentimentCall + func (c *DocumentsAnalyzeSentimentCall) Header() http.Header + type DocumentsAnalyzeSyntaxCall struct + func (c *DocumentsAnalyzeSyntaxCall) Context(ctx context.Context) *DocumentsAnalyzeSyntaxCall + func (c *DocumentsAnalyzeSyntaxCall) Do(opts ...googleapi.CallOption) (*AnalyzeSyntaxResponse, error) + func (c *DocumentsAnalyzeSyntaxCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeSyntaxCall + func (c *DocumentsAnalyzeSyntaxCall) Header() http.Header + type DocumentsAnnotateTextCall struct + func (c *DocumentsAnnotateTextCall) Context(ctx context.Context) *DocumentsAnnotateTextCall + func (c *DocumentsAnnotateTextCall) Do(opts ...googleapi.CallOption) (*AnnotateTextResponse, error) + func (c *DocumentsAnnotateTextCall) Fields(s ...googleapi.Field) *DocumentsAnnotateTextCall + func (c *DocumentsAnnotateTextCall) Header() http.Header + type DocumentsService struct + func NewDocumentsService(s *Service) *DocumentsService + func (r *DocumentsService) AnalyzeEntities(analyzeentitiesrequest *AnalyzeEntitiesRequest) *DocumentsAnalyzeEntitiesCall + func (r *DocumentsService) AnalyzeSentiment(analyzesentimentrequest *AnalyzeSentimentRequest) *DocumentsAnalyzeSentimentCall + func (r *DocumentsService) AnalyzeSyntax(analyzesyntaxrequest *AnalyzeSyntaxRequest) *DocumentsAnalyzeSyntaxCall + func (r *DocumentsService) AnnotateText(annotatetextrequest *AnnotateTextRequest) *DocumentsAnnotateTextCall + type Entity struct + ForceSendFields []string + Mentions []*EntityMention + Metadata map[string]string + Name string + NullFields []string + Salience float64 + Type string + func (s *Entity) MarshalJSON() ([]byte, error) + func (s *Entity) UnmarshalJSON(data []byte) error + type EntityMention struct + ForceSendFields []string + NullFields []string + Text *TextSpan + Type string + func (s *EntityMention) MarshalJSON() ([]byte, error) + type Features struct + ExtractDocumentSentiment bool + ExtractEntities bool + ExtractSyntax bool + ForceSendFields []string + NullFields []string + func (s *Features) MarshalJSON() ([]byte, error) + type PartOfSpeech struct + Aspect string + Case string + ForceSendFields []string + Form string + Gender string + Mood string + NullFields []string + Number string + Person string + Proper string + Reciprocity string + Tag string + Tense string + Voice string + func (s *PartOfSpeech) MarshalJSON() ([]byte, error) + type Sentence struct + ForceSendFields []string + NullFields []string + Sentiment *Sentiment + Text *TextSpan + func (s *Sentence) MarshalJSON() ([]byte, error) + type Sentiment struct + ForceSendFields []string + Magnitude float64 + NullFields []string + Polarity float64 + Score float64 + func (s *Sentiment) MarshalJSON() ([]byte, error) + func (s *Sentiment) UnmarshalJSON(data []byte) error + type Service struct + BasePath string + Documents *DocumentsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type Status struct + Code int64 + Details []googleapi.RawMessage + ForceSendFields []string + Message string + NullFields []string + func (s *Status) MarshalJSON() ([]byte, error) + type TextSpan struct + BeginOffset int64 + Content string + ForceSendFields []string + NullFields []string + func (s *TextSpan) MarshalJSON() ([]byte, error) + type Token struct + DependencyEdge *DependencyEdge + ForceSendFields []string + Lemma string + NullFields []string + PartOfSpeech *PartOfSpeech + Text *TextSpan + func (s *Token) MarshalJSON() ([]byte, error)