Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 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 AnalyzeEntitySentimentRequest struct + Document *Document + EncodingType string + ForceSendFields []string + NullFields []string + func (s *AnalyzeEntitySentimentRequest) MarshalJSON() ([]byte, error) + type AnalyzeEntitySentimentResponse struct + Entities []*Entity + ForceSendFields []string + Language string + NullFields []string + func (s *AnalyzeEntitySentimentResponse) 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 + Categories []*ClassificationCategory + DocumentSentiment *Sentiment + Entities []*Entity + ForceSendFields []string + Language string + ModerationCategories []*ClassificationCategory + NullFields []string + Sentences []*Sentence + Tokens []*Token + func (s *AnnotateTextResponse) MarshalJSON() ([]byte, error) + type ClassificationCategory struct + Confidence float64 + ForceSendFields []string + Name string + NullFields []string + func (s *ClassificationCategory) MarshalJSON() ([]byte, error) + func (s *ClassificationCategory) UnmarshalJSON(data []byte) error + type ClassificationModelOptions struct + ForceSendFields []string + NullFields []string + V1Model *V1Model + V2Model *V2Model + func (s *ClassificationModelOptions) MarshalJSON() ([]byte, error) + type ClassifyTextRequest struct + ClassificationModelOptions *ClassificationModelOptions + Document *Document + ForceSendFields []string + NullFields []string + func (s *ClassifyTextRequest) MarshalJSON() ([]byte, error) + type ClassifyTextResponse struct + Categories []*ClassificationCategory + ForceSendFields []string + NullFields []string + func (s *ClassifyTextResponse) MarshalJSON() ([]byte, error) + type DependencyEdge struct + ForceSendFields []string + HeadTokenIndex int64 + Label string + NullFields []string + func (s *DependencyEdge) MarshalJSON() ([]byte, error) + type Document struct + BoilerplateHandling string + Content string + ForceSendFields []string + GcsContentUri string + Language string + NullFields []string + ReferenceWebUri 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 DocumentsAnalyzeEntitySentimentCall struct + func (c *DocumentsAnalyzeEntitySentimentCall) Context(ctx context.Context) *DocumentsAnalyzeEntitySentimentCall + func (c *DocumentsAnalyzeEntitySentimentCall) Do(opts ...googleapi.CallOption) (*AnalyzeEntitySentimentResponse, error) + func (c *DocumentsAnalyzeEntitySentimentCall) Fields(s ...googleapi.Field) *DocumentsAnalyzeEntitySentimentCall + func (c *DocumentsAnalyzeEntitySentimentCall) 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 DocumentsClassifyTextCall struct + func (c *DocumentsClassifyTextCall) Context(ctx context.Context) *DocumentsClassifyTextCall + func (c *DocumentsClassifyTextCall) Do(opts ...googleapi.CallOption) (*ClassifyTextResponse, error) + func (c *DocumentsClassifyTextCall) Fields(s ...googleapi.Field) *DocumentsClassifyTextCall + func (c *DocumentsClassifyTextCall) Header() http.Header + type DocumentsModerateTextCall struct + func (c *DocumentsModerateTextCall) Context(ctx context.Context) *DocumentsModerateTextCall + func (c *DocumentsModerateTextCall) Do(opts ...googleapi.CallOption) (*ModerateTextResponse, error) + func (c *DocumentsModerateTextCall) Fields(s ...googleapi.Field) *DocumentsModerateTextCall + func (c *DocumentsModerateTextCall) Header() http.Header + type DocumentsService struct + func NewDocumentsService(s *Service) *DocumentsService + func (r *DocumentsService) AnalyzeEntities(analyzeentitiesrequest *AnalyzeEntitiesRequest) *DocumentsAnalyzeEntitiesCall + func (r *DocumentsService) AnalyzeEntitySentiment(analyzeentitysentimentrequest *AnalyzeEntitySentimentRequest) *DocumentsAnalyzeEntitySentimentCall + func (r *DocumentsService) AnalyzeSentiment(analyzesentimentrequest *AnalyzeSentimentRequest) *DocumentsAnalyzeSentimentCall + func (r *DocumentsService) AnalyzeSyntax(analyzesyntaxrequest *AnalyzeSyntaxRequest) *DocumentsAnalyzeSyntaxCall + func (r *DocumentsService) AnnotateText(annotatetextrequest *AnnotateTextRequest) *DocumentsAnnotateTextCall + func (r *DocumentsService) ClassifyText(classifytextrequest *ClassifyTextRequest) *DocumentsClassifyTextCall + func (r *DocumentsService) ModerateText(moderatetextrequest *ModerateTextRequest) *DocumentsModerateTextCall + type Entity struct + ForceSendFields []string + Mentions []*EntityMention + Metadata map[string]string + Name string + NullFields []string + Salience float64 + Sentiment *Sentiment + Type string + func (s *Entity) MarshalJSON() ([]byte, error) + func (s *Entity) UnmarshalJSON(data []byte) error + type EntityMention struct + ForceSendFields []string + NullFields []string + Sentiment *Sentiment + Text *TextSpan + Type string + func (s *EntityMention) MarshalJSON() ([]byte, error) + type Features struct + ClassificationModelOptions *ClassificationModelOptions + ClassifyText bool + ExtractDocumentSentiment bool + ExtractEntities bool + ExtractEntitySentiment bool + ExtractSyntax bool + ForceSendFields []string + ModerateText bool + NullFields []string + func (s *Features) MarshalJSON() ([]byte, error) + type ModerateTextRequest struct + Document *Document + ForceSendFields []string + NullFields []string + func (s *ModerateTextRequest) MarshalJSON() ([]byte, error) + type ModerateTextResponse struct + ForceSendFields []string + ModerationCategories []*ClassificationCategory + NullFields []string + func (s *ModerateTextResponse) 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 + 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) + type V1Model struct + type V2Model struct + ContentCategoriesVersion string + ForceSendFields []string + NullFields []string + func (s *V2Model) MarshalJSON() ([]byte, error)