Skip to content

Commit

Permalink
feat(language)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### language:v1beta2

The following keys were deleted:
- schemas.XPSColumnSpecForecastingMetadata.description
- schemas.XPSPreprocessResponse.description
- schemas.XPSTrainResponse.description

The following keys were changed:
- schemas.AnnotateTextRequestFeatures.description
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.InfraUsage.description
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
- schemas.Sentiment.description
- schemas.Sentiment.properties.magnitude.description
- schemas.XPSExportModelOutputConfig.properties.outputGcrUri.description
- schemas.XPSExportModelOutputConfig.properties.outputGcsUri.description
- schemas.XPSFileSpec.description
- schemas.XPSFileSpec.properties.fileFormat.enumDescriptions
- schemas.XPSImageExportModelSpec.properties.exportModelOutputConfig.description
- schemas.XPSImageModelArtifactSpec.properties.labelGcsUri.description
- schemas.XPSImageModelArtifactSpec.properties.tfJsBinaryGcsPrefix.description
- schemas.XPSImageModelArtifactSpec.properties.tfLiteMetadataGcsUri.description
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enum
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enumDescriptions
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.servomaticPartitionType.enumDescriptions
- schemas.XPSModelArtifactItem.properties.gcsUri.description
- schemas.XPSResponseExplanationSpec.description
- schemas.XPSTablesDatasetMetadata.description
- schemas.XPSTextComponentModel.description
- schemas.XPSTextComponentModel.properties.partition.enumDescriptions
- schemas.XPSTextComponentModel.properties.submodelType.enumDescriptions
- schemas.XPSVideoExportModelSpec.properties.exportModelOutputConfig.description

#### language:v1

The following keys were deleted:
- schemas.XPSColumnSpecForecastingMetadata.description
- schemas.XPSPreprocessResponse.description
- schemas.XPSTrainResponse.description

The following keys were changed:
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.InfraUsage.description
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
- schemas.XPSExportModelOutputConfig.properties.outputGcrUri.description
- schemas.XPSExportModelOutputConfig.properties.outputGcsUri.description
- schemas.XPSFileSpec.description
- schemas.XPSFileSpec.properties.fileFormat.enumDescriptions
- schemas.XPSImageExportModelSpec.properties.exportModelOutputConfig.description
- schemas.XPSImageModelArtifactSpec.properties.labelGcsUri.description
- schemas.XPSImageModelArtifactSpec.properties.tfJsBinaryGcsPrefix.description
- schemas.XPSImageModelArtifactSpec.properties.tfLiteMetadataGcsUri.description
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enum
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enumDescriptions
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.servomaticPartitionType.enumDescriptions
- schemas.XPSModelArtifactItem.properties.gcsUri.description
- schemas.XPSResponseExplanationSpec.description
- schemas.XPSTablesDatasetMetadata.description
- schemas.XPSTextComponentModel.description
- schemas.XPSTextComponentModel.properties.partition.enumDescriptions
- schemas.XPSTextComponentModel.properties.submodelType.enumDescriptions
- schemas.XPSVideoExportModelSpec.properties.exportModelOutputConfig.description

#### language:v2

The following keys were deleted:
- schemas.XPSColumnSpecForecastingMetadata.description
- schemas.XPSPreprocessResponse.description
- schemas.XPSTrainResponse.description

