...

Package translate

import "google.golang.org/genproto/googleapis/cloud/translate/v3"
Overview
Index

Overview ▾

Package translate aliases all exported identifiers in package "cloud.google.com/go/translate/apiv3/translatepb".

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb. Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md for more details.

Index ▾

Constants
Variables
func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer)
type BatchDocumentInputConfig
type BatchDocumentInputConfig_GcsSource
type BatchDocumentOutputConfig
type BatchDocumentOutputConfig_GcsDestination
type BatchTranslateDocumentMetadata
type BatchTranslateDocumentMetadata_State
type BatchTranslateDocumentRequest
type BatchTranslateDocumentResponse
type BatchTranslateMetadata
type BatchTranslateMetadata_State
type BatchTranslateResponse
type BatchTranslateTextRequest
type CreateGlossaryMetadata
type CreateGlossaryMetadata_State
type CreateGlossaryRequest
type DeleteGlossaryMetadata
type DeleteGlossaryMetadata_State
type DeleteGlossaryRequest
type DeleteGlossaryResponse
type DetectLanguageRequest
type DetectLanguageRequest_Content
type DetectLanguageResponse
type DetectedLanguage
type DocumentInputConfig
type DocumentInputConfig_Content
type DocumentInputConfig_GcsSource
type DocumentOutputConfig
type DocumentOutputConfig_GcsDestination
type DocumentTranslation
type GcsDestination
type GcsSource
type GetGlossaryRequest
type GetSupportedLanguagesRequest
type Glossary
type GlossaryInputConfig
type GlossaryInputConfig_GcsSource
type Glossary_LanguageCodePair
type Glossary_LanguageCodesSet
type Glossary_LanguageCodesSet_
type Glossary_LanguagePair
type InputConfig
type InputConfig_GcsSource
type ListGlossariesRequest
type ListGlossariesResponse
type OutputConfig
type OutputConfig_GcsDestination
type SupportedLanguage
type SupportedLanguages
type TranslateDocumentRequest
type TranslateDocumentResponse
type TranslateTextGlossaryConfig
type TranslateTextRequest
type TranslateTextResponse
type Translation
type TranslationServiceClient
    func NewTranslationServiceClient(cc grpc.ClientConnInterface) TranslationServiceClient
type TranslationServiceServer
type UnimplementedTranslationServiceServer

Package files

alias.go

Constants

Deprecated: Please use consts in: cloud.google.com/go/translate/apiv3/translatepb

const (
    BatchTranslateDocumentMetadata_CANCELLED         = src.BatchTranslateDocumentMetadata_CANCELLED
    BatchTranslateDocumentMetadata_CANCELLING        = src.BatchTranslateDocumentMetadata_CANCELLING
    BatchTranslateDocumentMetadata_FAILED            = src.BatchTranslateDocumentMetadata_FAILED
    BatchTranslateDocumentMetadata_RUNNING           = src.BatchTranslateDocumentMetadata_RUNNING
    BatchTranslateDocumentMetadata_STATE_UNSPECIFIED = src.BatchTranslateDocumentMetadata_STATE_UNSPECIFIED
    BatchTranslateDocumentMetadata_SUCCEEDED         = src.BatchTranslateDocumentMetadata_SUCCEEDED
    BatchTranslateMetadata_CANCELLED                 = src.BatchTranslateMetadata_CANCELLED
    BatchTranslateMetadata_CANCELLING                = src.BatchTranslateMetadata_CANCELLING
    BatchTranslateMetadata_FAILED                    = src.BatchTranslateMetadata_FAILED
    BatchTranslateMetadata_RUNNING                   = src.BatchTranslateMetadata_RUNNING
    BatchTranslateMetadata_STATE_UNSPECIFIED         = src.BatchTranslateMetadata_STATE_UNSPECIFIED
    BatchTranslateMetadata_SUCCEEDED                 = src.BatchTranslateMetadata_SUCCEEDED
    CreateGlossaryMetadata_CANCELLED                 = src.CreateGlossaryMetadata_CANCELLED
    CreateGlossaryMetadata_CANCELLING                = src.CreateGlossaryMetadata_CANCELLING
    CreateGlossaryMetadata_FAILED                    = src.CreateGlossaryMetadata_FAILED
    CreateGlossaryMetadata_RUNNING                   = src.CreateGlossaryMetadata_RUNNING
    CreateGlossaryMetadata_STATE_UNSPECIFIED         = src.CreateGlossaryMetadata_STATE_UNSPECIFIED
    CreateGlossaryMetadata_SUCCEEDED                 = src.CreateGlossaryMetadata_SUCCEEDED
    DeleteGlossaryMetadata_CANCELLED                 = src.DeleteGlossaryMetadata_CANCELLED
    DeleteGlossaryMetadata_CANCELLING                = src.DeleteGlossaryMetadata_CANCELLING
    DeleteGlossaryMetadata_FAILED                    = src.DeleteGlossaryMetadata_FAILED
    DeleteGlossaryMetadata_RUNNING                   = src.DeleteGlossaryMetadata_RUNNING
    DeleteGlossaryMetadata_STATE_UNSPECIFIED         = src.DeleteGlossaryMetadata_STATE_UNSPECIFIED
    DeleteGlossaryMetadata_SUCCEEDED                 = src.DeleteGlossaryMetadata_SUCCEEDED
)

