Versions in this module Expand all Collapse all v0 v0.25.2 May 21, 2020 Changes in this version + const CloudPlatformScope + const CloudTranslationScope + type DetectLanguageRequest struct + ForceSendFields []string + NullFields []string + Q []string + func (s *DetectLanguageRequest) MarshalJSON() ([]byte, error) + type DetectionsDetectCall struct + func (c *DetectionsDetectCall) Context(ctx context.Context) *DetectionsDetectCall + func (c *DetectionsDetectCall) Do(opts ...googleapi.CallOption) (*DetectionsListResponse, error) + func (c *DetectionsDetectCall) Fields(s ...googleapi.Field) *DetectionsDetectCall + func (c *DetectionsDetectCall) Header() http.Header + type DetectionsListCall struct + func (c *DetectionsListCall) Context(ctx context.Context) *DetectionsListCall + func (c *DetectionsListCall) Do(opts ...googleapi.CallOption) (*DetectionsListResponse, error) + func (c *DetectionsListCall) Fields(s ...googleapi.Field) *DetectionsListCall + func (c *DetectionsListCall) Header() http.Header + func (c *DetectionsListCall) IfNoneMatch(entityTag string) *DetectionsListCall + type DetectionsListResponse struct + Detections [][]*DetectionsResourceItem + ForceSendFields []string + NullFields []string + func (s *DetectionsListResponse) MarshalJSON() ([]byte, error) + type DetectionsResourceItem struct + Confidence float64 + ForceSendFields []string + IsReliable bool + Language string + NullFields []string + func (s *DetectionsResourceItem) MarshalJSON() ([]byte, error) + func (s *DetectionsResourceItem) UnmarshalJSON(data []byte) error + type DetectionsService struct + func NewDetectionsService(s *Service) *DetectionsService + func (r *DetectionsService) Detect(detectlanguagerequest *DetectLanguageRequest) *DetectionsDetectCall + func (r *DetectionsService) List(q []string) *DetectionsListCall + type GetSupportedLanguagesRequest struct + ForceSendFields []string + NullFields []string + Target string + func (s *GetSupportedLanguagesRequest) MarshalJSON() ([]byte, error) + type LanguagesListCall struct + func (c *LanguagesListCall) Context(ctx context.Context) *LanguagesListCall + func (c *LanguagesListCall) Do(opts ...googleapi.CallOption) (*LanguagesListResponse, error) + func (c *LanguagesListCall) Fields(s ...googleapi.Field) *LanguagesListCall + func (c *LanguagesListCall) Header() http.Header + func (c *LanguagesListCall) IfNoneMatch(entityTag string) *LanguagesListCall + func (c *LanguagesListCall) Model(model string) *LanguagesListCall + func (c *LanguagesListCall) Target(target string) *LanguagesListCall + type LanguagesListResponse struct + ForceSendFields []string + Languages []*LanguagesResource + NullFields []string + func (s *LanguagesListResponse) MarshalJSON() ([]byte, error) + type LanguagesResource struct + ForceSendFields []string + Language string + Name string + NullFields []string + func (s *LanguagesResource) MarshalJSON() ([]byte, error) + type LanguagesService struct + func NewLanguagesService(s *Service) *LanguagesService + func (r *LanguagesService) List() *LanguagesListCall + type Service struct + BasePath string + Detections *DetectionsService + Languages *LanguagesService + Translations *TranslationsService + UserAgent string + func New(client *http.Client) (*Service, error) + func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) + type TranslateTextRequest struct + ForceSendFields []string + Format string + Model string + NullFields []string + Q []string + Source string + Target string + func (s *TranslateTextRequest) MarshalJSON() ([]byte, error) + type TranslationsListCall struct + func (c *TranslationsListCall) Cid(cid ...string) *TranslationsListCall + func (c *TranslationsListCall) Context(ctx context.Context) *TranslationsListCall + func (c *TranslationsListCall) Do(opts ...googleapi.CallOption) (*TranslationsListResponse, error) + func (c *TranslationsListCall) Fields(s ...googleapi.Field) *TranslationsListCall + func (c *TranslationsListCall) Format(format string) *TranslationsListCall + func (c *TranslationsListCall) Header() http.Header + func (c *TranslationsListCall) IfNoneMatch(entityTag string) *TranslationsListCall + func (c *TranslationsListCall) Model(model string) *TranslationsListCall + func (c *TranslationsListCall) Source(source string) *TranslationsListCall + type TranslationsListResponse struct + ForceSendFields []string + NullFields []string + Translations []*TranslationsResource + func (s *TranslationsListResponse) MarshalJSON() ([]byte, error) + type TranslationsResource struct + DetectedSourceLanguage string + ForceSendFields []string + Model string + NullFields []string + TranslatedText string + func (s *TranslationsResource) MarshalJSON() ([]byte, error) + type TranslationsService struct + func NewTranslationsService(s *Service) *TranslationsService + func (r *TranslationsService) List(q []string, target string) *TranslationsListCall + func (r *TranslationsService) Translate(translatetextrequest *TranslateTextRequest) *TranslationsTranslateCall + type TranslationsTranslateCall struct + func (c *TranslationsTranslateCall) Context(ctx context.Context) *TranslationsTranslateCall + func (c *TranslationsTranslateCall) Do(opts ...googleapi.CallOption) (*TranslationsListResponse, error) + func (c *TranslationsTranslateCall) Fields(s ...googleapi.Field) *TranslationsTranslateCall + func (c *TranslationsTranslateCall) Header() http.Header