Documentation ¶
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)deprecated
- type BatchDocumentInputConfigdeprecated
- type BatchDocumentInputConfig_GcsSource
- type BatchDocumentOutputConfigdeprecated
- type BatchDocumentOutputConfig_GcsDestination
- type BatchTranslateDocumentMetadatadeprecated
- type BatchTranslateDocumentMetadata_Statedeprecated
- type BatchTranslateDocumentRequestdeprecated
- type BatchTranslateDocumentResponsedeprecated
- type BatchTranslateMetadatadeprecated
- type BatchTranslateMetadata_Statedeprecated
- type BatchTranslateResponsedeprecated
- type BatchTranslateTextRequestdeprecated
- type CreateGlossaryMetadatadeprecated
- type CreateGlossaryMetadata_Statedeprecated
- type CreateGlossaryRequestdeprecated
- type DeleteGlossaryMetadatadeprecated
- type DeleteGlossaryMetadata_Statedeprecated
- type DeleteGlossaryRequestdeprecated
- type DeleteGlossaryResponsedeprecated
- type DetectLanguageRequestdeprecated
- type DetectLanguageRequest_Content
- type DetectLanguageResponsedeprecated
- type DetectedLanguagedeprecated
- type DocumentInputConfigdeprecated
- type DocumentInputConfig_Content
- type DocumentInputConfig_GcsSource
- type DocumentOutputConfigdeprecated
- type DocumentOutputConfig_GcsDestination
- type DocumentTranslationdeprecated
- type GcsDestinationdeprecated
- type GcsSourcedeprecated
- type GetGlossaryRequestdeprecated
- type GetSupportedLanguagesRequestdeprecated
- type Glossarydeprecated
- type GlossaryInputConfigdeprecated
- type GlossaryInputConfig_GcsSource
- type Glossary_LanguageCodePairdeprecated
- type Glossary_LanguageCodesSetdeprecated
- type Glossary_LanguageCodesSet_
- type Glossary_LanguagePair
- type InputConfigdeprecated
- type InputConfig_GcsSource
- type ListGlossariesRequestdeprecated
- type ListGlossariesResponsedeprecated
- type OutputConfigdeprecated
- type OutputConfig_GcsDestination
- type SupportedLanguagedeprecated
- type SupportedLanguagesdeprecated
- type TranslateDocumentRequestdeprecated
- type TranslateDocumentResponsedeprecated
- type TranslateTextGlossaryConfigdeprecated
- type TranslateTextRequestdeprecated
- type TranslateTextResponse
- type Translationdeprecated
- type TranslationServiceClientdeprecated
- type TranslationServiceServerdeprecated
- type UnimplementedTranslationServiceServerdeprecated
Constants ¶
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 )
Deprecated: Please use consts in: cloud.google.com/go/translate/apiv3/translatepb
Variables ¶
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 )
Deprecated: Please use vars in: cloud.google.com/go/translate/apiv3/translatepb
Functions ¶
func RegisterTranslationServiceServer
deprecated
func RegisterTranslationServiceServer(s *grpc.Server, srv TranslationServiceServer)
Deprecated: Please use funcs in: cloud.google.com/go/translate/apiv3/translatepb
Types ¶
type BatchDocumentInputConfig
deprecated
type BatchDocumentInputConfig = src.BatchDocumentInputConfig
Input configuration for BatchTranslateDocument request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchDocumentInputConfig_GcsSource ¶
type BatchDocumentInputConfig_GcsSource = src.BatchDocumentInputConfig_GcsSource
type BatchDocumentOutputConfig
deprecated
type BatchDocumentOutputConfig = src.BatchDocumentOutputConfig
Output configuration for BatchTranslateDocument request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchDocumentOutputConfig_GcsDestination ¶
type BatchDocumentOutputConfig_GcsDestination = src.BatchDocumentOutputConfig_GcsDestination
type BatchTranslateDocumentMetadata
deprecated
type BatchTranslateDocumentMetadata = src.BatchTranslateDocumentMetadata
State metadata for the batch translation operation.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchTranslateDocumentMetadata_State
deprecated
type BatchTranslateDocumentMetadata_State = src.BatchTranslateDocumentMetadata_State
State of the job.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchTranslateDocumentRequest
deprecated
type BatchTranslateDocumentRequest = src.BatchTranslateDocumentRequest
The BatchTranslateDocument request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchTranslateDocumentResponse
deprecated
type BatchTranslateDocumentResponse = src.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 BatchTranslateMetadata
deprecated
type BatchTranslateMetadata = src.BatchTranslateMetadata
State metadata for the batch translation operation.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchTranslateMetadata_State
deprecated
type BatchTranslateMetadata_State = src.BatchTranslateMetadata_State
State of the job.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type BatchTranslateResponse
deprecated
type BatchTranslateResponse = src.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 BatchTranslateTextRequest
deprecated
type BatchTranslateTextRequest = src.BatchTranslateTextRequest
The batch translation request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type CreateGlossaryMetadata
deprecated
type CreateGlossaryMetadata = src.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_State
deprecated
type CreateGlossaryMetadata_State = src.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 CreateGlossaryRequest
deprecated
type CreateGlossaryRequest = src.CreateGlossaryRequest
Request message for CreateGlossary.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DeleteGlossaryMetadata
deprecated
type DeleteGlossaryMetadata = src.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_State
deprecated
type DeleteGlossaryMetadata_State = src.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 DeleteGlossaryRequest
deprecated
type DeleteGlossaryRequest = src.DeleteGlossaryRequest
Request message for DeleteGlossary.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DeleteGlossaryResponse
deprecated
type DeleteGlossaryResponse = src.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 DetectLanguageRequest
deprecated
type DetectLanguageRequest = src.DetectLanguageRequest
The request message for language detection.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DetectLanguageRequest_Content ¶
type DetectLanguageRequest_Content = src.DetectLanguageRequest_Content
type DetectLanguageResponse
deprecated
type DetectLanguageResponse = src.DetectLanguageResponse
The response message for language detection.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DetectedLanguage
deprecated
type DetectedLanguage = src.DetectedLanguage
The response message for language detection.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DocumentInputConfig
deprecated
type DocumentInputConfig = src.DocumentInputConfig
A document translation request input config.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DocumentInputConfig_Content ¶
type DocumentInputConfig_Content = src.DocumentInputConfig_Content
type DocumentInputConfig_GcsSource ¶
type DocumentInputConfig_GcsSource = src.DocumentInputConfig_GcsSource
type DocumentOutputConfig
deprecated
type DocumentOutputConfig = src.DocumentOutputConfig
A document translation request output config.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type DocumentOutputConfig_GcsDestination ¶
type DocumentOutputConfig_GcsDestination = src.DocumentOutputConfig_GcsDestination
type DocumentTranslation
deprecated
type DocumentTranslation = src.DocumentTranslation
A translated document message.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type GcsDestination
deprecated
type GcsDestination = src.GcsDestination
The Google Cloud Storage location for the output content.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type GetGlossaryRequest
deprecated
type GetGlossaryRequest = src.GetGlossaryRequest
Request message for GetGlossary.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type GetSupportedLanguagesRequest
deprecated
type GetSupportedLanguagesRequest = src.GetSupportedLanguagesRequest
The request message for discovering supported languages.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type GlossaryInputConfig
deprecated
type GlossaryInputConfig = src.GlossaryInputConfig
Input configuration for glossaries.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type GlossaryInputConfig_GcsSource ¶
type GlossaryInputConfig_GcsSource = src.GlossaryInputConfig_GcsSource
type Glossary_LanguageCodePair
deprecated
type Glossary_LanguageCodePair = src.Glossary_LanguageCodePair
Used with unidirectional glossaries.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type Glossary_LanguageCodesSet
deprecated
type Glossary_LanguageCodesSet = src.Glossary_LanguageCodesSet
Used with equivalent term set glossaries.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type Glossary_LanguageCodesSet_ ¶
type Glossary_LanguageCodesSet_ = src.Glossary_LanguageCodesSet_
type Glossary_LanguagePair ¶
type Glossary_LanguagePair = src.Glossary_LanguagePair
type InputConfig
deprecated
type InputConfig = src.InputConfig
Input configuration for BatchTranslateText request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type InputConfig_GcsSource ¶
type InputConfig_GcsSource = src.InputConfig_GcsSource
type ListGlossariesRequest
deprecated
type ListGlossariesRequest = src.ListGlossariesRequest
Request message for ListGlossaries.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type ListGlossariesResponse
deprecated
type ListGlossariesResponse = src.ListGlossariesResponse
Response message for ListGlossaries.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type OutputConfig
deprecated
type OutputConfig = src.OutputConfig
Output configuration for BatchTranslateText request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type OutputConfig_GcsDestination ¶
type OutputConfig_GcsDestination = src.OutputConfig_GcsDestination
type SupportedLanguage
deprecated
type SupportedLanguage = src.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 SupportedLanguages
deprecated
type SupportedLanguages = src.SupportedLanguages
The response message for discovering supported languages.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type TranslateDocumentRequest
deprecated
type TranslateDocumentRequest = src.TranslateDocumentRequest
A document translation request.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type TranslateDocumentResponse
deprecated
type TranslateDocumentResponse = src.TranslateDocumentResponse
A translated document response message.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type TranslateTextGlossaryConfig
deprecated
type TranslateTextGlossaryConfig = src.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 TranslateTextRequest
deprecated
type TranslateTextRequest = src.TranslateTextRequest
The request message for synchronous translation.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type TranslateTextResponse ¶
type TranslateTextResponse = src.TranslateTextResponse
type Translation
deprecated
type Translation = src.Translation
A single translation response.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type TranslationServiceClient
deprecated
type TranslationServiceClient = src.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
func NewTranslationServiceClient
deprecated
func NewTranslationServiceClient(cc grpc.ClientConnInterface) TranslationServiceClient
Deprecated: Please use funcs in: cloud.google.com/go/translate/apiv3/translatepb
type TranslationServiceServer
deprecated
type TranslationServiceServer = src.TranslationServiceServer
TranslationServiceServer is the server API for TranslationService service.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb
type UnimplementedTranslationServiceServer
deprecated
type UnimplementedTranslationServiceServer = src.UnimplementedTranslationServiceServer
UnimplementedTranslationServiceServer can be embedded to have forward compatible implementations.
Deprecated: Please use types in: cloud.google.com/go/translate/apiv3/translatepb