Viewing file: translation_service_descriptor_config.php (26.18 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */
/* * GENERATED CODE WARNING * This file was automatically generated - do not edit! */
return [ 'interfaces' => [ 'google.cloud.translation.v3.TranslationService' => [ 'BatchTranslateDocument' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\BatchTranslateDocumentResponse', 'metadataReturnType' => '\Google\Cloud\Translate\V3\BatchTranslateDocumentMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'BatchTranslateText' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\BatchTranslateResponse', 'metadataReturnType' => '\Google\Cloud\Translate\V3\BatchTranslateMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'CreateDataset' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\Dataset', 'metadataReturnType' => '\Google\Cloud\Translate\V3\CreateDatasetMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'CreateGlossary' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\Glossary', 'metadataReturnType' => '\Google\Cloud\Translate\V3\CreateGlossaryMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'CreateModel' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\Model', 'metadataReturnType' => '\Google\Cloud\Translate\V3\CreateModelMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'DeleteDataset' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Protobuf\GPBEmpty', 'metadataReturnType' => '\Google\Cloud\Translate\V3\DeleteDatasetMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'DeleteGlossary' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\DeleteGlossaryResponse', 'metadataReturnType' => '\Google\Cloud\Translate\V3\DeleteGlossaryMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'DeleteModel' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Protobuf\GPBEmpty', 'metadataReturnType' => '\Google\Cloud\Translate\V3\DeleteModelMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'ExportData' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Protobuf\GPBEmpty', 'metadataReturnType' => '\Google\Cloud\Translate\V3\ExportDataMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'dataset', 'fieldAccessors' => [ 'getDataset', ], ], ], ], 'ImportData' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Protobuf\GPBEmpty', 'metadataReturnType' => '\Google\Cloud\Translate\V3\ImportDataMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'dataset', 'fieldAccessors' => [ 'getDataset', ], ], ], ], 'UpdateGlossary' => [ 'longRunning' => [ 'operationReturnType' => '\Google\Cloud\Translate\V3\Glossary', 'metadataReturnType' => '\Google\Cloud\Translate\V3\UpdateGlossaryMetadata', 'initialPollDelayMillis' => '500', 'pollDelayMultiplier' => '1.5', 'maxPollDelayMillis' => '5000', 'totalPollTimeoutMillis' => '300000', ], 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, 'headerParams' => [ [ 'keyName' => 'glossary.name', 'fieldAccessors' => [ 'getGlossary', 'getName', ], ], ], ], 'AdaptiveMtTranslate' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\AdaptiveMtTranslateResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'CreateAdaptiveMtDataset' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\AdaptiveMtDataset', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'CreateGlossaryEntry' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\GlossaryEntry', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'DeleteAdaptiveMtDataset' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Protobuf\GPBEmpty', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'DeleteAdaptiveMtFile' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Protobuf\GPBEmpty', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'DeleteGlossaryEntry' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Protobuf\GPBEmpty', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'DetectLanguage' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\DetectLanguageResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'GetAdaptiveMtDataset' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\AdaptiveMtDataset', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetAdaptiveMtFile' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\AdaptiveMtFile', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetDataset' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\Dataset', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetGlossary' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\Glossary', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetGlossaryEntry' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\GlossaryEntry', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetModel' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\Model', 'headerParams' => [ [ 'keyName' => 'name', 'fieldAccessors' => [ 'getName', ], ], ], ], 'GetSupportedLanguages' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\SupportedLanguages', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ImportAdaptiveMtFile' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ImportAdaptiveMtFileResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListAdaptiveMtDatasets' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getAdaptiveMtDatasets', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListAdaptiveMtDatasetsResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListAdaptiveMtFiles' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getAdaptiveMtFiles', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListAdaptiveMtFilesResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListAdaptiveMtSentences' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getAdaptiveMtSentences', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListAdaptiveMtSentencesResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListDatasets' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getDatasets', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListDatasetsResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListExamples' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getExamples', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListExamplesResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListGlossaries' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getGlossaries', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListGlossariesResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListGlossaryEntries' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getGlossaryEntries', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListGlossaryEntriesResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'ListModels' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', 'requestPageTokenSetMethod' => 'setPageToken', 'requestPageSizeGetMethod' => 'getPageSize', 'requestPageSizeSetMethod' => 'setPageSize', 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getModels', ], 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, 'responseType' => 'Google\Cloud\Translate\V3\ListModelsResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'RomanizeText' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\RomanizeTextResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'TranslateDocument' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\TranslateDocumentResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'TranslateText' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\TranslateTextResponse', 'headerParams' => [ [ 'keyName' => 'parent', 'fieldAccessors' => [ 'getParent', ], ], ], ], 'UpdateGlossaryEntry' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Cloud\Translate\V3\GlossaryEntry', 'headerParams' => [ [ 'keyName' => 'glossary_entry.name', 'fieldAccessors' => [ 'getGlossaryEntry', 'getName', ], ], ], ], 'templateMap' => [ 'adaptiveMtDataset' => 'projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}', 'adaptiveMtFile' => 'projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}', 'dataset' => 'projects/{project}/locations/{location}/datasets/{dataset}', 'glossary' => 'projects/{project}/locations/{location}/glossaries/{glossary}', 'glossaryEntry' => 'projects/{project}/locations/{location}/glossaries/{glossary}/glossaryEntries/{glossary_entry}', 'location' => 'projects/{project}/locations/{location}', 'model' => 'projects/{project}/locations/{location}/models/{model}', ], ], ], ];
|