Versions in this module Expand all Collapse all v0 v0.59.3 Jun 29, 2020 Changes in this version + func DefaultAuthScopes() []string + type BatchTranslateTextOperation struct + func (op *BatchTranslateTextOperation) Done() bool + func (op *BatchTranslateTextOperation) Metadata() (*translatepb.BatchTranslateMetadata, error) + func (op *BatchTranslateTextOperation) Name() string + func (op *BatchTranslateTextOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*translatepb.BatchTranslateResponse, error) + func (op *BatchTranslateTextOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*translatepb.BatchTranslateResponse, error) + type CreateGlossaryOperation struct + func (op *CreateGlossaryOperation) Done() bool + func (op *CreateGlossaryOperation) Metadata() (*translatepb.CreateGlossaryMetadata, error) + func (op *CreateGlossaryOperation) Name() string + func (op *CreateGlossaryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*translatepb.Glossary, error) + func (op *CreateGlossaryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*translatepb.Glossary, error) + type DeleteGlossaryOperation struct + func (op *DeleteGlossaryOperation) Done() bool + func (op *DeleteGlossaryOperation) Metadata() (*translatepb.DeleteGlossaryMetadata, error) + func (op *DeleteGlossaryOperation) Name() string + func (op *DeleteGlossaryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*translatepb.DeleteGlossaryResponse, error) + func (op *DeleteGlossaryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*translatepb.DeleteGlossaryResponse, error) + type GlossaryIterator struct + InternalFetch func(pageSize int, pageToken string) (results []*translatepb.Glossary, nextPageToken string, err error) + Response interface{} + func (it *GlossaryIterator) Next() (*translatepb.Glossary, error) + func (it *GlossaryIterator) PageInfo() *iterator.PageInfo + type TranslationCallOptions struct + BatchTranslateText []gax.CallOption + CreateGlossary []gax.CallOption + DeleteGlossary []gax.CallOption + DetectLanguage []gax.CallOption + GetGlossary []gax.CallOption + GetSupportedLanguages []gax.CallOption + ListGlossaries []gax.CallOption + TranslateText []gax.CallOption + type TranslationClient struct + CallOptions *TranslationCallOptions + LROClient *lroauto.OperationsClient + func NewTranslationClient(ctx context.Context, opts ...option.ClientOption) (*TranslationClient, error) + func (c *TranslationClient) BatchTranslateText(ctx context.Context, req *translatepb.BatchTranslateTextRequest, ...) (*BatchTranslateTextOperation, error) + func (c *TranslationClient) BatchTranslateTextOperation(name string) *BatchTranslateTextOperation + func (c *TranslationClient) Close() error + func (c *TranslationClient) Connection() *grpc.ClientConn + func (c *TranslationClient) CreateGlossary(ctx context.Context, req *translatepb.CreateGlossaryRequest, ...) (*CreateGlossaryOperation, error) + func (c *TranslationClient) CreateGlossaryOperation(name string) *CreateGlossaryOperation + func (c *TranslationClient) DeleteGlossary(ctx context.Context, req *translatepb.DeleteGlossaryRequest, ...) (*DeleteGlossaryOperation, error) + func (c *TranslationClient) DeleteGlossaryOperation(name string) *DeleteGlossaryOperation + func (c *TranslationClient) DetectLanguage(ctx context.Context, req *translatepb.DetectLanguageRequest, ...) (*translatepb.DetectLanguageResponse, error) + func (c *TranslationClient) GetGlossary(ctx context.Context, req *translatepb.GetGlossaryRequest, ...) (*translatepb.Glossary, error) + func (c *TranslationClient) GetSupportedLanguages(ctx context.Context, req *translatepb.GetSupportedLanguagesRequest, ...) (*translatepb.SupportedLanguages, error) + func (c *TranslationClient) ListGlossaries(ctx context.Context, req *translatepb.ListGlossariesRequest, ...) *GlossaryIterator + func (c *TranslationClient) TranslateText(ctx context.Context, req *translatepb.TranslateTextRequest, ...) (*translatepb.TranslateTextResponse, error)