The following keys were changed:
- schemas.AnalyzeEntitiesResponse.properties.languageCode.description
- schemas.AnalyzeSentimentResponse.properties.languageCode.description
- schemas.AnnotateTextResponse.properties.entities.description
- schemas.AnnotateTextResponse.properties.languageCode.description
- schemas.ClassifyTextResponse.properties.languageCode.description
- schemas.CpuMetric.properties.machineSpec.enum
- schemas.CpuMetric.properties.machineSpec.enumDescriptions
- schemas.Entity.properties.sentiment.description
- schemas.EntityMention.properties.sentiment.description
- schemas.GpuMetric.properties.machineSpec.enum
- schemas.GpuMetric.properties.machineSpec.enumDescriptions
- schemas.InfraUsage.description
- schemas.ModerateTextResponse.properties.languageCode.description
- schemas.RamMetric.properties.machineSpec.enum
- schemas.RamMetric.properties.machineSpec.enumDescriptions
- schemas.Sentiment.properties.magnitude.description
- schemas.XPSExportModelOutputConfig.properties.outputGcrUri.description
- schemas.XPSExportModelOutputConfig.properties.outputGcsUri.description
- schemas.XPSFileSpec.description
- schemas.XPSFileSpec.properties.fileFormat.enumDescriptions
- schemas.XPSImageExportModelSpec.properties.exportModelOutputConfig.description
- schemas.XPSImageModelArtifactSpec.properties.labelGcsUri.description
- schemas.XPSImageModelArtifactSpec.properties.tfJsBinaryGcsPrefix.description
- schemas.XPSImageModelArtifactSpec.properties.tfLiteMetadataGcsUri.description
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enum
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.computeEngineAcceleratorType.enumDescriptions
- schemas.XPSImageModelServingSpecModelThroughputEstimation.properties.servomaticPartitionType.enumDescriptions
- schemas.XPSModelArtifactItem.properties.gcsUri.description
- schemas.XPSResponseExplanationSpec.description
- schemas.XPSTablesDatasetMetadata.description
- schemas.XPSTextComponentModel.description
- schemas.XPSTextComponentModel.properties.partition.enumDescriptions
- schemas.XPSTextComponentModel.properties.submodelType.enumDescriptions
- schemas.XPSVideoExportModelSpec.properties.exportModelOutputConfig.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 29, 2025
1 parent 62f3593 commit ab1d906
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 153 deletions.
47 changes: 26 additions & 21 deletions discovery/language-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
}
}
},
"revision": "20240929",
"revision": "20250105",
"rootUrl": "https://language.googleapis.com/",
"schemas": {
"AnalyzeEntitiesRequest": {
Expand Down Expand Up @@ -761,6 +761,7 @@
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"A3_ULTRAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1050,6 +1051,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -1486,6 +1488,7 @@
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"A3_ULTRAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -1775,6 +1778,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand All @@ -1790,7 +1794,7 @@
"type": "object"
},
"InfraUsage": {
"description": "Infra Usage of billing metrics. Next ID: 6",
"description": "Infra Usage of billing metrics.",
"id": "InfraUsage",
"properties": {
"cpuMetrics": {
Expand Down Expand Up @@ -2170,6 +2174,7 @@
"A3_HIGHGPU_4G",
"A3_HIGHGPU_8G",
"A3_MEGAGPU_8G",
"A3_ULTRAGPU_8G",
"E2_STANDARD_2",
"E2_STANDARD_4",
"E2_STANDARD_8",
Expand Down Expand Up @@ -2459,6 +2464,7 @@
"",
"",
"",
"",
""
],
"type": "string"
Expand Down Expand Up @@ -2889,7 +2895,6 @@
"type": "object"
},
"XPSColumnSpecForecastingMetadata": {
"description": "=========================================================================== # The fields below are used exclusively for Forecasting.",
"id": "XPSColumnSpecForecastingMetadata",
"properties": {
"columnType": {
Expand Down Expand Up @@ -3382,11 +3387,11 @@
"type": "boolean"
},
"outputGcrUri": {
"description": "The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER.",
"description": "The Google Contained Registry path the exported files to be pushed to. This location is set if the exported format is DOCKDER.",
"type": "string"
},
"outputGcsUri": {
"description": "The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory",
"description": "The Google Cloud Storage directory where XPS will output the exported models and related files. Format: gs://bucket/directory",
"type": "string"
},
"tfJsFormat": {
Expand All @@ -3402,7 +3407,7 @@
"type": "object"
},
"XPSFileSpec": {
"description": "Spec of input and output files, on external file systems (CNS, GCS, etc).",
"description": "Spec of input and output files, on external file systems (for example, Colossus Namespace System or Google Cloud Storage).",
"id": "XPSFileSpec",
"properties": {
"directoryPath": {
Expand Down Expand Up @@ -3430,7 +3435,7 @@
"enumDescriptions": [
"",
"",
"Internal format for parallel text data used by Google Translate. go/rkvtools",
"Internal format for parallel text data used by Google Translate.",
"",
"Only the lexicographically first file described by the file_spec contains the header line.",
""
Expand Down Expand Up @@ -3559,7 +3564,7 @@
"id": "XPSImageExportModelSpec",
"properties": {
"exportModelOutputConfig": {
"description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.",
"description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.",
"items": {
"$ref": "XPSExportModelOutputConfig"
},
Expand All @@ -3584,19 +3589,19 @@
"type": "array"
},
"labelGcsUri": {
"description": "GCS uri of decoded labels file for model export 'dict.txt'.",
"description": "Google Cloud Storage URI of decoded labels file for model export 'dict.txt'.",
"type": "string"
},
"servingArtifact": {
"$ref": "XPSModelArtifactItem",
"description": "The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API."
},
"tfJsBinaryGcsPrefix": {
"description": "GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated.",
"description": "Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'. Deprecated.",
"type": "string"
},
"tfLiteMetadataGcsUri": {
"description": "GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'.",
"description": "Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'.",
"type": "string"
}
},
Expand Down Expand Up @@ -3641,6 +3646,7 @@
"NVIDIA_L4",
"NVIDIA_H100_80GB",
"NVIDIA_H100_MEGA_80GB",
"NVIDIA_H200_141GB",
"TPU_V2",
"TPU_V3",
"TPU_V4_POD",
Expand All @@ -3658,6 +3664,7 @@
"Nvidia L4 GPU.",
"Nvidia H100 80Gb GPU.",
"Nvidia H100 80Gb GPU.",
"Nvidia H200 141Gb GPU.",
"TPU v2 (JellyFish).",
"TPU v3 (DragonFish).",
"TPU_v4 (PufferFish).",
Expand Down Expand Up @@ -3688,7 +3695,7 @@
"",
"The default partition.",
"It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.",
"To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.",
"To be used by customers with Jellyfish-accelerated ops.",
"The partition used by regionalized servomatic cloud regions.",
"The partition used for loading models from custom storage."
],
Expand Down Expand Up @@ -3948,14 +3955,13 @@
"type": "string"
},
"gcsUri": {
"description": "The Google Cloud Storage (GCS) uri that stores the model binary files.",
"description": "The Google Cloud Storage URI that stores the model binary files.",
"type": "string"
}
},
"type": "object"
},
"XPSPreprocessResponse": {
"description": "Next ID: 8",
"id": "XPSPreprocessResponse",
"properties": {
"outputExampleSet": {
Expand Down Expand Up @@ -4129,7 +4135,7 @@
},
"XPSResponseExplanationSpec": {
"deprecated": true,
"description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated, see b/288407203 for context.",
"description": "Specification of Model explanation. Feature-based XAI in AutoML Vision ICN is deprecated.",
"id": "XPSResponseExplanationSpec",
"properties": {
"explanationType": {
Expand Down Expand Up @@ -4585,7 +4591,7 @@
"type": "object"
},
"XPSTablesDatasetMetadata": {
"description": "Metadata for a dataset used for AutoML Tables. Next ID: 6",
"description": "Metadata for a dataset used for AutoML Tables.",
"id": "XPSTablesDatasetMetadata",
"properties": {
"mlUseColumnId": {
Expand Down Expand Up @@ -4829,7 +4835,7 @@
"type": "object"
},
"XPSTextComponentModel": {
"description": "Component model. Next ID: 10",
"description": "Component model.",
"id": "XPSTextComponentModel",
"properties": {
"batchPredictionModelGcsUri": {
Expand All @@ -4854,7 +4860,7 @@
"",
"The default partition.",
"It has significantly lower replication than partition-0 and is located in the US only. It also has a larger model size limit and higher default RAM quota than partition-0. Customers with batch traffic, US-based traffic, or very large models should use this partition. Capacity in this partition is significantly cheaper than partition-0.",
"To be used by customers with Jellyfish-accelerated ops. See go/servomatic-jellyfish for details.",
"To be used by customers with Jellyfish-accelerated ops.",
"The partition used by regionalized servomatic cloud regions.",
"The partition used for loading models from custom storage."
],
Expand Down Expand Up @@ -4899,7 +4905,7 @@
"",
"Model type for entity extraction.",
"Model type for relationship extraction.",
"A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model. Please refer to go/cnl-composite-models for more information.",
"A composite model represents a set of component models that have to be used together for prediction. A composite model appears to be a single model to the model user. It may contain only one component model.",
"Model type used to train default, MA, and ATC models in a single batch worker pipeline.",
"BERT pipeline needs a specific model type, since it uses a different TFX configuration compared with DEFAULT (despite sharing most of the code).",
"Model type for EncPaLM."
Expand Down Expand Up @@ -5134,7 +5140,6 @@
"type": "object"
},
"XPSTrainResponse": {
"description": "Next ID: 18",
"id": "XPSTrainResponse",
"properties": {
"deployedModelSizeBytes": {
Expand Down Expand Up @@ -5411,7 +5416,7 @@
"id": "XPSVideoExportModelSpec",
"properties": {
"exportModelOutputConfig": {
"description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.",
"description": "Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files.",
"items": {
"$ref": "XPSExportModelOutputConfig"
},
Expand Down
Loading

0 comments on commit ab1d906

Please sign in to comment.