Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2023 Changes in this version + const UserinfoEmailScope + type AnalyzeCommentRequest struct + ClientToken string + Comment *TextEntry + CommunityId string + Context *Context + DoNotStore bool + ForceSendFields []string + Languages []string + NullFields []string + RequestedAttributes map[string]AttributeParameters + SessionId string + SpanAnnotations bool + func (s *AnalyzeCommentRequest) MarshalJSON() ([]byte, error) + type AnalyzeCommentResponse struct + AttributeScores map[string]AttributeScores + ClientToken string + DetectedLanguages []string + ForceSendFields []string + Languages []string + NullFields []string + func (s *AnalyzeCommentResponse) MarshalJSON() ([]byte, error) + type ArticleAndParentComment struct + Article *TextEntry + ForceSendFields []string + NullFields []string + ParentComment *TextEntry + func (s *ArticleAndParentComment) MarshalJSON() ([]byte, error) + type AttributeParameters struct + ForceSendFields []string + NullFields []string + ScoreThreshold float64 + ScoreType string + func (s *AttributeParameters) MarshalJSON() ([]byte, error) + func (s *AttributeParameters) UnmarshalJSON(data []byte) error + type AttributeScores struct + ForceSendFields []string + NullFields []string + SpanScores []*SpanScore + SummaryScore *Score + func (s *AttributeScores) MarshalJSON() ([]byte, error) + type CommentsAnalyzeCall struct + func (c *CommentsAnalyzeCall) Context(ctx context.Context) *CommentsAnalyzeCall + func (c *CommentsAnalyzeCall) Do(opts ...googleapi.CallOption) (*AnalyzeCommentResponse, error) + func (c *CommentsAnalyzeCall) Fields(s ...googleapi.Field) *CommentsAnalyzeCall + func (c *CommentsAnalyzeCall) Header() http.Header + type CommentsService struct + func NewCommentsService(s *Service) *CommentsService + func (r *CommentsService) Analyze(analyzecommentrequest *AnalyzeCommentRequest) *CommentsAnalyzeCall + func (r *CommentsService) Suggestscore(suggestcommentscorerequest *SuggestCommentScoreRequest) *CommentsSuggestscoreCall + type CommentsSuggestscoreCall struct + func (c *CommentsSuggestscoreCall) Context(ctx context.Context) *CommentsSuggestscoreCall + func (c *CommentsSuggestscoreCall) Do(opts ...googleapi.CallOption) (*SuggestCommentScoreResponse, error) + func (c *CommentsSuggestscoreCall) Fields(s ...googleapi.Field) *CommentsSuggestscoreCall + func (c *CommentsSuggestscoreCall) Header() http.Header + type Context struct + ArticleAndParentComment *ArticleAndParentComment + Entries []*TextEntry + ForceSendFields []string + NullFields []string + func (s *Context) MarshalJSON() ([]byte, error) + type Score struct + ForceSendFields []string + NullFields []string + Type string + Value float64 + func (s *Score) MarshalJSON() ([]byte, error) + func (s *Score) UnmarshalJSON(data []byte) error + type Service struct + BasePath string + Comments *CommentsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type SpanScore struct + Begin int64 + End int64 + ForceSendFields []string + NullFields []string + Score *Score + func (s *SpanScore) MarshalJSON() ([]byte, error) + type SuggestCommentScoreRequest struct + AttributeScores map[string]AttributeScores + ClientToken string + Comment *TextEntry + CommunityId string + Context *Context + ForceSendFields []string + Languages []string + NullFields []string + SessionId string + func (s *SuggestCommentScoreRequest) MarshalJSON() ([]byte, error) + type SuggestCommentScoreResponse struct + ClientToken string + DetectedLanguages []string + ForceSendFields []string + NullFields []string + RequestedLanguages []string + func (s *SuggestCommentScoreResponse) MarshalJSON() ([]byte, error) + type TextEntry struct + ForceSendFields []string + NullFields []string + Text string + Type string + func (s *TextEntry) MarshalJSON() ([]byte, error)