diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 7ca392d417b..d13e96ec9da 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7695,7 +7695,7 @@ } } }, - "revision": "20231204", + "revision": "20231208", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -16138,6 +16138,10 @@ "description": "Optional. Disable the logging of search queries sent by human agents. It can prevent those queries from being stored at answer records. Supported features: KNOWLEDGE_SEARCH.", "type": "boolean" }, + "enableConversationAugmentedQuery": { + "description": "Optional. Enable including conversation context during query answer generation. Supported features: KNOWLEDGE_SEARCH.", + "type": "boolean" + }, "enableEventBasedSuggestion": { "description": "Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, ENTITY_EXTRACTION, KNOWLEDGE_ASSIST.", "type": "boolean" @@ -18871,6 +18875,10 @@ "$ref": "GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer" }, "type": "array" + }, + "rewrittenQuery": { + "description": "The rewritten query used to search knowledge.", + "type": "string" } }, "type": "object" diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index ed2d9f50c00..40e57de80a7 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -15970,6 +15970,11 @@ type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfi // stored at answer records. Supported features: KNOWLEDGE_SEARCH. DisableAgentQueryLogging bool `json:"disableAgentQueryLogging,omitempty"` + // EnableConversationAugmentedQuery: Optional. Enable including + // conversation context during query answer generation. Supported + // features: KNOWLEDGE_SEARCH. + EnableConversationAugmentedQuery bool `json:"enableConversationAugmentedQuery,omitempty"` + // EnableEventBasedSuggestion: Automatically iterates all participants // and tries to compile suggestions. Supported features: // ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST, ENTITY_EXTRACTION, @@ -20808,6 +20813,9 @@ type GoogleCloudDialogflowV2beta1SearchKnowledgeResponse struct { // knowledge base, ordered by confidence. Answers []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer `json:"answers,omitempty"` + // RewrittenQuery: The rewritten query used to search knowledge. + RewrittenQuery string `json:"rewrittenQuery,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 4ec63788df0..4270c313b22 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4337,7 +4337,7 @@ } } }, - "revision": "20231204", + "revision": "20231208", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6327,6 +6327,10 @@ "businessDescription": { "description": "Company description, used for LLM prompt, e.g. \"a family company selling freshly roasted coffee beans\".", "type": "string" + }, + "disableDataStoreFallback": { + "description": "Whether to disable fallback to Data Store search results (in case the LLM couldn't pick a proper answer). Per default the feature is enabled.", + "type": "boolean" } }, "type": "object" diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 7dabf2f4375..c07d048d0bf 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -4190,6 +4190,11 @@ type GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings struc // "a family company selling freshly roasted coffee beans". BusinessDescription string `json:"businessDescription,omitempty"` + // DisableDataStoreFallback: Whether to disable fallback to Data Store + // search results (in case the LLM couldn't pick a proper answer). Per + // default the feature is enabled. + DisableDataStoreFallback bool `json:"disableDataStoreFallback,omitempty"` + // ForceSendFields is a list of field names (e.g. "Agent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index d50891eb2e0..10eebe11d67 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -3289,6 +3289,44 @@ } }, "resources": { + "bulkdata": { + "methods": { + "retrieveBulkdata": { + "description": "Returns uncompressed, unencoded bytes representing the referenced bulkdata tag from an instance. See [Retrieve Transaction] (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4){: .external}.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/bulkdata/{bulkdataId}/{bulkdataId1}", + "httpMethod": "GET", + "id": "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata", + "parameterOrder": [ + "parent", + "dicomWebPath" + ], + "parameters": { + "dicomWebPath": { + "description": "Required. The path for the `RetrieveBulkdata` DICOMweb request. For example, `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/bukdata/{bulkdata_uri}`.", + "location": "path", + "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/bulkdata/[^/]+/.*$", + "required": true, + "type": "string" + }, + "parent": { + "description": "Required. The name of the DICOM store that is being accessed. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}", + "response": { + "$ref": "HttpBody" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-healthcare", + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "frames": { "methods": { "retrieveFrames": { @@ -5451,7 +5489,7 @@ } } }, - "revision": "20231127", + "revision": "20231205", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "AccessDeterminationLogConfig": { @@ -7264,6 +7302,10 @@ "description": "Immutable. Whether to disable resource versioning for this FHIR store. This field can not be changed after the creation of FHIR store. If set to false, which is the default behavior, all write operations cause historical versions to be recorded automatically. The historical versions can be fetched through the history APIs, but cannot be updated. If set to true, no historical versions are kept. The server sends errors for attempts to read the historical versions.", "type": "boolean" }, + "enableHistoryModifications": { + "description": "Optional. Whether to allow the [ImportResourcesHistory] and [ExecuteBundle] APIs to accept history bundles, and directly insert and overwrite historical resource versions into the FHIR store. Importing resource histories creates resource interactions that have occurred in the past that clients might not allow. If set to false, using history bundles fail with an error.", + "type": "boolean" + }, "enableUpdateCreate": { "description": "Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). This determines if the client can use an Update operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through the Create operation and attempts to update a non-existent resource return errors. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources.", "type": "boolean" diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index ededaada34a..7b83e53ebff 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -378,6 +378,7 @@ type ProjectsLocationsDatasetsDicomStoresStudiesSeriesService struct { func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService { rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService{s: s} + rs.Bulkdata = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s) rs.Frames = NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s) return rs } @@ -385,9 +386,20 @@ func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService(s *Ser type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesService struct { s *Service + Bulkdata *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService + Frames *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService } +func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService { + rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService{s: s} + return rs +} + +type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService struct { + s *Service +} + func NewProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService(s *Service) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService { rs := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesService{s: s} return rs @@ -4005,6 +4017,15 @@ type FhirStore struct { // read the historical versions. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` + // EnableHistoryModifications: Optional. Whether to allow the + // [ImportResourcesHistory] and [ExecuteBundle] APIs to accept history + // bundles, and directly insert and overwrite historical resource + // versions into the FHIR store. Importing resource histories creates + // resource interactions that have occurred in the past that clients + // might not allow. If set to false, using history bundles fail with an + // error. + EnableHistoryModifications bool `json:"enableHistoryModifications,omitempty"` + // EnableUpdateCreate: Whether this FHIR store has the updateCreate // capability // (https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). @@ -24626,6 +24647,142 @@ func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesRetrieveRende } +// method id "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata": + +type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall struct { + s *Service + parent string + dicomWebPath string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// RetrieveBulkdata: Returns uncompressed, unencoded bytes representing +// the referenced bulkdata tag from an instance. See [Retrieve +// Transaction] +// (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4){: +// .external}. +// +// - dicomWebPath: The path for the `RetrieveBulkdata` DICOMweb request. +// For example, +// `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/bu +// kdata/{bulkdata_uri}`. +// - parent: The name of the DICOM store that is being accessed. For +// example, +// `projects/{project_id}/locations/{location_id}/datasets/{dataset_id} +// /dicomStores/{dicom_store_id}`. +func (r *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataService) RetrieveBulkdata(parent string, dicomWebPath string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall { + c := &ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.dicomWebPath = dicomWebPath + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Context(ctx context.Context) *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + "dicomWebPath": c.dicomWebPath, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata" call. +func (c *ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesBulkdataRetrieveBulkdataCall) Do(opts ...googleapi.CallOption) (*http.Response, error) { + gensupport.SetOptions(c.urlParams_, opts...) + return c.doRequest("") + // { + // "description": "Returns uncompressed, unencoded bytes representing the referenced bulkdata tag from an instance. See [Retrieve Transaction] (http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4){: .external}.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/dicomStores/{dicomStoresId}/dicomWeb/studies/{studiesId}/series/{seriesId}/instances/{instancesId}/bulkdata/{bulkdataId}/{bulkdataId1}", + // "httpMethod": "GET", + // "id": "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.bulkdata.retrieveBulkdata", + // "parameterOrder": [ + // "parent", + // "dicomWebPath" + // ], + // "parameters": { + // "dicomWebPath": { + // "description": "Required. The path for the `RetrieveBulkdata` DICOMweb request. For example, `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/bukdata/{bulkdata_uri}`.", + // "location": "path", + // "pattern": "^studies/[^/]+/series/[^/]+/instances/[^/]+/bulkdata/[^/]+/.*$", + // "required": true, + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the DICOM store that is being accessed. For example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomStores/{dicom_store_id}`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/datasets/[^/]+/dicomStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/dicomWeb/{+dicomWebPath}", + // "response": { + // "$ref": "HttpBody" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-healthcare", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "healthcare.projects.locations.datasets.dicomStores.studies.series.instances.frames.retrieveFrames": type ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstancesFramesRetrieveFramesCall struct {