From b44a3cb032d7cf5ae68cc7a23bb24a66d86e2981 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 19 Apr 2025 07:11:44 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- .../v1/accesscontextmanager-api.json | 6 +- .../v1/accesscontextmanager-gen.go | 18 +- alloydb/v1/alloydb-api.json | 14 +- alloydb/v1/alloydb-gen.go | 23 +- appengine/v1/appengine-api.json | 69 +- appengine/v1/appengine-gen.go | 166 ++ appengine/v1alpha/appengine-api.json | 14 +- appengine/v1alpha/appengine-gen.go | 16 + apphub/v1/apphub-api.json | 8 +- apphub/v1/apphub-gen.go | 8 + apphub/v1alpha/apphub-api.json | 8 +- apphub/v1alpha/apphub-gen.go | 8 + cloudfunctions/v2/cloudfunctions-api.json | 9 +- cloudfunctions/v2/cloudfunctions-gen.go | 21 + .../v2alpha/cloudfunctions-api.json | 9 +- cloudfunctions/v2alpha/cloudfunctions-gen.go | 21 + cloudfunctions/v2beta/cloudfunctions-api.json | 9 +- cloudfunctions/v2beta/cloudfunctions-gen.go | 21 + cloudtrace/v1/cloudtrace-api.json | 4 +- cloudtrace/v1/cloudtrace-gen.go | 8 +- cloudtrace/v2/cloudtrace-api.json | 6 +- cloudtrace/v2/cloudtrace-gen.go | 6 +- .../v1/contactcenterinsights-api.json | 557 ++++- .../v1/contactcenterinsights-gen.go | 2021 ++++++++++++++++- .../v1/containeranalysis-api.json | 12 +- .../v1alpha1/containeranalysis-api.json | 14 +- .../v1alpha1/containeranalysis-gen.go | 2 +- .../v1beta1/containeranalysis-api.json | 12 +- datafusion/v1/datafusion-api.json | 15 +- datafusion/v1/datafusion-gen.go | 12 + datafusion/v1beta1/datafusion-api.json | 15 +- datafusion/v1beta1/datafusion-gen.go | 12 + dialogflow/v2/dialogflow-api.json | 6 +- dialogflow/v2/dialogflow-gen.go | 2 +- dialogflow/v2beta1/dialogflow-api.json | 42 +- dialogflow/v2beta1/dialogflow-gen.go | 42 +- dialogflow/v3/dialogflow-api.json | 6 +- dialogflow/v3/dialogflow-gen.go | 2 +- dialogflow/v3beta1/dialogflow-api.json | 652 +++++- dialogflow/v3beta1/dialogflow-gen.go | 1006 +++++++- documentai/v1/documentai-api.json | 10 +- documentai/v1/documentai-gen.go | 5 + firebaseml/v2beta/firebaseml-api.json | 22 +- firebaseml/v2beta/firebaseml-gen.go | 6 +- meet/v2/meet-api.json | 10 +- meet/v2/meet-gen.go | 22 +- .../conversions_v1beta/merchantapi-api.json | 31 +- .../conversions_v1beta/merchantapi-gen.go | 51 +- .../datasources_v1beta/merchantapi-api.json | 6 +- .../datasources_v1beta/merchantapi-gen.go | 4 +- metastore/v1alpha/metastore-api.json | 9 +- metastore/v1alpha/metastore-gen.go | 5 + .../v1alpha1/migrationcenter-api.json | 26 +- .../v1alpha1/migrationcenter-gen.go | 28 + .../v1/networkmanagement-api.json | 92 +- networkmanagement/v1/networkmanagement-gen.go | 99 +- pubsub/v1/pubsub-api.json | 4 +- pubsub/v1/pubsub-gen.go | 2 +- .../v1/servicemanagement-api.json | 4 +- servicemanagement/v1/servicemanagement-gen.go | 4 +- tpu/v2/tpu-api.json | 58 +- tpu/v2/tpu-gen.go | 49 + tpu/v2alpha1/tpu-api.json | 22 +- tpu/v2alpha1/tpu-gen.go | 13 + 64 files changed, 5281 insertions(+), 203 deletions(-) diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 847ae4cce81..78798bb9054 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1206,7 +1206,7 @@ ], "parameters": { "append": { - "description": "Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings with reauth_settings supports appending. Global access_levels, access_levels in scoped_access_settings, dry_run_access_levels, reauth_settings, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when \"scoped_access_settings\" is not set in the update_mask.", + "description": "Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings with session_settings supports appending. Global access_levels, access_levels in scoped_access_settings, dry_run_access_levels, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when \"scoped_access_settings\" is not set in the update_mask.", "location": "query", "type": "boolean" }, @@ -1218,7 +1218,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` `session_settings`, `scoped_access_settings`. update_mask { paths: \"access_levels\" }", + "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `session_settings`, `scoped_access_settings`. update_mask { paths: \"access_levels\" }", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1295,7 +1295,7 @@ } } }, - "revision": "20250312", + "revision": "20250412", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 92b3094325e..5a0822eef41 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -6706,13 +6706,12 @@ func (r *OrganizationsGcpUserAccessBindingsService) Patch(name string, gcpuserac // Append sets the optional parameter "append": This field controls whether or // not certain repeated settings in the update request overwrite or append to // existing settings on the binding. If true, then append. Otherwise overwrite. -// So far, only scoped_access_settings with reauth_settings supports appending. -// Global access_levels, access_levels in scoped_access_settings, -// dry_run_access_levels, reauth_settings, and session_settings are not -// compatible with append functionality, and the request will return an error -// if append=true when these settings are in the update_mask. The request will -// also return an error if append=true when "scoped_access_settings" is not set -// in the update_mask. +// So far, only scoped_access_settings with session_settings supports +// appending. Global access_levels, access_levels in scoped_access_settings, +// dry_run_access_levels, and session_settings are not compatible with append +// functionality, and the request will return an error if append=true when +// these settings are in the update_mask. The request will also return an error +// if append=true when "scoped_access_settings" is not set in the update_mask. func (c *OrganizationsGcpUserAccessBindingsPatchCall) Append(append bool) *OrganizationsGcpUserAccessBindingsPatchCall { c.urlParams_.Set("append", fmt.Sprint(append)) return c @@ -6721,9 +6720,8 @@ func (c *OrganizationsGcpUserAccessBindingsPatchCall) Append(append bool) *Organ // UpdateMask sets the optional parameter "updateMask": Required. Only the // fields specified in this mask are updated. Because name and group_key cannot // be changed, update_mask is required and may only contain the following -// fields: `access_levels`, `dry_run_access_levels`, `reauth_settings` -// `session_settings`, `scoped_access_settings`. update_mask { paths: -// "access_levels" } +// fields: `access_levels`, `dry_run_access_levels`, `session_settings`, +// `scoped_access_settings`. update_mask { paths: "access_levels" } func (c *OrganizationsGcpUserAccessBindingsPatchCall) UpdateMask(updateMask string) *OrganizationsGcpUserAccessBindingsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 6c4d416eecf..16f9818c60e 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1622,7 +1622,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1699,6 +1699,12 @@ "readOnly": true, "type": "string" }, + "createCompletionTime": { + "description": "Output only. Timestamp when the resource finished being created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "createTime": { "description": "Output only. Create time stamp", "format": "google-datetime", @@ -3478,7 +3484,7 @@ "type": "string" }, "consumerNetworkStatus": { - "description": "Output only. The status of the service connection policy.", + "description": "Output only. The status of the service connection policy. Possible values: \"STATE_UNSPECIFIED\" - Default state, when Connection Map is created initially. \"VALID\" - Set when policy and map configuration is valid, and their matching can lead to allowing creation of PSC Connections subject to other constraints like connections limit. \"CONNECTION_POLICY_MISSING\" - No Service Connection Policy found for this network and Service Class \"POLICY_LIMIT_REACHED\" - Service Connection Policy limit reached for this network and Service Class \"CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED\" - The consumer instance project is not in AllowedGoogleProducersResourceHierarchyLevels of the matching ServiceConnectionPolicy.", "readOnly": true, "type": "string" }, @@ -3492,7 +3498,7 @@ "type": "string" }, "status": { - "description": "Output only. The status of the PSC service automation connection.", + "description": "Output only. The status of the PSC service automation connection. Possible values: \"STATE_UNSPECIFIED\" - An invalid state as the default case. \"ACTIVE\" - The connection has been created successfully. \"FAILED\" - The connection is not functional since some resources on the connection fail to be created. \"CREATING\" - The connection is being created. \"DELETING\" - The connection is being deleted. \"CREATE_REPAIRING\" - The connection is being repaired to complete creation. \"DELETE_REPAIRING\" - The connection is being repaired to complete deletion.", "readOnly": true, "type": "string" } @@ -3666,7 +3672,7 @@ "type": "object" }, "RestoreClusterRequest": { - "description": "Message for restoring a Cluster from a backup or another cluster at a given point in time.", + "description": "Message for restoring a Cluster from a backup or another cluster at a given point in time. NEXT_ID: 11", "id": "RestoreClusterRequest", "properties": { "backupSource": { diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index 304c6343ca7..976ec10a6db 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -329,6 +329,9 @@ type Backup struct { // ClusterUid: Output only. The system-generated UID of the cluster which was // used to create this resource. ClusterUid string `json:"clusterUid,omitempty"` + // CreateCompletionTime: Output only. Timestamp when the resource finished + // being created. + CreateCompletionTime string `json:"createCompletionTime,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` // DatabaseVersion: Output only. The database engine major version of the @@ -2328,7 +2331,16 @@ type PscAutoConnectionConfig struct { // network might be hosted a different project than the consumer project. ConsumerNetwork string `json:"consumerNetwork,omitempty"` // ConsumerNetworkStatus: Output only. The status of the service connection - // policy. + // policy. Possible values: "STATE_UNSPECIFIED" - Default state, when + // Connection Map is created initially. "VALID" - Set when policy and map + // configuration is valid, and their matching can lead to allowing creation of + // PSC Connections subject to other constraints like connections limit. + // "CONNECTION_POLICY_MISSING" - No Service Connection Policy found for this + // network and Service Class "POLICY_LIMIT_REACHED" - Service Connection Policy + // limit reached for this network and Service Class + // "CONSUMER_INSTANCE_PROJECT_NOT_ALLOWLISTED" - The consumer instance project + // is not in AllowedGoogleProducersResourceHierarchyLevels of the matching + // ServiceConnectionPolicy. ConsumerNetworkStatus string `json:"consumerNetworkStatus,omitempty"` // ConsumerProject: The consumer project to which the PSC service automation // endpoint will be created. @@ -2337,6 +2349,13 @@ type PscAutoConnectionConfig struct { // endpoint. IpAddress string `json:"ipAddress,omitempty"` // Status: Output only. The status of the PSC service automation connection. + // Possible values: "STATE_UNSPECIFIED" - An invalid state as the default case. + // "ACTIVE" - The connection has been created successfully. "FAILED" - The + // connection is not functional since some resources on the connection fail to + // be created. "CREATING" - The connection is being created. "DELETING" - The + // connection is being deleted. "CREATE_REPAIRING" - The connection is being + // repaired to complete creation. "DELETE_REPAIRING" - The connection is being + // repaired to complete deletion. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to // unconditionally include in API requests. By default, fields with empty or @@ -2623,7 +2642,7 @@ func (s RestartInstanceRequest) MarshalJSON() ([]byte, error) { } // RestoreClusterRequest: Message for restoring a Cluster from a backup or -// another cluster at a given point in time. +// another cluster at a given point in time. NEXT_ID: 11 type RestoreClusterRequest struct { // BackupSource: Backup source. BackupSource *BackupSource `json:"backupSource,omitempty"` diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index fc21004faaa..c311dd9b542 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -958,6 +958,12 @@ "required": true, "type": "string" }, + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", "location": "query", @@ -1862,6 +1868,67 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "patch": { + "description": "Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses:Standard environment instance_class (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic scaling in the standard environment: automatic_scaling.min_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_idle_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automaticScaling.standard_scheduler_settings.max_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.min_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_cpu_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) automaticScaling.standard_scheduler_settings.target_throughput_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic scaling or manual scaling in the standard environment: serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible environment serving_status (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic scaling in the flexible environment: automatic_scaling.min_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.max_total_instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cool_down_period_sec (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) automatic_scaling.cpu_utilization.target_utilization (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)manual scaling in the flexible environment: manual_scaling.instances (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}", + "httpMethod": "PATCH", + "id": "appengine.projects.locations.applications.services.versions.patch", + "parameterOrder": [ + "projectsId", + "locationsId", + "applicationsId", + "servicesId", + "versionsId" + ], + "parameters": { + "applicationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "locationsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "projectsId": { + "description": "Part of `name`. Name of the resource to update. Example: apps/myapp/services/default/versions/1.", + "location": "path", + "required": true, + "type": "string" + }, + "servicesId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Standard field mask for the set of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "versionsId": { + "description": "Part of `name`. See documentation of `projectsId`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}", + "request": { + "$ref": "Version" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1874,7 +1941,7 @@ } } }, - "revision": "20250310", + "revision": "20250409", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index cee493148a7..51b9b221a5e 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -6415,6 +6415,14 @@ func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *AppsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *AppsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 @@ -9003,3 +9011,161 @@ func (c *ProjectsLocationsApplicationsServicesVersionsDeleteCall) Do(opts ...goo c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.services.versions.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } + +type ProjectsLocationsApplicationsServicesVersionsPatchCall struct { + s *APIService + projectsId string + locationsId string + applicationsId string + servicesId string + versionsId string + version *Version + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified Version resource. You can specify the following +// fields depending on the App Engine environment and type of scaling that the +// version resource uses:Standard environment instance_class +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class)automatic +// scaling in the standard environment: automatic_scaling.min_idle_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) +// automatic_scaling.max_idle_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) +// automaticScaling.standard_scheduler_settings.max_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) +// automaticScaling.standard_scheduler_settings.min_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) +// automaticScaling.standard_scheduler_settings.target_cpu_utilization +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) +// automaticScaling.standard_scheduler_settings.target_throughput_utilization +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings)basic +// scaling or manual scaling in the standard environment: serving_status +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) +// manual_scaling.instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)Flexible +// environment serving_status +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status)automatic +// scaling in the flexible environment: automatic_scaling.min_total_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) +// automatic_scaling.max_total_instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) +// automatic_scaling.cool_down_period_sec +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) +// automatic_scaling.cpu_utilization.target_utilization +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling)manual +// scaling in the flexible environment: manual_scaling.instances +// (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling) +// +// - applicationsId: Part of `name`. See documentation of `projectsId`. +// - locationsId: Part of `name`. See documentation of `projectsId`. +// - projectsId: Part of `name`. Name of the resource to update. Example: +// apps/myapp/services/default/versions/1. +// - servicesId: Part of `name`. See documentation of `projectsId`. +// - versionsId: Part of `name`. See documentation of `projectsId`. +func (r *ProjectsLocationsApplicationsServicesVersionsService) Patch(projectsId string, locationsId string, applicationsId string, servicesId string, versionsId string, version *Version) *ProjectsLocationsApplicationsServicesVersionsPatchCall { + c := &ProjectsLocationsApplicationsServicesVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectsId = projectsId + c.locationsId = locationsId + c.applicationsId = applicationsId + c.servicesId = servicesId + c.versionsId = versionsId + c.version = version + return c +} + +// UpdateMask sets the optional parameter "updateMask": Standard field mask for +// the set of fields to be updated. +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsApplicationsServicesVersionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsServicesVersionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsApplicationsServicesVersionsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.version) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}/versions/{versionsId}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectsId": c.projectsId, + "locationsId": c.locationsId, + "applicationsId": c.applicationsId, + "servicesId": c.servicesId, + "versionsId": c.versionsId, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.services.versions.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "appengine.projects.locations.applications.services.versions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsApplicationsServicesVersionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "appengine.projects.locations.applications.services.versions.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} diff --git a/appengine/v1alpha/appengine-api.json b/appengine/v1alpha/appengine-api.json index fb6d3ba8f92..2810b3f4b79 100644 --- a/appengine/v1alpha/appengine-api.json +++ b/appengine/v1alpha/appengine-api.json @@ -598,6 +598,12 @@ "required": true, "type": "string" }, + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", "location": "query", @@ -754,6 +760,12 @@ "projectsId" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in AIP-160 (https://google.aip.dev/160).", "location": "query", @@ -946,7 +958,7 @@ } } }, - "revision": "20241118", + "revision": "20250409", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "AuthorizedCertificate": { diff --git a/appengine/v1alpha/appengine-gen.go b/appengine/v1alpha/appengine-gen.go index e390d7201f7..13e40a8532e 100644 --- a/appengine/v1alpha/appengine-gen.go +++ b/appengine/v1alpha/appengine-gen.go @@ -2962,6 +2962,14 @@ func (r *AppsLocationsService) List(appsId string) *AppsLocationsListCall { return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *AppsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *AppsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 @@ -3498,6 +3506,14 @@ func (r *ProjectsLocationsService) List(projectsId string) *ProjectsLocationsLis return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/apphub/v1/apphub-api.json b/apphub/v1/apphub-api.json index 905adb512a8..96ac21f67df 100644 --- a/apphub/v1/apphub-api.json +++ b/apphub/v1/apphub-api.json @@ -171,6 +171,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -1346,7 +1352,7 @@ } } }, - "revision": "20250115", + "revision": "20250414", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { diff --git a/apphub/v1/apphub-gen.go b/apphub/v1/apphub-gen.go index 7fb9ff96a5a..abc2cc36551 100644 --- a/apphub/v1/apphub-gen.go +++ b/apphub/v1/apphub-gen.go @@ -1972,6 +1972,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/apphub/v1alpha/apphub-api.json b/apphub/v1alpha/apphub-api.json index ee6fd84cb23..a8a3cbe4e24 100644 --- a/apphub/v1alpha/apphub-api.json +++ b/apphub/v1alpha/apphub-api.json @@ -171,6 +171,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -1438,7 +1444,7 @@ } } }, - "revision": "20250115", + "revision": "20250414", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { diff --git a/apphub/v1alpha/apphub-gen.go b/apphub/v1alpha/apphub-gen.go index b1087ea377b..41d60842bab 100644 --- a/apphub/v1alpha/apphub-gen.go +++ b/apphub/v1alpha/apphub-gen.go @@ -2037,6 +2037,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index a125ac084c4..1fe6d4c449e 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -750,7 +750,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1994,7 +1994,12 @@ "SetupFunctionUpgradeConfigRequest": { "description": "Request for the `SetupFunctionUpgradeConfig` method.", "id": "SetupFunctionUpgradeConfigRequest", - "properties": {}, + "properties": { + "triggerServiceAccount": { + "description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.", + "type": "string" + } + }, "type": "object" }, "Source": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index fa93dbc3cc2..ea878bc02a9 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -1749,6 +1749,27 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // SetupFunctionUpgradeConfigRequest: Request for the // `SetupFunctionUpgradeConfig` method. type SetupFunctionUpgradeConfigRequest struct { + // TriggerServiceAccount: Optional. The trigger's service account. The service + // account must have permission to invoke Cloud Run services, the permission is + // `run.routes.invoke`. If empty, defaults to the Compute Engine default + // service account: `{project_number}-compute@developer.gserviceaccount.com`. + TriggerServiceAccount string `json:"triggerServiceAccount,omitempty"` + // ForceSendFields is a list of field names (e.g. "TriggerServiceAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TriggerServiceAccount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SetupFunctionUpgradeConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetupFunctionUpgradeConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: The location of the function source code. diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 33aa9c370a0..85a0e0ee631 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -750,7 +750,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1994,7 +1994,12 @@ "SetupFunctionUpgradeConfigRequest": { "description": "Request for the `SetupFunctionUpgradeConfig` method.", "id": "SetupFunctionUpgradeConfigRequest", - "properties": {}, + "properties": { + "triggerServiceAccount": { + "description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.", + "type": "string" + } + }, "type": "object" }, "Source": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 1ebde2e0012..dc5decb1a09 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1749,6 +1749,27 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // SetupFunctionUpgradeConfigRequest: Request for the // `SetupFunctionUpgradeConfig` method. type SetupFunctionUpgradeConfigRequest struct { + // TriggerServiceAccount: Optional. The trigger's service account. The service + // account must have permission to invoke Cloud Run services, the permission is + // `run.routes.invoke`. If empty, defaults to the Compute Engine default + // service account: `{project_number}-compute@developer.gserviceaccount.com`. + TriggerServiceAccount string `json:"triggerServiceAccount,omitempty"` + // ForceSendFields is a list of field names (e.g. "TriggerServiceAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TriggerServiceAccount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SetupFunctionUpgradeConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetupFunctionUpgradeConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: The location of the function source code. diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 9ac9e351122..b5f28bc971a 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -750,7 +750,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { @@ -1994,7 +1994,12 @@ "SetupFunctionUpgradeConfigRequest": { "description": "Request for the `SetupFunctionUpgradeConfig` method.", "id": "SetupFunctionUpgradeConfigRequest", - "properties": {}, + "properties": { + "triggerServiceAccount": { + "description": "Optional. The trigger's service account. The service account must have permission to invoke Cloud Run services, the permission is `run.routes.invoke`. If empty, defaults to the Compute Engine default service account: `{project_number}-compute@developer.gserviceaccount.com`.", + "type": "string" + } + }, "type": "object" }, "Source": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 4649887bbce..9a511f327b0 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1749,6 +1749,27 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { // SetupFunctionUpgradeConfigRequest: Request for the // `SetupFunctionUpgradeConfig` method. type SetupFunctionUpgradeConfigRequest struct { + // TriggerServiceAccount: Optional. The trigger's service account. The service + // account must have permission to invoke Cloud Run services, the permission is + // `run.routes.invoke`. If empty, defaults to the Compute Engine default + // service account: `{project_number}-compute@developer.gserviceaccount.com`. + TriggerServiceAccount string `json:"triggerServiceAccount,omitempty"` + // ForceSendFields is a list of field names (e.g. "TriggerServiceAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "TriggerServiceAccount") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SetupFunctionUpgradeConfigRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetupFunctionUpgradeConfigRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Source: The location of the function source code. diff --git a/cloudtrace/v1/cloudtrace-api.json b/cloudtrace/v1/cloudtrace-api.json index 3c14bffdfbb..a1f23de439b 100644 --- a/cloudtrace/v1/cloudtrace-api.json +++ b/cloudtrace/v1/cloudtrace-api.json @@ -114,7 +114,7 @@ "projects": { "methods": { "patchTraces": { - "description": "Sends new traces to Cloud Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.", + "description": "Sends trace spans to Cloud Trace. Spans cannot be updated. If the trace ID and span ID already exist, an additional copy of the span will be stored.", "flatPath": "v1/projects/{projectId}/traces", "httpMethod": "PATCH", "id": "cloudtrace.projects.patchTraces", @@ -257,7 +257,7 @@ } } }, - "revision": "20240816", + "revision": "20250411", "rootUrl": "https://cloudtrace.googleapis.com/", "schemas": { "Empty": { diff --git a/cloudtrace/v1/cloudtrace-gen.go b/cloudtrace/v1/cloudtrace-gen.go index c65b5b31999..8f2e0d0b3b5 100644 --- a/cloudtrace/v1/cloudtrace-gen.go +++ b/cloudtrace/v1/cloudtrace-gen.go @@ -349,11 +349,9 @@ type ProjectsPatchTracesCall struct { header_ http.Header } -// PatchTraces: Sends new traces to Cloud Trace or updates existing traces. If -// the ID of a trace that you send matches that of an existing trace, any -// fields in the existing trace and its spans are overwritten by the provided -// values, and any new fields provided are merged with the existing trace data. -// If the ID does not match, a new trace is created. +// PatchTraces: Sends trace spans to Cloud Trace. Spans cannot be updated. If +// the trace ID and span ID already exist, an additional copy of the span will +// be stored. // // - projectId: ID of the Cloud project where the trace data is stored. func (r *ProjectsService) PatchTraces(projectId string, traces *Traces) *ProjectsPatchTracesCall { diff --git a/cloudtrace/v2/cloudtrace-api.json b/cloudtrace/v2/cloudtrace-api.json index bf9df73e5b2..57878bc8c73 100644 --- a/cloudtrace/v2/cloudtrace-api.json +++ b/cloudtrace/v2/cloudtrace-api.json @@ -113,7 +113,7 @@ "traces": { "methods": { "batchWrite": { - "description": "Batch writes new spans to new or existing traces. You cannot update existing spans.", + "description": "Batch writes new spans to new or existing traces. You cannot update existing spans. If a span ID already exists, an additional copy of the span will be stored.", "flatPath": "v2/projects/{projectsId}/traces:batchWrite", "httpMethod": "POST", "id": "cloudtrace.projects.traces.batchWrite", @@ -146,7 +146,7 @@ "spans": { "methods": { "createSpan": { - "description": "Creates a new span.", + "description": "Creates a new span. If a span ID already exists, an additional copy of the span will be stored.", "flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}", "httpMethod": "POST", "id": "cloudtrace.projects.traces.spans.createSpan", @@ -181,7 +181,7 @@ } } }, - "revision": "20230511", + "revision": "20250411", "rootUrl": "https://cloudtrace.googleapis.com/", "schemas": { "Annotation": { diff --git a/cloudtrace/v2/cloudtrace-gen.go b/cloudtrace/v2/cloudtrace-gen.go index 3ef0d620617..8df6b023a53 100644 --- a/cloudtrace/v2/cloudtrace-gen.go +++ b/cloudtrace/v2/cloudtrace-gen.go @@ -765,7 +765,8 @@ type ProjectsTracesBatchWriteCall struct { } // BatchWrite: Batch writes new spans to new or existing traces. You cannot -// update existing spans. +// update existing spans. If a span ID already exists, an additional copy of +// the span will be stored. // // - name: The name of the project where the spans belong. The format is // `projects/[PROJECT_ID]`. @@ -869,7 +870,8 @@ type ProjectsTracesSpansCreateSpanCall struct { header_ http.Header } -// CreateSpan: Creates a new span. +// CreateSpan: Creates a new span. If a span ID already exists, an additional +// copy of the span will be stored. // // - name: The resource name of the span in the following format: * // `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 48bf90a5c69..1a535241e75 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -536,6 +536,34 @@ "resources": { "conversations": { "methods": { + "bulkAnalyze": { + "description": "Analyzes multiple conversations in a single request.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations:bulkAnalyze", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.bulkAnalyze", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource to create analyses in.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/conversations:bulkAnalyze", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "calculateStats": { "description": "Gets conversation statistics.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations:calculateStats", @@ -565,6 +593,519 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "delete": { + "description": "Deletes a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request will only succeed if the conversation has no analyses.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the conversation to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets a conversation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the conversation to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "The level of details of the conversation. Default is `FULL`.", + "enum": [ + "CONVERSATION_VIEW_UNSPECIFIED", + "FULL", + "BASIC" + ], + "enumDescriptions": [ + "The conversation view is not specified. * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in `ListConversationsRequest`.", + "Populates all fields in the conversation.", + "Populates all fields in the conversation except the transcript." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Conversation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists conversations.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter to reduce results to a specific subset. Useful for querying conversations with specific properties.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. The attribute by which to order conversations in the response. If empty, conversations will be ordered by descending creation time. Supported values are one of the following: * create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count The default sort order is ascending. To specify order, append `asc` or `desc` (`create_time desc`). For more details, see [Google AIPs Ordering](https://google.aip.dev/132#ordering).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of conversations to return in the response. A valid page size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListConversationsResponse`. This value indicates that this is a continuation of a prior `ListConversations` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the conversation.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "The level of details of the conversation. Default is `BASIC`.", + "enum": [ + "CONVERSATION_VIEW_UNSPECIFIED", + "FULL", + "BASIC" + ], + "enumDescriptions": [ + "The conversation view is not specified. * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in `ListConversationsRequest`.", + "Populates all fields in the conversation.", + "Populates all fields in the conversation except the transcript." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/conversations", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListConversationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "analyses": { + "methods": { + "create": { + "description": "Creates an analysis. The long running operation is done when the analysis has completed.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the analysis.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/analyses", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1Analysis" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes an analysis.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses/{analysesId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the analysis to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/analyses/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets an analysis.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses/{analysesId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the analysis to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/analyses/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1Analysis" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists analyses.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/analyses", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "A filter to reduce results to a specific subset. Useful for querying conversations with specific properties.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of analyses to return in the response. If this value is zero, the service will select a default size. A call might return fewer objects than requested. A non-empty `next_page_token` in the response indicates that more data is available.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The value returned by the last `ListAnalysesResponse`; indicates that this is a continuation of a prior `ListAnalyses` call and the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the analyses.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/analyses", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListAnalysesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "feedbackLabels": { + "methods": { + "create": { + "description": "Create feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "feedbackLabelId": { + "description": "Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the feedback label.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/feedbackLabels", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "DELETE", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the feedback label to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List feedback labels.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and conjunctions (AND). Automatically sorts by conversation ID. To sort by all feedback labels in a project see ListAllFeedbackLabels. Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of feedback labels to return in the response. A valid page size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be chosen. Note that a call might return fewer results than the requested page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The value returned by the last `ListFeedbackLabelsResponse`. This value indicates that this is a continuation of a prior `ListFeedbackLabels` call and that the system should return the next page of data.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the feedback labels.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/feedbackLabels", + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Update feedback label.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/conversations/{conversationsId}/feedbackLabels/{feedbackLabelsId}", + "httpMethod": "PATCH", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedback_label}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "response": { + "$ref": "GoogleCloudContactcenterinsightsV1FeedbackLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/authorizedViewSets/{authorizedViewSetsId}/authorizedViews/{authorizedViewsId}/operations", + "httpMethod": "GET", + "id": "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -2637,7 +3178,7 @@ } } }, - "revision": "20250320", + "revision": "20250415", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -3253,12 +3794,14 @@ "enum": [ "FEEDBACK_LABEL_TYPE_UNSPECIFIED", "QUALITY_AI", - "TOPIC_MODELING" + "TOPIC_MODELING", + "AGENT_ASSIST_SUMMARY" ], "enumDescriptions": [ "Unspecified format", "Downloaded file will contain all Quality AI labels from the latest scorecard revision.", - "Downloaded file will contain only Topic Modeling labels." + "Downloaded file will contain only Topic Modeling labels.", + "Agent Assist Summarization labels." ], "type": "string" }, @@ -4714,7 +5257,7 @@ "type": "object" }, "GoogleCloudContactcenterinsightsV1FeedbackLabel": { - "description": "Represents a conversation, resource, and label provided by the user. Can take the form of a string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. String labels are used for Topic Modeling.", + "description": "Represents a conversation, resource, and label provided by the user. Can take the form of a string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. String labels are used for Topic Modeling. AgentAssistSummary labels are used for Agent Assist Summarization.", "id": "GoogleCloudContactcenterinsightsV1FeedbackLabel", "properties": { "createTime": { @@ -4728,7 +5271,7 @@ "type": "string" }, "labeledResource": { - "description": "Resource name of the resource to be labeled. Supported resources: - qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} - issueModels/{issue_model}", + "description": "Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * `projects/{project}/locations/{location}/issueModels/{issue_model}` * `projects/{project}/locations/{location}/generators/{generator_id}`", "type": "string" }, "name": { @@ -8494,7 +9037,7 @@ "type": "object" }, "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel": { - "description": "Represents a conversation, resource, and label provided by the user. Can take the form of a string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. String labels are used for Topic Modeling.", + "description": "Represents a conversation, resource, and label provided by the user. Can take the form of a string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. String labels are used for Topic Modeling. AgentAssistSummary labels are used for Agent Assist Summarization.", "id": "GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel", "properties": { "createTime": { @@ -8508,7 +9051,7 @@ "type": "string" }, "labeledResource": { - "description": "Resource name of the resource to be labeled. Supported resources: - qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} - issueModels/{issue_model}", + "description": "Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * `projects/{project}/locations/{location}/issueModels/{issue_model}` * `projects/{project}/locations/{location}/generators/{generator_id}`", "type": "string" }, "name": { diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index d1fd38b3740..2fee691c225 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -229,6 +229,7 @@ type ProjectsLocationsAuthorizedViewSetsService struct { func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService { rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService{s: s} rs.Conversations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s) + rs.Operations = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s) return rs } @@ -236,15 +237,50 @@ type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsService struct { s *Service Conversations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService + + Operations *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService } func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService { rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService{s: s} + rs.Analyses = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s) + rs.FeedbackLabels = NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService(s) return rs } type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService struct { s *Service + + Analyses *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService + + FeedbackLabels *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService struct { + s *Service +} + +func NewProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService(s *Service) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService { + rs := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService{s: s} + return rs +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService struct { + s *Service } func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService { @@ -1123,6 +1159,7 @@ type GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest struct // latest scorecard revision. // "TOPIC_MODELING" - Downloaded file will contain only Topic Modeling // labels. + // "AGENT_ASSIST_SUMMARY" - Agent Assist Summarization labels. FeedbackLabelType string `json:"feedbackLabelType,omitempty"` // Filter: Optional. A filter to reduce results to a specific subset. Supports // disjunctions (OR) and conjunctions (AND). Supported fields: * @@ -2979,16 +3016,19 @@ func (s *GoogleCloudContactcenterinsightsV1FaqAnswerData) UnmarshalJSON(data []b // GoogleCloudContactcenterinsightsV1FeedbackLabel: Represents a conversation, // resource, and label provided by the user. Can take the form of a string // label or a QaAnswer label. QaAnswer labels are used for Quality AI example -// conversations. String labels are used for Topic Modeling. +// conversations. String labels are used for Topic Modeling. AgentAssistSummary +// labels are used for Agent Assist Summarization. type GoogleCloudContactcenterinsightsV1FeedbackLabel struct { // CreateTime: Output only. Create time of the label. CreateTime string `json:"createTime,omitempty"` // Label: String label used for Topic Modeling. Label string `json:"label,omitempty"` - // LabeledResource: Resource name of the resource to be labeled. Supported - // resources: - - // qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} - - // issueModels/{issue_model} + // LabeledResource: Name of the resource to be labeled. Supported resources + // are: * + // `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{ + // revision}/qaQuestions/{question}` * + // `projects/{project}/locations/{location}/issueModels/{issue_model}` * + // `projects/{project}/locations/{location}/generators/{generator_id}` LabeledResource string `json:"labeledResource,omitempty"` // Name: Immutable. Resource name of the FeedbackLabel. Format: // projects/{project}/locations/{location}/conversations/{conversation}/feedback @@ -7910,15 +7950,18 @@ func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(da // conversation, resource, and label provided by the user. Can take the form of // a string label or a QaAnswer label. QaAnswer labels are used for Quality AI // example conversations. String labels are used for Topic Modeling. +// AgentAssistSummary labels are used for Agent Assist Summarization. type GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel struct { // CreateTime: Output only. Create time of the label. CreateTime string `json:"createTime,omitempty"` // Label: String label used for Topic Modeling. Label string `json:"label,omitempty"` - // LabeledResource: Resource name of the resource to be labeled. Supported - // resources: - - // qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question} - - // issueModels/{issue_model} + // LabeledResource: Name of the resource to be labeled. Supported resources + // are: * + // `projects/{project}/locations/{location}/qaScorecards/{scorecard}/revisions/{ + // revision}/qaQuestions/{question}` * + // `projects/{project}/locations/{location}/issueModels/{issue_model}` * + // `projects/{project}/locations/{location}/generators/{generator_id}` LabeledResource string `json:"labeledResource,omitempty"` // Name: Immutable. Resource name of the FeedbackLabel. Format: // projects/{project}/locations/{location}/conversations/{conversation}/feedback @@ -11524,6 +11567,110 @@ func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsQueryMetricsCall) Do( return ret, nil } +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BulkAnalyze: Analyzes multiple conversations in a single request. +// +// - parent: The parent resource to create analyses in. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) BulkAnalyze(parent string, googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest = googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:bulkAnalyze") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.bulkAnalyze", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.bulkAnalyze" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsBulkAnalyzeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.bulkAnalyze", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCalculateStatsCall struct { s *Service location string @@ -11642,6 +11789,1862 @@ func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsCalculat return ret, nil } +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a conversation. +// +// - name: The name of the conversation to delete. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Delete(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, all of this +// conversation's analyses will also be deleted. Otherwise, the request will +// only succeed if the conversation has no analyses. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Force(force bool) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets a conversation. +// +// - name: The name of the conversation to get. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// View sets the optional parameter "view": The level of details of the +// conversation. Default is `FULL`. +// +// Possible values: +// +// "CONVERSATION_VIEW_UNSPECIFIED" - The conversation view is not specified. +// +// * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in +// `ListConversationsRequest`. +// +// "FULL" - Populates all fields in the conversation. +// "BASIC" - Populates all fields in the conversation except the transcript. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) View(view string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1Conversation.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1Conversation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists conversations. +// +// - parent: The parent resource of the conversation. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsService) List(parent string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter to reduce results to a +// specific subset. Useful for querying conversations with specific properties. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": The attribute by which to +// order conversations in the response. If empty, conversations will be ordered +// by descending creation time. Supported values are one of the following: * +// create_time * customer_satisfaction_rating * duration * latest_analysis * +// start_time * turn_count The default sort order is ascending. To specify +// order, append `asc` or `desc` (`create_time desc`). For more details, see +// Google AIPs Ordering (https://google.aip.dev/132#ordering). +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// conversations to return in the response. A valid page size ranges from 0 to +// 100,000 inclusive. If the page size is zero or unspecified, a default page +// size of 100 will be chosen. Note that a call might return fewer results than +// the requested page size. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListConversationsResponse`. This value indicates that this is a +// continuation of a prior `ListConversations` call and that the system should +// return the next page of data. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": The level of details of the +// conversation. Default is `BASIC`. +// +// Possible values: +// +// "CONVERSATION_VIEW_UNSPECIFIED" - The conversation view is not specified. +// +// * Defaults to `FULL` in `GetConversationRequest`. * Defaults to `BASIC` in +// `ListConversationsRequest`. +// +// "FULL" - Populates all fields in the conversation. +// "BASIC" - Populates all fields in the conversation except the transcript. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) View(view string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1ListConversationsResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListConversationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1ListConversationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListConversationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an analysis. The long running operation is done when the +// analysis has completed. +// +// - parent: The parent resource of the analysis. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Create(parent string, googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1analysis = googlecloudcontactcenterinsightsv1analysis + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudcontactcenterinsightsv1analysis) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an analysis. +// +// - name: The name of the analysis to delete. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Delete(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets an analysis. +// +// - name: The name of the analysis to get. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1Analysis.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Analysis, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1Analysis{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists analyses. +// +// - parent: The parent resource of the analyses. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesService) List(parent string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter to reduce results to a +// specific subset. Useful for querying conversations with specific properties. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// analyses to return in the response. If this value is zero, the service will +// select a default size. A call might return fewer objects than requested. A +// non-empty `next_page_token` in the response indicates that more data is +// available. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListAnalysesResponse`; indicates that this is a continuation of a +// prior `ListAnalyses` call and the system should return the next page of +// data. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1ListAnalysesResponse.ServerResponse.Header +// +// or (if a response was returned at all) in error.(*googleapi.Error).Header. +// +// Use googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAnalysesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1ListAnalysesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.analyses.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsAnalysesListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListAnalysesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall struct { + s *Service + parent string + googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create feedback label. +// +// - parent: The parent resource of the feedback label. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService) Create(parent string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudcontactcenterinsightsv1feedbacklabel = googlecloudcontactcenterinsightsv1feedbacklabel + return c +} + +// FeedbackLabelId sets the optional parameter "feedbackLabelId": The ID of the +// feedback label to create. If one is not specified it will be generated by +// the server. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) FeedbackLabelId(feedbackLabelId string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c.urlParams_.Set("feedbackLabelId", feedbackLabelId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudcontactcenterinsightsv1feedbacklabel) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1FeedbackLabel.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete feedback label. +// +// - name: The name of the feedback label to delete. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService) Delete(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get feedback label. +// +// - name: The name of the feedback label to get. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1FeedbackLabel.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List feedback labels. +// +// - parent: The parent resource of the feedback labels. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService) List(parent string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter to reduce results to a +// specific subset. Supports disjunctions (OR) and conjunctions (AND). +// Automatically sorts by conversation ID. To sort by all feedback labels in a +// project see ListAllFeedbackLabels. Supported fields: * `issue_model_id` * +// `qa_question_id` * `qa_scorecard_id` * `min_create_time` * `max_create_time` +// * `min_update_time` * `max_update_time` * `feedback_label_type`: QUALITY_AI, +// TOPIC_MODELING +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// feedback labels to return in the response. A valid page size ranges from 0 +// to 100,000 inclusive. If the page size is zero or unspecified, a default +// page size of 100 will be chosen. Note that a call might return fewer results +// than the requested page size. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The value returned by the +// last `ListFeedbackLabelsResponse`. This value indicates that this is a +// continuation of a prior `ListFeedbackLabels` call and that the system should +// return the next page of data. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/feedbackLabels") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall struct { + s *Service + name string + googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Update feedback label. +// +// - name: Immutable. Resource name of the FeedbackLabel. Format: +// projects/{project}/locations/{location}/conversations/{conversation}/feedba +// ckLabels/{feedback_label}. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsService) Patch(name string, googlecloudcontactcenterinsightsv1feedbacklabel *GoogleCloudContactcenterinsightsV1FeedbackLabel) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudcontactcenterinsightsv1feedbacklabel = googlecloudcontactcenterinsightsv1feedbacklabel + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googlecloudcontactcenterinsightsv1feedbacklabel) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudContactcenterinsightsV1FeedbackLabel.ServerResponse.Header or +// (if a response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsConversationsFeedbackLabelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1FeedbackLabel, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudContactcenterinsightsV1FeedbackLabel{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.conversations.feedbackLabels.patch", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. +// +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) Cancel(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.cancel", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) Get(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsService) List(name string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c := &ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Filter(filter string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "contactcenterinsights.projects.locations.authorizedViewSets.authorizedViews.operations.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthorizedViewSetsAuthorizedViewsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsConversationsBulkAnalyzeCall struct { s *Service parent string diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 00ea7cf8255..fc41ea42cfc 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -220,6 +220,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://containeranalysis.europe-west10.rep.googleapis.com/", "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.us.rep.googleapis.com/", + "location": "us" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.eu.rep.googleapis.com/", + "location": "eu" } ], "fullyEncodeReservedExpansion": true, @@ -1675,7 +1685,7 @@ } } }, - "revision": "20250307", + "revision": "20250411", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index e3bafa7d16a..64b28fc1950 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -220,6 +220,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://containeranalysis.europe-west10.rep.googleapis.com/", "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.us.rep.googleapis.com/", + "location": "us" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.eu.rep.googleapis.com/", + "location": "eu" } ], "fullyEncodeReservedExpansion": true, @@ -1440,7 +1450,7 @@ } } }, - "revision": "20250307", + "revision": "20250411", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -6825,7 +6835,7 @@ "additionalProperties": { "type": "string" }, - "description": "\"\": \"\" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet", + "description": "\"\": \"\" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/v1/digest_set.md.", "type": "object" }, "name": { diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 60e527d2322..3d2333ca32d 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -6612,7 +6612,7 @@ func (s StorageSource) MarshalJSON() ([]byte, error) { // Subject: Subject refers to the subject of the intoto statement type Subject struct { // Digest: "": "" Algorithms can be e.g. sha256, sha512 See - // https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet + // https://github.com/in-toto/attestation/blob/main/spec/v1/digest_set.md. Digest map[string]string `json:"digest,omitempty"` // Name: name is the name of the Subject used here Name string `json:"name,omitempty"` diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index ab6b76aa73a..78b5693c74f 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -220,6 +220,16 @@ "description": "Regional Endpoint", "endpointUrl": "https://containeranalysis.europe-west10.rep.googleapis.com/", "location": "europe-west10" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.us.rep.googleapis.com/", + "location": "us" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://containeranalysis.eu.rep.googleapis.com/", + "location": "eu" } ], "fullyEncodeReservedExpansion": true, @@ -1731,7 +1741,7 @@ } } }, - "revision": "20250307", + "revision": "20250411", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { diff --git a/datafusion/v1/datafusion-api.json b/datafusion/v1/datafusion-api.json index 6212d4086b6..f10dc6e3a97 100644 --- a/datafusion/v1/datafusion-api.json +++ b/datafusion/v1/datafusion-api.json @@ -143,6 +143,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -732,7 +738,7 @@ } } }, - "revision": "20250224", + "revision": "20250414", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -1137,6 +1143,13 @@ "readOnly": true, "type": "string" }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", + "type": "object" + }, "tenantProjectId": { "description": "Output only. The name of the tenant project.", "readOnly": true, diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index 788f73ff199..ae9edea8e91 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -700,6 +700,10 @@ type Instance struct { // StateMessage: Output only. Additional information about the current state of // this Data Fusion instance if available. StateMessage string `json:"stateMessage,omitempty"` + // Tags: Optional. Input only. Immutable. Tag keys/values directly bound to + // this resource. For example: "123/environment": "production", + // "123/costCenter": "marketing" + Tags map[string]string `json:"tags,omitempty"` // TenantProjectId: Output only. The name of the tenant project. TenantProjectId string `json:"tenantProjectId,omitempty"` // Type: Required. Instance type. @@ -1671,6 +1675,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/datafusion/v1beta1/datafusion-api.json b/datafusion/v1beta1/datafusion-api.json index 9465c4cafad..1a6750ecdb8 100644 --- a/datafusion/v1beta1/datafusion-api.json +++ b/datafusion/v1beta1/datafusion-api.json @@ -143,6 +143,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -930,7 +936,7 @@ } } }, - "revision": "20250224", + "revision": "20250414", "rootUrl": "https://datafusion.googleapis.com/", "schemas": { "Accelerator": { @@ -1349,6 +1355,13 @@ "readOnly": true, "type": "string" }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: \"123/environment\": \"production\", \"123/costCenter\": \"marketing\"", + "type": "object" + }, "tenantProjectId": { "description": "Output only. The name of the tenant project.", "readOnly": true, diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index d59c5439252..d55c20be7bd 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -733,6 +733,10 @@ type Instance struct { // StateMessage: Output only. Additional information about the current state of // this Data Fusion instance if available. StateMessage string `json:"stateMessage,omitempty"` + // Tags: Optional. Input only. Immutable. Tag keys/values directly bound to + // this resource. For example: "123/environment": "production", + // "123/costCenter": "marketing" + Tags map[string]string `json:"tags,omitempty"` // TenantProjectId: Output only. The name of the tenant project. TenantProjectId string `json:"tenantProjectId,omitempty"` // Type: Required. Instance type. @@ -1768,6 +1772,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 6ee5a0549ec..ee740030323 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8805,7 +8805,7 @@ } } }, - "revision": "20250325", + "revision": "20250414", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -22726,15 +22726,15 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "DTMF_DIGITS", "END_OF_SINGLE_UTTERANCE", + "DTMF_DIGITS", "PARTIAL_DTMF_DIGITS" ], "enumDescriptions": [ "Not specified. Should never be used.", "Message contains a (possibly partial) transcript.", - "Message contains DTMF digits.", "This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.", + "Message contains DTMF digits.", "Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result." ], "type": "string" diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 1d303a41c02..0ad75a45685 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -20622,7 +20622,6 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used. // "TRANSCRIPT" - Message contains a (possibly partial) transcript. - // "DTMF_DIGITS" - Message contains DTMF digits. // "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has // detected the end of the user's speech utterance and expects no additional // speech. Therefore, the server will not process additional audio (although it @@ -20631,6 +20630,7 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // additional results until the server closes the gRPC connection. This message // is only sent if `single_utterance` was set to `true`, and is not used // otherwise. + // "DTMF_DIGITS" - Message contains DTMF digits. // "PARTIAL_DTMF_DIGITS" - Message contains DTMF digits. Before a message // with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent // with DTMF digits collected up to the time of sending, which represents an diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index a1946810901..5b0807c4bbb 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8602,7 +8602,7 @@ } } }, - "revision": "20250325", + "revision": "20250414", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -17380,6 +17380,35 @@ }, "type": "object" }, + "GoogleCloudDialogflowV2beta1CustomPronunciationParams": { + "description": "Pronunciation customization for a phrase.", + "id": "GoogleCloudDialogflowV2beta1CustomPronunciationParams", + "properties": { + "phoneticEncoding": { + "description": "The phonetic encoding of the phrase.", + "enum": [ + "PHONETIC_ENCODING_UNSPECIFIED", + "PHONETIC_ENCODING_IPA", + "PHONETIC_ENCODING_X_SAMPA" + ], + "enumDescriptions": [ + "Not specified.", + "IPA, such as apple -\u003e ˈæpəl. https://en.wikipedia.org/wiki/International_Phonetic_Alphabet", + "X-SAMPA, such as apple -\u003e \"{p@l\". https://en.wikipedia.org/wiki/X-SAMPA" + ], + "type": "string" + }, + "phrase": { + "description": "The phrase to which the customization is applied. The phrase can be multiple words, such as proper nouns, but shouldn't span the length of the sentence.", + "type": "string" + }, + "pronunciation": { + "description": "The pronunciation of the phrase. This must be in the phonetic encoding specified above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowV2beta1DetectIntentRequest": { "description": "The request to detect user's intent.", "id": "GoogleCloudDialogflowV2beta1DetectIntentRequest", @@ -22097,15 +22126,15 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "DTMF_DIGITS", "END_OF_SINGLE_UTTERANCE", + "DTMF_DIGITS", "PARTIAL_DTMF_DIGITS" ], "enumDescriptions": [ "Not specified. Should never be used.", "Message contains a (possibly partial) transcript.", - "Message contains DTMF digits.", "This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.", + "Message contains DTMF digits.", "Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result." ], "type": "string" @@ -22739,6 +22768,13 @@ "format": "double", "type": "number" }, + "pronunciations": { + "description": "Optional. The custom pronunciations for the synthesized audio.", + "items": { + "$ref": "GoogleCloudDialogflowV2beta1CustomPronunciationParams" + }, + "type": "array" + }, "speakingRate": { "description": "Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 is the normal native speed supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 speed. Any other values \u003c 0.25 or \u003e 4.0 will return an error.", "format": "double", diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 5fd6f4d439f..11d007a2b88 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -13015,6 +13015,43 @@ func (s GoogleCloudDialogflowV2beta1CreateMessageRequest) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowV2beta1CustomPronunciationParams: Pronunciation +// customization for a phrase. +type GoogleCloudDialogflowV2beta1CustomPronunciationParams struct { + // PhoneticEncoding: The phonetic encoding of the phrase. + // + // Possible values: + // "PHONETIC_ENCODING_UNSPECIFIED" - Not specified. + // "PHONETIC_ENCODING_IPA" - IPA, such as apple -> ˈæpəl. + // https://en.wikipedia.org/wiki/International_Phonetic_Alphabet + // "PHONETIC_ENCODING_X_SAMPA" - X-SAMPA, such as apple -> "{p@l". + // https://en.wikipedia.org/wiki/X-SAMPA + PhoneticEncoding string `json:"phoneticEncoding,omitempty"` + // Phrase: The phrase to which the customization is applied. The phrase can be + // multiple words, such as proper nouns, but shouldn't span the length of the + // sentence. + Phrase string `json:"phrase,omitempty"` + // Pronunciation: The pronunciation of the phrase. This must be in the phonetic + // encoding specified above. + Pronunciation string `json:"pronunciation,omitempty"` + // ForceSendFields is a list of field names (e.g. "PhoneticEncoding") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PhoneticEncoding") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowV2beta1CustomPronunciationParams) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowV2beta1CustomPronunciationParams + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowV2beta1DetectIntentRequest: The request to detect // user's intent. type GoogleCloudDialogflowV2beta1DetectIntentRequest struct { @@ -19885,7 +19922,6 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used. // "TRANSCRIPT" - Message contains a (possibly partial) transcript. - // "DTMF_DIGITS" - Message contains DTMF digits. // "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has // detected the end of the user's speech utterance and expects no additional // speech. Therefore, the server will not process additional audio (although it @@ -19894,6 +19930,7 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // additional results until the server closes the gRPC connection. This message // is only sent if `single_utterance` was set to `true`, and is not used // otherwise. + // "DTMF_DIGITS" - Message contains DTMF digits. // "PARTIAL_DTMF_DIGITS" - Message contains DTMF digits. Before a message // with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent // with DTMF digits collected up to the time of sending, which represents an @@ -20795,6 +20832,9 @@ type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig struct { // increase 20 semitones from the original pitch. -20 means decrease 20 // semitones from the original pitch. Pitch float64 `json:"pitch,omitempty"` + // Pronunciations: Optional. The custom pronunciations for the synthesized + // audio. + Pronunciations []*GoogleCloudDialogflowV2beta1CustomPronunciationParams `json:"pronunciations,omitempty"` // SpeakingRate: Optional. Speaking rate/speed, in the range [0.25, 4.0]. 1.0 // is the normal native speed supported by the specific voice. 2.0 is twice as // fast, and 0.5 is half as fast. If unset(0.0), defaults to the native 1.0 diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index d3df30db97c..9004e095821 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4459,7 +4459,7 @@ } } }, - "revision": "20250325", + "revision": "20250414", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -17791,15 +17791,15 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "DTMF_DIGITS", "END_OF_SINGLE_UTTERANCE", + "DTMF_DIGITS", "PARTIAL_DTMF_DIGITS" ], "enumDescriptions": [ "Not specified. Should never be used.", "Message contains a (possibly partial) transcript.", - "Message contains DTMF digits.", "This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.", + "Message contains DTMF digits.", "Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result." ], "type": "string" diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 50f59d59e5c..7a69fb7dbef 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -19249,7 +19249,6 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used. // "TRANSCRIPT" - Message contains a (possibly partial) transcript. - // "DTMF_DIGITS" - Message contains DTMF digits. // "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has // detected the end of the user's speech utterance and expects no additional // speech. Therefore, the server will not process additional audio (although it @@ -19258,6 +19257,7 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // additional results until the server closes the gRPC connection. This message // is only sent if `single_utterance` was set to `true`, and is not used // otherwise. + // "DTMF_DIGITS" - Message contains DTMF digits. // "PARTIAL_DTMF_DIGITS" - Message contains DTMF digits. Before a message // with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent // with DTMF digits collected up to the time of sending, which represents an diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 1f093f8bd8a..d932c47e6ce 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3194,6 +3194,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "export": { + "description": "Exports the specified playbook to a binary file. Note that resources (e.g. examples, tools) that the playbook references will also be exported.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}:export", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.export", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook to export. Format: `projects//locations//agents//playbooks/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+name}:export", + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "get": { "description": "Retrieves the specified Playbook.", "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}", @@ -3220,6 +3249,35 @@ "https://www.googleapis.com/auth/dialogflow" ] }, + "import": { + "description": "Imports the specified playbook to the specified agent from a binary file.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks:import", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.import", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The agent to import the playbook into. Format: `projects//locations//agents/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+parent}/playbooks:import", + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] + }, "list": { "description": "Returns a list of playbooks in the specified agent.", "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks", @@ -3575,6 +3633,35 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/dialogflow" ] + }, + "restore": { + "description": "Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated.", + "flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/agents/{agentsId}/playbooks/{playbooksId}/versions/{versionsId}:restore", + "httpMethod": "POST", + "id": "dialogflow.projects.locations.agents.playbooks.versions.restore", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the playbook version. Format: `projects//locations//agents//playbooks//versions/`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/agents/[^/]+/playbooks/[^/]+/versions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v3beta1/{+name}:restore", + "request": { + "$ref": "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest" + }, + "response": { + "$ref": "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/dialogflow" + ] } } } @@ -5349,7 +5436,7 @@ } } }, - "revision": "20250325", + "revision": "20250414", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -7708,6 +7795,17 @@ "$ref": "GoogleCloudDialogflowCxV3beta1AgentUtterance", "description": "Optional. Action performed by the agent as a message." }, + "completeTime": { + "description": "Output only. Timestamp of the completion of the agent action.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The display name of the action.", + "readOnly": true, + "type": "string" + }, "event": { "$ref": "GoogleCloudDialogflowCxV3beta1Event", "description": "Optional. The agent received an event from the customer or a system event is emitted." @@ -7716,10 +7814,25 @@ "$ref": "GoogleCloudDialogflowCxV3beta1FlowInvocation", "description": "Optional. Action performed on behalf of the agent by invoking a CX flow." }, + "flowStateUpdate": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate", + "description": "Optional. Output only. The state machine update in flows.", + "readOnly": true + }, "flowTransition": { "$ref": "GoogleCloudDialogflowCxV3beta1FlowTransition", "description": "Optional. Action performed on behalf of the agent by transitioning to a target CX flow." }, + "intentMatch": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionIntentMatch", + "description": "Optional. Output only. Intent Match in flows.", + "readOnly": true + }, + "llmCall": { + "$ref": "GoogleCloudDialogflowCxV3beta1LlmCall", + "description": "Optional. Output only. LLM call performed by the agent.", + "readOnly": true + }, "playbookInvocation": { "$ref": "GoogleCloudDialogflowCxV3beta1PlaybookInvocation", "description": "Optional. Action performed on behalf of the agent by invoking a child playbook." @@ -7728,10 +7841,36 @@ "$ref": "GoogleCloudDialogflowCxV3beta1PlaybookTransition", "description": "Optional. Action performed on behalf of the agent by transitioning to a target playbook." }, + "startTime": { + "description": "Output only. Timestamp of the start of the agent action.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "status": { + "$ref": "GoogleCloudDialogflowCxV3beta1Status", + "description": "Optional. Output only. The status of the action.", + "readOnly": true + }, + "stt": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionSTT", + "description": "Optional. Speech-to-text action performed by the agent." + }, + "subExecutionSteps": { + "description": "Optional. The detailed tracing information for sub execution steps of the action.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1Span" + }, + "type": "array" + }, "toolUse": { "$ref": "GoogleCloudDialogflowCxV3beta1ToolUse", "description": "Optional. Action performed on behalf of the agent by calling a plugin tool." }, + "tts": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionTTS", + "description": "Optional. Text-to-speech action performed by the agent." + }, "userUtterance": { "$ref": "GoogleCloudDialogflowCxV3beta1UserUtterance", "description": "Optional. Agent obtained a message from the customer." @@ -7739,6 +7878,121 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate": { + "description": "Stores metadata of the state update action, such as a state machine execution in flows.", + "id": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate", + "properties": { + "destination": { + "description": "The destination of the transition. Format: `projects//locations//agents//flows//pages/` or `projects//locations//agents//playbooks/`.", + "type": "string" + }, + "eventType": { + "description": "The type of the event that triggered the state update.", + "type": "string" + }, + "functionCall": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall", + "description": "The function call to execute." + }, + "pageState": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState", + "description": "The updated page and flow state." + }, + "updatedParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The updated parameters.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall": { + "description": "Stores the metadata of a function call to execute.", + "id": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall", + "properties": { + "name": { + "description": "The name of the function call.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState": { + "description": "Stores the state of a page and its flow.", + "id": "GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState", + "properties": { + "displayName": { + "description": "The display name of the page.", + "type": "string" + }, + "page": { + "description": "The ID of the page. Format: `projects//locations//agents//flows//pages/`.", + "type": "string" + }, + "status": { + "description": "The status of the page.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionIntentMatch": { + "description": "Stores metadata of the intent match action.", + "id": "GoogleCloudDialogflowCxV3beta1ActionIntentMatch", + "properties": { + "matchedIntents": { + "description": "The matched intent.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent": { + "description": "Stores the matched intent, which is the result of the intent match action.", + "id": "GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent", + "properties": { + "displayName": { + "description": "The display name of the matched intent.", + "type": "string" + }, + "generativeFallback": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "The generative fallback response of the matched intent.", + "type": "object" + }, + "intentId": { + "description": "The ID of the matched intent.", + "type": "string" + }, + "score": { + "description": "The score of the matched intent.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionSTT": { + "description": "Stores metadata of the Speech-to-Text action.", + "id": "GoogleCloudDialogflowCxV3beta1ActionSTT", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ActionTTS": { + "description": "Stores metadata of the Text-to-Speech action.", + "id": "GoogleCloudDialogflowCxV3beta1ActionTTS", + "properties": {}, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1AdvancedSettings": { "description": "Hierarchical advanced settings for agent/flow/page/fulfillment/parameter. Settings exposed at lower level overrides the settings exposed at higher level. Overriding occurs at the sub-setting level. For example, the playback_interruption_settings at fulfillment level only overrides the playback_interruption_settings at the agent level, leaving other settings at the agent level unchanged. DTMF settings does not override each other. DTMF settings set at different levels define DTMF detections running in parallel. Hierarchy: Agent-\u003eFlow-\u003ePage-\u003eFulfillment/Parameter.", "id": "GoogleCloudDialogflowCxV3beta1AdvancedSettings", @@ -8087,6 +8341,10 @@ "description": "AgentUtterance represents one message sent by the agent.", "id": "GoogleCloudDialogflowCxV3beta1AgentUtterance", "properties": { + "requireGeneration": { + "description": "Optional. True if the agent utterance needs to be generated by the LLM. Only used in webhook response to differentiate from empty text. Revisit whether we need this field or mark `text` as optional when we expose webhook interface to customer.", + "type": "boolean" + }, "text": { "description": "Required. Message content in text.", "type": "string" @@ -9558,6 +9816,10 @@ "event": { "description": "Required. Name of the event.", "type": "string" + }, + "text": { + "description": "Optional. Unstructured text payload of the event.", + "type": "string" } }, "type": "object" @@ -9681,6 +9943,17 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1Exception": { + "description": "Exception thrown during the execution of an action.", + "id": "GoogleCloudDialogflowCxV3beta1Exception", + "properties": { + "errorMessage": { + "description": "Optional. The error message.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1Experiment": { "description": "Represents an experiment in an environment.", "id": "GoogleCloudDialogflowCxV3beta1Experiment", @@ -10134,6 +10407,31 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest": { + "description": "The request message for Playbooks.ExportPlaybook.", + "id": "GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest", + "properties": { + "dataFormat": { + "description": "Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.", + "enum": [ + "DATA_FORMAT_UNSPECIFIED", + "BLOB", + "JSON" + ], + "enumDescriptions": [ + "Unspecified format.", + "Flow content will be exported as raw bytes.", + "Flow content will be exported in JSON format." + ], + "type": "string" + }, + "playbookUri": { + "description": "Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the playbook to. The format of this URI must be `gs:///`. If left unspecified, the serialized playbook is returned inline. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata": { "description": "Metadata returned for the TestCases.ExportTestCases long running operation. This message currently has no fields.", "id": "GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata", @@ -10327,7 +10625,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3beta1FlowInvocation": { - "description": "Stores metadata of the invocation of a CX flow.", + "description": "Stores metadata of the invocation of a child CX flow. Flow invocation actions enter the child flow.", "id": "GoogleCloudDialogflowCxV3beta1FlowInvocation", "properties": { "displayName": { @@ -10336,7 +10634,7 @@ "type": "string" }, "flow": { - "description": "Required. The unique identifier of the flow. Format: `projects//locations//agents//flows/`.", + "description": "Required. The unique identifier of the flow. Format: `projects//locations//agents/`.", "type": "string" }, "flowState": { @@ -10408,6 +10706,15 @@ "flow": { "description": "Required. The unique identifier of the flow. Format: `projects//locations//agents/`.", "type": "string" + }, + "inputActionParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "deprecated": true, + "description": "A list of input parameters for the action.", + "type": "object" } }, "type": "object" @@ -11136,6 +11443,26 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest": { + "description": "The request message for Playbooks.ImportPlaybook.", + "id": "GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest", + "properties": { + "importStrategy": { + "$ref": "GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy", + "description": "Optional. Specifies the import strategy used when resolving resource conflicts." + }, + "playbookContent": { + "description": "Uncompressed raw byte content for playbook.", + "format": "byte", + "type": "string" + }, + "playbookUri": { + "description": "[Dialogflow access control] (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata": { "description": "Metadata returned for the TestCases.ImportTestCases long running operation.", "id": "GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata", @@ -11953,6 +12280,95 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1LlmCall": { + "description": "Stores metadata of the call of an LLM.", + "id": "GoogleCloudDialogflowCxV3beta1LlmCall", + "properties": { + "model": { + "description": "The model of the LLM call.", + "type": "string" + }, + "retrievedExamples": { + "description": "A list of relevant examples used for the LLM prompt.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample" + }, + "type": "array" + }, + "temperature": { + "description": "The temperature of the LLM call.", + "format": "float", + "type": "number" + }, + "tokenCount": { + "$ref": "GoogleCloudDialogflowCxV3beta1LlmCallTokenCount", + "description": "The token counts of the LLM call." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample": { + "description": "Relevant example used for the LLM prompt.", + "id": "GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample", + "properties": { + "exampleDisplayName": { + "description": "The display name of the example.", + "type": "string" + }, + "exampleId": { + "description": "The id of the example.", + "type": "string" + }, + "matchedRetrievalLabel": { + "description": "Optional. The matched retrieval label of this LLM call.", + "type": "string" + }, + "retrievalStrategy": { + "description": "Retrieval strategy of the example.", + "enum": [ + "RETRIEVAL_STRATEGY_UNSPECIFIED", + "DEFAULT", + "STATIC", + "NEVER" + ], + "enumDescriptions": [ + "Not specified. `DEFAULT` will be used.", + "Default retrieval strategy.", + "Static example will always be inserted to the prompt.", + "Example will never be inserted into the prompt." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1LlmCallTokenCount": { + "description": "Stores token counts of the LLM call.", + "id": "GoogleCloudDialogflowCxV3beta1LlmCallTokenCount", + "properties": { + "conversationContextTokenCount": { + "description": "The number of tokens used for the conversation history in the prompt.", + "format": "int64", + "type": "string" + }, + "exampleTokenCount": { + "description": "The number of tokens used for the retrieved examples in the prompt.", + "format": "int64", + "type": "string" + }, + "totalInputTokenCount": { + "description": "The total number of tokens used for the input to the LLM call.", + "format": "int64", + "type": "string" + }, + "totalOutputTokenCount": { + "description": "The total number of tokens used for the output of the LLM call.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1LlmModelSettings": { "description": "Settings for LLM models.", "id": "GoogleCloudDialogflowCxV3beta1LlmModelSettings", @@ -12108,6 +12524,25 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1NamedMetric": { + "description": "A named metric is a metric with name, value and unit.", + "id": "GoogleCloudDialogflowCxV3beta1NamedMetric", + "properties": { + "name": { + "description": "The name of the metric.", + "type": "string" + }, + "unit": { + "description": "The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard.", + "type": "string" + }, + "value": { + "description": "The value of the metric.", + "type": "any" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1NluSettings": { "description": "Settings related to NLU.", "id": "GoogleCloudDialogflowCxV3beta1NluSettings", @@ -12474,6 +12909,73 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy": { + "description": "The playbook import strategy used for resource conflict resolution associated with an ImportPlaybookRequest.", + "id": "GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy", + "properties": { + "mainPlaybookImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving conflicts with the main playbook. If not specified, 'CREATE_NEW' is assumed.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + }, + "nestedResourceImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving referenced playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + }, + "toolImportStrategy": { + "description": "Optional. Specifies the import strategy used when resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This will be applied after the main playbook and nested resource import strategies, meaning if the playbook that references the tool is skipped, the tool will also be skipped.", + "enum": [ + "IMPORT_STRATEGY_UNSPECIFIED", + "IMPORT_STRATEGY_CREATE_NEW", + "IMPORT_STRATEGY_REPLACE", + "IMPORT_STRATEGY_KEEP", + "IMPORT_STRATEGY_MERGE", + "IMPORT_STRATEGY_THROW_ERROR" + ], + "enumDescriptions": [ + "Unspecified. Treated as 'CREATE_NEW'.", + "Create a new resource with a numeric suffix appended to the end of the existing display name.", + "Replace existing resource with incoming resource in the content to be imported.", + "Keep existing resource and discard incoming resource in the content to be imported.", + "Combine existing and incoming resources when a conflict is encountered.", + "Throw error if a conflict is encountered." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1PlaybookInput": { "description": "Input of the playbook.", "id": "GoogleCloudDialogflowCxV3beta1PlaybookInput", @@ -12512,7 +13014,7 @@ "type": "object" }, "GoogleCloudDialogflowCxV3beta1PlaybookInvocation": { - "description": "Stores metadata of the invocation of a child playbook.", + "description": "Stores metadata of the invocation of a child playbook. Playbook invocation actions enter the child playbook.", "id": "GoogleCloudDialogflowCxV3beta1PlaybookInvocation", "properties": { "displayName": { @@ -12570,6 +13072,25 @@ "executionSummary": { "description": "Optional. Summary string of the execution result of the child playbook.", "type": "string" + }, + "state": { + "deprecated": true, + "description": "End state of the playbook.", + "enum": [ + "STATE_UNSPECIFIED", + "OK", + "CANCELLED", + "FAILED", + "ESCALATED" + ], + "enumDescriptions": [ + "Unspecified state.", + "Playbook succeeded.", + "Playbook cancelled.", + "Playbook failed.", + "Playbook failed due to escalation." + ], + "type": "string" } }, "type": "object" @@ -12601,6 +13122,15 @@ "readOnly": true, "type": "string" }, + "inputActionParameters": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "deprecated": true, + "description": "A list of input parameters for the action.", + "type": "object" + }, "playbook": { "description": "Required. The unique identifier of the playbook. Format: `projects//locations//agents//playbooks/`.", "type": "string" @@ -13183,6 +13713,23 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest": { + "description": "The request message for Playbooks.RestorePlaybookVersion.", + "id": "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse": { + "description": "The response message for Playbooks.RestorePlaybookVersion.", + "id": "GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse", + "properties": { + "playbook": { + "$ref": "GoogleCloudDialogflowCxV3beta1Playbook", + "description": "The updated playbook." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1RestoreToolVersionRequest": { "description": "The request message for Tools.RestoreToolVersion.", "id": "GoogleCloudDialogflowCxV3beta1RestoreToolVersionRequest", @@ -13591,6 +14138,41 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1Span": { + "description": "A span represents a sub execution step of an action.", + "id": "GoogleCloudDialogflowCxV3beta1Span", + "properties": { + "completeTime": { + "description": "Timestamp of the completion of the span.", + "format": "google-datetime", + "type": "string" + }, + "metrics": { + "description": "The unordered collection of metrics in this span.", + "items": { + "$ref": "GoogleCloudDialogflowCxV3beta1NamedMetric" + }, + "type": "array" + }, + "name": { + "description": "The name of the span.", + "type": "string" + }, + "startTime": { + "description": "Timestamp of the start of the span.", + "format": "google-datetime", + "type": "string" + }, + "tags": { + "description": "The metadata tags of the span such as span type.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1SpeechToTextSettings": { "description": "Settings related to speech recognition.", "id": "GoogleCloudDialogflowCxV3beta1SpeechToTextSettings", @@ -13608,6 +14190,17 @@ "properties": {}, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1Status": { + "description": "The status of the action.", + "id": "GoogleCloudDialogflowCxV3beta1Status", + "properties": { + "exception": { + "$ref": "GoogleCloudDialogflowCxV3beta1Exception", + "description": "Optional. The exception thrown during the execution of the action." + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1StopExperimentRequest": { "description": "The request message for Experiments.StopExperiment.", "id": "GoogleCloudDialogflowCxV3beta1StopExperimentRequest", @@ -14374,6 +14967,10 @@ "description": "Optional. Name of the action to be called during the tool use.", "type": "string" }, + "dataStoreToolTrace": { + "$ref": "GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace", + "description": "Optional. Data store tool trace." + }, "displayName": { "description": "Output only. The display name of the tool.", "readOnly": true, @@ -14398,6 +14995,36 @@ "tool": { "description": "Required. The tool that should be used. Format: `projects//locations//agents//tools/`.", "type": "string" + }, + "webhookToolTrace": { + "$ref": "GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace", + "description": "Optional. Webhook tool trace." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace": { + "description": "The tracing information for the data store tool.", + "id": "GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace", + "properties": { + "dataStoreConnectionSignals": { + "$ref": "GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals", + "description": "Optional. Data store connection feature output signals." + } + }, + "type": "object" + }, + "GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace": { + "description": "The tracing information for the webhook tool.", + "id": "GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace", + "properties": { + "webhookTag": { + "description": "Optional. The tag of the webhook.", + "type": "string" + }, + "webhookUri": { + "description": "Optional. The url of the webhook.", + "type": "string" } }, "type": "object" @@ -14719,6 +15346,19 @@ "description": "UserUtterance represents one message sent by the customer.", "id": "GoogleCloudDialogflowCxV3beta1UserUtterance", "properties": { + "audio": { + "description": "Optional. Audio input.", + "format": "byte", + "type": "string" + }, + "audioTokens": { + "description": "Optional. Tokens of the audio input.", + "items": { + "format": "int32", + "type": "integer" + }, + "type": "array" + }, "text": { "description": "Required. Message content in text.", "type": "string" @@ -20441,15 +21081,15 @@ "enum": [ "MESSAGE_TYPE_UNSPECIFIED", "TRANSCRIPT", - "DTMF_DIGITS", "END_OF_SINGLE_UTTERANCE", + "DTMF_DIGITS", "PARTIAL_DTMF_DIGITS" ], "enumDescriptions": [ "Not specified. Should never be used.", "Message contains a (possibly partial) transcript.", - "Message contains DTMF digits.", "This event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.", + "Message contains DTMF digits.", "Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result." ], "type": "string" diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index f7af8223923..4237d89b756 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -3884,24 +3884,45 @@ func (s GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([ type GoogleCloudDialogflowCxV3beta1Action struct { // AgentUtterance: Optional. Action performed by the agent as a message. AgentUtterance *GoogleCloudDialogflowCxV3beta1AgentUtterance `json:"agentUtterance,omitempty"` + // CompleteTime: Output only. Timestamp of the completion of the agent action. + CompleteTime string `json:"completeTime,omitempty"` + // DisplayName: Output only. The display name of the action. + DisplayName string `json:"displayName,omitempty"` // Event: Optional. The agent received an event from the customer or a system // event is emitted. Event *GoogleCloudDialogflowCxV3beta1Event `json:"event,omitempty"` // FlowInvocation: Optional. Action performed on behalf of the agent by // invoking a CX flow. FlowInvocation *GoogleCloudDialogflowCxV3beta1FlowInvocation `json:"flowInvocation,omitempty"` + // FlowStateUpdate: Optional. Output only. The state machine update in flows. + FlowStateUpdate *GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate `json:"flowStateUpdate,omitempty"` // FlowTransition: Optional. Action performed on behalf of the agent by // transitioning to a target CX flow. FlowTransition *GoogleCloudDialogflowCxV3beta1FlowTransition `json:"flowTransition,omitempty"` + // IntentMatch: Optional. Output only. Intent Match in flows. + IntentMatch *GoogleCloudDialogflowCxV3beta1ActionIntentMatch `json:"intentMatch,omitempty"` + // LlmCall: Optional. Output only. LLM call performed by the agent. + LlmCall *GoogleCloudDialogflowCxV3beta1LlmCall `json:"llmCall,omitempty"` // PlaybookInvocation: Optional. Action performed on behalf of the agent by // invoking a child playbook. PlaybookInvocation *GoogleCloudDialogflowCxV3beta1PlaybookInvocation `json:"playbookInvocation,omitempty"` // PlaybookTransition: Optional. Action performed on behalf of the agent by // transitioning to a target playbook. PlaybookTransition *GoogleCloudDialogflowCxV3beta1PlaybookTransition `json:"playbookTransition,omitempty"` + // StartTime: Output only. Timestamp of the start of the agent action. + StartTime string `json:"startTime,omitempty"` + // Status: Optional. Output only. The status of the action. + Status *GoogleCloudDialogflowCxV3beta1Status `json:"status,omitempty"` + // Stt: Optional. Speech-to-text action performed by the agent. + Stt *GoogleCloudDialogflowCxV3beta1ActionSTT `json:"stt,omitempty"` + // SubExecutionSteps: Optional. The detailed tracing information for sub + // execution steps of the action. + SubExecutionSteps []*GoogleCloudDialogflowCxV3beta1Span `json:"subExecutionSteps,omitempty"` // ToolUse: Optional. Action performed on behalf of the agent by calling a // plugin tool. ToolUse *GoogleCloudDialogflowCxV3beta1ToolUse `json:"toolUse,omitempty"` + // Tts: Optional. Text-to-speech action performed by the agent. + Tts *GoogleCloudDialogflowCxV3beta1ActionTTS `json:"tts,omitempty"` // UserUtterance: Optional. Agent obtained a message from the customer. UserUtterance *GoogleCloudDialogflowCxV3beta1UserUtterance `json:"userUtterance,omitempty"` // ForceSendFields is a list of field names (e.g. "AgentUtterance") to @@ -3922,6 +3943,166 @@ func (s GoogleCloudDialogflowCxV3beta1Action) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate: Stores metadata of the +// state update action, such as a state machine execution in flows. +type GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate struct { + // Destination: The destination of the transition. Format: + // `projects//locations//agents//flows//pages/` or + // `projects//locations//agents//playbooks/`. + Destination string `json:"destination,omitempty"` + // EventType: The type of the event that triggered the state update. + EventType string `json:"eventType,omitempty"` + // FunctionCall: The function call to execute. + FunctionCall *GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall `json:"functionCall,omitempty"` + // PageState: The updated page and flow state. + PageState *GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState `json:"pageState,omitempty"` + // UpdatedParameters: The updated parameters. + UpdatedParameters googleapi.RawMessage `json:"updatedParameters,omitempty"` + // ForceSendFields is a list of field names (e.g. "Destination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Destination") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall: Stores the +// metadata of a function call to execute. +type GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall struct { + // Name: The name of the function call. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState: Stores the +// state of a page and its flow. +type GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState struct { + // DisplayName: The display name of the page. + DisplayName string `json:"displayName,omitempty"` + // Page: The ID of the page. Format: + // `projects//locations//agents//flows//pages/`. + Page string `json:"page,omitempty"` + // Status: The status of the page. + Status string `json:"status,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ActionIntentMatch: Stores metadata of the +// intent match action. +type GoogleCloudDialogflowCxV3beta1ActionIntentMatch struct { + // MatchedIntents: The matched intent. + MatchedIntents []*GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent `json:"matchedIntents,omitempty"` + // ForceSendFields is a list of field names (e.g. "MatchedIntents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MatchedIntents") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ActionIntentMatch) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionIntentMatch + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent: Stores the +// matched intent, which is the result of the intent match action. +type GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent struct { + // DisplayName: The display name of the matched intent. + DisplayName string `json:"displayName,omitempty"` + // GenerativeFallback: The generative fallback response of the matched intent. + GenerativeFallback googleapi.RawMessage `json:"generativeFallback,omitempty"` + // IntentId: The ID of the matched intent. + IntentId string `json:"intentId,omitempty"` + // Score: The score of the matched intent. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "DisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DisplayName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent + var s1 struct { + Score gensupport.JSONFloat64 `json:"score"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Score = float64(s1.Score) + return nil +} + +// GoogleCloudDialogflowCxV3beta1ActionSTT: Stores metadata of the +// Speech-to-Text action. +type GoogleCloudDialogflowCxV3beta1ActionSTT struct { +} + +// GoogleCloudDialogflowCxV3beta1ActionTTS: Stores metadata of the +// Text-to-Speech action. +type GoogleCloudDialogflowCxV3beta1ActionTTS struct { +} + // GoogleCloudDialogflowCxV3beta1AdvancedSettings: Hierarchical advanced // settings for agent/flow/page/fulfillment/parameter. Settings exposed at // lower level overrides the settings exposed at higher level. Overriding @@ -4384,17 +4565,22 @@ func (s GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings) MarshalJSON( // GoogleCloudDialogflowCxV3beta1AgentUtterance: AgentUtterance represents one // message sent by the agent. type GoogleCloudDialogflowCxV3beta1AgentUtterance struct { + // RequireGeneration: Optional. True if the agent utterance needs to be + // generated by the LLM. Only used in webhook response to differentiate from + // empty text. Revisit whether we need this field or mark `text` as optional + // when we expose webhook interface to customer. + RequireGeneration bool `json:"requireGeneration,omitempty"` // Text: Required. Message content in text. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "RequireGeneration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "RequireGeneration") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -6389,6 +6575,8 @@ func (s GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([ type GoogleCloudDialogflowCxV3beta1Event struct { // Event: Required. Name of the event. Event string `json:"event,omitempty"` + // Text: Optional. Unstructured text payload of the event. + Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Event") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -6536,6 +6724,29 @@ func (s GoogleCloudDialogflowCxV3beta1Example) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1Exception: Exception thrown during the +// execution of an action. +type GoogleCloudDialogflowCxV3beta1Exception struct { + // ErrorMessage: Optional. The error message. + ErrorMessage string `json:"errorMessage,omitempty"` + // ForceSendFields is a list of field names (e.g. "ErrorMessage") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ErrorMessage") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1Exception) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1Exception + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1Experiment: Represents an experiment in an // environment. type GoogleCloudDialogflowCxV3beta1Experiment struct { @@ -7133,6 +7344,44 @@ func (s GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest: The request message for +// Playbooks.ExportPlaybook. +type GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest struct { + // DataFormat: Optional. The data format of the exported agent. If not + // specified, `BLOB` is assumed. + // + // Possible values: + // "DATA_FORMAT_UNSPECIFIED" - Unspecified format. + // "BLOB" - Flow content will be exported as raw bytes. + // "JSON" - Flow content will be exported in JSON format. + DataFormat string `json:"dataFormat,omitempty"` + // PlaybookUri: Optional. The Google Cloud Storage + // (https://cloud.google.com/storage/docs/) URI to export the playbook to. The + // format of this URI must be `gs:///`. If left unspecified, the serialized + // playbook is returned inline. Dialogflow performs a write operation for the + // Cloud Storage object on the caller's behalf, so your request authentication + // must have write permissions for the object. For more information, see + // Dialogflow access control + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + PlaybookUri string `json:"playbookUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataFormat") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataFormat") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata: Metadata returned for // the TestCases.ExportTestCases long running operation. This message currently // has no fields. @@ -7402,12 +7651,12 @@ func (s GoogleCloudDialogflowCxV3beta1FlowImportStrategy) MarshalJSON() ([]byte, } // GoogleCloudDialogflowCxV3beta1FlowInvocation: Stores metadata of the -// invocation of a CX flow. +// invocation of a child CX flow. Flow invocation actions enter the child flow. type GoogleCloudDialogflowCxV3beta1FlowInvocation struct { // DisplayName: Output only. The display name of the flow. DisplayName string `json:"displayName,omitempty"` // Flow: Required. The unique identifier of the flow. Format: - // `projects//locations//agents//flows/`. + // `projects//locations//agents/`. Flow string `json:"flow,omitempty"` // FlowState: Required. Flow invocation's output state. // @@ -7483,6 +7732,8 @@ type GoogleCloudDialogflowCxV3beta1FlowTransition struct { // Flow: Required. The unique identifier of the flow. Format: // `projects//locations//agents/`. Flow string `json:"flow,omitempty"` + // InputActionParameters: A list of input parameters for the action. + InputActionParameters googleapi.RawMessage `json:"inputActionParameters,omitempty"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8565,6 +8816,35 @@ func (s GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest: The request message for +// Playbooks.ImportPlaybook. +type GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest struct { + // ImportStrategy: Optional. Specifies the import strategy used when resolving + // resource conflicts. + ImportStrategy *GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy `json:"importStrategy,omitempty"` + // PlaybookContent: Uncompressed raw byte content for playbook. + PlaybookContent string `json:"playbookContent,omitempty"` + // PlaybookUri: [Dialogflow access control] + // (https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). + PlaybookUri string `json:"playbookUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ImportStrategy") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ImportStrategy") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata: Metadata returned for // the TestCases.ImportTestCases long running operation. type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct { @@ -9895,6 +10175,118 @@ func (s GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1LlmCall: Stores metadata of the call of an +// LLM. +type GoogleCloudDialogflowCxV3beta1LlmCall struct { + // Model: The model of the LLM call. + Model string `json:"model,omitempty"` + // RetrievedExamples: A list of relevant examples used for the LLM prompt. + RetrievedExamples []*GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample `json:"retrievedExamples,omitempty"` + // Temperature: The temperature of the LLM call. + Temperature float64 `json:"temperature,omitempty"` + // TokenCount: The token counts of the LLM call. + TokenCount *GoogleCloudDialogflowCxV3beta1LlmCallTokenCount `json:"tokenCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "Model") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Model") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1LlmCall) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LlmCall + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudDialogflowCxV3beta1LlmCall) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudDialogflowCxV3beta1LlmCall + var s1 struct { + Temperature gensupport.JSONFloat64 `json:"temperature"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Temperature = float64(s1.Temperature) + return nil +} + +// GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample: Relevant example used +// for the LLM prompt. +type GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample struct { + // ExampleDisplayName: The display name of the example. + ExampleDisplayName string `json:"exampleDisplayName,omitempty"` + // ExampleId: The id of the example. + ExampleId string `json:"exampleId,omitempty"` + // MatchedRetrievalLabel: Optional. The matched retrieval label of this LLM + // call. + MatchedRetrievalLabel string `json:"matchedRetrievalLabel,omitempty"` + // RetrievalStrategy: Retrieval strategy of the example. + // + // Possible values: + // "RETRIEVAL_STRATEGY_UNSPECIFIED" - Not specified. `DEFAULT` will be used. + // "DEFAULT" - Default retrieval strategy. + // "STATIC" - Static example will always be inserted to the prompt. + // "NEVER" - Example will never be inserted into the prompt. + RetrievalStrategy string `json:"retrievalStrategy,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExampleDisplayName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ExampleDisplayName") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1LlmCallTokenCount: Stores token counts of the +// LLM call. +type GoogleCloudDialogflowCxV3beta1LlmCallTokenCount struct { + // ConversationContextTokenCount: The number of tokens used for the + // conversation history in the prompt. + ConversationContextTokenCount int64 `json:"conversationContextTokenCount,omitempty,string"` + // ExampleTokenCount: The number of tokens used for the retrieved examples in + // the prompt. + ExampleTokenCount int64 `json:"exampleTokenCount,omitempty,string"` + // TotalInputTokenCount: The total number of tokens used for the input to the + // LLM call. + TotalInputTokenCount int64 `json:"totalInputTokenCount,omitempty,string"` + // TotalOutputTokenCount: The total number of tokens used for the output of the + // LLM call. + TotalOutputTokenCount int64 `json:"totalOutputTokenCount,omitempty,string"` + // ForceSendFields is a list of field names (e.g. + // "ConversationContextTokenCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ConversationContextTokenCount") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1LlmCallTokenCount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1LlmCallTokenCount + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1LlmModelSettings: Settings for LLM models. type GoogleCloudDialogflowCxV3beta1LlmModelSettings struct { // Model: The selected LLM model. @@ -10122,6 +10514,34 @@ func (s GoogleCloudDialogflowCxV3beta1MatchIntentResponse) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1NamedMetric: A named metric is a metric with +// name, value and unit. +type GoogleCloudDialogflowCxV3beta1NamedMetric struct { + // Name: The name of the metric. + Name string `json:"name,omitempty"` + // Unit: The unit in which this metric is reported. Follows The Unified Code + // for Units of Measure (https://unitsofmeasure.org/ucum.html) standard. + Unit string `json:"unit,omitempty"` + // Value: The value of the metric. + Value interface{} `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1NamedMetric) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1NamedMetric + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1NluSettings: Settings related to NLU. type GoogleCloudDialogflowCxV3beta1NluSettings struct { // ClassificationThreshold: To filter out false positive results and still get @@ -10567,13 +10987,85 @@ func (s GoogleCloudDialogflowCxV3beta1Playbook) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudDialogflowCxV3beta1PlaybookInput: Input of the playbook. -type GoogleCloudDialogflowCxV3beta1PlaybookInput struct { - // ActionParameters: Optional. A list of input parameters for the action. - ActionParameters googleapi.RawMessage `json:"actionParameters,omitempty"` - // PrecedingConversationSummary: Optional. Summary string of the preceding - // conversation for the child playbook invocation. - PrecedingConversationSummary string `json:"precedingConversationSummary,omitempty"` +// GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy: The playbook import +// strategy used for resource conflict resolution associated with an +// ImportPlaybookRequest. +type GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy struct { + // MainPlaybookImportStrategy: Optional. Specifies the import strategy used + // when resolving conflicts with the main playbook. If not specified, + // 'CREATE_NEW' is assumed. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + MainPlaybookImportStrategy string `json:"mainPlaybookImportStrategy,omitempty"` + // NestedResourceImportStrategy: Optional. Specifies the import strategy used + // when resolving referenced playbook/flow conflicts. If not specified, + // 'CREATE_NEW' is assumed. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + NestedResourceImportStrategy string `json:"nestedResourceImportStrategy,omitempty"` + // ToolImportStrategy: Optional. Specifies the import strategy used when + // resolving tool conflicts. If not specified, 'CREATE_NEW' is assumed. This + // will be applied after the main playbook and nested resource import + // strategies, meaning if the playbook that references the tool is skipped, the + // tool will also be skipped. + // + // Possible values: + // "IMPORT_STRATEGY_UNSPECIFIED" - Unspecified. Treated as 'CREATE_NEW'. + // "IMPORT_STRATEGY_CREATE_NEW" - Create a new resource with a numeric suffix + // appended to the end of the existing display name. + // "IMPORT_STRATEGY_REPLACE" - Replace existing resource with incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_KEEP" - Keep existing resource and discard incoming + // resource in the content to be imported. + // "IMPORT_STRATEGY_MERGE" - Combine existing and incoming resources when a + // conflict is encountered. + // "IMPORT_STRATEGY_THROW_ERROR" - Throw error if a conflict is encountered. + ToolImportStrategy string `json:"toolImportStrategy,omitempty"` + // ForceSendFields is a list of field names (e.g. "MainPlaybookImportStrategy") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "MainPlaybookImportStrategy") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1PlaybookInput: Input of the playbook. +type GoogleCloudDialogflowCxV3beta1PlaybookInput struct { + // ActionParameters: Optional. A list of input parameters for the action. + ActionParameters googleapi.RawMessage `json:"actionParameters,omitempty"` + // PrecedingConversationSummary: Optional. Summary string of the preceding + // conversation for the child playbook invocation. + PrecedingConversationSummary string `json:"precedingConversationSummary,omitempty"` // ForceSendFields is a list of field names (e.g. "ActionParameters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10622,7 +11114,8 @@ func (s GoogleCloudDialogflowCxV3beta1PlaybookInstruction) MarshalJSON() ([]byte } // GoogleCloudDialogflowCxV3beta1PlaybookInvocation: Stores metadata of the -// invocation of a child playbook. +// invocation of a child playbook. Playbook invocation actions enter the child +// playbook. type GoogleCloudDialogflowCxV3beta1PlaybookInvocation struct { // DisplayName: Output only. The display name of the playbook. DisplayName string `json:"displayName,omitempty"` @@ -10669,6 +11162,15 @@ type GoogleCloudDialogflowCxV3beta1PlaybookOutput struct { // ExecutionSummary: Optional. Summary string of the execution result of the // child playbook. ExecutionSummary string `json:"executionSummary,omitempty"` + // State: End state of the playbook. + // + // Possible values: + // "STATE_UNSPECIFIED" - Unspecified state. + // "OK" - Playbook succeeded. + // "CANCELLED" - Playbook cancelled. + // "FAILED" - Playbook failed. + // "ESCALATED" - Playbook failed due to escalation. + State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "ActionParameters") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10718,6 +11220,8 @@ func (s GoogleCloudDialogflowCxV3beta1PlaybookStep) MarshalJSON() ([]byte, error type GoogleCloudDialogflowCxV3beta1PlaybookTransition struct { // DisplayName: Output only. The display name of the playbook. DisplayName string `json:"displayName,omitempty"` + // InputActionParameters: A list of input parameters for the action. + InputActionParameters googleapi.RawMessage `json:"inputActionParameters,omitempty"` // Playbook: Required. The unique identifier of the playbook. Format: // `projects//locations//agents//playbooks/`. Playbook string `json:"playbook,omitempty"` @@ -11475,6 +11979,37 @@ func (s GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest: The request +// message for Playbooks.RestorePlaybookVersion. +type GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest struct { +} + +// GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse: The response +// message for Playbooks.RestorePlaybookVersion. +type GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse struct { + // Playbook: The updated playbook. + Playbook *GoogleCloudDialogflowCxV3beta1Playbook `json:"playbook,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Playbook") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Playbook") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1RestoreToolVersionRequest: The request message // for Tools.RestoreToolVersion. type GoogleCloudDialogflowCxV3beta1RestoreToolVersionRequest struct { @@ -12113,6 +12648,37 @@ func (s GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1Span: A span represents a sub execution step +// of an action. +type GoogleCloudDialogflowCxV3beta1Span struct { + // CompleteTime: Timestamp of the completion of the span. + CompleteTime string `json:"completeTime,omitempty"` + // Metrics: The unordered collection of metrics in this span. + Metrics []*GoogleCloudDialogflowCxV3beta1NamedMetric `json:"metrics,omitempty"` + // Name: The name of the span. + Name string `json:"name,omitempty"` + // StartTime: Timestamp of the start of the span. + StartTime string `json:"startTime,omitempty"` + // Tags: The metadata tags of the span such as span type. + Tags []string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "CompleteTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CompleteTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1Span) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1Span + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1SpeechToTextSettings: Settings related to // speech recognition. type GoogleCloudDialogflowCxV3beta1SpeechToTextSettings struct { @@ -12142,6 +12708,29 @@ func (s GoogleCloudDialogflowCxV3beta1SpeechToTextSettings) MarshalJSON() ([]byt type GoogleCloudDialogflowCxV3beta1StartExperimentRequest struct { } +// GoogleCloudDialogflowCxV3beta1Status: The status of the action. +type GoogleCloudDialogflowCxV3beta1Status struct { + // Exception: Optional. The exception thrown during the execution of the + // action. + Exception *GoogleCloudDialogflowCxV3beta1Exception `json:"exception,omitempty"` + // ForceSendFields is a list of field names (e.g. "Exception") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Exception") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1Status) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1Status + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1StopExperimentRequest: The request message for // Experiments.StopExperiment. type GoogleCloudDialogflowCxV3beta1StopExperimentRequest struct { @@ -13205,6 +13794,8 @@ func (s GoogleCloudDialogflowCxV3beta1ToolTLSConfigCACert) MarshalJSON() ([]byte type GoogleCloudDialogflowCxV3beta1ToolUse struct { // Action: Optional. Name of the action to be called during the tool use. Action string `json:"action,omitempty"` + // DataStoreToolTrace: Optional. Data store tool trace. + DataStoreToolTrace *GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace `json:"dataStoreToolTrace,omitempty"` // DisplayName: Output only. The display name of the tool. DisplayName string `json:"displayName,omitempty"` // InputActionParameters: Optional. A list of input parameters for the action. @@ -13215,6 +13806,8 @@ type GoogleCloudDialogflowCxV3beta1ToolUse struct { // Tool: Required. The tool that should be used. Format: // `projects//locations//agents//tools/`. Tool string `json:"tool,omitempty"` + // WebhookToolTrace: Optional. Webhook tool trace. + WebhookToolTrace *GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace `json:"webhookToolTrace,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -13233,6 +13826,55 @@ func (s GoogleCloudDialogflowCxV3beta1ToolUse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace: The tracing +// information for the data store tool. +type GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace struct { + // DataStoreConnectionSignals: Optional. Data store connection feature output + // signals. + DataStoreConnectionSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataStoreConnectionSignals") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataStoreConnectionSignals") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace: The tracing +// information for the webhook tool. +type GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace struct { + // WebhookTag: Optional. The tag of the webhook. + WebhookTag string `json:"webhookTag,omitempty"` + // WebhookUri: Optional. The url of the webhook. + WebhookUri string `json:"webhookUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "WebhookTag") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "WebhookTag") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1ToolVersion: Tool version is a snapshot of the // tool at certain timestamp. type GoogleCloudDialogflowCxV3beta1ToolVersion struct { @@ -13701,17 +14343,21 @@ func (s GoogleCloudDialogflowCxV3beta1TypeSchemaSchemaReference) MarshalJSON() ( // GoogleCloudDialogflowCxV3beta1UserUtterance: UserUtterance represents one // message sent by the customer. type GoogleCloudDialogflowCxV3beta1UserUtterance struct { + // Audio: Optional. Audio input. + Audio string `json:"audio,omitempty"` + // AudioTokens: Optional. Tokens of the audio input. + AudioTokens []int64 `json:"audioTokens,omitempty"` // Text: Required. Message content in text. Text string `json:"text,omitempty"` - // ForceSendFields is a list of field names (e.g. "Text") to unconditionally + // ForceSendFields is a list of field names (e.g. "Audio") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Text") to include in API requests - // with the JSON null value. By default, fields with empty values are omitted - // from API requests. See + // NullFields is a list of field names (e.g. "Audio") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -21512,7 +22158,6 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // Possible values: // "MESSAGE_TYPE_UNSPECIFIED" - Not specified. Should never be used. // "TRANSCRIPT" - Message contains a (possibly partial) transcript. - // "DTMF_DIGITS" - Message contains DTMF digits. // "END_OF_SINGLE_UTTERANCE" - This event indicates that the server has // detected the end of the user's speech utterance and expects no additional // speech. Therefore, the server will not process additional audio (although it @@ -21521,6 +22166,7 @@ type GoogleCloudDialogflowV2beta1StreamingRecognitionResult struct { // additional results until the server closes the gRPC connection. This message // is only sent if `single_utterance` was set to `true`, and is not used // otherwise. + // "DTMF_DIGITS" - Message contains DTMF digits. // "PARTIAL_DTMF_DIGITS" - Message contains DTMF digits. Before a message // with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent // with DTMF digits collected up to the time of sending, which represents an @@ -33627,6 +34273,112 @@ func (c *ProjectsLocationsAgentsPlaybooksDeleteCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsAgentsPlaybooksExportCall struct { + s *Service + name string + googleclouddialogflowcxv3beta1exportplaybookrequest *GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Export: Exports the specified playbook to a binary file. Note that resources +// (e.g. examples, tools) that the playbook references will also be exported. +// +// - name: The name of the playbook to export. Format: +// `projects//locations//agents//playbooks/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Export(name string, googleclouddialogflowcxv3beta1exportplaybookrequest *GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest) *ProjectsLocationsAgentsPlaybooksExportCall { + c := &ProjectsLocationsAgentsPlaybooksExportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddialogflowcxv3beta1exportplaybookrequest = googleclouddialogflowcxv3beta1exportplaybookrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsPlaybooksExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksExportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksExportCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsPlaybooksExportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksExportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3beta1exportplaybookrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.export", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.export" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsPlaybooksExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.export", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsPlaybooksGetCall struct { s *Service name string @@ -33738,6 +34490,112 @@ func (c *ProjectsLocationsAgentsPlaybooksGetCall) Do(opts ...googleapi.CallOptio return ret, nil } +type ProjectsLocationsAgentsPlaybooksImportCall struct { + s *Service + parent string + googleclouddialogflowcxv3beta1importplaybookrequest *GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports the specified playbook to the specified agent from a binary +// file. +// +// - parent: The agent to import the playbook into. Format: +// `projects//locations//agents/`. +func (r *ProjectsLocationsAgentsPlaybooksService) Import(parent string, googleclouddialogflowcxv3beta1importplaybookrequest *GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest) *ProjectsLocationsAgentsPlaybooksImportCall { + c := &ProjectsLocationsAgentsPlaybooksImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleclouddialogflowcxv3beta1importplaybookrequest = googleclouddialogflowcxv3beta1importplaybookrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsPlaybooksImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksImportCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsPlaybooksImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3beta1importplaybookrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/playbooks:import") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.import", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.import" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsPlaybooksImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.import", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsPlaybooksListCall struct { s *Service parent string @@ -35040,6 +35898,112 @@ func (c *ProjectsLocationsAgentsPlaybooksVersionsListCall) Pages(ctx context.Con } } +type ProjectsLocationsAgentsPlaybooksVersionsRestoreCall struct { + s *Service + name string + googleclouddialogflowcxv3beta1restoreplaybookversionrequest *GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Restore: Retrieves the specified version of the Playbook and stores it as +// the current playbook draft, returning the playbook with resources updated. +// +// - name: The name of the playbook version. Format: +// `projects//locations//agents//playbooks//versions/`. +func (r *ProjectsLocationsAgentsPlaybooksVersionsService) Restore(name string, googleclouddialogflowcxv3beta1restoreplaybookversionrequest *GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + c := &ProjectsLocationsAgentsPlaybooksVersionsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleclouddialogflowcxv3beta1restoreplaybookversionrequest = googleclouddialogflowcxv3beta1restoreplaybookversionrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.googleclouddialogflowcxv3beta1restoreplaybookversionrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:restore") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.restore", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dialogflow.projects.locations.agents.playbooks.versions.restore" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsAgentsPlaybooksVersionsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "dialogflow.projects.locations.agents.playbooks.versions.restore", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type ProjectsLocationsAgentsSessionsDetectIntentCall struct { s *Service sessionid string diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 87eb45d0284..c1400ed2154 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1048,7 +1048,7 @@ } } }, - "revision": "20250321", + "revision": "20250416", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3AutoLabelDocumentsMetadata": { @@ -2232,6 +2232,10 @@ "format": "byte", "type": "string" }, + "docid": { + "description": "Optional. An internal identifier for document. Should be loggable (no PII).", + "type": "string" + }, "documentLayout": { "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayout", "description": "Parsed layout of the document." @@ -2425,6 +2429,10 @@ "description": "ID of the block.", "type": "string" }, + "boundingBox": { + "$ref": "GoogleCloudDocumentaiV1BoundingPoly", + "description": "Identifies the bounding box for the block." + }, "listBlock": { "$ref": "GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock", "description": "Block consisting of list content/structure." diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index c5af61e1194..9bb3d9a15f5 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -1921,6 +1921,9 @@ type GoogleCloudDocumentaiV1Document struct { // bytes. Note: As with all `bytes` fields, protobuffers use a pure binary // representation, whereas JSON representations use base64. Content string `json:"content,omitempty"` + // Docid: Optional. An internal identifier for document. Should be loggable (no + // PII). + Docid string `json:"docid,omitempty"` // DocumentLayout: Parsed layout of the document. DocumentLayout *GoogleCloudDocumentaiV1DocumentDocumentLayout `json:"documentLayout,omitempty"` // Entities: A list of entities detected on Document.text. For document shards, @@ -2131,6 +2134,8 @@ func (s GoogleCloudDocumentaiV1DocumentDocumentLayout) MarshalJSON() ([]byte, er type GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock struct { // BlockId: ID of the block. BlockId string `json:"blockId,omitempty"` + // BoundingBox: Identifies the bounding box for the block. + BoundingBox *GoogleCloudDocumentaiV1BoundingPoly `json:"boundingBox,omitempty"` // ListBlock: Block consisting of list content/structure. ListBlock *GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock `json:"listBlock,omitempty"` // PageSpan: Page span of the block. diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 3e316330610..7834a1900fe 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250412", + "revision": "20250416", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -1568,13 +1568,21 @@ "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_CIVIC_INTEGRITY" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + true + ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", "The harm category is sexually explicit content.", - "The harm category is civic integrity." + "Deprecated: Election filter is not longer supported. The harm category is civic integrity." ], "readOnly": true, "type": "string" @@ -1646,13 +1654,21 @@ "HARM_CATEGORY_SEXUALLY_EXPLICIT", "HARM_CATEGORY_CIVIC_INTEGRITY" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + true + ], "enumDescriptions": [ "The harm category is unspecified.", "The harm category is hate speech.", "The harm category is dangerous content.", "The harm category is harassment.", "The harm category is sexually explicit content.", - "The harm category is civic integrity." + "Deprecated: Election filter is not longer supported. The harm category is civic integrity." ], "type": "string" }, diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 0fed2f41d5b..66f3e08b87c 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1968,7 +1968,8 @@ type GoogleCloudAiplatformV1beta1SafetyRating struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. - // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - Deprecated: Election filter is not + // longer supported. The harm category is civic integrity. Category string `json:"category,omitempty"` // Probability: Output only. Harm probability levels in the content. // @@ -2038,7 +2039,8 @@ type GoogleCloudAiplatformV1beta1SafetySetting struct { // "HARM_CATEGORY_HARASSMENT" - The harm category is harassment. // "HARM_CATEGORY_SEXUALLY_EXPLICIT" - The harm category is sexually explicit // content. - // "HARM_CATEGORY_CIVIC_INTEGRITY" - The harm category is civic integrity. + // "HARM_CATEGORY_CIVIC_INTEGRITY" - Deprecated: Election filter is not + // longer supported. The harm category is civic integrity. Category string `json:"category,omitempty"` // Method: Optional. Specify if the threshold is used for probability or // severity score. If not specified, the threshold is used for probability diff --git a/meet/v2/meet-api.json b/meet/v2/meet-api.json index ad4a10d9adf..a46f1473598 100644 --- a/meet/v2/meet-api.json +++ b/meet/v2/meet-api.json @@ -638,7 +638,7 @@ } } }, - "revision": "20250406", + "revision": "20250415", "rootUrl": "https://meet.googleapis.com/", "schemas": { "ActiveConference": { @@ -1167,10 +1167,10 @@ }, "artifactConfig": { "$ref": "ArtifactConfig", - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Configuration pertaining to the auto-generated artifacts that the meeting supports." + "description": "Configuration pertaining to the auto-generated artifacts that the meeting supports." }, "attendanceReportGenerationType": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): Whether attendance report is enabled for the meeting space.", + "description": "Whether attendance report is enabled for the meeting space.", "enum": [ "ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED", "GENERATE_REPORT", @@ -1198,7 +1198,7 @@ "type": "string" }, "moderation": { - "description": "[Developer Preview](https://developers.google.com/workspace/preview): The pre-configured moderation mode for the Meeting. Default: Controlled by the user's policies.", + "description": "The pre-configured moderation mode for the Meeting. Default: Controlled by the user's policies.", "enum": [ "MODERATION_UNSPECIFIED", "OFF", @@ -1213,7 +1213,7 @@ }, "moderationRestrictions": { "$ref": "ModerationRestrictions", - "description": "[Developer Preview](https://developers.google.com/workspace/preview): When moderation.ON, these restrictions go into effect for the meeting. When moderation.OFF, will be reset to default ModerationRestrictions." + "description": "When moderation.ON, these restrictions go into effect for the meeting. When moderation.OFF, will be reset to default ModerationRestrictions." } }, "type": "object" diff --git a/meet/v2/meet-gen.go b/meet/v2/meet-gen.go index 03db55a6a5a..33dee92fea5 100644 --- a/meet/v2/meet-gen.go +++ b/meet/v2/meet-gen.go @@ -961,13 +961,11 @@ type SpaceConfig struct { // "RESTRICTED" - Only invitees can join without knocking. Everyone else must // knock. AccessType string `json:"accessType,omitempty"` - // ArtifactConfig: Developer Preview - // (https://developers.google.com/workspace/preview): Configuration pertaining - // to the auto-generated artifacts that the meeting supports. + // ArtifactConfig: Configuration pertaining to the auto-generated artifacts + // that the meeting supports. ArtifactConfig *ArtifactConfig `json:"artifactConfig,omitempty"` - // AttendanceReportGenerationType: Developer Preview - // (https://developers.google.com/workspace/preview): Whether attendance report - // is enabled for the meeting space. + // AttendanceReportGenerationType: Whether attendance report is enabled for the + // meeting space. // // Possible values: // "ATTENDANCE_REPORT_GENERATION_TYPE_UNSPECIFIED" - Default value specified @@ -986,9 +984,8 @@ type SpaceConfig struct { // that created the space can be used to join meetings in this space. Apps can // use the Meet Embed SDK Web or mobile Meet SDKs to create owned entry points. EntryPointAccess string `json:"entryPointAccess,omitempty"` - // Moderation: Developer Preview - // (https://developers.google.com/workspace/preview): The pre-configured - // moderation mode for the Meeting. Default: Controlled by the user's policies. + // Moderation: The pre-configured moderation mode for the Meeting. Default: + // Controlled by the user's policies. // // Possible values: // "MODERATION_UNSPECIFIED" - Moderation type is not specified. This is used @@ -997,10 +994,9 @@ type SpaceConfig struct { // "OFF" - Moderation is off. // "ON" - Moderation is on. Moderation string `json:"moderation,omitempty"` - // ModerationRestrictions: Developer Preview - // (https://developers.google.com/workspace/preview): When moderation.ON, these - // restrictions go into effect for the meeting. When moderation.OFF, will be - // reset to default ModerationRestrictions. + // ModerationRestrictions: When moderation.ON, these restrictions go into + // effect for the meeting. When moderation.OFF, will be reset to default + // ModerationRestrictions. ModerationRestrictions *ModerationRestrictions `json:"moderationRestrictions,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessType") to // unconditionally include in API requests. By default, fields with empty or diff --git a/merchantapi/conversions_v1beta/merchantapi-api.json b/merchantapi/conversions_v1beta/merchantapi-api.json index 572f9314b86..569539a8dd0 100644 --- a/merchantapi/conversions_v1beta/merchantapi-api.json +++ b/merchantapi/conversions_v1beta/merchantapi-api.json @@ -119,7 +119,7 @@ ], "parameters": { "parent": { - "description": "Required. The merchant account that will own the new conversion source. Format: accounts/{account}", + "description": "Required. The merchant account that will own the new conversion source. Format: `accounts/{account}`", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -147,7 +147,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the conversion source to be deleted. Format: accounts/{account}/conversionSources/{conversion_source}", + "description": "Required. The name of the conversion source to be deleted. Format: `accounts/{account}/conversionSources/{conversion_source}`", "location": "path", "pattern": "^accounts/[^/]+/conversionSources/[^/]+$", "required": true, @@ -172,7 +172,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the conversion source to be fetched. Format: accounts/{account}/conversionSources/{conversion_source}", + "description": "Required. The name of the conversion source to be fetched. Format: `accounts/{account}/conversionSources/{conversion_source}`", "location": "path", "pattern": "^accounts/[^/]+/conversionSources/[^/]+$", "required": true, @@ -208,14 +208,14 @@ "type": "string" }, "parent": { - "description": "Required. The merchant account who owns the collection of conversion sources. Format: accounts/{account}", + "description": "Required. The merchant account who owns the collection of conversion sources. Format: `accounts/{account}`", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, "type": "string" }, "showDeleted": { - "description": "Optional. Show deleted (archived) option.", + "description": "Optional. Show deleted (archived) conversion sources. By default, deleted conversion sources are not returned.", "location": "query", "type": "boolean" } @@ -238,7 +238,7 @@ ], "parameters": { "name": { - "description": "Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the colon represent the type of conversio source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn: For MerchantCenterDestination sources.", + "description": "Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.", "location": "path", "pattern": "^accounts/[^/]+/conversionSources/[^/]+$", "required": true, @@ -272,7 +272,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the conversion source to be undeleted. Format: accounts/{account}/conversionSources/{conversion_source}", + "description": "Required. The name of the conversion source to be undeleted. Format: `accounts/{account}/conversionSources/{conversion_source}`", "location": "path", "pattern": "^accounts/[^/]+/conversionSources/[^/]+$", "required": true, @@ -295,7 +295,7 @@ } } }, - "revision": "20250311", + "revision": "20250416", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AttributionSettings": { @@ -303,11 +303,12 @@ "id": "AttributionSettings", "properties": { "attributionLookbackWindowDays": { - "description": "Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40.", + "description": "Required. Lookback window (in days) used for attribution in this source. Supported values are `7`, `30` \u0026 `40`.", "format": "int32", "type": "integer" }, "attributionModel": { + "description": "Required. Attribution model.", "enum": [ "ATTRIBUTION_MODEL_UNSPECIFIED", "CROSS_CHANNEL_LAST_CLICK", @@ -354,7 +355,7 @@ "enumDescriptions": [ "Default value. This value is unused.", "Controlled by the Merchant who owns the Conversion Source.", - "Controlled by the YT Affiliates program." + "Controlled by the Youtube Affiliates program." ], "readOnly": true, "type": "string" @@ -374,7 +375,7 @@ "description": "Conversion Source of type \"Merchant Center Tag Destination\"." }, "name": { - "description": "Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the colon represent the type of conversio source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn: For MerchantCenterDestination sources.", + "description": "Output only. Identifier. Generated by the Content API upon creation of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before the colon represent the type of conversion source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: * `galk`: For GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination sources.", "readOnly": true, "type": "string" }, @@ -389,7 +390,7 @@ "enumDescriptions": [ "Conversion source has unspecified state.", "Conversion source is fully functional.", - "Conversion source has been archived in the last 30 days and not currently functional. Can be restored using the undelete method.", + "Conversion source has been archived in the last 30 days and is currently not functional. Can be restored using the undelete method.", "Conversion source creation has started but not fully finished yet." ], "readOnly": true, @@ -399,7 +400,7 @@ "type": "object" }, "ConversionType": { - "description": "Message representing a types of conversion events", + "description": "Message representing the type of a conversion event.", "id": "ConversionType", "properties": { "name": { @@ -467,7 +468,7 @@ "properties": { "attributionSettings": { "$ref": "AttributionSettings", - "description": "Required. Attribution settings being used for the Merchant Center Destination." + "description": "Required. Attribution settings used for the Merchant Center Destination." }, "currencyCode": { "description": "Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center.", @@ -479,7 +480,7 @@ "type": "string" }, "displayName": { - "description": "Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters.", + "description": "Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. The maximum length is 64 characters.", "type": "string" } }, diff --git a/merchantapi/conversions_v1beta/merchantapi-gen.go b/merchantapi/conversions_v1beta/merchantapi-gen.go index e37733680dc..90c8115a26d 100644 --- a/merchantapi/conversions_v1beta/merchantapi-gen.go +++ b/merchantapi/conversions_v1beta/merchantapi-gen.go @@ -177,9 +177,11 @@ type AccountsConversionSourcesService struct { // AttributionSettings: Represents attribution settings for conversion sources // receiving pre-attribution data. type AttributionSettings struct { - // AttributionLookbackWindowDays: Required. Lookback windows (in days) used for - // attribution in this source. Supported values are 7, 30, 40. + // AttributionLookbackWindowDays: Required. Lookback window (in days) used for + // attribution in this source. Supported values are `7`, `30` & `40`. AttributionLookbackWindowDays int64 `json:"attributionLookbackWindowDays,omitempty"` + // AttributionModel: Required. Attribution model. + // // Possible values: // "ATTRIBUTION_MODEL_UNSPECIFIED" - Unspecified model. // "CROSS_CHANNEL_LAST_CLICK" - Cross-channel Last Click model. @@ -220,7 +222,7 @@ type ConversionSource struct { // Possible values: // "CONTROLLER_UNSPECIFIED" - Default value. This value is unused. // "MERCHANT" - Controlled by the Merchant who owns the Conversion Source. - // "YOUTUBE_AFFILIATES" - Controlled by the YT Affiliates program. + // "YOUTUBE_AFFILIATES" - Controlled by the Youtube Affiliates program. Controller string `json:"controller,omitempty"` // ExpireTime: Output only. The time when an archived conversion source becomes // permanently deleted and is no longer available to undelete. @@ -232,12 +234,12 @@ type ConversionSource struct { // Destination". MerchantCenterDestination *MerchantCenterDestination `json:"merchantCenterDestination,omitempty"` // Name: Output only. Identifier. Generated by the Content API upon creation of - // a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the - // colon represent the type of conversio source. Content after the colon + // a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters before + // the colon represent the type of conversion source. Content after the colon // represents the ID of the conversion source within that type. The ID of two // different conversion sources might be the same across different types. The - // following type prefixes are supported: - galk: For GoogleAnalyticsLink - // sources. - mcdn: For MerchantCenterDestination sources. + // following type prefixes are supported: * `galk`: For GoogleAnalyticsLink + // sources. * `mcdn`: For MerchantCenterDestination sources. Name string `json:"name,omitempty"` // State: Output only. Current state of this conversion source. Can't be edited // through the API. @@ -246,7 +248,7 @@ type ConversionSource struct { // "STATE_UNSPECIFIED" - Conversion source has unspecified state. // "ACTIVE" - Conversion source is fully functional. // "ARCHIVED" - Conversion source has been archived in the last 30 days and - // not currently functional. Can be restored using the undelete method. + // is currently not functional. Can be restored using the undelete method. // "PENDING" - Conversion source creation has started but not fully finished // yet. State string `json:"state,omitempty"` @@ -271,7 +273,7 @@ func (s ConversionSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ConversionType: Message representing a types of conversion events +// ConversionType: Message representing the type of a conversion event. type ConversionType struct { // Name: Output only. Conversion event name, as it'll be reported by the // client. @@ -369,8 +371,8 @@ func (s ListConversionSourcesResponse) MarshalJSON() ([]byte, error) { // to send conversion events from an online store using a Google tag directly // to a Merchant Center account where the source is created. type MerchantCenterDestination struct { - // AttributionSettings: Required. Attribution settings being used for the - // Merchant Center Destination. + // AttributionSettings: Required. Attribution settings used for the Merchant + // Center Destination. AttributionSettings *AttributionSettings `json:"attributionSettings,omitempty"` // CurrencyCode: Required. Three-letter currency code (ISO 4217). The currency // code defines in which currency the conversions sent to this destination will @@ -380,7 +382,7 @@ type MerchantCenterDestination struct { Destination string `json:"destination,omitempty"` // DisplayName: Required. Merchant-specified display name for the destination. // This is the name that identifies the conversion source within the Merchant - // Center UI. Limited to 64 characters. + // Center UI. The maximum length is 64 characters. DisplayName string `json:"displayName,omitempty"` // ForceSendFields is a list of field names (e.g. "AttributionSettings") to // unconditionally include in API requests. By default, fields with empty or @@ -548,7 +550,7 @@ type AccountsConversionSourcesCreateCall struct { // Create: Creates a new conversion source. // // - parent: The merchant account that will own the new conversion source. -// Format: accounts/{account}. +// Format: `accounts/{account}`. func (r *AccountsConversionSourcesService) Create(parent string, conversionsource *ConversionSource) *AccountsConversionSourcesCreateCall { c := &AccountsConversionSourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -655,7 +657,7 @@ type AccountsConversionSourcesDeleteCall struct { // and can be restored by creating a new one. // // - name: The name of the conversion source to be deleted. Format: -// accounts/{account}/conversionSources/{conversion_source}. +// `accounts/{account}/conversionSources/{conversion_source}`. func (r *AccountsConversionSourcesService) Delete(name string) *AccountsConversionSourcesDeleteCall { c := &AccountsConversionSourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -754,7 +756,7 @@ type AccountsConversionSourcesGetCall struct { // Get: Fetches a conversion source. // // - name: The name of the conversion source to be fetched. Format: -// accounts/{account}/conversionSources/{conversion_source}. +// `accounts/{account}/conversionSources/{conversion_source}`. func (r *AccountsConversionSourcesService) Get(name string) *AccountsConversionSourcesGetCall { c := &AccountsConversionSourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -865,7 +867,7 @@ type AccountsConversionSourcesListCall struct { // List: Retrieves the list of conversion sources the caller has access to. // // - parent: The merchant account who owns the collection of conversion -// sources. Format: accounts/{account}. +// sources. Format: `accounts/{account}`. func (r *AccountsConversionSourcesService) List(parent string) *AccountsConversionSourcesListCall { c := &AccountsConversionSourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -889,7 +891,8 @@ func (c *AccountsConversionSourcesListCall) PageToken(pageToken string) *Account } // ShowDeleted sets the optional parameter "showDeleted": Show deleted -// (archived) option. +// (archived) conversion sources. By default, deleted conversion sources are +// not returned. func (c *AccountsConversionSourcesListCall) ShowDeleted(showDeleted bool) *AccountsConversionSourcesListCall { c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) return c @@ -1021,12 +1024,12 @@ type AccountsConversionSourcesPatchCall struct { // for Merchant Center Destination conversion sources. // // - name: Output only. Identifier. Generated by the Content API upon creation -// of a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters -// before the colon represent the type of conversio source. Content after the -// colon represents the ID of the conversion source within that type. The ID -// of two different conversion sources might be the same across different -// types. The following type prefixes are supported: - galk: For -// GoogleAnalyticsLink sources. - mcdn: For MerchantCenterDestination +// of a new `ConversionSource`. Format: `[a-z]{4}:.+` The four characters +// before the colon represent the type of conversion source. Content after +// the colon represents the ID of the conversion source within that type. The +// ID of two different conversion sources might be the same across different +// types. The following type prefixes are supported: * `galk`: For +// GoogleAnalyticsLink sources. * `mcdn`: For MerchantCenterDestination // sources. func (r *AccountsConversionSourcesService) Patch(name string, conversionsource *ConversionSource) *AccountsConversionSourcesPatchCall { c := &AccountsConversionSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -1140,7 +1143,7 @@ type AccountsConversionSourcesUndeleteCall struct { // Merchant Center Destination conversion sources. // // - name: The name of the conversion source to be undeleted. Format: -// accounts/{account}/conversionSources/{conversion_source}. +// `accounts/{account}/conversionSources/{conversion_source}`. func (r *AccountsConversionSourcesService) Undelete(name string, undeleteconversionsourcerequest *UndeleteConversionSourceRequest) *AccountsConversionSourcesUndeleteCall { c := &AccountsConversionSourcesUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/merchantapi/datasources_v1beta/merchantapi-api.json b/merchantapi/datasources_v1beta/merchantapi-api.json index 44e07fd4554..dbda3579e8e 100644 --- a/merchantapi/datasources_v1beta/merchantapi-api.json +++ b/merchantapi/datasources_v1beta/merchantapi-api.json @@ -261,7 +261,7 @@ ], "parameters": { "name": { - "description": "Identifier. The name of the data source. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}}`", + "description": "Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`", "location": "path", "pattern": "^accounts/[^/]+/dataSources/[^/]+$", "required": true, @@ -321,7 +321,7 @@ } } }, - "revision": "20250312", + "revision": "20250416", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "DataSource": { @@ -370,7 +370,7 @@ "description": "The [merchant review](https://support.google.com/merchants/answer/7045996) data source." }, "name": { - "description": "Identifier. The name of the data source. Format: `{datasource.name=accounts/{account}/dataSources/{datasource}}`", + "description": "Identifier. The name of the data source. Format: `accounts/{account}/dataSources/{datasource}`", "type": "string" }, "primaryProductDataSource": { diff --git a/merchantapi/datasources_v1beta/merchantapi-gen.go b/merchantapi/datasources_v1beta/merchantapi-gen.go index 9938d11a92a..ff114cbfaaf 100644 --- a/merchantapi/datasources_v1beta/merchantapi-gen.go +++ b/merchantapi/datasources_v1beta/merchantapi-gen.go @@ -223,7 +223,7 @@ type DataSource struct { // (https://support.google.com/merchants/answer/7045996) data source. MerchantReviewDataSource *MerchantReviewDataSource `json:"merchantReviewDataSource,omitempty"` // Name: Identifier. The name of the data source. Format: - // `{datasource.name=accounts/{account}/dataSources/{datasource}}` + // `accounts/{account}/dataSources/{datasource}` Name string `json:"name,omitempty"` // PrimaryProductDataSource: The primary data source // (https://support.google.com/merchants/answer/7439058) for local and online @@ -1579,7 +1579,7 @@ type AccountsDataSourcesPatchCall struct { // set in the update mask but not provided in the resource will be deleted. // // - name: Identifier. The name of the data source. Format: -// `{datasource.name=accounts/{account}/dataSources/{datasource}}`. +// `accounts/{account}/dataSources/{datasource}`. func (r *AccountsDataSourcesService) Patch(name string, datasource *DataSource) *AccountsDataSourcesPatchCall { c := &AccountsDataSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/metastore/v1alpha/metastore-api.json b/metastore/v1alpha/metastore-api.json index 0a70cfe33bc..c0716c42ef1 100644 --- a/metastore/v1alpha/metastore-api.json +++ b/metastore/v1alpha/metastore-api.json @@ -1802,7 +1802,7 @@ } } }, - "revision": "20250324", + "revision": "20250410", "rootUrl": "https://metastore.googleapis.com/", "schemas": { "AlterMetadataResourceLocationRequest": { @@ -2329,6 +2329,13 @@ "kmsKey": { "description": "Optional. The fully qualified customer provided Cloud KMS key name to use for customer data encryption, in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.", "type": "string" + }, + "kmsKeys": { + "description": "Optional. The list of fully qualified customer provided Cloud KMS key names for the multi-regional service. Each key must be in the following format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/metastore/v1alpha/metastore-gen.go b/metastore/v1alpha/metastore-gen.go index ad8b7da2436..4ad586ac2f2 100644 --- a/metastore/v1alpha/metastore-gen.go +++ b/metastore/v1alpha/metastore-gen.go @@ -1072,6 +1072,11 @@ type EncryptionConfig struct { // format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_i // d}/cryptoKeys/{crypto_key_id}. KmsKey string `json:"kmsKey,omitempty"` + // KmsKeys: Optional. The list of fully qualified customer provided Cloud KMS + // key names for the multi-regional service. Each key must be in the following + // format:projects/{project_number}/locations/{location_id}/keyRings/{key_ring_i + // d}/cryptoKeys/{crypto_key_id}. + KmsKeys []string `json:"kmsKeys,omitempty"` // ForceSendFields is a list of field names (e.g. "KmsKey") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 154a45d4d15..fbd23cfc4ca 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2554,7 +2554,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -4530,6 +4530,14 @@ "readOnly": true, "type": "string" }, + "recommendedVersions": { + "description": "Output only. The recommended versions of the discovery client.", + "items": { + "$ref": "DiscoveryClientDiscoveryClientRecommendedVersion" + }, + "readOnly": true, + "type": "array" + }, "serviceAccount": { "description": "Required. Service account used by the discovery client for various operation.", "type": "string" @@ -4581,6 +4589,21 @@ }, "type": "object" }, + "DiscoveryClientDiscoveryClientRecommendedVersion": { + "description": "Discovery client recommended version.", + "id": "DiscoveryClientDiscoveryClientRecommendedVersion", + "properties": { + "uri": { + "description": "The URI of the discovery client version.", + "type": "string" + }, + "version": { + "description": "The version of the discovery client.", + "type": "string" + } + }, + "type": "object" + }, "DiskEntry": { "description": "Single disk entry.", "id": "DiskEntry", @@ -4621,6 +4644,7 @@ }, "vmwareConfig": { "$ref": "VmwareDiskConfig", + "deprecated": true, "description": "VMware disk details." } }, diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index 5cec365f65b..cd628295f2a 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -2565,6 +2565,9 @@ type DiscoveryClient struct { Labels map[string]string `json:"labels,omitempty"` // Name: Output only. Identifier. Full name of this discovery client. Name string `json:"name,omitempty"` + // RecommendedVersions: Output only. The recommended versions of the discovery + // client. + RecommendedVersions []*DiscoveryClientDiscoveryClientRecommendedVersion `json:"recommendedVersions,omitempty"` // ServiceAccount: Required. Service account used by the discovery client for // various operation. ServiceAccount string `json:"serviceAccount,omitempty"` @@ -2616,6 +2619,31 @@ func (s DiscoveryClient) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DiscoveryClientDiscoveryClientRecommendedVersion: Discovery client +// recommended version. +type DiscoveryClientDiscoveryClientRecommendedVersion struct { + // Uri: The URI of the discovery client version. + Uri string `json:"uri,omitempty"` + // Version: The version of the discovery client. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Uri") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Uri") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DiscoveryClientDiscoveryClientRecommendedVersion) MarshalJSON() ([]byte, error) { + type NoMethod DiscoveryClientDiscoveryClientRecommendedVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiskEntry: Single disk entry. type DiskEntry struct { // DiskLabel: Disk label. diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 5f3a404508b..18c79c5d9b9 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -143,6 +143,12 @@ "name" ], "parameters": { + "extraLocationTypes": { + "description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.", + "location": "query", + "repeated": true, + "type": "string" + }, "filter": { "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", "location": "query", @@ -758,7 +764,7 @@ } } }, - "revision": "20250319", + "revision": "20250409", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1380,7 +1386,11 @@ "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION", - "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" + "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED", + "PSC_PORT_MAPPING_PORT_MISMATCH", + "PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED", + "UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION", + "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1401,9 +1411,9 @@ "The packet does not match a policy-based VPN tunnel local selector.", "The packet does not match a policy-based VPN tunnel remote selector.", "Packet with internal destination address sent to the internet gateway.", - "Instance with only an internal IP address tries to access Google API and services, but private Google access is not enabled in the subnet.", + "Endpoint with only an internal IP address tries to access Google API and services, but Private Google Access is not enabled in the subnet or is not applicable.", "Source endpoint tries to access Google API and services through the VPN tunnel to another network, but Private Google Access needs to be enabled in the source endpoint network.", - "Instance with only an internal IP address tries to access external hosts, but Cloud NAT is not enabled in the subnet, unless special configurations on a VM allow this connection.", + "Endpoint with only an internal IP address tries to access external hosts, but there is no matching Cloud NAT gateway in the subnet.", "Destination internal address cannot be resolved to a known target. If this is a shared VPC scenario, verify if the service project ID is provided as test input. Otherwise, verify if the IP address is being used in the project.", "Forwarding rule's protocol and ports do not match the packet header.", "Forwarding rule does not have backends configured.", @@ -1467,7 +1477,11 @@ "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel.", "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address.", - "Sending packets processed by the Private NAT Gateways to the Private Service Connect endpoints is not supported." + "Sending packets processed by the Private NAT Gateways to the Private Service Connect endpoints is not supported.", + "Packet is sent to the PSC port mapping service, but its destination port does not match any port mapping rules.", + "Sending packets directly to the PSC port mapping service without going through the PSC connection is not supported.", + "Packet with destination IP address within the reserved NAT64 range is dropped due to matching a route of an unsupported type.", + "Packet could be dropped because hybrid endpoint like a VPN gateway or Interconnect is not allowed to send traffic to the Internet." ], "type": "string" }, @@ -1932,7 +1946,8 @@ "CLOUD_DNS", "GOOGLE_API", "GOOGLE_API_PSC", - "GOOGLE_API_VPC_SC" + "GOOGLE_API_VPC_SC", + "SERVERLESS_VPC_ACCESS" ], "enumDescriptions": [ "Unspecified Google Service.", @@ -1941,7 +1956,8 @@ "Connectivity from Cloud DNS to forwarding targets or alternate name servers that use private routing. https://cloud.google.com/dns/docs/zones/forwarding-zones#firewall-rules https://cloud.google.com/dns/docs/policies#firewall-rules", "private.googleapis.com and restricted.googleapis.com", "Google API via Private Service Connect. https://cloud.google.com/vpc/docs/configure-private-service-connect-apis", - "Google API via VPC Service Controls. https://cloud.google.com/vpc/docs/configure-private-service-connect-apis" + "Google API via VPC Service Controls. https://cloud.google.com/vpc/docs/configure-private-service-connect-apis", + "Google API via Serverless VPC Access. https://cloud.google.com/vpc/docs/serverless-vpc-access" ], "type": "string" }, @@ -2541,7 +2557,14 @@ }, "destinationEgressLocation": { "$ref": "EdgeLocation", - "description": "The EdgeLocation from which a packet destined for/originating from the internet will egress/ingress the Google network. This will only be populated for a connectivity test which has an internet destination/source address. The absence of this field *must not* be used as an indication that the destination/source is part of the Google network." + "description": "The EdgeLocation from which a packet, destined to the internet, will egress the Google network. This will only be populated for a connectivity test which has an internet destination address. The absence of this field *must not* be used as an indication that the destination is part of the Google network." + }, + "edgeResponses": { + "description": "Probing results for all edge devices.", + "items": { + "$ref": "SingleEdgeResponse" + }, + "type": "array" }, "endpointInfo": { "$ref": "EndpointInfo", @@ -2551,6 +2574,10 @@ "$ref": "Status", "description": "Details about an internal failure or the cancellation of active probing." }, + "probedAllDevices": { + "description": "Whether all relevant edge devices were probed.", + "type": "boolean" + }, "probingLatency": { "$ref": "LatencyDistribution", "description": "Latency as measured by active probing in one direction: from the source to the destination endpoint." @@ -2974,6 +3001,53 @@ }, "type": "object" }, + "SingleEdgeResponse": { + "description": "Probing results for a single edge device.", + "id": "SingleEdgeResponse", + "properties": { + "destinationEgressLocation": { + "$ref": "EdgeLocation", + "description": "The EdgeLocation from which a packet, destined to the internet, will egress the Google network. This will only be populated for a connectivity test which has an internet destination address. The absence of this field *must not* be used as an indication that the destination is part of the Google network." + }, + "destinationRouter": { + "description": "Router name in the format '{router}.{metroshard}'. For example: pf01.aaa01, pr02.aaa01.", + "type": "string" + }, + "probingLatency": { + "$ref": "LatencyDistribution", + "description": "Latency as measured by active probing in one direction: from the source to the destination endpoint." + }, + "result": { + "description": "The overall result of active probing for this egress device.", + "enum": [ + "PROBING_RESULT_UNSPECIFIED", + "REACHABLE", + "UNREACHABLE", + "REACHABILITY_INCONSISTENT", + "UNDETERMINED" + ], + "enumDescriptions": [ + "No result was specified.", + "At least 95% of packets reached the destination.", + "No packets reached the destination.", + "Less than 95% of packets reached the destination.", + "Reachability could not be determined. Possible reasons are: * The user lacks permission to access some of the network resources required to run the test. * No valid source endpoint could be derived from the request. * An internal error occurred." + ], + "type": "string" + }, + "sentProbeCount": { + "description": "Number of probes sent.", + "format": "int32", + "type": "integer" + }, + "successfulProbeCount": { + "description": "Number of probes that reached the destination.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -3420,7 +3494,7 @@ "type": "string" }, "state": { - "description": "Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled.", + "description": "Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", "enum": [ "STATE_UNSPECIFIED", "ENABLED", diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index d02555c923c..d5eb9d78538 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -922,16 +922,16 @@ type DropInfo struct { // policy-based VPN tunnel remote selector. // "PRIVATE_TRAFFIC_TO_INTERNET" - Packet with internal destination address // sent to the internet gateway. - // "PRIVATE_GOOGLE_ACCESS_DISALLOWED" - Instance with only an internal IP - // address tries to access Google API and services, but private Google access - // is not enabled in the subnet. + // "PRIVATE_GOOGLE_ACCESS_DISALLOWED" - Endpoint with only an internal IP + // address tries to access Google API and services, but Private Google Access + // is not enabled in the subnet or is not applicable. // "PRIVATE_GOOGLE_ACCESS_VIA_VPN_TUNNEL_UNSUPPORTED" - Source endpoint tries // to access Google API and services through the VPN tunnel to another network, // but Private Google Access needs to be enabled in the source endpoint // network. - // "NO_EXTERNAL_ADDRESS" - Instance with only an internal IP address tries to - // access external hosts, but Cloud NAT is not enabled in the subnet, unless - // special configurations on a VM allow this connection. + // "NO_EXTERNAL_ADDRESS" - Endpoint with only an internal IP address tries to + // access external hosts, but there is no matching Cloud NAT gateway in the + // subnet. // "UNKNOWN_INTERNAL_ADDRESS" - Destination internal address cannot be // resolved to a known target. If this is a shared VPC scenario, verify if the // service project ID is provided as test input. Otherwise, verify if the IP @@ -1101,6 +1101,17 @@ type DropInfo struct { // "PRIVATE_NAT_TO_PSC_ENDPOINT_UNSUPPORTED" - Sending packets processed by // the Private NAT Gateways to the Private Service Connect endpoints is not // supported. + // "PSC_PORT_MAPPING_PORT_MISMATCH" - Packet is sent to the PSC port mapping + // service, but its destination port does not match any port mapping rules. + // "PSC_PORT_MAPPING_WITHOUT_PSC_CONNECTION_UNSUPPORTED" - Sending packets + // directly to the PSC port mapping service without going through the PSC + // connection is not supported. + // "UNSUPPORTED_ROUTE_MATCHED_FOR_NAT64_DESTINATION" - Packet with + // destination IP address within the reserved NAT64 range is dropped due to + // matching a route of an unsupported type. + // "TRAFFIC_FROM_HYBRID_ENDPOINT_TO_INTERNET_DISALLOWED" - Packet could be + // dropped because hybrid endpoint like a VPN gateway or Interconnect is not + // allowed to send traffic to the Internet. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1602,6 +1613,8 @@ type GoogleServiceInfo struct { // https://cloud.google.com/vpc/docs/configure-private-service-connect-apis // "GOOGLE_API_VPC_SC" - Google API via VPC Service Controls. // https://cloud.google.com/vpc/docs/configure-private-service-connect-apis + // "SERVERLESS_VPC_ACCESS" - Google API via Serverless VPC Access. + // https://cloud.google.com/vpc/docs/serverless-vpc-access GoogleServiceType string `json:"googleServiceType,omitempty"` // SourceIp: Source IP address. SourceIp string `json:"sourceIp,omitempty"` @@ -2309,18 +2322,22 @@ type ProbingDetails struct { // "NO_SOURCE_LOCATION" - No valid source endpoint could be derived from the // request. AbortCause string `json:"abortCause,omitempty"` - // DestinationEgressLocation: The EdgeLocation from which a packet destined - // for/originating from the internet will egress/ingress the Google network. - // This will only be populated for a connectivity test which has an internet - // destination/source address. The absence of this field *must not* be used as - // an indication that the destination/source is part of the Google network. + // DestinationEgressLocation: The EdgeLocation from which a packet, destined to + // the internet, will egress the Google network. This will only be populated + // for a connectivity test which has an internet destination address. The + // absence of this field *must not* be used as an indication that the + // destination is part of the Google network. DestinationEgressLocation *EdgeLocation `json:"destinationEgressLocation,omitempty"` + // EdgeResponses: Probing results for all edge devices. + EdgeResponses []*SingleEdgeResponse `json:"edgeResponses,omitempty"` // EndpointInfo: The source and destination endpoints derived from the test // input and used for active probing. EndpointInfo *EndpointInfo `json:"endpointInfo,omitempty"` // Error: Details about an internal failure or the cancellation of active // probing. Error *Status `json:"error,omitempty"` + // ProbedAllDevices: Whether all relevant edge devices were probed. + ProbedAllDevices bool `json:"probedAllDevices,omitempty"` // ProbingLatency: Latency as measured by active probing in one direction: from // the source to the destination endpoint. ProbingLatency *LatencyDistribution `json:"probingLatency,omitempty"` @@ -2749,6 +2766,55 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SingleEdgeResponse: Probing results for a single edge device. +type SingleEdgeResponse struct { + // DestinationEgressLocation: The EdgeLocation from which a packet, destined to + // the internet, will egress the Google network. This will only be populated + // for a connectivity test which has an internet destination address. The + // absence of this field *must not* be used as an indication that the + // destination is part of the Google network. + DestinationEgressLocation *EdgeLocation `json:"destinationEgressLocation,omitempty"` + // DestinationRouter: Router name in the format '{router}.{metroshard}'. For + // example: pf01.aaa01, pr02.aaa01. + DestinationRouter string `json:"destinationRouter,omitempty"` + // ProbingLatency: Latency as measured by active probing in one direction: from + // the source to the destination endpoint. + ProbingLatency *LatencyDistribution `json:"probingLatency,omitempty"` + // Result: The overall result of active probing for this egress device. + // + // Possible values: + // "PROBING_RESULT_UNSPECIFIED" - No result was specified. + // "REACHABLE" - At least 95% of packets reached the destination. + // "UNREACHABLE" - No packets reached the destination. + // "REACHABILITY_INCONSISTENT" - Less than 95% of packets reached the + // destination. + // "UNDETERMINED" - Reachability could not be determined. Possible reasons + // are: * The user lacks permission to access some of the network resources + // required to run the test. * No valid source endpoint could be derived from + // the request. * An internal error occurred. + Result string `json:"result,omitempty"` + // SentProbeCount: Number of probes sent. + SentProbeCount int64 `json:"sentProbeCount,omitempty"` + // SuccessfulProbeCount: Number of probes that reached the destination. + SuccessfulProbeCount int64 `json:"successfulProbeCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "DestinationEgressLocation") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DestinationEgressLocation") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SingleEdgeResponse) MarshalJSON() ([]byte, error) { + type NoMethod SingleEdgeResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -3159,7 +3225,8 @@ type VpcFlowLogsConfig struct { // fig_id}` Name string `json:"name,omitempty"` // State: Optional. The state of the VPC Flow Log configuration. Default value - // is ENABLED. When creating a new configuration, it must be enabled. + // is ENABLED. When creating a new configuration, it must be enabled. Setting + // state=DISABLED will pause the log generation for this config. // // Possible values: // "STATE_UNSPECIFIED" - If not specified, will default to ENABLED. @@ -3424,6 +3491,14 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": A list +// of extra location types that should be used as conditions for controlling +// the visibility of the locations. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) + return c +} + // Filter sets the optional parameter "filter": A filter to narrow down results // to a preferred subset. The filtering language accepts strings like // "displayName=tokyo", and is documented in more detail in AIP-160 diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 4101e166a46..08a7557ddd7 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1638,7 +1638,7 @@ } } }, - "revision": "20250311", + "revision": "20250414", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -2215,7 +2215,7 @@ "id": "JavaScriptUDF", "properties": { "code": { - "description": "Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)\u003e|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)\u003e} Pub/Sub * message. Keys: * - (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (required) 'message_id' : {string} * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} */ function (message, metadata) { } ```", + "description": "Required. JavaScript code that contains a function `function_name` with the below signature: ``` /** * Transforms a Pub/Sub message. * @return {(Object)\u003e|null)} - To * filter a message, return `null`. To transform a message return a map * with the following keys: * - (required) 'data' : {string} * - (optional) 'attributes' : {Object} * Returning empty `attributes` will remove all attributes from the * message. * * @param {(Object)\u003e} Pub/Sub * message. Keys: * - (required) 'data' : {string} * - (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub message metadata. * Keys: * - (optional) 'message_id' : {string} * - (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - (optional) 'ordering_key': {string} */ function (message, metadata) { } ```", "type": "string" }, "functionName": { diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index d9e78965465..3d569130218 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -1092,7 +1092,7 @@ type JavaScriptUDF struct { // `attributes` will remove all attributes from the * message. * * @param // {(Object)>} Pub/Sub * message. Keys: * - (required) 'data' : {string} * - // (required) 'attributes' : {Object} * * @param {Object} metadata - Pub/Sub - // message metadata. * Keys: * - (required) 'message_id' : {string} * - + // message metadata. * Keys: * - (optional) 'message_id' : {string} * - // (optional) 'publish_time': {string} YYYY-MM-DDTHH:MM:SSZ format * - // (optional) 'ordering_key': {string} */ function (message, metadata) { } ``` Code string `json:"code,omitempty"` diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 57a5b563e86..d9c7e257aad 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -830,7 +830,7 @@ } } }, - "revision": "20250228", + "revision": "20250414", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -2158,7 +2158,7 @@ "description": "Some settings." }, "libraryPackage": { - "description": "The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name\" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: java_settings: library_package: com.google.cloud.pubsub.v1", + "description": "The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name\" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: library_settings: java_settings: library_package: com.google.cloud.pubsub.v1", "type": "string" }, "serviceClassNames": { diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 0b33fd2c94b..da091b59c58 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -2289,8 +2289,8 @@ type JavaSettings struct { // option set in the protobuf. This should be used **only** by APIs who have // already set the language_settings.java.package_name" field in gapic.yaml. // API teams should use the protobuf java_package option where possible. - // Example of a YAML configuration:: publishing: java_settings: - // library_package: com.google.cloud.pubsub.v1 + // Example of a YAML configuration:: publishing: library_settings: + // java_settings: library_package: com.google.cloud.pubsub.v1 LibraryPackage string `json:"libraryPackage,omitempty"` // ServiceClassNames: Configure the Java class name to use instead of the // service's for its corresponding generated GAPIC client. Keys are diff --git a/tpu/v2/tpu-api.json b/tpu/v2/tpu-api.json index 8ee6ea74cd5..04d6e297b20 100644 --- a/tpu/v2/tpu-api.json +++ b/tpu/v2/tpu-api.json @@ -893,7 +893,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1590,6 +1590,11 @@ "type": "string" }, "type": "array" + }, + "upcomingMaintenance": { + "$ref": "UpcomingMaintenance", + "description": "Output only. Upcoming maintenance on this TPU node.", + "readOnly": true } }, "type": "object" @@ -2052,6 +2057,57 @@ } }, "type": "object" + }, + "UpcomingMaintenance": { + "description": "Upcoming Maintenance notification information.", + "id": "UpcomingMaintenance", + "properties": { + "canReschedule": { + "description": "Indicates if the maintenance can be customer triggered.", + "type": "boolean" + }, + "latestWindowStartTime": { + "description": "The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "maintenanceStatus": { + "description": "The status of the maintenance.", + "enum": [ + "UNKNOWN", + "PENDING", + "ONGOING" + ], + "enumDescriptions": [ + "Unknown maintenance status. Do not use this value.", + "There is pending maintenance.", + "There is ongoing maintenance on this VM." + ], + "type": "string" + }, + "type": { + "description": "Defines the type of maintenance.", + "enum": [ + "UNKNOWN_TYPE", + "SCHEDULED", + "UNSCHEDULED" + ], + "enumDescriptions": [ + "No type specified. Do not use this value.", + "Scheduled maintenance (e.g. maintenance after uptime guarantee is complete).", + "Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee)." + ], + "type": "string" + }, + "windowEndTime": { + "description": "The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "windowStartTime": { + "description": "The current start time of the maintenance window. This timestamp value is in RFC3339 text format.", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/tpu/v2/tpu-gen.go b/tpu/v2/tpu-gen.go index 3c0119118ba..8de51247839 100644 --- a/tpu/v2/tpu-gen.go +++ b/tpu/v2/tpu-gen.go @@ -1025,6 +1025,8 @@ type Node struct { // Tags: Tags to apply to the TPU Node. Tags are used to identify valid sources // or targets for network firewalls. Tags []string `json:"tags,omitempty"` + // UpcomingMaintenance: Output only. Upcoming maintenance on this TPU node. + UpcomingMaintenance *UpcomingMaintenance `json:"upcomingMaintenance,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1568,6 +1570,53 @@ func (s Tpu) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UpcomingMaintenance: Upcoming Maintenance notification information. +type UpcomingMaintenance struct { + // CanReschedule: Indicates if the maintenance can be customer triggered. + CanReschedule bool `json:"canReschedule,omitempty"` + // LatestWindowStartTime: The latest time for the planned maintenance window to + // start. This timestamp value is in RFC3339 text format. + LatestWindowStartTime string `json:"latestWindowStartTime,omitempty"` + // MaintenanceStatus: The status of the maintenance. + // + // Possible values: + // "UNKNOWN" - Unknown maintenance status. Do not use this value. + // "PENDING" - There is pending maintenance. + // "ONGOING" - There is ongoing maintenance on this VM. + MaintenanceStatus string `json:"maintenanceStatus,omitempty"` + // Type: Defines the type of maintenance. + // + // Possible values: + // "UNKNOWN_TYPE" - No type specified. Do not use this value. + // "SCHEDULED" - Scheduled maintenance (e.g. maintenance after uptime + // guarantee is complete). + // "UNSCHEDULED" - Unscheduled maintenance (e.g. emergency maintenance during + // uptime guarantee). + Type string `json:"type,omitempty"` + // WindowEndTime: The time by which the maintenance disruption will be + // completed. This timestamp value is in RFC3339 text format. + WindowEndTime string `json:"windowEndTime,omitempty"` + // WindowStartTime: The current start time of the maintenance window. This + // timestamp value is in RFC3339 text format. + WindowStartTime string `json:"windowStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CanReschedule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CanReschedule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UpcomingMaintenance) MarshalJSON() ([]byte, error) { + type NoMethod UpcomingMaintenance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ProjectsLocationsGenerateServiceIdentityCall struct { s *Service parent string diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 5b71c5d08a7..3a67f5571d7 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -1027,7 +1027,7 @@ } } }, - "revision": "20250320", + "revision": "20250410", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -1158,6 +1158,10 @@ "enableConfidentialCompute": { "description": "Optional. Whether the boot disk will be created with confidential compute mode.", "type": "boolean" + }, + "sourceImage": { + "description": "Optional. Image from which boot disk is to be created. If not specified, the default image for the runtime version will be used. Example: `projects/$PROJECT_ID/global/images/$IMAGE_NAME`.", + "type": "string" } }, "type": "object" @@ -2200,6 +2204,22 @@ "description": "Defines whether the node is preemptible.", "type": "boolean" }, + "provisioningModel": { + "description": "Optional. Defines the provisioning model for the node.", + "enum": [ + "PROVISIONING_MODEL_UNSPECIFIED", + "STANDARD", + "SPOT", + "RESERVATION_BOUND" + ], + "enumDescriptions": [ + "Provisioning model is unknown.", + "Standard provisioning with user controlled runtime.", + "Spot provisioning with no guaranteed runtime.", + "Reservation provisioning with runtime bound to the lifetime of the consumed reservation." + ], + "type": "string" + }, "reserved": { "description": "Whether the node is created under a reservation.", "type": "boolean" diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 3629ea0a751..497c5c4746e 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -386,6 +386,10 @@ type BootDiskConfig struct { // EnableConfidentialCompute: Optional. Whether the boot disk will be created // with confidential compute mode. EnableConfidentialCompute bool `json:"enableConfidentialCompute,omitempty"` + // SourceImage: Optional. Image from which boot disk is to be created. If not + // specified, the default image for the runtime version will be used. Example: + // `projects/$PROJECT_ID/global/images/$IMAGE_NAME`. + SourceImage string `json:"sourceImage,omitempty"` // ForceSendFields is a list of field names (e.g. "CustomerEncryptionKey") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -1576,6 +1580,15 @@ func (s RuntimeVersion) MarshalJSON() ([]byte, error) { type SchedulingConfig struct { // Preemptible: Defines whether the node is preemptible. Preemptible bool `json:"preemptible,omitempty"` + // ProvisioningModel: Optional. Defines the provisioning model for the node. + // + // Possible values: + // "PROVISIONING_MODEL_UNSPECIFIED" - Provisioning model is unknown. + // "STANDARD" - Standard provisioning with user controlled runtime. + // "SPOT" - Spot provisioning with no guaranteed runtime. + // "RESERVATION_BOUND" - Reservation provisioning with runtime bound to the + // lifetime of the consumed reservation. + ProvisioningModel string `json:"provisioningModel,omitempty"` // Reserved: Whether the node is created under a reservation. Reserved bool `json:"reserved,omitempty"` // Spot: Optional. Defines whether the node is Spot VM.