UNPKG

@google-cloud/translate

Version:
1,223 lines (1,222 loc) 270 kB
{ "nested": { "google": { "nested": { "cloud": { "nested": { "translation": { "nested": { "v3": { "options": { "csharp_namespace": "Google.Cloud.Translate.V3", "go_package": "cloud.google.com/go/translate/apiv3/translatepb;translatepb", "java_multiple_files": true, "java_outer_classname": "TranslationServiceProto", "java_package": "com.google.cloud.translate.v3", "php_namespace": "Google\\Cloud\\Translate\\V3", "ruby_package": "Google::Cloud::Translate::V3", "objc_class_prefix": "CTRL3" }, "nested": { "AdaptiveMtDataset": { "options": { "(google.api.resource).type": "translate.googleapis.com/AdaptiveMtDataset", "(google.api.resource).pattern": "projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } }, "displayName": { "type": "string", "id": 2 }, "sourceLanguageCode": { "type": "string", "id": 3 }, "targetLanguageCode": { "type": "string", "id": 4 }, "exampleCount": { "type": "int32", "id": 5 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "CreateAdaptiveMtDatasetRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "adaptiveMtDataset": { "type": "AdaptiveMtDataset", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DeleteAdaptiveMtDatasetRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } } } }, "GetAdaptiveMtDatasetRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } } } }, "ListAdaptiveMtDatasetsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "pageSize": { "type": "int32", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "filter": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListAdaptiveMtDatasetsResponse": { "fields": { "adaptiveMtDatasets": { "rule": "repeated", "type": "AdaptiveMtDataset", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "nextPageToken": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "AdaptiveMtTranslateRequest": { "oneofs": { "_referenceSentenceConfig": { "oneof": [ "referenceSentenceConfig" ] }, "_glossaryConfig": { "oneof": [ "glossaryConfig" ] } }, "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "dataset": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } }, "content": { "rule": "repeated", "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "mimeType": { "type": "string", "id": 4 }, "referenceSentenceConfig": { "type": "ReferenceSentenceConfig", "id": 6, "options": { "proto3_optional": true } }, "glossaryConfig": { "type": "GlossaryConfig", "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL", "proto3_optional": true } } }, "nested": { "ReferenceSentencePair": { "fields": { "sourceSentence": { "type": "string", "id": 1 }, "targetSentence": { "type": "string", "id": 2 } } }, "ReferenceSentencePairList": { "fields": { "referenceSentencePairs": { "rule": "repeated", "type": "ReferenceSentencePair", "id": 1 } } }, "ReferenceSentenceConfig": { "fields": { "referenceSentencePairLists": { "rule": "repeated", "type": "ReferenceSentencePairList", "id": 1 }, "sourceLanguageCode": { "type": "string", "id": 2 }, "targetLanguageCode": { "type": "string", "id": 3 } } }, "GlossaryConfig": { "fields": { "glossary": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Glossary" } }, "ignoreCase": { "type": "bool", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "contextualTranslationEnabled": { "type": "bool", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } } } }, "AdaptiveMtTranslation": { "fields": { "translatedText": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "AdaptiveMtTranslateResponse": { "fields": { "translations": { "rule": "repeated", "type": "AdaptiveMtTranslation", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "languageCode": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "glossaryTranslations": { "rule": "repeated", "type": "AdaptiveMtTranslation", "id": 4 } } }, "AdaptiveMtFile": { "options": { "(google.api.resource).type": "translate.googleapis.com/AdaptiveMtFile", "(google.api.resource).pattern": "projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}", "(google.api.resource).plural": "adaptiveMtFiles", "(google.api.resource).singular": "adaptiveMtFile" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtFile" } }, "displayName": { "type": "string", "id": 2 }, "entryCount": { "type": "int32", "id": 3 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "GetAdaptiveMtFileRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtFile" } } } }, "DeleteAdaptiveMtFileRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtFile" } } } }, "ImportAdaptiveMtFileRequest": { "oneofs": { "source": { "oneof": [ "fileInputSource", "gcsInputSource" ] } }, "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } }, "fileInputSource": { "type": "FileInputSource", "id": 2 }, "gcsInputSource": { "type": "GcsInputSource", "id": 3 } } }, "ImportAdaptiveMtFileResponse": { "fields": { "adaptiveMtFile": { "type": "AdaptiveMtFile", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "ListAdaptiveMtFilesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtDataset" } }, "pageSize": { "type": "int32", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListAdaptiveMtFilesResponse": { "fields": { "adaptiveMtFiles": { "rule": "repeated", "type": "AdaptiveMtFile", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "nextPageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "AdaptiveMtSentence": { "options": { "(google.api.resource).type": "translate.googleapis.com/AdaptiveMtSentence", "(google.api.resource).pattern": "projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}", "(google.api.resource).plural": "adaptiveMtSentences", "(google.api.resource).singular": "adaptiveMtSentence" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtSentence" } }, "sourceSentence": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "targetSentence": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "createTime": { "type": "google.protobuf.Timestamp", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "ListAdaptiveMtSentencesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/AdaptiveMtFile" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 } } }, "ListAdaptiveMtSentencesResponse": { "fields": { "adaptiveMtSentences": { "rule": "repeated", "type": "AdaptiveMtSentence", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "nextPageToken": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "GcsInputSource": { "fields": { "inputUri": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "FileInputSource": { "fields": { "mimeType": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "content": { "type": "bytes", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "displayName": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "GcsOutputDestination": { "fields": { "outputUriPrefix": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "OperationState": { "values": { "OPERATION_STATE_UNSPECIFIED": 0, "OPERATION_STATE_RUNNING": 1, "OPERATION_STATE_SUCCEEDED": 2, "OPERATION_STATE_FAILED": 3, "OPERATION_STATE_CANCELLING": 4, "OPERATION_STATE_CANCELLED": 5 } }, "GlossaryEntry": { "options": { "(google.api.resource).type": "translate.googleapis.com/GlossaryEntry", "(google.api.resource).pattern": "projects/{project}/locations/{location}/glossaries/{glossary}/glossaryEntries/{glossary_entry}", "(google.api.resource).plural": "glossaryEntries", "(google.api.resource).singular": "glossaryEntry" }, "oneofs": { "data": { "oneof": [ "termsPair", "termsSet" ] } }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "IDENTIFIER" } }, "termsPair": { "type": "GlossaryTermsPair", "id": 2 }, "termsSet": { "type": "GlossaryTermsSet", "id": 3 }, "description": { "type": "string", "id": 4 } }, "nested": { "GlossaryTermsPair": { "fields": { "sourceTerm": { "type": "GlossaryTerm", "id": 1 }, "targetTerm": { "type": "GlossaryTerm", "id": 2 } } }, "GlossaryTermsSet": { "fields": { "terms": { "rule": "repeated", "type": "GlossaryTerm", "id": 1 } } } } }, "GlossaryTerm": { "fields": { "languageCode": { "type": "string", "id": 1 }, "text": { "type": "string", "id": 2 } } }, "ImportDataRequest": { "fields": { "dataset": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "inputConfig": { "type": "DatasetInputConfig", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DatasetInputConfig": { "fields": { "inputFiles": { "rule": "repeated", "type": "InputFile", "id": 1 } }, "nested": { "InputFile": { "oneofs": { "source": { "oneof": [ "gcsSource" ] } }, "fields": { "usage": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "gcsSource": { "type": "GcsInputSource", "id": 3 } } } } }, "ImportDataMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "ExportDataRequest": { "fields": { "dataset": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "outputConfig": { "type": "DatasetOutputConfig", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DatasetOutputConfig": { "oneofs": { "destination": { "oneof": [ "gcsDestination" ] } }, "fields": { "gcsDestination": { "type": "GcsOutputDestination", "id": 1 } } }, "ExportDataMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "DeleteDatasetRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Dataset" } } } }, "DeleteDatasetMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "GetDatasetRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Dataset" } } } }, "ListDatasetsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "pageSize": { "type": "int32", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListDatasetsResponse": { "fields": { "datasets": { "rule": "repeated", "type": "Dataset", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "CreateDatasetRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "dataset": { "type": "Dataset", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "CreateDatasetMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "ListExamplesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Dataset" } }, "filter": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageSize": { "type": "int32", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListExamplesResponse": { "fields": { "examples": { "rule": "repeated", "type": "Example", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "Example": { "options": { "(google.api.resource).type": "translate.googleapis.com/Example", "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}/examples/{example}" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "sourceText": { "type": "string", "id": 2 }, "targetText": { "type": "string", "id": 3 }, "usage": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "BatchTransferResourcesResponse": { "fields": { "responses": { "rule": "repeated", "type": "TransferResourceResponse", "id": 1 } }, "nested": { "TransferResourceResponse": { "fields": { "source": { "type": "string", "id": 1 }, "target": { "type": "string", "id": 2 }, "error": { "type": "google.rpc.Status", "id": 3 } } } } }, "Dataset": { "options": { "(google.api.resource).type": "translate.googleapis.com/Dataset", "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}" }, "fields": { "name": { "type": "string", "id": 1 }, "displayName": { "type": "string", "id": 2 }, "sourceLanguageCode": { "type": "string", "id": 3 }, "targetLanguageCode": { "type": "string", "id": 4 }, "exampleCount": { "type": "int32", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "trainExampleCount": { "type": "int32", "id": 6, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "validateExampleCount": { "type": "int32", "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "testExampleCount": { "type": "int32", "id": 8, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "createTime": { "type": "google.protobuf.Timestamp", "id": 9, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "CreateModelRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "model": { "type": "Model", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "CreateModelMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "ListModelsRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "filter": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageSize": { "type": "int32", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "pageToken": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "ListModelsResponse": { "fields": { "models": { "rule": "repeated", "type": "Model", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 } } }, "GetModelRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Model" } } } }, "DeleteModelRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "translate.googleapis.com/Model" } } } }, "DeleteModelMetadata": { "fields": { "state": { "type": "OperationState", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 3 }, "error": {