Skip to content

Commit

Permalink
feat(all): auto-regenerate discovery clients (#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Jul 3, 2024
1 parent 711eb91 commit 6df3749
Show file tree
Hide file tree
Showing 30 changed files with 9,771 additions and 400 deletions.
2,008 changes: 2,007 additions & 1 deletion aiplatform/v1/aiplatform-api.json

Large diffs are not rendered by default.

3,231 changes: 3,209 additions & 22 deletions aiplatform/v1/aiplatform-gen.go

Large diffs are not rendered by default.

287 changes: 274 additions & 13 deletions aiplatform/v1beta1/aiplatform-api.json

Large diffs are not rendered by default.

486 changes: 448 additions & 38 deletions aiplatform/v1beta1/aiplatform-gen.go

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions container/v1/container-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@
}
}
},
"revision": "20240608",
"revision": "20240618",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
Expand Down Expand Up @@ -2592,14 +2592,14 @@
"properties": {
"maxPodsPerNode": {
"$ref": "MaxPodsConstraint",
"description": "The maximum number of pods per node which use this pod network"
"description": "The maximum number of pods per node which use this pod network."
},
"secondaryPodRange": {
"description": "The name of the secondary range on the subnet which provides IP address for this pod range",
"description": "The name of the secondary range on the subnet which provides IP address for this pod range.",
"type": "string"
},
"subnetwork": {
"description": "Name of the subnetwork where the additional pod network belongs",
"description": "Name of the subnetwork where the additional pod network belongs.",
"type": "string"
}
},
Expand Down
6 changes: 3 additions & 3 deletions container/v1/container-gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 115 additions & 9 deletions discoveryengine/v1/discoveryengine-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5711,7 +5711,7 @@
}
}
},
"revision": "20240617",
"revision": "20240701",
"rootUrl": "https://discoveryengine.googleapis.com/",
"schemas": {
"GoogleApiHttpBody": {
Expand Down Expand Up @@ -6657,6 +6657,14 @@
},
"type": "array"
},
"structData": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL).",
"type": "object"
},
"title": {
"description": "Title.",
"type": "string"
Expand Down Expand Up @@ -8038,7 +8046,7 @@
"additionalProperties": {
"$ref": "GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig"
},
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.",
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported.",
"type": "object"
}
},
Expand Down Expand Up @@ -9663,6 +9671,18 @@
"description": "Whether to turn on safe search. This is only supported for website search.",
"type": "boolean"
},
"searchAsYouTypeSpec": {
"$ref": "GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec",
"description": "Search as you type configuration. Only supported for the IndustryVertical.MEDIA vertical."
},
"session": {
"description": "The session resource name. Optional. Session allows users to do multi-turn /search API calls or coordination between /search API calls and /answer API calls. Example #1 (multi-turn /search API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /search API with the session ID generated in the first call. Here, the previous search query gets considered in query standing. I.e., if the first query is \"How did Alphabet do in 2022?\" and the current query is \"How about 2023?\", the current query will be interpreted as \"How did Alphabet do in 2023?\". Example #2 (coordination between /search API calls and /answer API calls): 1. Call /search API with the auto-session mode (see below). 2. Call /answer API with the session ID generated in the first call. Here, the answer generation happens in the context of the search results from the first search call. Auto-session mode: when `projects/.../sessions/-` is used, a new session gets automatically created. Otherwise, users can use the create-session API to create a session manually. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team.",
"type": "string"
},
"sessionSpec": {
"$ref": "GoogleCloudDiscoveryengineV1SearchRequestSessionSpec",
"description": "Session specification. Can be used only when `session` is set."
},
"spellCorrectionSpec": {
"$ref": "GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec",
"description": "The spell correction specification that specifies the mode under which spell correction takes effect."
Expand Down Expand Up @@ -9885,7 +9905,7 @@
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec": {
"description": "A struct to define data stores to filter on in a search call and configurations for those data stores. A maximum of 1 DataStoreSpec per data_store is allowed. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"description": "A struct to define data stores to filter on in a search call and configurations for those data stores. Otherwise, an `INVALID_ARGUMENT` error is returned.",
"id": "GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec",
"properties": {
"dataStore": {
Expand Down Expand Up @@ -10005,6 +10025,43 @@
},
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec": {
"description": "Specification for search as you type in search requests.",
"id": "GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec",
"properties": {
"condition": {
"description": "The condition under which search as you type should occur. Default to Condition.DISABLED.",
"enum": [
"CONDITION_UNSPECIFIED",
"DISABLED",
"ENABLED"
],
"enumDescriptions": [
"Server behavior defaults to Condition.DISABLED.",
"Disables Search As You Type.",
"Enables Search As You Type."
],
"type": "string"
}
},
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchRequestSessionSpec": {
"description": "Session specification. Multi-turn Search feature is currently at private GA stage. Please use v1alpha or v1beta version instead before we launch this feature to public GA. Or ask for allowlisting through Google Support team.",
"id": "GoogleCloudDiscoveryengineV1SearchRequestSessionSpec",
"properties": {
"queryId": {
"description": "If set, the search result gets stored to the \"turn\" specified by this query ID. Example: Let's say the session looks like this: session { name: \".../sessions/xxx\" turns { query { text: \"What is foo?\" query_id: \".../questions/yyy\" } answer: \"Foo is ...\" } turns { query { text: \"How about bar then?\" query_id: \".../questions/zzz\" } } } The user can call /search API with a request like this: session: \".../sessions/xxx\" session_spec { query_id: \".../questions/zzz\" } Then, the API stores the search result, associated with the last turn. The stored search result can be used by a subsequent /answer API call (with the session ID and the query ID specified). Also, it is possible to call /search and /answer in parallel with the same session ID \u0026 query ID.",
"type": "string"
},
"searchResultPersistenceCount": {
"description": "The number of top search results to persist. The persisted search results can be used for the subsequent /answer api call. This field is simliar to the `summary_result_count` field in SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count. At most 10 results for documents mode, or 50 for chunks mode.",
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec": {
"description": "The specification for query spell correction.",
"id": "GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec",
Expand Down Expand Up @@ -10064,6 +10121,10 @@
},
"type": "array"
},
"sessionInfo": {
"$ref": "GoogleCloudDiscoveryengineV1SearchResponseSessionInfo",
"description": "Session information. Only set if SearchRequest.session is provided. See its description for more details."
},
"summary": {
"$ref": "GoogleCloudDiscoveryengineV1SearchResponseSummary",
"description": "A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set."
Expand Down Expand Up @@ -10153,6 +10214,21 @@
},
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchResponseSessionInfo": {
"description": "Information about the session.",
"id": "GoogleCloudDiscoveryengineV1SearchResponseSessionInfo",
"properties": {
"name": {
"description": "Name of the session. If the auto-session mode is used (when SearchRequest.session ends with \"-\"), this field holds the newly generated session name.",
"type": "string"
},
"queryId": {
"description": "Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID. By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call.",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudDiscoveryengineV1SearchResponseSummary": {
"description": "Summary of the top N search results specified by the summary spec.",
"id": "GoogleCloudDiscoveryengineV1SearchResponseSummary",
Expand Down Expand Up @@ -11177,6 +11253,14 @@
},
"type": "array"
},
"structData": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "Data representation. The structured JSON data for the document. It's populated from the struct data from the Document (code pointer: http://shortn/_objzAfIiHq), or the Chunk in search result (code pointer: http://shortn/_Ipo6KFFGBL).",
"type": "object"
},
"title": {
"description": "Title.",
"type": "string"
Expand Down Expand Up @@ -11532,6 +11616,7 @@
"id": "GoogleCloudDiscoveryengineV1alphaCustomTuningModel",
"properties": {
"createTime": {
"deprecated": true,
"description": "Timestamp the Model was created at.",
"format": "google-datetime",
"type": "string"
Expand All @@ -11540,6 +11625,14 @@
"description": "The display name of the model.",
"type": "string"
},
"metrics": {
"additionalProperties": {
"format": "double",
"type": "number"
},
"description": "The metrics of the trained model.",
"type": "object"
},
"modelState": {
"description": "The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).",
"enum": [
Expand All @@ -11548,15 +11641,17 @@
"TRAINING",
"TRAINING_COMPLETE",
"READY_FOR_SERVING",
"TRAINING_FAILED"
"TRAINING_FAILED",
"NO_IMPROVEMENT"
],
"enumDescriptions": [
"Default value.",
"The model is in a paused training state.",
"The model is currently training.",
"The model has successfully completed training.",
"The model is ready for serving.",
"The model training failed."
"The model training failed.",
"The model training finished successfully but metrics did not improve."
],
"type": "string"
},
Expand Down Expand Up @@ -11788,7 +11883,7 @@
"additionalProperties": {
"$ref": "GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig"
},
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.",
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported.",
"type": "object"
}
},
Expand Down Expand Up @@ -13636,6 +13731,7 @@
"id": "GoogleCloudDiscoveryengineV1betaCustomTuningModel",
"properties": {
"createTime": {
"deprecated": true,
"description": "Timestamp the Model was created at.",
"format": "google-datetime",
"type": "string"
Expand All @@ -13644,6 +13740,14 @@
"description": "The display name of the model.",
"type": "string"
},
"metrics": {
"additionalProperties": {
"format": "double",
"type": "number"
},
"description": "The metrics of the trained model.",
"type": "object"
},
"modelState": {
"description": "The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`).",
"enum": [
Expand All @@ -13652,15 +13756,17 @@
"TRAINING",
"TRAINING_COMPLETE",
"READY_FOR_SERVING",
"TRAINING_FAILED"
"TRAINING_FAILED",
"NO_IMPROVEMENT"
],
"enumDescriptions": [
"Default value.",
"The model is in a paused training state.",
"The model is currently training.",
"The model has successfully completed training.",
"The model is ready for serving.",
"The model training failed."
"The model training failed.",
"The model training finished successfully but metrics did not improve."
],
"type": "string"
},
Expand Down Expand Up @@ -13883,7 +13989,7 @@
"additionalProperties": {
"$ref": "GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig"
},
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and or layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and or layout parsing are supported.",
"description": "Map from file type to override the default parsing configuration based on the file type. Supported keys: * `pdf`: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * `html`: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * `docx`: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * `pptx`: Override parsing config for PPTX files, only digital parsing and layout parsing are supported.",
"type": "object"
}
},
Expand Down
Loading

0 comments on commit 6df3749

Please sign in to comment.