Variables

Deprecated: Please use vars in: cloud.google.com/go/translate/apiv3/translatepb

var (
    BatchTranslateDocumentMetadata_State_name                = src.BatchTranslateDocumentMetadata_State_name
    BatchTranslateDocumentMetadata_State_value               = src.BatchTranslateDocumentMetadata_State_value
    BatchTranslateMetadata_State_name                        = src.BatchTranslateMetadata_State_name
    BatchTranslateMetadata_State_value                       = src.BatchTranslateMetadata_State_value
    CreateGlossaryMetadata_State_name                        = src.CreateGlossaryMetadata_State_name
    CreateGlossaryMetadata_State_value                       = src.CreateGlossaryMetadata_State_value
    DeleteGlossaryMetadata_State_name                        = src.DeleteGlossaryMetadata_State_name
    DeleteGlossaryMetadata_State_value                       = src.DeleteGlossaryMetadata_State_value
    File_google_cloud_translate_v3_translation_service_proto = src.File_google_cloud_translate_v3_translation_service_proto
)

func RegisterTranslationServiceServer

func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer)

Deprecated: Please use funcs in: cloud.google.com/go/translate/apiv3/translatepb

type BatchDocumentInputConfig

Input configuration for BatchTranslateDocument request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchDocumentInputConfig = src.BatchDocumentInputConfig

type BatchDocumentInputConfig_GcsSource

type BatchDocumentInputConfig_GcsSource = src.BatchDocumentInputConfig_GcsSource

type BatchDocumentOutputConfig

Output configuration for BatchTranslateDocument request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchDocumentOutputConfig = src.BatchDocumentOutputConfig

type BatchDocumentOutputConfig_GcsDestination

type BatchDocumentOutputConfig_GcsDestination = src.BatchDocumentOutputConfig_GcsDestination

type BatchTranslateDocumentMetadata

State metadata for the batch translation operation.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateDocumentMetadata = src.BatchTranslateDocumentMetadata

type BatchTranslateDocumentMetadata_State

State of the job.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateDocumentMetadata_State = src.BatchTranslateDocumentMetadata_State

type BatchTranslateDocumentRequest

The BatchTranslateDocument request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateDocumentRequest = src.BatchTranslateDocumentRequest

type BatchTranslateDocumentResponse

Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateDocument if at least one document is translated successfully.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateDocumentResponse = src.BatchTranslateDocumentResponse

type BatchTranslateMetadata

State metadata for the batch translation operation.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateMetadata = src.BatchTranslateMetadata

type BatchTranslateMetadata_State

State of the job.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateMetadata_State = src.BatchTranslateMetadata_State

type BatchTranslateResponse

Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by BatchTranslateText if at least one sentence is translated successfully.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateResponse = src.BatchTranslateResponse

type BatchTranslateTextRequest

The batch translation request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type BatchTranslateTextRequest = src.BatchTranslateTextRequest

type CreateGlossaryMetadata

Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by CreateGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type CreateGlossaryMetadata = src.CreateGlossaryMetadata

type CreateGlossaryMetadata_State

Enumerates the possible states that the creation request can be in.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type CreateGlossaryMetadata_State = src.CreateGlossaryMetadata_State

type CreateGlossaryRequest

Request message for CreateGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type CreateGlossaryRequest = src.CreateGlossaryRequest

type DeleteGlossaryMetadata

Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by DeleteGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DeleteGlossaryMetadata = src.DeleteGlossaryMetadata

type DeleteGlossaryMetadata_State

Enumerates the possible states that the creation request can be in.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DeleteGlossaryMetadata_State = src.DeleteGlossaryMetadata_State

type DeleteGlossaryRequest

Request message for DeleteGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DeleteGlossaryRequest = src.DeleteGlossaryRequest

type DeleteGlossaryResponse

Stored in the [google.longrunning.Operation.response][google.longrunning.Operation.response] field returned by DeleteGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DeleteGlossaryResponse = src.DeleteGlossaryResponse

type DetectLanguageRequest

The request message for language detection.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DetectLanguageRequest = src.DetectLanguageRequest

type DetectLanguageRequest_Content

type DetectLanguageRequest_Content = src.DetectLanguageRequest_Content

type DetectLanguageResponse

The response message for language detection.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DetectLanguageResponse = src.DetectLanguageResponse

type DetectedLanguage

The response message for language detection.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DetectedLanguage = src.DetectedLanguage

type DocumentInputConfig

A document translation request input config.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DocumentInputConfig = src.DocumentInputConfig

type DocumentInputConfig_Content

type DocumentInputConfig_Content = src.DocumentInputConfig_Content

type DocumentInputConfig_GcsSource

type DocumentInputConfig_GcsSource = src.DocumentInputConfig_GcsSource

type DocumentOutputConfig

A document translation request output config.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DocumentOutputConfig = src.DocumentOutputConfig

type DocumentOutputConfig_GcsDestination

type DocumentOutputConfig_GcsDestination = src.DocumentOutputConfig_GcsDestination

type DocumentTranslation

A translated document message.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type DocumentTranslation = src.DocumentTranslation

type GcsDestination

The Google Cloud Storage location for the output content.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type GcsDestination = src.GcsDestination

type GcsSource

The Google Cloud Storage location for the input content.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type GcsSource = src.GcsSource

type GetGlossaryRequest

Request message for GetGlossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type GetGlossaryRequest = src.GetGlossaryRequest

type GetSupportedLanguagesRequest

The request message for discovering supported languages.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type GetSupportedLanguagesRequest = src.GetSupportedLanguagesRequest

type Glossary

Represents a glossary built from user provided data.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type Glossary = src.Glossary

type GlossaryInputConfig

Input configuration for glossaries.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type GlossaryInputConfig = src.GlossaryInputConfig

type GlossaryInputConfig_GcsSource

type GlossaryInputConfig_GcsSource = src.GlossaryInputConfig_GcsSource

type Glossary_LanguageCodePair

Used with unidirectional glossaries.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type Glossary_LanguageCodePair = src.Glossary_LanguageCodePair

type Glossary_LanguageCodesSet

Used with equivalent term set glossaries.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type Glossary_LanguageCodesSet = src.Glossary_LanguageCodesSet

type Glossary_LanguageCodesSet_

type Glossary_LanguageCodesSet_ = src.Glossary_LanguageCodesSet_

type Glossary_LanguagePair

type Glossary_LanguagePair = src.Glossary_LanguagePair

type InputConfig

Input configuration for BatchTranslateText request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type InputConfig = src.InputConfig

type InputConfig_GcsSource

type InputConfig_GcsSource = src.InputConfig_GcsSource

type ListGlossariesRequest

Request message for ListGlossaries.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type ListGlossariesRequest = src.ListGlossariesRequest

type ListGlossariesResponse

Response message for ListGlossaries.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type ListGlossariesResponse = src.ListGlossariesResponse

type OutputConfig

Output configuration for BatchTranslateText request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type OutputConfig = src.OutputConfig

type OutputConfig_GcsDestination

type OutputConfig_GcsDestination = src.OutputConfig_GcsDestination

type SupportedLanguage

A single supported language response corresponds to information related to one supported language.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type SupportedLanguage = src.SupportedLanguage

type SupportedLanguages

The response message for discovering supported languages.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type SupportedLanguages = src.SupportedLanguages

type TranslateDocumentRequest

A document translation request.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslateDocumentRequest = src.TranslateDocumentRequest

type TranslateDocumentResponse

A translated document response message.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslateDocumentResponse = src.TranslateDocumentResponse

type TranslateTextGlossaryConfig

Configures which glossary should be used for a specific target language, and defines options for applying that glossary.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslateTextGlossaryConfig = src.TranslateTextGlossaryConfig

type TranslateTextRequest

The request message for synchronous translation.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslateTextRequest = src.TranslateTextRequest

type TranslateTextResponse

type TranslateTextResponse = src.TranslateTextResponse

type Translation

A single translation response.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type Translation = src.Translation

type TranslationServiceClient

TranslationServiceClient is the client API for TranslationService service. For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslationServiceClient = src.TranslationServiceClient

func NewTranslationServiceClient

func NewTranslationServiceClient(cc grpc.ClientConnInterface) TranslationServiceClient

Deprecated: Please use funcs in: cloud.google.com/go/translate/apiv3/translatepb

type TranslationServiceServer

TranslationServiceServer is the server API for TranslationService service.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type TranslationServiceServer = src.TranslationServiceServer

type UnimplementedTranslationServiceServer

UnimplementedTranslationServiceServer can be embedded to have forward compatible implementations.

Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb

type UnimplementedTranslationServiceServer = src.UnimplementedTranslationServiceServer